The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Noobie Problems, unexpected T_STRING
I'm still very new to this, so sorry if the answer is obvious.
I'm just trying to create a simple plugin which will auto insert into postbit. The aim at the moment is just to put something after the MSN/AIM icons. I've been able to insert just text, but not a lot more. The plugin code is here: PHP Code:
Parse error: syntax error, unexpected T_STRING in /home/mrmb/public_html/testforum/includes/class_postbit.php(292) : eval()'d code on line 71 It works without the quotation marks (Eg, <a href=blah>Hello</a>) but surely that's not the way it should be done? Can anyone help? |
#2
|
||||
|
||||
You need to, um, I forget what it's called (edit: the term I was looking for was 'escape'), but you put a backslash before any quotes. So:
HTML Code:
< a href=\"url/blah.php\">This is a link</a> edit: Hmmm, I haven't done anything quite like you (using replace). But, try this (single quotes) and see if you don't have to escape your template quotes that way: PHP Code:
|
#3
|
||||
|
||||
Quote:
--------------- Added [DATE]1211556583[/DATE] at [TIME]1211556583[/TIME] --------------- Quote:
Is there a better way of doing this anyway? I'm all ears if so |
#4
|
|||
|
|||
If you are just assigning that variable to another variable use this code.
PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|