Previous Thread
Next Thread
Print Thread
Hop To
Joined: Aug 2006
Posts: 96
Likes: 1
G
Journeyman
Journeyman
G Offline
Joined: Aug 2006
Posts: 96
Likes: 1
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,945
Likes: 145
UBB.threads Developer
UBB.threads Developer
Joined: Apr 2004
Posts: 1,945
Likes: 145
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.


Current developer of UBB.threads PHP Forum Software
Current Release: UBBT 7.7.5 // Preview: UBBT 8.0.0
isaac @ id242.com // my forum @ CelicaHobby.com
Joined: Aug 2006
Posts: 96
Likes: 1
G
Journeyman
Journeyman
G Offline
Joined: Aug 2006
Posts: 96
Likes: 1
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,945
Likes: 145
UBB.threads Developer
UBB.threads Developer
Joined: Apr 2004
Posts: 1,945
Likes: 145
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.


Current developer of UBB.threads PHP Forum Software
Current Release: UBBT 7.7.5 // Preview: UBBT 8.0.0
isaac @ id242.com // my forum @ CelicaHobby.com
Joined: Jun 2006
Posts: 16,292
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,292
Likes: 116
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.

Code
[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.


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Aug 2006
Posts: 96
Likes: 1
G
Journeyman
Journeyman
G Offline
Joined: Aug 2006
Posts: 96
Likes: 1
Thank you!


I am a Superstar! Testing signature here
Joined: Jul 2006
Posts: 4,057
Joined: Jul 2006
Posts: 4,057
Originally Posted by isaac
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,292
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,292
Likes: 116
I buy him coffee, lol


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Apr 2004
Posts: 1,945
Likes: 145
UBB.threads Developer
UBB.threads Developer
Joined: Apr 2004
Posts: 1,945
Likes: 145
Originally Posted by Gizmo
I buy him coffee, lol

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.


Current developer of UBB.threads PHP Forum Software
Current Release: UBBT 7.7.5 // Preview: UBBT 8.0.0
isaac @ id242.com // my forum @ CelicaHobby.com

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
spam issues
by ECNet - 03/19/2024 11:45 PM
Looking for a forum
by azr - 03/15/2024 11:26 PM
Editing Links in Post
by Outdoorking - 03/15/2024 9:31 AM
Question on barkrowler and the like
by Mors - 02/29/2024 6:51 PM
Member Permissions Help
by domspeak - 02/27/2024 6:31 PM
Who's Online Now
1 members (Ruben), 476 guests, and 111 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)