[phpBB Debug] PHP Warning: in file [ROOT]/feed.php on line 173: Cannot modify header information - headers already sent by (output started at [ROOT]/feed.php:1)
[phpBB Debug] PHP Warning: in file [ROOT]/feed.php on line 174: Cannot modify header information - headers already sent by (output started at [ROOT]/feed.php:1)
[phpBB Debug] PHP Warning: in file [ROOT]/feed.php on line 180: Cannot modify header information - headers already sent by (output started at [ROOT]/feed.php:1)
IntegraMOD Home of phpBB Integrated Modifications 2006-05-03T10:48:15-07:00 https://integramod.com/forum/feed.php?f=23&t=228 2006-05-03T10:48:15-07:00 2006-05-03T10:48:15-07:00 https://integramod.com/forum/viewtopic.php?t=228&p=4392#p4392 <![CDATA[Re: group members view only]]>
:mrgreen:

Statistics: Posted Author: found it — Wed May 03, 2006 10:48 am


]]>
2006-05-03T10:47:36-07:00 2006-05-03T10:47:36-07:00 https://integramod.com/forum/viewtopic.php?t=228&p=4391#p4391 <![CDATA[Re: group members view only]]> Statistics: Posted Author: Skywalker — Wed May 03, 2006 10:47 am


]]>
2006-05-03T09:57:49-07:00 2006-05-03T09:57:49-07:00 https://integramod.com/forum/viewtopic.php?t=228&p=4374#p4374 <![CDATA[Re: group members view only]]>
if you make any progress with this i would be gratefull for any updates


First, get the group id number.
You can get this by clicking on usergroups and selecting the group.
The number will be at the end of the URL like groupcp.php?g=19
So the group id number would be 19

Second, open includes/page_header.php
Find:

$template->assign_block_vars('switch_user_logged_in', array());



Now add after that]// SQL to get the user's group$sql = "SELECT * FROM " . USER_GROUP_TABLE . " WHERE user_id = " . $userdata['user_id'] . " AND group_id = 'GROUP_NUMBER_HERE' AND user_pending != " . TRUE;  // Did the SQL process successfully?if ( ! ($group_result = $db->sql_query($sql) ) ){    message_die(GENERAL_ERROR, "Could not obtain usergroup", '', __LINE__, __FILE__, $sql);}  // Is the user in the group?if ( $group = $db->sql_fetchrow($group_result) ){    $template->assign_block_vars('switch_user_in_group', array() );}  //No, they aren't in that groupelse{    $template->assign_block_vars('switch_user_not_in_group', array() );} [/code]

(Replace GROUP_NUMBER_HERE with the group id number.)
Now, in any template file you can use


in your template files

 <BEGIN>image/link whatever here for the special group<END>


or

<BEGIN>image/link whatever for people not in group<END>


I hope that is of some use

:mrgreen:

Statistics: Posted Author: found it — Wed May 03, 2006 9:57 am


]]>
2006-05-03T09:45:35-07:00 2006-05-03T09:45:35-07:00 https://integramod.com/forum/viewtopic.php?t=228&p=4362#p4362 <![CDATA[Re: group members view only]]>
"found it";p="4290" wrote:
I have a mod that allows only one group to view an image or a link is that what you are after...

:mrgreen:


i mean i script like the one i posted but then for usergroups.
but maybe i can expand your script to work like i need to you may always post it

Statistics: Posted Author: Skywalker — Wed May 03, 2006 9:45 am


]]>
2006-05-03T06:11:10-07:00 2006-05-03T06:11:10-07:00 https://integramod.com/forum/viewtopic.php?t=228&p=4290#p4290 <![CDATA[Re: group members view only]]>
:mrgreen:

Statistics: Posted Author: found it — Wed May 03, 2006 6:11 am


]]>
2006-04-15T05:00:47-07:00 2006-04-15T05:00:47-07:00 https://integramod.com/forum/viewtopic.php?t=228&p=1710#p1710 <![CDATA[group members view only]]>
"Adrian Rea";p="1677" wrote:
This feature is already available as I see it. If you are making a block for a new page, you will find check boxes at the bottom for the usergroups you have. tick the apropriate box and only they will see the block. You may need a second block open to all stating that t'this is a Beta testers page, only they can see the content on this page' otherwise you see a quite bare page.

A


no i mean for pages of new mods i'm willing to install and need to be tested.

the function you recall i can't use

Statistics: Posted Author: Skywalker — Sat Apr 15, 2006 5:00 am


]]>
2006-04-14T18:47:36-07:00 2006-04-14T18:47:36-07:00 https://integramod.com/forum/viewtopic.php?t=228&p=1677#p1677 <![CDATA[group members view only]]>
A

Statistics: Posted Author: Adrian Rea — Fri Apr 14, 2006 6:47 pm


]]>
2006-04-14T17:40:02-07:00 2006-04-14T17:40:02-07:00 https://integramod.com/forum/viewtopic.php?t=228&p=1656#p1656 <![CDATA[group members view only]]>
example of admin view only script

# #-----[ OPEN ]------------------------------------------ #  includes/page_header.php  # #-----[ FIND ]------------------------------------------ #  $template->assign_block_vars('switch_user_logged_in', array());  # #-----[ AFTER, ADD ]------------------------------------------ #  // Admin Only View Mod       if ( $userdata['user_level'] == ADMIN )    {       $template->assign_block_vars('switch_admin_view_only', array());    } // Admin Only View Mod  # #-----[ OPEN ]------------------------------------------ ### templates/subSilver/**file_you_want_to_place_swicth_in**.tpl  # #-----[ FIND ]------------------------------------------ ## The code you want to remain hidden from everyone except Administrators  # #-----[ BEFORE **CODE**, ADD ]------------------------------------------ #  <BEGIN>  <END># #-----[ AFTER **CODE**, ADD ]------------------------------------------ #  


but then for example a group called beta testers.
the function would be that only beta testers can acces beta mod pages on my board and al the other members iff the visit that page get an empty page

Statistics: Posted Author: Skywalker — Fri Apr 14, 2006 5:40 pm


]]>