Page Index Toggle Pages: 1
Topic Tools
Hot Topic (More than 10 Replies) Live-Preview and Preview errors (Read 8,169 times)
deti
Legacy Dev Team
Development Team
****
Offline



Posts: 2,650
Location: Prien am Chiemsee, Germany
Live-Preview and Preview errors
Jul 11th, 2010 at 4:24pm
Post Tools
The following inserted in PM message field (or here) make errors on Live-Preview and normal Preview!

Code
Select All
[quote author=35342538510 link=impost date=1278864345]Hi,

:D

;) [/quote]
Juppiiiii!!!! 

  

Was immer Du tun kannst
oder erträumst tun zu können,
beginne es.
Kühnheit besitzt Genie,
Macht und magische Kraft.
Beginne es jetzt.
Whatever you can do
or dream you can,
begin it.
Boldness has genius,
power and magic in it.
Begin it now.
J. W. Goethe
Back to top
WWW  
IP Logged
 
Captain John
Ex Member


Re: Live-Preview and Preview errors
Reply #1 - Jul 11th, 2010 at 6:31pm
Post Tools
mmmm like this ?
« Last Edit: Jul 11th, 2010 at 6:34pm by »  

LivePrev.jpg ( 55 KB | 188 Downloads )
LivePrev.jpg
LivePrev2.jpg ( 39 KB | 186 Downloads )
LivePrev2.jpg
Back to top
 
IP Logged
 
deti
Legacy Dev Team
Development Team
****
Offline



Posts: 2,650
Location: Prien am Chiemsee, Germany
Re: Live-Preview and Preview errors
Reply #2 - Jul 12th, 2010 at 3:58pm
Post Tools
Hmmmm, what browser did you use? Opera and IE show something different to me.
  

Was immer Du tun kannst
oder erträumst tun zu können,
beginne es.
Kühnheit besitzt Genie,
Macht und magische Kraft.
Beginne es jetzt.
Whatever you can do
or dream you can,
begin it.
Boldness has genius,
power and magic in it.
Begin it now.
J. W. Goethe
Back to top
WWW  
IP Logged
 
Captain John
Ex Member


Re: Live-Preview and Preview errors
Reply #3 - Jul 12th, 2010 at 6:19pm
Post Tools
That was with FF 3.6.6 ....

GoogleChrome 5.0.375.99  (same)
Opera 10.60  (same)
Safari 5.0  (same)
IE 8.0.6001 [32 bit] (same)
IE 8.0.6001 [64 bit] (same) < except pasted text in message box much smaller than other browsers, but preview was Normal and without errors same as above.

Quick checks in these other browsers, was performed using exact text (including the quote) as you show in the code field in your post.

   deti, could it be I pasted and you typed in ?  Maybe a lone character .....
« Last Edit: Jul 12th, 2010 at 7:45pm by »  
Back to top
 
IP Logged
 
Captain John
Ex Member


Re: Live-Preview and Preview errors
Reply #4 - Jul 13th, 2010 at 2:54am
Post Tools
Hi,

Cheesy

Wink

Juppiiiii!!!!

mmmmm No errors typing it in, but do get smilie "links" in Live Preview, instead of smilies, though when typed in. (using FF browser)
« Last Edit: Jul 13th, 2010 at 2:55am by »  
Back to top
 
IP Logged
 
deti
Legacy Dev Team
Development Team
****
Offline



Posts: 2,650
Location: Prien am Chiemsee, Germany
Re: Live-Preview and Preview errors
Reply #5 - Jul 15th, 2010 at 4:35pm
Post Tools
Yes. What the error was in normal prev I don't remember but in Live-prev see attachment
  

prev.PNG ( 41 KB | 193 Downloads )
prev.PNG

Was immer Du tun kannst
oder erträumst tun zu können,
beginne es.
Kühnheit besitzt Genie,
Macht und magische Kraft.
Beginne es jetzt.
Whatever you can do
or dream you can,
begin it.
Boldness has genius,
power and magic in it.
Begin it now.
J. W. Goethe
Back to top
WWW  
IP Logged
 
Jet Li
Legacy Dev Team
Development Team
****
Offline



Posts: 6,588
Location: Hong Kong
Re: Live-Preview and Preview errors
Reply #6 - Jul 15th, 2010 at 6:04pm
Post Tools
Confirmed. Live Preview the Smilies not working in YaBB 2.5 AE. In YaBB 2.4 Release is working.
  

PM me for YaBB Installation Service
Back to top
WWWGTalkFacebook  
IP Logged
 
Carsten
Ex Member


Re: Live-Preview and Preview errors
Reply #7 - Jul 16th, 2010 at 6:27am
Post Tools
It's a problem with auto-link. Try this:

In yabbc.js change
Code
Select All
	if(autolinkurls != 0) ubbcstr=ubbcstr.replace(/((http\:\/\/|www\.){1,}\S+?\.\S+)/ig, "[url]$1[/url]");
 


to
Code
Select All
	if(autolinkurls != 0) ubbcstr=ubbcstr.replace(/([^\w(?:\'|\")\=\[\]]|[\n\b]|\&quot\;|\]|^)((http\:\/\/|www\.){1,}\S+?\.(\w|\.)+)/ig, "$1[url]$2[/url]");
 



Needs some testing.
« Last Edit: Jul 17th, 2010 at 9:48pm by »  
Back to top
 
IP Logged
 
Captain John
Ex Member


Re: Live-Preview and Preview errors
Reply #8 - Jul 16th, 2010 at 3:15pm
Post Tools
Well it does now allow smilies to be seen in Live and Preview.  url's are still clickable in Live.
« Last Edit: Jul 16th, 2010 at 3:22pm by »  
Back to top
 
IP Logged
 
Carsten
Ex Member


Re: Live-Preview and Preview errors
Reply #9 - Jul 17th, 2010 at 9:50pm
Post Tools
Changed the code reply #7 - first code was much to simple.
  
Back to top
 
IP Logged
 
Carsten
Ex Member


Re: Live-Preview and Preview errors
Reply #10 - Jul 17th, 2010 at 11:15pm
Post Tools
There's a lot more errors in the live preview of Y 2.5 conserning images. Left/right alignment and size parameters are not working and showing images as links in quotes not working. Here are the changes needed in Post.pl - the yabbc.js is so heavily 're-decorated' that i've attached a new fixed one to this reply.

In Post.pl find
Code
Select All
var jsmiliecode = new Array($smilie_code_array); 


and add after
Code
Select All
var showimageinquote = $showimageinquote; 



still in Post.pl find
Code
Select All
		var ubbstr = jsDoUbbc(vismessage,codestr,quotstr,squotstr,edittxt,dispname,scrpurl,imgdir,ubsmilieurl,parseflash,fontsizemax,fontsizemin,autolinkurl,Month,timeselected,splittext,dontusetoday,todaytext,yesterdaytext,timetext1,timetext2,timetext3,timetext4,jsmilieurl,jsmiliecode); 


and replace it with
Code
Select All
		var ubbstr = jsDoUbbc(vismessage,codestr,quotstr,squotstr,edittxt,dispname,scrpurl,imgdir,ubsmilieurl,parseflash,fontsizemax,fontsizemin,autolinkurl,Month,timeselected,splittext,dontusetoday,todaytext,yesterdaytext,timetext1,timetext2,timetext3,timetext4,jsmilieurl,jsmiliecode,showimageinquote); 

« Last Edit: Dec 16th, 2010 at 5:16pm by »  

yabbc_2.zip ( 5 KB | 187 Downloads )
Back to top
 
IP Logged
 
Carsten
Ex Member


Re: Live-Preview and Preview errors
Reply #11 - Dec 16th, 2010 at 5:18pm
Post Tools
Attached new updated yabbc.js to previous post (#10) with more fixes for images in Live Preview.
  
Back to top
 
IP Logged
 
Jet Li
Legacy Dev Team
Development Team
****
Offline



Posts: 6,588
Location: Hong Kong
Re: Live-Preview and Preview errors
Reply #12 - Dec 26th, 2010 at 11:23am
Post Tools
Applied to my Dev Forum. Works great after clear browser cache, Carsten. Thnx. Patch will be in next Beta Package and in SVN. Smiley
  

PM me for YaBB Installation Service
Back to top
WWWGTalkFacebook  
IP Logged
 
Page Index Toggle Pages: 1
Topic Tools
 
  « Board Index ‹ Board  ^Top