YaBB Community and Support Forum
YaBB Home About YaBB Download YaBB YaBB Support Customize Your Forum Development Contribute to the Project
  Welcome, Guest. Please Login or Register


 
Page Index Toggle Pages: 1
Topic Tools
 
[SVN] Images in Live Preview not displaying (Read 1,847 times)
 Jun 12th, 2009 at 4:00pm
There are no actions to perform.  

Jet Li 
Legacy Dev Team
Development Team
****
Offline
Posts: 6,588
Hong Kong


None
[SVN] Images in Live Preview not displaying
If I have images in img tag and click Live Preview, the image not showing up. Its display this:

Code Select All
http://www.yabbworld.com/grafik/svn/svn-setup.png" alt="" border="0"> 



Click Preview Button will show correct and after Post Message.
« Last Edit: Jun 12th, 2009 at 4:00pm by Jet Li »  
...
PM me for YaBB Installation Service
WWW Jet Li 100000788351637  
IP Logged  
 Reply #1 - Jun 12th, 2009 at 4:18pm
There are no actions to perform.  

deti 
Legacy Dev Team
Development Team
****
Offline
Posts: 2,650
Prien am Chiemsee, Germany


None
Re: [SVN] Images in Live Preview not displaying
Hmmmm, looks like it first parses the [img] tag and then the http://....

Carsten, can you give a look please? Here is the link to the SVN yabbc.js
http://yabb.svn.sourceforge.net/viewvc/yabb/public_html/yabbfiles/yabbc.js?revis...
 
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
WWW  
IP Logged  
 Reply #2 - Jun 15th, 2009 at 4:30pm
There are no actions to perform.  
Carsten 
Ex Member


None
Re: [SVN] Images in Live Preview not displaying
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(/(^|\s+)((http:\/\/|www\.){1,}\S+?\.\S+)/ig, "$1[url]$2[/url]"); 

 
 
IP Logged  
 Reply #3 - Jun 15th, 2009 at 4:43pm
There are no actions to perform.  
Carsten 
Ex Member


None
Re: [SVN] Images in Live Preview not displaying
Mutters!! Actually the replacement code should be
Code Select All
	if(autolinkurls != 0) ubbcstr=ubbcstr.replace(/(^|\]|\s+)((http:\/\/|www\.){1,}\S+?\.\S+)/ig, "$1[url]$2[/url]"); 

 Embarrassed
 
 
IP Logged  
 Reply #4 - Jun 15th, 2009 at 5:01pm
There are no actions to perform.  

Jet Li 
Legacy Dev Team
Development Team
****
Offline
Posts: 6,588
Hong Kong


None
Re: [SVN] Images in Live Preview not displaying
Thnx. Works now.

New yabbc.js in SVN.

Changelog:
- Fix display images in img tag for Live Preview
 
...
PM me for YaBB Installation Service
WWW Jet Li 100000788351637  
IP Logged  
 Reply #5 - Jun 15th, 2009 at 5:03pm
There are no actions to perform.  
Carsten 
Ex Member


None
Re: [SVN] Images in Live Preview not displaying
While playing with this i found a small glitch conserning the 'edit' tags. In yabbc.js replace
Code Select All
	ubbcstr=ubbcstr.replace(/\[glow\]/ig, "  [glow]");
	ubbcstr=ubbcstr.replace(/\[\/glow\]/ig, "  [/glow]"); 



with
Code Select All
	ubbcstr=ubbcstr.replace(/\[edit\]/ig, " [edit]");
	ubbcstr=ubbcstr.replace(/\[\/edit\]/ig, " [/edit]"); 




The 'glow' tage are some leftover from one of my old mods - have no idea how the came to be in the yabbc.js distribution  Huh
 
 
IP Logged  
 Reply #6 - Jun 15th, 2009 at 5:07pm
There are no actions to perform.  

Jet Li 
Legacy Dev Team
Development Team
****
Offline
Posts: 6,588
Hong Kong


None
Re: [SVN] Images in Live Preview not displaying
New yabbc.js in SVN.

Edited:
commited in CVS too. Wink
« Last Edit: Jun 15th, 2009 at 5:10pm by Jet Li »  
...
PM me for YaBB Installation Service
WWW Jet Li 100000788351637  
IP Logged  
Page Index Toggle Pages: 1
Topic Tools
 

Get Yet another Bulletin Board at SourceForge.net. Fast, secure and Free Open Source software downloads Support This Project BoardMod - YaBB features and templates YaBB Codex - support on installation and usage YaBB Toolbar for your browser

YaBB Facebook Group Page

Vulnerability Scanner

Valid RSS Valid XHTML Valid CSS Powered by Perl
YaBB Chat and Support Community » Powered by YaBB 3.0 Beta!
YaBB Forum Software © 2000-2011. All Rights Reserved.