Page Index Toggle Pages: 1 2 [3] 
Topic Tools
Very Hot Topic (More than 25 Replies) Smiley bug Display (Read 7,943 times)
Derek
Ex Member


Re: Smiley bug Display
Reply #7 - Jun 8th, 2008 at 8:21am
Post Tools
My Smilies thank you also 
  
Back to top
 
IP Logged
 
Jet Li
Legacy Dev Team
Development Team
****
Offline



Posts: 6,588
Location: Hong Kong
Re: Smiley bug Display
Reply #6 - Jun 8th, 2008 at 8:17am
Post Tools
Quote:
Thank you. Many smilies now working again.

your welcome.
  

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


Re: Smiley bug Display
Reply #5 - Jun 8th, 2008 at 8:11am
Post Tools
Thank you. Many smilies now working again.
  
Back to top
 
IP Logged
 
Jet Li
Legacy Dev Team
Development Team
****
Offline



Posts: 6,588
Location: Hong Kong
Re: Smiley bug Display
Reply #4 - Jun 8th, 2008 at 8:03am
Post Tools
Replace with your old one in YaBBC.pl

Code
Select All
sub MakeSmileys {
	my $temp_message;
	while ($message =~ s/(.*?)(<.+?>)//s) { $temp_message .= &MakeSmileysSub($1) . $2; }
	$message = $temp_message . &MakeSmileysSub($message);

	sub MakeSmileysSub{
		my $msg = shift;

		$msg =~ s/(\W|^)\[smil(ie|ey)=(\S+?\.(gif|jpg|png|bmp))\]/$1<img src="$smiliesurl\/$2" border="0" alt="$post_txt{'287'}" \/>/ig;
		$msg =~ s/(\W|^);-?\)/$1<img src="$imagesdir\/wink.gif" border="0" alt="$post_txt{'292'}" \/>/g;
		$msg =~ s/(\W|^);D/$1<img src="$imagesdir\/grin.gif" border="0" alt="$post_txt{'293'}" \/>/g;
		$msg =~ s/(\W|^):'\(/$1<img src="$imagesdir\/cry.gif" border="0" alt="$post_txt{'530'}" \/>/g;
		$msg =~ s/(\W|^):-\//$1<img src="$imagesdir\/undecided.gif" border="0" alt="$post_txt{'528'}" \/>/g;
		$msg =~ s/(\W|^):-X/$1<img src="$imagesdir\/lipsrsealed.gif" border="0" alt="$post_txt{'527'}" \/>/g;
		$msg =~ s/(\W|^):-\[/$1<img src="$imagesdir\/embarassed.gif" border="0" alt="$post_txt{'526'}" \/>/g;
		$msg =~ s/(\W|^):-\*/$1<img src="$imagesdir\/kiss.gif" border="0" alt="$post_txt{'529'}" \/>/g;
		$msg =~ s/(\W|^)&gt;:\(/$1<img src="$imagesdir\/angry.gif" border="0" alt="$post_txt{'288'}" \/>/g;
		$msg =~ s/(\W|^)::\)/$1<img src="$imagesdir\/rolleyes\.gif" border="0" alt="$post_txt{'450'}" \/>/g;
		$msg =~ s/(\W|^):P/$1<img src="$imagesdir\/tongue\.gif" border="0" alt="$post_txt{'451'}" \/>/g;
		$msg =~ s/(\W|^):-?\)/$1<img src="$imagesdir\/smiley\.gif" border="0" alt="$post_txt{'287'}" \/>/g;
		$msg =~ s/(\W|^):D/$1<img src="$imagesdir\/cheesy.gif" border="0" alt="$post_txt{'289'}" \/>/g;
		$msg =~ s/(\W|^):-?\(/$1<img src="$imagesdir\/sad.gif" border="0" alt="$post_txt{'291'}" \/>/g;
		$msg =~ s/(\W|^):o/$1<img src="$imagesdir\/shocked.gif" border="0" alt="$post_txt{'294'}" \/>/gi;
		$msg =~ s/(\W|^)8-\)/$1<img src="$imagesdir\/cool.gif" border="0" alt="$post_txt{'295'}" \/>/g;
		$msg =~ s/(\W|^):-\?/$1<img src="$imagesdir\/huh.gif" border="0" alt="$post_txt{'296'}" \/>/g;
		$msg =~ s/(\W|^)\^_\^/$1<img src="$imagesdir\/happy.gif" border="0" alt="$post_txt{'801'}" \/>/g;
		$msg =~ s/(\W|^):thumb:/$1<img src="$imagesdir\/thumbsup.gif" border="0" alt="$post_txt{'282'}" \/>/g;
		$msg =~ s/(\W|^)&gt;:-D/$1<img src="$imagesdir\/evil.gif" border="0" alt="$post_txt{'802'}" \/>/g;

		$count = 0;
		while ($SmilieURL[$count]) {
			if ($SmilieURL[$count] =~ /\//i) { $tmpurl = $SmilieURL[$count]; }
			else { $tmpurl = qq~$imagesdir/$SmilieURL[$count]~; }
			$tmpcode = $SmilieCode[$count];
			$tmpcode =~ s/&#36;/\$/g;
			$tmpcode =~ s/&#64;/\@/g;
			$msg =~ s~(\W|^)$tmpcode~$1<img src="$tmpurl" border="0" alt="$SmilieDescription[$count]" />$SmilieLinebreak[$count]~g;
			$count++;
		}

		$msg;
	}
}
 

  

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


Re: Smiley bug Display
Reply #3 - Jun 8th, 2008 at 8:00am
Post Tools
Jet Li

What was the code you changed so that I can rectify on my forum.

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



Posts: 6,588
Location: Hong Kong
Re: Smiley bug Display
Reply #2 - Jun 8th, 2008 at 7:43am
Post Tools
New YaBBC.pl in CVS.
  

PM me for YaBB Installation Service
Back to top
WWWGTalkFacebook  
IP Logged
 
deti
Legacy Dev Team
Development Team
****
Offline



Posts: 2,650
Location: Prien am Chiemsee, Germany
Re: Smiley bug Display
Reply #1 - Jun 7th, 2008 at 8:33am
Post Tools
Jet Li wrote on Jun 7th, 2008 at 8:26am:
in Posts display the smiley not correctly. In (Live) Preview is correct. Huh

test smiley Smiley

http://www.yabbforum.com/community/YaBB.pl?num=1212801860/4#4

We had this before:
Code
Select All
2 spaces are one space and &nbsp;:) 

what can be a Problem with
Code
Select All
;D 



You may delete all the inserted spaces in YaBBC.pl sub MakeSmileysSub{ (you will remember JetLi).
but NOT here:

Quote:
             $msg =~ s/ ;-?\)/ <img src="$imagesdir\/wink.gif" border="0" alt="$post_txt{'292'}" \/>/g;
             $msg =~ s/ Grin/ <img src="$imagesdir\/grin.gif" border="0" alt="$post_txt{'293'}" \/>/g;
« Last Edit: Jun 8th, 2008 at 7:44am by Jet Li »  

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
Smiley bug Display
Jun 7th, 2008 at 8:26am
Post Tools
in Posts display the smiley not correctly. In (Live) Preview is correct. Huh

test smiley Smiley

http://www.yabbforum.com/community/YaBB.pl?num=1212801860/4#4

Edited:
aha, if user make a space after a word. Grin
« Last Edit: Jun 7th, 2008 at 8:32am by Jet Li »  

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