Page Index Toggle Pages: [1] 2 3 
Topic Tools
Very Hot Topic (More than 25 Replies) Add [noparse] to YaBBC and "don't parse" checkbox (Read 15,260 times)
Jet Li
Legacy Dev Team
Development Team
****
Offline



Posts: 6,588
Location: Hong Kong
Re: Add [noparse] to YaBBC and "don't parse" checkbox
Reply #32 - May 31st, 2009 at 5:39pm
Post Tools
New Display.pl in CVS/SVN.

Thnx Carsten. Smiley
  

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


Re: Add [noparse] to YaBBC and "don't parse" checkbox
Reply #31 - May 31st, 2009 at 5:26pm
Post Tools
A old bug seems to have become more obvious when this feature was implemented - pointed out by AntonioK here: http://www.yabbforum.com/community/YaBB.pl?num=1243704629

Same thing would happen if you have smilies in your signature. The fix is to 'neutralize' $ns while the members display info is loaded:

In Display.pl find
Code
Select All
		if ($musername ne 'Guest' && !$yyUDLoaded{$musername} && -e ("$memberdir/$musername.vars")) {
			&LoadUserDisplay($musername);
		} 


and replace it with
Code
Select All
		if ($musername ne 'Guest' && !$yyUDLoaded{$musername} && -e ("$memberdir/$musername.vars")) {
			my $tmpns = $ns;
			$ns = "";
			&LoadUserDisplay($musername);
			$ns = $tmpns;
		} 

  
Back to top
 
IP Logged
 
Jet Li
Legacy Dev Team
Development Team
****
Offline



Posts: 6,588
Location: Hong Kong
Re: Add [noparse] to YaBBC and "don't parse" checkbox
Reply #30 - May 30th, 2009 at 8:11am
Post Tools
OH Eng wrote on May 29th, 2009 at 10:12pm:
Ahh... nevermind.I see you put an extra one in there just as a title.

Grin Grin
  

PM me for YaBB Installation Service
Back to top
WWWGTalkFacebook  
IP Logged
 
OH Eng
Past Team Members
Documentation Team
Offline



Posts: 4,026
Location: Pensacola, Florida USA
Re: Add [noparse] to YaBBC and "don't parse" checkbox
Reply #29 - May 29th, 2009 at 10:12pm
Post Tools
deti wrote on May 29th, 2009 at 6:10pm:
Test for [noparse]

[highlight]abc[/highlight]
[b]abc[/b]
[url]http://www.yabbforum.com/community/YaBB.pl?board=y2bugsfixed;action=modify;message=24;thread=1242670230[/url]

Works!



hmmm... don't you have to close the noparse tag?  Huh

Ahh... nevermind.  I see you put an extra one in there just as a title.  Tongue
« Last Edit: May 29th, 2009 at 10:14pm by OH Eng »  

 
Back to top
 
IP Logged
 
OH Eng
Past Team Members
Documentation Team
Offline



Posts: 4,026
Location: Pensacola, Florida USA
Re: Add [noparse] to YaBBC and "don't parse" checkbox
Reply #28 - May 29th, 2009 at 10:08pm
Post Tools
@cepheid - another reason we put them all here is so when it comes time to make those list of bugfixes and feature additions for the next version that you see on the download page, we only have to comb through one single board to get them all (and not miss any).  Then when the version is released, we move the whole contents of this board into the Bugs/Archive board and start again with an empty board ready for the new version's bug reports.
« Last Edit: May 29th, 2009 at 10:10pm by OH Eng »  

 
Back to top
 
IP Logged
 
cepheid
Senior Member
****
Offline



Posts: 516
Re: Add [noparse] to YaBBC and "don't parse" checkbox
Reply #27 - May 29th, 2009 at 6:26pm
Post Tools
Nah, I was just asking. Smiley
  
Back to top
WWW  
IP Logged
 
deti
Legacy Dev Team
Development Team
****
Offline



Posts: 2,650
Location: Prien am Chiemsee, Germany
Re: Add [noparse] to YaBBC and "don't parse" checkbox
Reply #26 - May 29th, 2009 at 6:20pm
Post Tools
Yes, everything fixed, code improvements or new features are moved to "fixed". Maybe we should have two boards. One for the fixed bugs and one for code improvements and new features.

But sometimes we have fixed bugs and code improvements and little new features in one thread and it is difficult to split it, must we then write new threads for this into the other boards?
« Last Edit: May 29th, 2009 at 6:23pm by deti »  

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
 
cepheid
Senior Member
****
Offline



Posts: 516
Re: Add [noparse] to YaBBC and "don't parse" checkbox
Reply #25 - May 29th, 2009 at 6:16pm
Post Tools
Off-topic, why was this moved to "fixed bugs?"  It wasn't a bug report, but a feature request... do they all get moved here anyway?
  
