View Full Version : Help with the code of a Mod, little PHP problem
mariocaz
03-23-2008, 08:48 PM
Hi there,
I installed a Mod in my VB this one:
https://vborg.vbsupport.ru/showthread.php?p=1472727#post1472727
but I have a little problem...........
The Mod have a code that is not working in my forum, this one:
$custom_message .= "".$forms['title']."\r\n$value\r\n\r\n";
$break = "\r\n\r\n";
I want to do a space like when we use the ENTER button in the keyboards of our computers
And with this the <br /> is showing it in the posts. :(
$custom_message .= "".$forms['title'].": $value<br /><br />";
$break = "<br /><br />";
How can I fix it ?
Help!!!!! :confused:
Opserty
03-23-2008, 09:17 PM
Is this being displayed inside a template? Or is it part of a post?
mariocaz
03-23-2008, 09:29 PM
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 1206312543 at 1206312543 ---------------
$custom_message .= "".$forms['title'].": $value<br /><br />";
$break = "<br /><br />";
I put because if I put it correct then you wouldn?t see the complete code.
Opserty
03-23-2008, 09:55 PM
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.
// Try:
$custom_message .= "". $forms['title'] .": $value \n\n";
$break = "\n\n";
Jase2
03-23-2008, 09:57 PM
Please post such questions in the mod thread ;)
Regards Jason :)
mariocaz
03-23-2008, 10:19 PM
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:
Mi pez esta enfermo
Medidas del Tanque:: 130 ?Usas Skimmer?: Si ?Que marca de Skimmer usas?: er ?Que iluminaci?n usas?: MH o HQI ?Cu?ntos focos de los antes mencionados usas?: 4 ?Que par?metros has hecho test y su valor?(Salinidad, Temperatura Amonia, Nitritos, Nitratos, Ph, Calcio, Fosfatos, Silicatos): pg
amonia
nitritos
nitrtos Alg?n comentario extra de tu acuario:: buy
Instead of this:
Mi pez esta enfermo
Medidas del Tanque:: 130
?Usas Skimmer?: Si
?Que marca de Skimmer usas?: er
?Que iluminaci?n usas?: MH o HQI
?Cu?ntos focos de los antes mencionados usas?: 4
?Que par?metros has hecho test y su valor? (Salinidad, Temperatura Amonia, Nitritos, Nitratos, Ph, Calcio, Fosfatos, Silicatos): pg
amonia
nitritos
nitrtos
Alg?n comentario extra de tu acuario:: buy
And that is what I need.
Opserty
03-23-2008, 10:44 PM
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.
mariocaz
03-23-2008, 11:16 PM
And the \t what is the function ?
--------------- Added 1206320586 at 1206320586 ---------------
WOOOWWWW I did it and is working....................
$custom_message .= "". $forms['title'] ."<br/> $value <br /><br />";
$break = "<br />";
And now to add Red Color in the $value What I have to do ???
Thank you a lot!!!
Opserty
03-24-2008, 10:25 AM
\t is a tab when placed inside double quotes.
To change the colour of $value you either need to use the BBCode: $value or the HTML Code: <span style="color:red">$value</span>.
Depending on which one works.
mariocaz
03-24-2008, 04:12 PM
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 " " ?
Opserty
03-24-2008, 04:27 PM
What code are you using?
mariocaz
03-24-2008, 04:32 PM
With that error that I put you here, the second one.
But also with the first one appears an error in the forum.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.