Logo


Can anyone solve this problem with xforum 1.6n??????

jRuMoL - 25/06/2003 à 23:28


Ok here you have a picture of the xforum 1.6n of a phpnuke 6.0 web site.

As you can see in number 1 someone has included a link in the post, and it has been written according to the bbcode language, i mean that it has been written correctly. But as you can see in number 2 the link point to the site, but ended with a

jRuMoL - 27/06/2003 à 22:48


The problem could be here:

#DM###:. $message = e regi_replace("\\[url\\]www.([^\\[]*)\\[/url\\]", "\\1",$message);

$message = preg_replace("/\[url\]www.([^\[]*)\[\/url\]/i", "\\1",$message);

#DM###:. $message = e regi_replace("\\[url\\]([^\\[]*)\\[/url\\]","\\1",$message);

$message = preg_replace("/\[url\]([^\[]*)\[\/url\]/i","\\1",$message);

#DM###:. $message = e regi_replace("\\[url=([^\\[]*)\\]([^\\[]*)\\[/url\\]","\\2",$message);

$message = preg_replace("/\[url=([^\[]*)\]([^\[]*)\[\/url\]/i","\\2",$message);


It's from functions.php
I should say i have no idea of php but i have worked with c++ for a year and it is a little bit similar.
Ok let's see if someone has a solution... but i am losing hope.
JRRM

Reefguardian - 04/07/2003 à 09:14


Exact, j'ai également le même problème, mais c'est récent, et je pense que ça correspond à un changement de version de php sur les serveurs. Je n'avais pas le problème avant!...
Vu le retour chariot qui est affiché, je serais tenté de dire que ça vient de la fonction nl2br() de la ligne 57 de funcitons.php...

Si quelqu'un a une solution...

Steph

Reefguardian - 04/07/2003 à 10:17


Ok, j'ai trouvé la solution!

Dans le fichier functions.php, aller à la ligne 57 et remplacer

$message = nl2br($message);

par

$message = str_replace("\n", "[br]", $message);

RM : Remplacer les [] par < et >

Steph

[Edité le 4/7/2003 par Reefguardian]

[Edité le 4/7/2003 par Reefguardian]

jRuMoL - 04/07/2003 à 11:13


I dont speak french, only spanish and english... but ill try to translate your message.
Thank you for your work. Ill try to change functions.php.
JRRM

Reefguardian - 04/07/2003 à 11:20


oups, sorry!

So : You must find the file functions.php and go to the line number 57.

Replace
$message = nl2br($message);

By

$message = str_replace("\n", "[br]", $message);

Note : Remplace [ and ] by < and >

jRuMoL - 04/07/2003 à 11:23


Ive entered your web... you have a lot of posts!!!!!!!!!
And how have you done to show the bars under the avatar? the ones that show this:

Messages: xx
Activité: x.xx / jour
Ancienneté:

(each one with its bar)
JRRM

Reefguardian - 04/07/2003 à 11:30


I've made it myself, a hack of code. The idea was originally from unzipped (from phpnuke-france)...

Steph


Cette page provient du forum de: trollix.com

Dont l'URL est:
http://trollix.com/ixm_xforum.php?file=viewthread&fid=54&tid=1244