Page Index Toggle Pages: 1
Topic Tools
Hot Topic (More than 10 Replies) YaBB 2.4 Live Preview (Read 2,043 times)
greydane
Junior Member
**
Offline



Posts: 61
Location: Windsor, Nova Scotia

YaBB 2.6.1
YaBB 2.4 Live Preview
Feb 26th, 2013 at 1:26am
Post Tools
I was quite sure live preview was working in YaBB2.4.  Is there a problem with it or is it just my forum.  If it is only my forum anyone have any suggestions on how to fix it or where to look.

Thanks Bruce
  
Back to top
WWW  
IP Logged
 
Derek Barnstorm
Support Team
YaBB Next Team
Development Team
Beta Testers
****
Offline



Posts: 1,269
Location: United Kingdom

None
Re: YaBB 2.4 Live Preview
Reply #1 - Feb 26th, 2013 at 2:11am
Post Tools
Hi Bruce,

Yep, it worked in 2.4. What exactly is the problem?
  
Back to top
 
IP Logged
 
greydane
Junior Member
**
Offline



Posts: 61
Location: Windsor, Nova Scotia

YaBB 2.6.1
Re: YaBB 2.4 Live Preview
Reply #2 - Feb 26th, 2013 at 2:25am
Post Tools
Hi Derek:  I click the live preview, the window opens up and as I type the "post" nothing appears in the live preview window.  The subject line also does not appear.  The normal Preview button does work though.

Thanks Derek
Bruce
  
Back to top
WWW  
IP Logged
 
Derek Barnstorm
Support Team
YaBB Next Team
Development Team
Beta Testers
****
Offline



Posts: 1,269
Location: United Kingdom

None
Re: YaBB 2.4 Live Preview
Reply #3 - Feb 26th, 2013 at 2:29am
Post Tools
Can you set me up a test account so I can check it out please? Just a regular user account will do so I can view it...
  
Back to top
 
IP Logged
 
greydane
Junior Member
**
Offline



Posts: 61
Location: Windsor, Nova Scotia

YaBB 2.6.1
Re: YaBB 2.4 Live Preview
Reply #4 - Feb 26th, 2013 at 3:02am
Post Tools
PM sent.

Thanks Derick

Bruce

www.avonflyers.ns.ca
« Last Edit: Feb 26th, 2013 at 3:08am by greydane »  
Back to top
WWW  
IP Logged
 
Derek Barnstorm
Support Team
YaBB Next Team
Development Team
Beta Testers
****
Offline



Posts: 1,269
Location: United Kingdom

None
Re: YaBB 2.4 Live Preview
Reply #5 - Feb 26th, 2013 at 3:13am
Post Tools
Okay, can you attach Sources/Post.pl and yabbfiles/yabbc.js here for me please... I'll start there...
  
Back to top
 
IP Logged
 
greydane
Junior Member
**
Offline



Posts: 61
Location: Windsor, Nova Scotia

YaBB 2.6.1
Re: YaBB 2.4 Live Preview
Reply #6 - Feb 26th, 2013 at 3:21am
Post Tools
Attachments as requested.

Thanks Again
Bruce
  

Post_pl.txt ( 160 KB | 65 Downloads )
yabbc_js.txt ( 25 KB | 68 Downloads )
Back to top
WWW  
IP Logged
 
Derek Barnstorm
Support Team
YaBB Next Team
Development Team
Beta Testers
****
Offline



Posts: 1,269
Location: United Kingdom

None
Re: YaBB 2.4 Live Preview
Reply #7 - Feb 26th, 2013 at 3:58am
Post Tools
In your yabbc.js file find:

Code (Javascript)
Select All
    ubbcstr=ubbcstr.replace(/\[comment\](.+?)\[\/comment\]/ig, "<fieldset class=\"commentfieldset\"><legend class=\"commentlegend\">Comment</legend>$1</fieldset>");
} 


And remove the highlighted curly bracket - looks like you must have done it when you added the Guestbook mod.

Note that external JS is cached so you'll probably need to force refresh your browser after you have made the change.
« Last Edit: Feb 26th, 2013 at 3:58am by Derek Barnstorm »  
Back to top
 
IP Logged
 
Derek Bullock
Ex Member


