The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Help with the code of a Mod, little PHP problem
Hi there,
I installed a Mod in my VB this one: https://vborg.vbsupport.ru/showthrea...27#post1472727 but I have a little problem........... The Mod have a code that is not working in my forum, this one: Code:
$custom_message .= "".$forms['title']."\r\n$value\r\n\r\n"; $break = "\r\n\r\n"; And with this the <br /> is showing it in the posts. Code:
$custom_message .= "".$forms['title'].": $value<br /><br />"; $break = "<br /><br />"; Help!!!!! |
#2
|
|||
|
|||
Is this being displayed inside a template? Or is it part of a post?
|
#3
|
|||
|
|||
part of a post, that is why the <br /> is not working because in my forum the HTML is disable for posting
Thank you very much Opserty --------------- Added [DATE]1206312543[/DATE] at [TIME]1206312543[/TIME] --------------- $custom_message .= "[bold]".$forms['title']."[/bold]: $value<br /><br />"; $break = "<br /><br />"; I put because if I put it correct then you wouldn?t see the complete code. |
#4
|
|||
|
|||
Firstly, please do not send me private messages regarding your thread. (You will see this specified in my signature).
Regarding your problem: You will need to use \r\n inside of posts. PHP Code:
|
#5
|
|||
|
|||
Please post such questions in the mod thread
Regards Jason |
#6
|
|||
|
|||
Opserty, thank you so much again my friend and so sorry for sending you the MP I didn?t see your signature.
Well also that is not working...... I still see this: Quote:
Quote:
|
#7
|
|||
|
|||
Wait to see if you a get a reply to that post in the modification thread. I'm not too sure on how to solve your problem, it maybe related to the modification as opposed to vBulletin itself.
|
#8
|
|||
|
|||
And the \t what is the function ?
--------------- Added [DATE]1206320586[/DATE] at [TIME]1206320586[/TIME] --------------- WOOOWWWW I did it and is working.................... PHP Code:
Thank you a lot!!! |
#9
|
|||
|
|||
\t is a tab when placed inside double quotes.
To change the colour of $value you either need to use the BBCode: Code:
[COLOR=XXXXX]$value[/COLOR] Code:
<span style="color:red">$value</span> Depending on which one works. |
#10
|
|||
|
|||
Mmmmm in both cases appears an error in the top of the forum:
Parse error: syntax error, unexpected T_STRING in /home/allreef/public_html/inicio/newthread.php(135) : eval()'d code on line 26 Any idea, maybe it had to have " " ? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|