Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 DEV-Group
 DEV Discussions (General)
 Smilies in posts when images are moved
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Serevinus
Junior Member

United Kingdom
124 Posts

Posted - 24 August 2002 :  11:04:27  Show Profile  Visit Serevinus's Homepage  Send Serevinus an AOL message  Send Serevinus an ICQ Message  Send Serevinus a Yahoo! Message
If you move the images to /forum/images/ and change the image location value in the admin section to images/ all the images on the site work fine, but any smilies added to a post come up as dead images because of the following line

inc_func_posting.asp

this line
fString = replace(fString, "<img src=icon_smile_angry.gif border=0 align=middle>", "", 1, -1, 1)
should be
fString = replace(fString, "<img src=" & strImageURL & "icon_smile_angry.gif border=0 align=middle>", "", 1, -1, 1)

This applies to all the image replace strings

Jim

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 24 August 2002 :  15:59:44  Show Profile
are you using v3.4 or an older version?

In v3.4, we no longer convert the smilie codes before writing the data to the database, the smilies are converted when the post is displayed.

If you look at the top of the section that you are referring to, you'll see this:

'## left for compatibility with older versions of the forum

This was left in so that if any old posts were edited, then the HTML would be converted back to the code for the smilie. But, when the post is resubmitted, it will be saved as just the smilie code and then will be processed by the Smile function in inc_func_common.asp when the post is displayed.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.21 seconds. Powered By: Snitz Forums 2000 Version 3.4.07