Only members on a specific region are able to see the specific forum
3 posters
Only members on a specific region are able to see the specific forum
is it possible to only members on a specific region are able to see the specific forum? example : only USA members are able to see forum number /f7-.
like in the forumotion ACP options that only specific gorup members are able to see that specific forum. but i want based on region, only USA and/or other region.
since i saw the thread about region block that only USA peoples are able to register (i forgot to bookmark it xD). and i think its possible but idk how, i'm blind on this kind of things, so i decided to ask it here. xD
like in the forumotion ACP options that only specific gorup members are able to see that specific forum. but i want based on region, only USA and/or other region.
since i saw the thread about region block that only USA peoples are able to register (i forgot to bookmark it xD). and i think its possible but idk how, i'm blind on this kind of things, so i decided to ask it here. xD
gunsmaker- Forumember
- Posts : 34
Reputation : 1
Language : English and Indonesian
Re: Only members on a specific region are able to see the specific forum
yea u seen it on my forum give me a day or two and ill try to write you something
_Twisted_Mods_- Helper
-
Posts : 2106
Reputation : 333
Language : English
Location : Ms
Re: Only members on a specific region are able to see the specific forum
@_Twisted_Mods_ , ok i can wait.
gunsmaker- Forumember
- Posts : 34
Reputation : 1
Language : English and Indonesian
Re: Only members on a specific region are able to see the specific forum
ok goto acp>modules>javascript management
create a new script
Title:your choice
placement: homepage
copy the code below
Things You Need to Change
example
next is
this is a list of forums and country codes
US = united states
each forum you want to show for the country should be setup like this
'countrycode:forum title'
and for each one separated with a comma
example
after your done with the settings save
create a new script
Title:your choice
placement: homepage
copy the code below
- Code:
$(function(){
$.getJSON('http://ip-api.com/json', function(data) {
var ignorelist = '#Help With Other Scripts #Help With Css';
var locforums = ['US:Script Testing','IT:Css For Scripts'];
var x = data.countryCode;
$('li.row').each(function(){
if(ignorelist.match('#'+$(this).find('.forumtitle').text())){}
else{
$(this).attr('style','display:none');};
for(var i=0;i<locforums.length;i++){
var g = locforums[i].split(':');
if(x == g[0]){$('li.row:contains('+g[1]+')').attr('style','');
};};});});});
Things You Need to Change
- Code:
ignorelist
example
- Code:
ignorelist = '#title1 #title2 #title3'
next is
- Code:
locforums
this is a list of forums and country codes
US = united states
each forum you want to show for the country should be setup like this
'countrycode:forum title'
and for each one separated with a comma
example
- Code:
locforums = ['US:forum title1','MA:forum title2','NL:Forum title3']
after your done with the settings save
_Twisted_Mods_- Helper
-
Posts : 2106
Reputation : 333
Language : English
Location : Ms
Re: Only members on a specific region are able to see the specific forum
@_Twisted_Mods_ , nice, but member from the other region still can see the topics inside the hidden forum (they cant see the hidden forum tho).
if the topics inside the hidden forum can be hide too, it will be better.
if the topics inside the hidden forum can be hide too, it will be better.
gunsmaker- Forumember
- Posts : 34
Reputation : 1
Language : English and Indonesian
Re: Only members on a specific region are able to see the specific forum
Hello,
That is a simple permission problem.
Go into the section in the acp and click on permissions. You will see little tick box(s) that say 'Can read the topics' un tick this for members and set only the groups you want to see it and save.
Hope this helps,
-Brandon
That is a simple permission problem.
Go into the section in the acp and click on permissions. You will see little tick box(s) that say 'Can read the topics' un tick this for members and set only the groups you want to see it and save.
Hope this helps,
-Brandon


Remember to mark your topic

General Rules | Tips & Tricks | FAQ | Forgot Founder Password?

Team Leader
Review Section Rules | Request A Review | Sticker Points
brandon_g- Manager
-
Posts : 9896
Reputation : 906
Language : English
Location : USA
Re: Only members on a specific region are able to see the specific forum
brandon_g wrote:Hello,
That is a simple permission problem.
Go into the section in the acp and click on permissions. You will see little tick box(s) that say 'Can read the topics' un tick this for members and set only the groups you want to see it and save.
Hope this helps,
-Brandon
@brandon_g , i want all the usergroups BUT FROM SPECIFIC REGION can only see the selected forum and all topics inside the selected forum. the ACP only set the permission from usergroups only but not the region.
gunsmaker- Forumember
- Posts : 34
Reputation : 1
Language : English and Indonesian
Re: Only members on a specific region are able to see the specific forum
sorry but this is a bump
gunsmaker- Forumember
- Posts : 34
Reputation : 1
Language : English and Indonesian

» Forum Specific members access?
» How do I make someone or a specific group in charge of a specific forum/category?
» how do i block a specific sub-forum from a specific user?
» Allow pm to specific members
» Gender Specific Topics, Not All Members?
» How do I make someone or a specific group in charge of a specific forum/category?
» how do i block a specific sub-forum from a specific user?
» Allow pm to specific members
» Gender Specific Topics, Not All Members?
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum