php forum
php mysql forum
php mysql smarty
 
Topic Options
#44736 - 01/27/03 06:11 PM Signature Images Help!!!
reloadbench Offline
Member

Registered: 10/11/01
Posts: 34
Loc: New York

   Signature Images Help!!! to Del.icio.us Add to del.icio.us
  Digg Signature Images Help!!! Digg it
I currently have images turned off for members signatures. I also have the signature limit set to 150 characters. I know that by allowing images in signatures I run the risk of some members cluttering the threads with graphics. Some of which might be questionable.

Is there a way to keep the images turned off (so no "outside" graphics could be linked) and only let the smilies be included in members signatures? Or perhaps only let images from a certain directory be included in the signatures?

I'm running version 5.47e. I know that it's an oldie, but I hate to upgrade now after all the hacks I have installed and finally getting it to look just the way I want.

Any help is greatly appreciated...
_________________________
Greg
The Reload Bulletin Board

Top
#44737 - 01/27/03 06:59 PM Re: Signature Images Help!!!
joking-down Offline
deutscher moderator / v5 specialist

Registered: 12/24/00
Posts: 712
Loc: Germany
Yes, there is.
I can post the code this week. Today, it's too late to search the code...
_________________________
UBB-Admin ( kids-hotline.de )


join Team UBBDev

I have [img]http://www.ubbdev.com/ud/?s=1&u=joking-down[/img] Points.

Top
#44738 - 01/27/03 08:06 PM Re: Signature Images Help!!!
Deb Administrator Offline
Pooh-Bah

Registered: 02/13/00
Posts: 3478
Loc: Wisconsin
Hi Greg, if you have posting icons turned on your users could just use the UBB Code img tags. Joking-down's code will be better ... but this might be a quick fix until he has time.
_________________________
- Deb

Top
#44739 - 01/29/03 02:19 AM Re: Signature Images Help!!!
reloadbench Offline
Member

Registered: 10/11/01
Posts: 34
Loc: New York
joking-down,

Thanks, that would be great! I'll check back here later on this weekend.

Deb,

The posting icons are turned on and I tried the UBB image tags, but the images did not show up. Only the actual code showed up in its place.
_________________________
Greg
The Reload Bulletin Board

Top
#44740 - 01/30/03 03:30 PM Re: Signature Images Help!!!
joking-down Offline
deutscher moderator / v5 specialist

Registered: 12/24/00
Posts: 712
Loc: Germany
reloadbench,


here is the code to allow only Image from your own domain in the signature (set AllowSignatureImage to yes):

backup ubbmisc.cgi and ubb_library.pl.

[code][/code]change both my-domain.com in checkSigImage to your domainname!
_________________________
UBB-Admin ( kids-hotline.de )


join Team UBBDev

I have [img]http://www.ubbdev.com/ud/?s=1&u=joking-down[/img] Points.

Top
#44741 - 02/01/03 10:44 AM Re: Signature Images Help!!!
reloadbench Offline
Member

Registered: 10/11/01
Posts: 34
Loc: New York
joking-down,

Thanks for the code. I will add it today, hopefully without any problems. I'll let you know how it works.

Thanks again for your help!
_________________________
Greg
The Reload Bulletin Board

Top
#44742 - 02/01/03 02:17 PM Re: Signature Images Help!!!
reloadbench Offline
Member

Registered: 10/11/01
Posts: 34
Loc: New York
joking-down,

I've followed the code to the letter and yet I can't get it to work.

I replaced the only two occurrences of the code in ubbmisc.cgi, and inserted the other string of code into ubb_library.pl just before the last line as directed. I also changed the my-domain to my own.

When the Control Panel settings for Signature Images is set to "NO" and I make a post, all I get is the URL of the image between the IMG tags. No image is displayed. With this CP setting the member file is written to and the UBB IMG tags are shown for the signature image.

When the Control Panel settings for Signature Images is set to "YES" and I make a post, the image appears in the signature. However, when you change the signature to include an image outside of my domain name, that "outside" image also appears in the signature. With this CP setting the member file is written to and the HTML tags are shown for the signature image.

Any idea's?

PS When you edit the post, regardless of what domain the image is located on, the signature image shows up...
_________________________
Greg
The Reload Bulletin Board

Top
#44743 - 02/06/03 01:42 PM Re: Signature Images Help!!!
joking-down Offline
deutscher moderator / v5 specialist

Registered: 12/24/00
Posts: 712
Loc: Germany
I found the error.

[code][/code]the wrong image location would be deleted now.
_________________________
UBB-Admin ( kids-hotline.de )


join Team UBBDev

I have [img]http://www.ubbdev.com/ud/?s=1&u=joking-down[/img] Points.

Top
#44744 - 02/07/03 12:12 PM Re: Signature Images Help!!!
reloadbench Offline
Member

Registered: 10/11/01
Posts: 34
Loc: New York
joking-down,

Thanks,

I'll give that a try and post the results.
_________________________
Greg
The Reload Bulletin Board

Top
#44745 - 02/07/03 12:31 PM Re: Signature Images Help!!!
reloadbench Offline
Member

Registered: 10/11/01
Posts: 34
Loc: New York
joking-down,

Thank you very much for your help. That additional bit of code worked perfectly and is greatly appreciated.
_________________________
Greg
The Reload Bulletin Board

Top


Top Posters Last 30 Days
AllenAyres 18
Gizmo 12
sirdude 6
GEN 3
tackaberry 2
Philipp 2
willing 2
Who's Online
0 Registered (), 39 Guests and 6 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Team UBBDev Rides Again!
by Gizmo
08/28/08 11:45 PM
Multiple Identity Detector
by MattUK
08/28/08 04:10 PM
[7.3.x] ubb.links
by AllenAyres
08/26/08 09:57 AM
Installing FlashChat with 7.3
by Gizmo
08/23/08 05:36 AM
[7.2.1] - Naked shoutbox
by Iann128
08/22/08 07:27 PM
Nice Ajax Chat
by M4D
08/21/08 10:02 PM
51-card NVIDIA folding rig cranks out 265,200 ppd
by AllenAyres
08/13/08 10:10 PM
New Mods
Installing FlashChat with 7.3
by Paug
08/23/08 12:14 AM
[7.x] AddThis - Social Networking
by Gizmo
08/01/08 01:30 AM
[7.3.x] ubb.links
by AllenAyres
06/20/08 11:50 PM
[7.3] Dissallow quotes more then 3 levels deep
by blaaskaak
06/09/08 09:01 AM
[7.2.1] - Naked shoutbox
by sirdude
08/17/07 10:36 PM
Newest Members
welcomeback1, Paug, Tim Keating, anscers, Murphdog
13324 Registered Users

 

 

 
fusionbb message board php hacks