Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Oct 2000
Posts: 290
Member
Member
Offline
Joined: Oct 2000
Posts: 290
I have the "Smilies in Sig" hack basically working on my board, and it has been for some time now...but I have a slight problem. If a user enters their profile and puts :burn: in thier sig, the corresponding smilie shows up when they post. So it all works.....until they go into their sig the next time. THEN, the :burn: has been changed into the UBB [img] code (images are not allowed, but smilies are). If the user does not see this, and they submit changes, their smiles won't show up and all they get in there sig is the UBB code for the image that isn't allowed. Shoot, did that make sense?? smile

Basically, the Smilie code is not staying when they edit their sig.

Thanks in advance!

Sponsored Links
Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Thats probably how the code was coded to do. Post the code that you need to use in ubbmisc.cgi and I'll try help you.

Joined: Oct 2000
Posts: 290
Member
Member
Offline
Joined: Oct 2000
Posts: 290
My guess is that it has to be in this bit of code. It gets put into the signature ok, and it works as advertised...until they edit their profile...then it all reverts to UBB code.

Code
code:

But then again, I could be wrong!! smile I'm going to do some more testing to see, and I'll report back.

Joined: Oct 2000
Posts: 290
Member
Member
Offline
Joined: Oct 2000
Posts: 290
OK, here is the sequence of events...which makes me wonder if it is the code above afterall.

I go into my profile and enter :burn: into my sig. I post a test message and it works. I look in my .cgi file via FTP and see that it is stored in html format. I can post at will and the smilie shows up....UNTIL


I go into my profile and change my interest (or anything but the smilie in the sig). I look at the sig box and see the instead of smilie code there is the html. After submitting changes (there needn't be any really), I post a test and the smilie is replaced with the UBB [img] code with the path to the image.

Now I look in my .cgi file and where the smilie code once was stored in html, it is now in UBB.

THAT may be the problem!! The smilie sub-routine is made for html, not UBB code...and somehow it is getting changed into the UBB code....the wheels are turning!! smile

Joined: Oct 2000
Posts: 290
Member
Member
Offline
Joined: Oct 2000
Posts: 290
Got it! Change this:

Code
code:

To this:

Code
code:

The code conversion takes place in postings.cgi, so there is no need for it to be converted prior to storage in the profile. Now, the :burn: doesn't get converted by the line that is commented out, and it gets stored in the profile as is....then when postings.cgi "sees" it when I post, it gets converted there! Thanks!!

[ July 18, 2001 07:32 AM: Message edited by: Vipermad ]

Sponsored Links

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
hatter
hatter
USA
Posts: 69
Joined: January 2001
Forum Statistics
Forums63
Topics37,575
Posts293,932
Members13,824
Most Online6,139
Sep 21st, 2024
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,835
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2025 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.1
(Snapshot build 20240918)