Re: YaBB 2.4 Live Preview
Reply #8 - Feb 26th, 2013 at 4:08am
Post Tools
Derek Barnstorm wrote on Feb 26th, 2013 at 3:58am:
Code (Javascript)
Select All
    ubbcstr=ubbcstr.replace(/\[comment\](.+?)\[\/comment\]/ig, "<fieldset class=\"commentfieldset\"><legend class=\"commentlegend\">Comment</legend>$1</fieldset>");
} 




I think those little } buggers breed.  Grin Grin Grin Grin
  
Back to top
 
IP Logged
 
Derek Barnstorm
Support Team
YaBB Next Team
Development Team
Beta Testers
****
Offline



Posts: 1,269
Location: United Kingdom

None
Re: YaBB 2.4 Live Preview
Reply #9 - Feb 26th, 2013 at 4:11am
Post Tools
Quote:
I think those little } buggers breed.  Grin Grin Grin Grin

Haha! Yep. And other times they decide to do a disappearing act. Cheesy
  
Back to top
 
IP Logged
 
greydane
Junior Member
**
Offline



Posts: 61
Location: Windsor, Nova Scotia

YaBB 2.6.1
Re: YaBB 2.4 Live Preview
Reply #10 - Feb 26th, 2013 at 4:19am
Post Tools
Hehe!!  Thanks a bunch Derick! will give it a try.  By the way, I just realized, it's 4:15 am in the UK.  When the hell do you sleep!!! Grin Grin Grin

Bruce
  
Back to top
WWW  
IP Logged
 
Derek Barnstorm
Support Team
YaBB Next Team
Development Team
Beta Testers
****
Offline



Posts: 1,269
Location: United Kingdom

None
Re: YaBB 2.4 Live Preview
Reply #11 - Feb 26th, 2013 at 4:25am
Post Tools
No problem.

greydane wrote on Feb 26th, 2013 at 4:19am:
By the way, I just realized, it's 4:15 am in the UK.  When the hell do you sleep!!!

I'm just about nocturnal - less chaos. Smiley
  
Back to top
 
IP Logged
 
greydane
Junior Member
**
Offline



Posts: 61
Location: Windsor, Nova Scotia

YaBB 2.6.1
Re: YaBB 2.4 Live Preview
Reply #12 - Feb 26th, 2013 at 4:53am
Post Tools
Well that did the trick Derick.  Don't know how much I appreciate the help.  I would never have found that.

 Curious, is there a laymen description on how the different templates Display, MessageIndex, etc work? Description of taglines, where they are stored etc.?  

Off topic; but, my Mom was born just outside of London.  Can't remember the name of the town.  She came over to Canada with her parents after the war.  Just a bit of trivia. Smiley

Thanks Bruce

@Derick Bullock That Remark Cracked me up Grin Grin

« Last Edit: Feb 26th, 2013 at 4:55am by greydane »  
Back to top
WWW  
IP Logged
 
Derek Barnstorm
Support Team
YaBB Next Team
Development Team
Beta Testers
****
Offline



Posts: 1,269
Location: United Kingdom

None
Re: YaBB 2.4 Live Preview
Reply #13 - Feb 26th, 2013 at 5:03am
Post Tools
You're welcome, Bruce.

greydane wrote on Feb 26th, 2013 at 4:53am:
 Curious, is there a laymen description on how the different templates Display, MessageIndex, etc work? Description of taglines, where they are stored etc.?  

This might be of some help:

http://www.yabbforum.com/codex/YaBB.pl?num=1232205800

greydane wrote on Feb 26th, 2013 at 4:53am:
Off topic; but, my Mom was born just outside of London.  Can't remember the name of the town.  She came over to Canada with her parents after the war.  Just a bit of trivia.

Aha, so you're half English?

Bed time now anyway - catch ya later. Smiley
  
Back to top
 
IP Logged
 
Bill Myers
God Member
Beta Testers
*****
Offline



Posts: 1,713
Location: Los Angeles

YaBB 2.4
Re: YaBB 2.4 Live Preview
Reply #14 - Feb 26th, 2013 at 5:54am
Post Tools
greydane wrote on Feb 26th, 2013 at 4:53am:
I would never have found that.

I never would have found that either. Amazing! Cool
Our preview window is fine, so I didn't need this fix, but still ... amazing support! Smiley

  

Morning, noon, or night, have a great one!

Note: This forum doesn't allow for us to freely edit our posts or topics to make corrections as needed, so please remember to look for subsequent posts if you see any mistakes or outdated information. Sorry for the inconvenience.
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Topic Tools
 
  « Board Index ‹ Board  ^Top