The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hi Guys,
I'm using the code below in a code modification but it doesn't seem to work. I guess it has something to do with parse_url. It works fine when use it in a separate non-vb php file. How can I make this work ? // Extract the program name $arr = parse_url('$reflink'); $newprogname = $arr['host']; $newprogname = ereg_replace("www.","",$newprogname); |
#2
|
||||
|
||||
![]()
Please post your questions in the correct forum in future. Moved
|
#3
|
|||
|
|||
![]()
Somebody ???
|
#4
|
||||
|
||||
![]()
lol.... if you put $reflink between single quotes the variable doesn't get expanded.
|
#5
|
|||
|
|||
![]()
OK it works. Thx again Rake :-> How come it worked in a normal php file and not in vbulletin ?
Getthat |
#6
|
|||
|
|||
![]()
Don't bother ... made a very newby mistake :-<
|
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|