|
Joined: Aug 2006
Posts: 95
Journeyman
|
Journeyman
Joined: Aug 2006
Posts: 95 |
I want to be able to have ads in the Default Header and Default footer follow the Permissions > Groups setting for Must View Ad Island. I've poked around a bit but did not find the function. What is the function to show and hide the Ad Island based on the permission setting? Is the function data available when the Display > General > HTML Includes > Default Header or Default Footer is executed?
Thanks in advance - Geoff
I am a Superstar! Testing signature here
|
|
|
|
Joined: Apr 2004
Posts: 1,944 Likes: 144
|
Joined: Apr 2004
Posts: 1,944 Likes: 144 |
1) Control Panel > (Content) Forums 2) Select the PERMISSIONS next to the forum you want to edit 3) Open the "Must view Ad Island" block. Place a 1 next to each group where you'd like to have it displayed for.
I believe that you'd also have to do the same for each group you want it to displayed to, from within the (Permissions) Group menu as well.
So because of the permissions being so granular, its a two part process.
|
|
|
|
Joined: Aug 2006
Posts: 95
Journeyman
|
Journeyman
Joined: Aug 2006
Posts: 95 |
I already have those set and using it. Paid subscribers custom group is the only group with permission set to 0 for Must View Ad Island. I was looking at having the ads I have in the HTML Includes for Default Header and Default Header follow the Must View Ad Islands function by inserting PHP function around my Ads. This function currently only applies to the Ad Island between post 1 & 2. Could you point me to the file and line number for this code?
I am a Superstar! Testing signature here
|
|
|
|
Joined: Apr 2004
Posts: 1,944 Likes: 144
|
Joined: Apr 2004
Posts: 1,944 Likes: 144 |
Sorry. But I'm not going to write something custom for free. I'm already working on UBB.threads software for free. I haven't received a dime for any of my code or support replies here. You may want to contact support or Gizmo @ https://www.virtualnightclub.net/ if you'd like custom code specific to your needs.
|
|
|
|
Joined: Jun 2006
Posts: 16,250 Likes: 112
|
Joined: Jun 2006
Posts: 16,250 Likes: 112 |
The ad island is referenced as $island_insert in the scripts. I believe the code that drives this is in /libs/ubbthreads.inc.php; however, I've run a grep of the front end files, on a stock install, for the island reference that you can dredge through below. [root@server ~]# grep -r "\$island_insert" /public_html/forum/
/public_html/forum/libs/ubbthreads.inc.php: $island_insert = "";
/public_html/forum/libs/ubbthreads.inc.php: $island_insert = ob_get_contents();
/public_html/forum/libs/ubbthreads.inc.php: return $island_insert;
/public_html/forum/libs/ubbthreads.inc.php: $island_insert = '';
/public_html/forum/libs/ubbthreads.inc.php: $island_insert .= $body;
/public_html/forum/libs/ubbthreads.inc.php: return $island_insert;
/public_html/forum/templates/default/post_top.tpl:{if $smarty.section.post.iteration == 1}{$island_insert}{/if}
/public_html/forum/templates/default/post_side.tpl:{if $smarty.section.post.iteration == 1}{$island_insert}{/if}
/public_html/forum/scripts/showflat.inc.php: $island_insert = get_portal_box("portal_box_{$forum_info['FORUM_ISLAND_INSERT']}.php");
/public_html/forum/scripts/showflat.inc.php: "island_insert" => & $island_insert, Please note, however; modifications to base code are unsupported, and you may be asked to roll back any changes in order to troubleshoot your forums in the future.
|
|
|
|
Joined: Aug 2006
Posts: 95
Journeyman
|
Journeyman
Joined: Aug 2006
Posts: 95 |
I am a Superstar! Testing signature here
|
|
|
|
Joined: Jul 2006
Posts: 4,057
|
Joined: Jul 2006
Posts: 4,057 |
I'm already working on UBB.threads software for free. I haven't received a dime for any of my code or support replies here. Respect to you Isaac. I'm shocked... Great work..
BOOM !! Version v7.6.1.1 People who inspire me Isaac ME Gizmo
|
|
|
|
Joined: Jun 2006
Posts: 16,250 Likes: 112
|
Joined: Jun 2006
Posts: 16,250 Likes: 112 |
|
|
|
|
Joined: Apr 2004
Posts: 1,944 Likes: 144
|
Joined: Apr 2004
Posts: 1,944 Likes: 144 |
Thank you. The coffee is very important to me. Geoff, if you tie the "not logged in" checks used for the "login menu" to your header and footer templates (not the custom ones, but the ones inside the /template directory), you could send your ad code to all your unregistered users.
|
|
|
0 members (),
64
guests, and
214
robots. |
Key:
Admin,
Global Mod,
Mod
|
|
|
|