Select Expand BBcodes - Strange chars around <commands>
 
 
Post new topic   Reply to topic   printer-friendly view    phpMiX.org Forum Index -> phpBB MODs -> Select Expand BBCodes
View previous topic :: View next topic  
Author Message
AlbertSz
Starter
Starter


Joined: 15 Sep 2004
Posts: 4

PostPosted: Sun Feb 06, 2005 12:45 pm    Post subject: Select Expand BBcodes - Strange chars around <commands> Reply with quote

I have double checked the files. I get this result.






Where is the problem ?
 
Back to top
View user's profile Send private message
markus
[Administrator]
[Administrator]


Joined: 28 Jul 2003
Posts: 1124

PostPosted: Sun Feb 06, 2005 2:30 pm    Post subject: Re: Select Expand BBcodes MOD - a strange char insted of < Reply with quote

This is probably related to the charset defined by your phpBB language file.

You can change those symbols in the select_expand_bbcodes.js file.

Code:
_SXBB.prototype.genCmd = function(cmd, txt)
{
   return '&nbsp;&nbsp;<a class="genmed" style="text-decoration:none;" href="javascript:void(0)" onclick="SXBB[\''+this.id+'\'].'+cmd+'(\''+txt+'\');" onfocus="this.blur();"><b>'+txt+'</b></a>&nbsp;';
}


Look at these parts:
Quote:
return '&nbsp;&nbsp;

Quote:
&nbsp;';


They seem the greater/lower than symbols, but they aren't. Replace them with whatever you wish.

Looks better? Smile

 
 
_________________
http://www.phpmix.org
 
Back to top
View user's profile Send private message
AlbertSz
Starter
Starter


Joined: 15 Sep 2004
Posts: 4

PostPosted: Sun Feb 06, 2005 2:50 pm    Post subject: Re: Select Expand BBcodes MOD - a strange char insted of < Reply with quote

It seems to be the right place but I can't put enything else but only the space. I have tryed - or ( or *. All of them look the same as in my image posted before. What could be wrong ? I have encoding set to iso-8859-2

Rolling Eyes
 
Back to top
View user's profile Send private message
markus
[Administrator]
[Administrator]


Joined: 28 Jul 2003
Posts: 1124

PostPosted: Sun Feb 06, 2005 3:17 pm    Post subject: Re: Select Expand BBcodes MOD - a strange char insted of < Reply with quote

...maybe this is a browser cache issue.

Do you have a link?

 
 
_________________
http://www.phpmix.org
 
Back to top
View user's profile Send private message
AlbertSz
Starter
Starter


Joined: 15 Sep 2004
Posts: 4

PostPosted: Sun Feb 06, 2005 3:20 pm    Post subject: Re: Select Expand BBcodes MOD - a strange char insted of < Reply with quote

IE 6.0.2

http://www.streetracing.pl/forum/viewtopic.php?t=19130&start=15
 
Back to top
View user's profile Send private message
markus
[Administrator]
[Administrator]


Joined: 28 Jul 2003
Posts: 1124

PostPosted: Sun Feb 06, 2005 4:32 pm    Post subject: Re: Select Expand BBcodes MOD - a strange char insted of < Reply with quote

Well, what happens if you use the greater/lower than symbols like this?

Code:
_SXBB.prototype.genCmd = function(cmd, txt)
{
   return '&nbsp;&lt;&nbsp;<a class="genmed" style="text-decoration:none;" href="javascript:void(0)" onclick="SXBB[\''+this.id+'\'].'+cmd+'(\''+txt+'\');" onfocus="this.blur();"><b>'+txt+'</b></a>&nbsp;&gt;';
}


...using the HTML character entities &lt; and &gt; ...instead of < and >

 
 
_________________
http://www.phpmix.org
 
Back to top
View user's profile Send private message
AlbertSz
Starter
Starter


Joined: 15 Sep 2004
Posts: 4

PostPosted: Sun Feb 06, 2005 4:43 pm    Post subject: Re: Select Expand BBcodes - Strange chars around <command Reply with quote

works Very Happy

Thank's a lot ! Smile
 
Back to top
View user's profile Send private message
markus
[Administrator]
[Administrator]


Joined: 28 Jul 2003
Posts: 1124

PostPosted: Sun Feb 06, 2005 5:26 pm    Post subject: Re: Select Expand BBcodes - Strange chars around <command Reply with quote

Good to know Smile


.

 
 
_________________
http://www.phpmix.org
 
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    phpMiX.org Forum Index -> phpBB MODs -> Select Expand BBCodes All times are GMT + 1 Hour
 
Page 1 of 1


 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum