The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Javascript+PHP Echo Nightmare!
Okay, so here's the dilemma. I've got the following code;
Code:
$read = "<SCRIPT LANGUAGE\=\"JavaScript\"> window.location\=\"http://www.thatcommunity.com/member.php?u=$bbuserinfo[userid]\"\; </script>"; Code:
$content_add = "<html> <head> <?php echo $read; ?> </head>... etc Quote:
|
#2
|
||||
|
||||
It looks like for one
Code:
$content_add = "<html> <head> But with out seeing all of the code it is hard to tell, I know making content to add into pages can be a pain in the , back end. |
#3
|
||||
|
||||
Here's the full code -
Code:
// ADD CONTENT TO INDEX.PHP $read = "<SCRIPT LANGUAGE\=\"JavaScript\"> window.location\=\"http://www.thatcommunity.com/member.php?u=$bbuserinfo[userid]\"\; </script>"; Code:
$content_add = "<html> <head> <?php echo $read; ?> </head> <body> <a href=\"http://www.thatcommunity.com/member.php?u=$userid\">if you're not redirected click here and consider a new browser.</a> </body> </html>"; |
#4
|
||||
|
||||
Try this
Code:
$content_add = '<html> <head> <?php echo $read; ?> </head> <body> <a href=\"http://www.thatcommunity.com/member.php?u=$userid\">if you're not redirected click here and consider a new browser.</a> </body> </html>'; |
#5
|
||||
|
||||
Oops, needed to specify this better - I need the following coded to avoid the parse error(s);
Code:
// ADD CONTENT TO INDEX.PHP $read = "<SCRIPT LANGUAGE\=\"JavaScript\"> window.location\=\"http://www.thatcommunity.com/member.php?u=$bbuserinfo[userid]\"\; </script>"; Quote:
|
#6
|
||||
|
||||
Code:
// ADD CONTENT TO INDEX.PHP $read = '<SCRIPT LANGUAGE\=\"JavaScript\"> window.location\=\"http://www.thatcommunity.com/member.php?u=$bbuserinfo[userid]\"\; </script>'; |
#7
|
||||
|
||||
Quote:
Quote:
|
#8
|
||||
|
||||
I tossed this code in a php file and no errors.
Code:
// ADD CONTENT TO INDEX.PHP $read = '<SCRIPT LANGUAGE =\"JavaScript\"> window.location\=\"http://www.thatcommunity.com/member.php?u=$bbuserinfo[userid]\"; </script>'; |
#9
|
|||
|
|||
Change:
PHP Code:
PHP Code:
|
#10
|
||||
|
||||
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|