Welcome, Guest. Please Login or Register.
May 13, 2024, 07:49:14 PM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  General Category  |  Test Board  |  Error: Glow & Shadow « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Error: Glow & Shadow  (Read 3513 times)
A.M.A.
YaBB God
*****
Posts: 685


.:: :-) ::.

evolve_xp@hotmail.com WWW
Error: Glow & Shadow
« on: June 01, 2003, 11:10:37 PM »
Reply with quote

The two lines will not print OK!

One line.. OK

Two lines ...
not ok!!?


One line.. OK

Two lines ...
not ok!!?
Logged

A.M.A.
YaBB God
*****
Posts: 685


.:: :-) ::.

evolve_xp@hotmail.com WWW
Re:Error: Glow & Shadow
« Reply #1 on: June 01, 2003, 11:11:26 PM »
Reply with quote

Fix:= in Printpage.php look for
$threadpost = preg_replace ("/\[glow(.*)\](.*)\[\/glow\]/","$2",$threadpost);Replace it with   $threadpost = preg_replace(
     array(
        '/\n?\[glow=(.+?)\](?:\n|\<br \/\>)*/ei', '/\n?\[glow\](?:\n|\<br \/\>)*/i',
        '/\[\/glow\]/i'),"", $threadpost);

look for$threadpost = preg_replace ("/\[shadow(.*)\](.*)\[\/shadow\]/", "$2", $threadpost);Replace it with   $threadpost = preg_replace(
     array(
        '/\n?\[shadow=(.+?)\](?:\n|\<br \/\>)*/ei', '/\n?\[shadow\](?:\n|\<br \/\>)*/i',
        '/\[\/shadow\]/i'),"", $threadpost);


Iguess  ;) god how much I hate those regexp ... I do not know how I even figure them out .. just copy and paste .. oh whatever  ;D
Logged

andrea
Global Moderator
YaBB God
*****
Posts: 4400


Peace on Earth

WWW
Re:Error: Glow & Shadow
« Reply #2 on: June 02, 2003, 10:35:33 AM »
Reply with quote

Quote from: A.M.A. on June 01, 2003, 11:10:37 PM
The two lines will not print OK!

One line.. OK

Two lines ...
not ok!!?


One line.. OK

Two lines ...
not ok!!?

« Last Edit: June 02, 2003, 10:36:51 AM by andrea » Logged

A.M.A.
YaBB God
*****
Posts: 685


.:: :-) ::.

evolve_xp@hotmail.com WWW
Re:Error: Glow & Shadow
« Reply #3 on: June 02, 2003, 11:10:15 AM »
Reply with quote

Quote wont fix it  ;)


cheer
Logged

acf [delete me]!
YaBB God
*****
Posts: 521


la especialidad de grafic

WWW
Re:Error: Glow & Shadow
« Reply #4 on: June 02, 2003, 01:26:54 PM »
Reply with quote

[quote author=andrea link=board=10;threadid=23514;start=0#msg160161 date=1054550133]

The two lines will not print OK!

[glow=green,2,300]One line.. OK[/glow]

[glow=red,2,300] Two lines ...
not ok!!? [/glow]

[shadow=red,left]One line.. OK[/shadow]

[shadow=red,left]Two lines ...
not ok!!?[/shadow]
[/quote]
« Last Edit: June 02, 2003, 01:27:35 PM by ­aliencowfarm » Logged

A.M.A.
YaBB God
*****
Posts: 685


.:: :-) ::.

evolve_xp@hotmail.com WWW
Re:Error: Glow & Shadow
« Reply #5 on: June 02, 2003, 07:57:49 PM »
Reply with quote

nope  ;D
Logged

[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:Error: Glow & Shadow
« Reply #6 on: June 02, 2003, 11:28:11 PM »
Reply with quote

Quote from: A.M.A. on June 01, 2003, 11:11:26 PM
Fix:= in Printpage.php look for
$threadpost = preg_replace ("/\[glow(.*)\](.*)\[\/glow\]/","$2",$threadpost);Replace it with   $threadpost = preg_replace(
     array(
        '/\n?\[glow=(.+?)\](?:\n|\<br \/\>)*/ei', '/\n?\[glow\](?:\n|\<br \/\>)*/i',
        '/\[\/glow\]/i'),"", $threadpost);

look for$threadpost = preg_replace ("/\[shadow(.*)\](.*)\[\/shadow\]/", "$2", $threadpost);Replace it with   $threadpost = preg_replace(
     array(
        '/\n?\[shadow=(.+?)\](?:\n|\<br \/\>)*/ei', '/\n?\[shadow\](?:\n|\<br \/\>)*/i',
        '/\[\/shadow\]/i'),"", $threadpost);


Iguess  ;) god how much I hate those regexp ... I do not know how I even figure them out .. just copy and paste .. oh whatever  ;D

Or...

$threadpost = preg_replace('/\[glow(.+?)\](.+?)\[\/glow\]/is','\\2',$threadpost);

$threadpost = preg_replace('/\[shadow(.+?)\](.+?)\[\/shadow\]/is','\\2',$threadpost);

-[Unknown]
Logged
A.M.A.
YaBB God
*****
Posts: 685


.:: :-) ::.

evolve_xp@hotmail.com WWW
Re:Error: Glow & Shadow
« Reply #7 on: June 03, 2003, 09:06:21 AM »
Reply with quote

I wish I could do that as easily as you do  :)
may be someday I'll love them ... no way .. did not they figure a best way like using some meaningful word ..  :-\


cheer
Logged

Pages: [1] Reply Ignore Print 
YaBB SE Community  |  General Category  |  Test Board  |  Error: Glow & Shadow « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.042 seconds with 20 queries.