Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Nov 2001
Posts: 52
Power User
Power User
Offline
Joined: Nov 2001
Posts: 52
Hi Gurus,

I am looking on how to approach the following problem but I am surely not a php guru.

In my header file i have an include to a striped out version of the shout which shows up on all pages.
Now I want to replace this file like once out of 10 with a different include which could contain an add or a special message or ... well options are unlimited.

How could I proceed with this without creating a huge overhead on the site.

Anyone a clue ?

Greetz
Boris

Sponsored Links
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Checkout my banner rotator mod in the beta mods forum here.

It basically rotates a random thread from a particular forum. You could put whatever you wanted in the threads....doesn't have to be banners.

Joined: Nov 2001
Posts: 52
Power User
Power User
Offline
Joined: Nov 2001
Posts: 52
Thanks Josh,

But I think that wont really do it for me ...
The thing is we are experimenting with these long kind of banners size 120 x 600 and they fit perfectly in the left bar which is include in my header file ...

so in the header I have

<?
echo "

<BR>
<table>
<tr>
<td>
";
include ("/home/sites/site3/web/forum/younameit.php");
echo "

where the younameit.php is the sjout which my users like a lot and I would like to rotate the include in a predefined ratio so they get spooked once every 10 or 20 times with one of these long banners as not to upset them too much ...

any possibilities ?

the problem is that my younameit.php not any static text is which i can include in a forum.

Greetz,
Boris



Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
You could include my random thing anywhere you want. My isntructions call for it to be included in ubbt.inc.php before the header I think.... but you could include that script from anywhere....

Just use the script name in your include, and customize the hidden form to whatever you need.

the trick would be including the shoutbox I guess.

But it would be doable. I guess you'd need a bit of code in ubbt.inc.php to determine if it's going to display the the shoutbox... or once every 10 times or so, display a random banner in that space instead.

It could be done.

Joined: Nov 2001
Posts: 52
Power User
Power User
Offline
Joined: Nov 2001
Posts: 52
Thanks ... gonna try ...

Boris

Sponsored Links

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240430)