PDA

View Full Version : creating a link within PHP code


Delphiprogrammi
12-29-2005, 09:30 AM
hi people,

I don't get it.What do you need todo to create a link (not a redirect) it used to be


$newurl="$vboptions[bburl]/showthread.php?$session[sessionurl]t=$threadid";


but that doesn't work ..... i also see $vboptions is changed $vbulletin->options but that doesn't work either :devious: ....


$newurl="$vbulletin->options[bburl]/showthread.php?$session[sessionurl]t=$threadid";


but nope ...

Marco van Herwaarden
12-29-2005, 09:48 AM
What does not work, what is the result?

Delphiprogrammi
12-29-2005, 10:43 AM
hi Marco,

Well let me make more clear what i mean to the attached screengrab.I'm trying to make a plugin from an old 3.07 hack released here.The plugin works fine but the link to showthread.php is not working and i have no idea why


$newurl="$vbulletin->options[bburl]/showthread.php?$session[sessionurl]t=$threadid"]


is the code used

Marco van Herwaarden
12-29-2005, 10:47 AM
Change to:
$newurl=$vbulletin->options['bburl'] . "/showthread.php?$session[sessionurl]t=$threadid";

Delphiprogrammi
12-30-2005, 11:19 AM
thanks Marco that works fine