vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Help with the code of a Mod, little PHP problem (https://vborg.vbsupport.ru/showthread.php?t=173955)

mariocaz 03-23-2008 08:48 PM

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";

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. :(

Code:

              $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 [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.

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.
PHP Code:

// Try:
$custom_message .= "[b]"$forms['title'] ."[/b]: $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:

Quote:

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:

Quote:

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 [DATE]1206320586[/DATE] at [TIME]1206320586[/TIME] ---------------

WOOOWWWW I did it and is working....................

PHP Code:

$custom_message .= "[b]"$forms['title'] ."[/b]<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:
Code:

[COLOR=XXXXX]$value[/COLOR]
or the HTML Code:
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 " " ?


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
  • Page Generation 0.01148 seconds
  • Memory Usage 1,744KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (2)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete