php forum
php mysql forum
php mysql smarty
 
Topic Options
#316444 - 12/05/07 12:44 PM Getting current board/post url
Kris Offline
Lurker

Registered: 10/26/07
Posts: 6
Hi all,

I have yahoo sponsored links in some boards of my forum in a custom island. So this custom island by default appears between first and second post in every thread of a particular board.

To get the sponsored links we need to send a parameter called "serveurl" (which is the actual page URL that the ads are being served on). That means every time we contact the yahoo DB we need to pass this parameter. So I am wondering if there is a way I can get this page url?

Thanks in advance



Edited by Kris (12/05/07 12:44 PM)

Top
#316445 - 12/05/07 03:08 PM Re: Getting current board/post url [Re: Kris]
Gizmo Administrator Online   shocked
Wizard

Registered: 01/10/00
Posts: 5134
Loc: Portland, OR, USA
Code:
<?php echo("http://". $_SERVER["HTTP_HOST"] . $_SERVER["PHP_SELF"]); ?>
should always echo out the current page (whatever it may be according to PHP).

Theres also
Code:
<?php echo("http://". $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"]); ?>
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design Owner

Top


Moderator:  sirdude 
Who's Online
0 registered (), 23 Guests and 12 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Wisdom needed
by Gizmo
Today at 10:54 AM
How to hide sub forums from summary page
by blaaskaak
Yesterday at 09:54 AM
Spell Check [beta]
by Bill B
12/01/08 09:16 PM
PhotoPost BB Code Popup
by AllenAyres
12/01/08 09:41 AM
Problems reading a lot of old posts here
by AllenAyres
12/01/08 09:35 AM
Forum 'Trader Ratings'.
by AllenAyres
12/01/08 09:33 AM
Customization needed
by Gizmo
11/12/08 12:28 PM
New Mods
User Authentication Class
by
01/19/07 02:59 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
PhotoPost BB Code Popup
by
11/06/06 05:43 PM
Spell Check [beta]
by
10/17/06 09:24 PM
Newest Members
Truth, David DelMonte, nick1, Begbie, cenk
13364 Registered Users
Top Posters
AllenAyres 25452
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks