boardom Forum Index boardom
b2 message board
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

No luck with smilies

 
Post new topic   Reply to topic    boardom Forum Index -> How to ?
View previous topic :: View next topic  
Author Message
scole



Joined: 27 Feb 2004
Posts: 1

PostPosted: Fri Feb 27, 2004 9:14 pm    Post subject: No luck with smilies Reply with quote

I've read a half dozen posts and responses on this and have checked my settings again and again:

# set this to 1 to enable smiley conversion in posts
# (note: this makes smiley conversion in ALL posts)
$use_smilies = 1;

But still don't get any conversion to the gif image (just see the original text -- not a broken img link so I don't think it's the img folder path.

I haven't made any other changes to the code. It's a small issue but the fact that I can't figure it out is driving me crazy!

Can anyone help?

Thanks
Back to top
View user's profile Send private message
Timi



Joined: 23 Jul 2003
Posts: 84
Location: Hungary

PostPosted: Sun Feb 29, 2004 10:48 am    Post subject: Reply with quote

Below that in your b2config file, you have to set these:

Code:
# the directory where your smilies are (no trailing slash)
$smilies_directory = 'http://yoursite.com/b2-img/smilies';

# here's the conversion table, you can modify it if you know what you're doing
$b2smiliestrans = array(
   ':cloud9:'  => 'cloud9.gif',
   ':innocent:'=> 'innocent.gif',
   ':worried:' => 'worried.gif',
   ':faint:'   => 'faint.gif',
........insert your own ones here
   );
Back to top
View user's profile Send private message Visit poster's website
hazel



Joined: 20 Jan 2004
Posts: 34
Location: Philippines

PostPosted: Wed Mar 03, 2004 10:11 am    Post subject: Reply with quote

I've done that already (I think), i set '1' also but the smilies aren't appearing when people post comments. Although they can see the smilies and can click them.. any solution.. see here: http://sweet.strawberryshake.net/ and the code below:

Code:
// ** Smilies options **

# set this to 1 to enable smiley conversion in posts
#     (note: this makes smiley conversion in ALL posts)
$use_smilies = 0;

# the directory where your smilies are (no trailing slash)
$smilies_directory = 'http://strawberryshake.net/sweet/b2-img/smilies';

# here's the conversion table, you can modify it if you know what you're doing
$b2smiliestrans = array(
   ':)'      => 'icon_smile.gif',
   ':D'      => 'icon_biggrin.gif',
   ':-D'      => 'icon_biggrin.gif',
   ':grin:'      => 'icon_biggrin.gif',
   ':)'      => 'icon_smile.gif',
   ':-)'      => 'icon_smile.gif',
   ':smile:'      => 'icon_smile.gif',
   ':('      => 'icon_sad.gif',
   ':-('      => 'icon_sad.gif',
   ':sad:'      => 'icon_sad.gif',
   ':o'      => 'icon_surprised.gif',
   ':-o'      => 'icon_surprised.gif',
   ':eek:'      => 'icon_surprised.gif',
   ''      => 'icon_eek.gif',
   ''      => 'icon_eek.gif',
   ':shock:'      => 'icon_eek.gif',
   ':?'      => 'icon_confused.gif',
   ':-?'      => 'icon_confused.gif',
   ':???:'      => 'icon_confused.gif',
   '8)'      => 'icon_cool.gif',
   '8-)'      => 'icon_cool.gif',
   ':cool:'      => 'icon_cool.gif',
   ':lol:'      => 'icon_lol.gif',
   ':x'      => 'icon_mad.gif',
   ':-x'      => 'icon_mad.gif',
   ':mad:'      => 'icon_mad.gif',
   ':P'      => 'icon_razz.gif',
   ':-P'      => 'icon_razz.gif',
   ':razz:'      => 'icon_razz.gif',
   ':oops:'      => 'icon_redface.gif',
   ':cry:'      => 'icon_cry.gif',
   ':evil:'      => 'icon_evil.gif',
   ':twisted:'      => 'icon_twisted.gif',
   ':roll:'      => 'icon_rolleyes.gif',
   ':wink:'      => 'icon_wink.gif',
   ';)'      => 'icon_wink.gif',
   ';-)'      => 'icon_wink.gif',
   ':!:'      => 'icon_exclaim.gif',
   ':?:'      => 'icon_question.gif',
   ':idea:'      => 'icon_idea.gif',
   ':arrow:'      => 'icon_arrow.gif',
   ':|'      => 'icon_neutral.gif',
   ':-|'      => 'icon_neutral.gif',
   ':neutral:'      => 'icon_neutral.gif',
   ':mrgreen:'      => 'icon_mrgreen.gif',
);
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
Timi



Joined: 23 Jul 2003
Posts: 84
Location: Hungary

PostPosted: Wed Mar 03, 2004 4:26 pm    Post subject: Reply with quote

No you did not set it
Code:
# set this to 1 to enable smiley conversion in posts
#     (note: this makes smiley conversion in ALL posts)
$use_smilies = 0;
Back to top
View user's profile Send private message Visit poster's website
Muze.ca



Joined: 17 Mar 2004
Posts: 17
Location: Toronto

PostPosted: Mon Mar 29, 2004 11:53 pm    Post subject: Reply with quote

ok, I have a emoticon question myself.

How do I get the examples + "view More emoticons" along with the edit/reply/post page? (just like here.. when you write a reply or comment)

I dont have a problem with them working - thats great.. I would just like to show users that they have the option to use the smilies that are loaded..and direct them to see their options - Like I said.. just like what is used here in this forum Smile
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Timi



Joined: 23 Jul 2003
Posts: 84
Location: Hungary

PostPosted: Tue Mar 30, 2004 5:10 pm    Post subject: Reply with quote

What about doing a search in the Hacks forum for "smilie hack"?
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    boardom Forum Index -> How to ? 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


Powered by phpBB 2 © 2001, 2002 phpBB Group