Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online Now
1 registered members (Gizmo), 63 guests, and 106 spiders.
Key: Admin, Global Mod, Mod
Member Spotlight
Mark S
Mark S
Liverpool : England : UK
Posts: 4,722
Joined: July 2006
Show All Member Profiles 
Top Posters(30 Days)
isaac 21
Ruben 10
Gizmo 8
Geoff 3
FREAK 2
Slaz 2
DennyP 1
Latest Photos
Testing to drag photos
Comfortable Cats
Test
BSA photos
Chinese Buddhist temple.
Previous Thread
Next Thread
Print Thread
Must View Ad Island - Function Code? #261032
01/24/18 02:46 PM
01/24/18 02:46 PM
G
Geoff  Online Content OP
Journeyman
Joined: Aug 2006
Posts: 92
Florida
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
Express Hosting
Express Hosting "We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
Re: Must View Ad Island - Function Code? [Re: Geoff] #261034
01/24/18 02:57 PM
01/24/18 02:57 PM
isaac  Online Splat
UBB.threads Developer
Joined: Apr 2004
Posts: 1,204
California
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.


isaac @ id242.com // forum @ CelicaHobby.com
a current developer of UBB.threads php forum software // 7.6.2 Released
Re: Must View Ad Island - Function Code? [Re: Geoff] #261036
01/24/18 03:07 PM
01/24/18 03:07 PM
G
Geoff  Online Content OP
Journeyman
Joined: Aug 2006
Posts: 92
Florida
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
Re: Must View Ad Island - Function Code? [Re: Geoff] #261038
01/24/18 03:13 PM
01/24/18 03:13 PM
isaac  Online Splat
UBB.threads Developer
Joined: Apr 2004
Posts: 1,204
California
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.


isaac @ id242.com // forum @ CelicaHobby.com
a current developer of UBB.threads php forum software // 7.6.2 Released
Re: Must View Ad Island - Function Code? [Re: Geoff] #261040
01/24/18 04:20 PM
01/24/18 04:20 PM
Gizmo  Online Tapedshut
UBB.threads Developer
Joined: Jun 2006
Posts: 16,956
Portland, OR; USA
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.
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!
Re: Must View Ad Island - Function Code? [Re: Gizmo] #261041
01/24/18 05:08 PM
01/24/18 05:08 PM
G
Geoff  Online Content OP
Journeyman
Joined: Aug 2006
Posts: 92
Florida
Thank you!


I am a Superstar! Testing signature here
Re: Must View Ad Island - Function Code? [Re: isaac] #261043
01/24/18 06:53 PM
01/24/18 06:53 PM
Mark S  Offline
Joined: Jul 2006
Posts: 4,722
Liverpool : England : UK
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
Re: Must View Ad Island - Function Code? [Re: Geoff] #261044
01/24/18 06:58 PM
01/24/18 06:58 PM
Gizmo  Online Tapedshut
UBB.threads Developer
Joined: Jun 2006
Posts: 16,956
Portland, OR; USA
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.
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!
Re: Must View Ad Island - Function Code? [Re: Gizmo] #261045
01/24/18 07:09 PM
01/24/18 07:09 PM
isaac  Online Splat
UBB.threads Developer
Joined: Apr 2004
Posts: 1,204
California
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.


isaac @ id242.com // forum @ CelicaHobby.com
a current developer of UBB.threads php forum software // 7.6.2 Released

Shout Box
Today's Birthdays
SD
Recent Topics
UBB.threads 7.6.2 - Released
by isaac. 09/17/18 08:08 AM
7.6.2 Changelog Discussion
by isaac. 09/17/18 06:35 AM
Upgrade Documentation
by DennyP. 09/15/18 03:55 PM
PHP 7.2
by Geoff. 09/12/18 10:22 PM
Email Cleanup-Is it possible?
by Ruben. 09/06/18 11:25 AM
Forum Statistics
Forums36
Topics35,139
Posts191,439
Members12,106
Most Online978
Jun 24th, 2007
Random Image
Powered by UBB.threads™ PHP Forum Software 7.6.2