Back to top
WWW  
IP Logged
 
deti
Legacy Dev Team
Development Team
****
Offline



Posts: 2,650
Location: Prien am Chiemsee, Germany
Re: Add [noparse] to YaBBC and "don't parse" checkbox
Reply #24 - May 29th, 2009 at 6:10pm
Post Tools
Test for [noparse]

[highlight]abc[/highlight]
[b]abc[/b]
[url]http://www.yabbforum.com/community/YaBB.pl?board=y2bugsfixed;action=modify;message=24;thread=1242670230[/url]

Works!
« Last Edit: May 29th, 2009 at 6:12pm by deti »  

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
 
cepheid
Senior Member
****
Offline



Posts: 516
Re: Add [noparse] to YaBBC and "don't parse" checkbox
Reply #23 - May 26th, 2009 at 11:51am
Post Tools
Quote:
Of course we could keep the [ noparse ] tags as a undocumented feature.

If they're in there, I think they may as well be documented so that others can use it.  Trust me, I've seen plenty of use of on other forums... I think it will be useful here.
  
Back to top
WWW  
IP Logged
 
Carsten
Ex Member


Re: Add [noparse] to YaBBC and "don't parse" checkbox
Reply #22 - May 26th, 2009 at 11:46am
Post Tools
Imho only the fix for the check box should be added to the next release.

As i already mentioned in my first reply in this topic [quote author=05273435322328460 link=1242670230/7#7 date=1242747615]I'm not sure this functionality will be of common interest, but especially for you cepheid here's the code that will allow you to manually add tags to your messages [/quote]
Of course we could keep the [ noparse ] tags as a undocumented feature.
  
Back to top
 
IP Logged
 
deti
Legacy Dev Team
Development Team
****
Offline



Posts: 2,650
Location: Prien am Chiemsee, Germany
Re: Add [noparse] to YaBBC and "don't parse" checkbox
Reply #21 - May 26th, 2009 at 11:00am
Post Tools
OH Eng wrote on May 25th, 2009 at 9:01pm:
I don't have an available forum to use to test this right at the moment, thus the questions.

Here, on Jet Li's CVS-testforum, you can test always the actual code:
http://www.yabbworld.com/cgi-bin/yabbcvs/YaBB.pl
In the "Guestboard (Topicstarter)" you can test as Guest, but you can also ask Jet Li for Gmod or admin access once you have registered.

- The checked checkbox disables every UBBC and Smiley code.
- The [ noparse ]-tag disables only UBBC between his tags.
« Last Edit: May 26th, 2009 at 11:03am by deti »  

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
 
OH Eng
Past Team Members
Documentation Team
Offline



Posts: 4,026
Location: Pensacola, Florida USA
Re: Add [noparse] to YaBBC and "don't parse" checkbox
Reply #20 - May 25th, 2009 at 9:01pm
Post Tools
cepheid wrote on May 25th, 2009 at 7:21am:
We might need to change the description of the "disable smilies" checkbox in the help, as well, since it now does more than just disable smilies.


I think Carsten addressed that in the Post.lng changes to '276 and '277', but since it will still parse smilies inside the noparse tag, I'm no longer sure what checking that box does.  If it only disables UBBC code, giving the effect of a noparse tag, then we should change the "Disable Smilies" to "Disable UBBC code" or "Disable UBBC code formatting."

Seems to me it doesn't have anything at all to do with smilies anymore, or am I missing something?

Will "noparse" be available as a tag, or just via this checkbox?

And just so I further understand, if I check it, that means I can't use ANY other YaBBC buttons in the post also... is that correct?  So the effect is the entire post is treated as if it's inside a noparse tag?

I don't have an available forum to use to test this right at the moment, thus the questions.


« Last Edit: May 25th, 2009 at 9:21pm by OH Eng »  

 
Back to top
 
IP Logged
 
deti
Legacy Dev Team
Development Team
****
Offline



Posts: 2,650
Location: Prien am Chiemsee, Germany
Re: Add [noparse] to YaBBC and "don't parse" checkbox
Reply #19 - May 25th, 2009 at 8:53am
Post Tools
OH Eng wrote on May 25th, 2009 at 7:09am:
I'll need a few days to get to it, ...

Take time! As long it is ready before next release .... Wink Grin
  

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
 
cepheid
Senior Member
****
Offline



Posts: 516
Re: Add [noparse] to YaBBC and "don't parse" checkbox
Reply #18 - May 25th, 2009 at 7:21am
Post Tools
We might need to change the description of the "disable smilies" checkbox in the help, as well, since it now does more than just disable smilies.
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: [1] 2 3 
Topic Tools
 
  « Board Index ‹ Board  ^Top