Only members on a specific region are able to see the specific forum
3 posters
Page 1 of 1
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
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
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
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.
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 when a solution is found.
General Rules | Tips & Tricks | FAQ | Forgot Founder Password?
Team Leader
Review Section Rules | Request A Review | Sticker Points
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.
Similar topics
» Adding A badge On The Bottom-Right Corner of The Avatar For Members of A Specific Usergroup?
» Allow pm to specific members
» Notification Popup for a specific forum
» Take away a specific members right to edit posts/threads?
» Limit the number of responses to specific members
» Allow pm to specific members
» Notification Popup for a specific forum
» Take away a specific members right to edit posts/threads?
» Limit the number of responses to specific members
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum