Author |
Message |
06/02/2005 19:26:06
|
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
|
|
06/02/2005 20:42:19
|
Carbonize
Master
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 |
|
06/02/2005 21:50:36
|
Anonymous
|
Is there any way to modify it to go through the smiley parser?
Thanks for responding.
Frank
|
|
06/02/2005 22:15:35
|
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.
|
--------------- |
|
03/05/2005 11:55:37
|
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
|
|
03/05/2005 13:18:10
|
Carbonize
Master
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 |
|
04/05/2005 14:48:47
|
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?
|
|
|