If you are not registered or logged in, you may still use these forums but with limited features. Show recent topics
  [Search] Search   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [FAQ]  FAQ 
[Register] Register / 
[Login] Login 
Smileys in Comments  XML
Forum Index » Support Forum
Author Message
Anonymous



Does anyone know how I can get smileys to work in the "write a comment" section. They work fine in the initial message but don't seem to allowed in a response.

Thanks
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

The comments do not get passed to the smiley parser.

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
Anonymous



Is there any way to modify it to go through the smiley parser?

Thanks for responding.

Frank
ET
Graduate

Joined: 21/02/2003 22:17:48
Messages: 179
Offline

FJames wrote:Is there any way to modify it to go through the smiley parser?

Thanks for responding.

Frank


Yah, it could be rewritten - are you just wanting to know where to look to rewrite it? lib/vars.class.php would probably be the first place to look.

---------------
Anonymous



In comment.class.php find the function called

Then find the following statement:



Add the following code before or after this statement:



This won't affect existing comments on guestbook entries, but new comments will show smilies from now on.

Enjoy
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

I forgot all about this thread I actually added this feature to Lazarus Guestbook shortly after I made my post in here. I would of answered but as I said I forgot about this thread. I also added the smileys to the comments form if they are switched on as well as alt tags to the smileys.

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
Anonymous



I made another mod but I'm not sure if it is related.

In the guestbook entry page there is a link like "click here for more smilies". A new window will open. I changed the code of this window to alphabettically sort all the smilies from the database. This way, it's easier for a user to look for a specific description of a smily. The normal code just lists them in the order they were added to the db.

Next, I figured out how to enable the selection of a smily per mouseclick in this new window (similar to the entry page). This way, all I have to do is add the smilies in the admin panel and all users can select the corresponding image and the right code gets inserted automatically.

Anyone interested in this one?
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum