![]() |
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"; And with this the <br /> is showing it in the posts. :( Code:
$custom_message .= "".$forms['title'].": $value<br /><br />"; Help!!!!! :confused: |
Is this being displayed inside a template? Or is it part of a post?
|
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. |
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:
|
Please post such questions in the mod thread ;)
Regards Jason :) |
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:
|
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.
|
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!!! |
\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. |
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 " " ? |
All times are GMT. The time now is 06:24 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|