Author |
Topic |
stwilson
Junior Member
USA
385 Posts |
Posted - 11 January 2004 : 11:46:24
|
CarKnee,
How hard would it be to mod this script to also check for any kind of url? I have a similar issue with members adding links in their signature. I want to pull any kind of .com, .net, .org extensions. Can you point me in the right direction on how to mod your script to pull members with those items in their signature?
I am assuming this is the area (line 135) in admin_sigimage.asp that pulls the image:
If InStr(rst("M_SIG"), "") > 0 Then strLink = grabImage(rst("M_SIG")) strLink = Replace(strLink, "", "") strImage = "<img src=" & strLink & ">"
How would I mod this to also look for .com, for example? Any help you can provide is greatly appreciated.
Shannon |
Shannon RidingArizona.com |
|
|
laser
Advanced Member
Australia
3859 Posts |
Posted - 11 January 2004 : 14:38:30
|
But then it wouldn't be a sig manager
Instead of looking for the [img part you'd need to change that to .com and additional strings. |
|
|
CarKnee
Junior Member
USA
297 Posts |
Posted - 12 January 2004 : 09:09:44
|
I have been slacking with this MOD! I will try to catch up on all the posts, requests, etc... today |
|
|
|
CarKnee
Junior Member
USA
297 Posts |
Posted - 12 January 2004 : 12:07:39
|
I uploaded a new version of the MOD! http://www.snitzbitz.com/mods/details.asp?Version=All&mid=157
It can now handle multiple images in a signature, match the img=left and img=right tags, and I added in some of the formatting I left out.
Sorry for not keeping up with you guys!
CarKnee |
|
|
|
DavidRhodes
Senior Member
United Kingdom
1222 Posts |
Posted - 12 January 2004 : 15:22:14
|
i get an error with the new version
Microsoft VBScript runtime (0x800A0005) Invalid procedure call or argument: 'left' /forum/admin_SigImage.asp, line 228 |
The UK MkIVs Forum |
|
|
CarKnee
Junior Member
USA
297 Posts |
Posted - 12 January 2004 : 15:42:24
|
Thats strange; I tested it pretty good.
That line was kind of pointless anyway, so I removed it. Try again? |
|
|
|
DavidRhodes
Senior Member
United Kingdom
1222 Posts |
Posted - 12 January 2004 : 15:53:11
|
Yep, works now, the Image Address shows the full image tag rather than just the url though, I removed that column anyway
cheers |
The UK MkIVs Forum |
|
|
Chuck McB
Junior Member
WooYay
196 Posts |
Posted - 12 January 2004 : 17:56:55
|
Yes, not quite sure of the logic behind that column , esp. with the text that big :)
Wee bug-ette: line 180 has a td at the end of it not a /td |
|
|
CarKnee
Junior Member
USA
297 Posts |
Posted - 13 January 2004 : 08:50:36
|
Thanks Chuck. I fixed that td tag.
The reason I have the URL to the image is because I let people upload images to my site and I want to know if the image is being hosted by me or elsewhere.
CarKnee |
|
|
|
DavidRhodes
Senior Member
United Kingdom
1222 Posts |
Posted - 01 February 2004 : 12:14:19
|
laser, did you get any further on the image size display column? |
The UK MkIVs Forum |
|
|
laser
Advanced Member
Australia
3859 Posts |
Posted - 01 February 2004 : 14:48:56
|
Yes, I got it working about 98% of the time - sometimes it doesn't report the proper filesize. Animated GIFs are the worst, but some others are reported wrong as well.
Code at : http://www.v8central.com/snitz3403/admin_sigimage.txt for those interested in it
PS. It DOES take some time to process, so don't worry that it doesn't display immediately. |
|
|
DavidRhodes
Senior Member
United Kingdom
1222 Posts |
Posted - 01 February 2004 : 15:19:36
|
Your right, it does take a while, 2 mins and still loading! Next step, setup a couple of variables, maybe textboxes to enter max width and heights and delete using them instead of checkboxes, may give that a go myself |
The UK MkIVs Forum |
|
|
DavidRhodes
Senior Member
United Kingdom
1222 Posts |
Posted - 01 February 2004 : 15:22:43
|
laser, you have some functions declared twice in that script |
The UK MkIVs Forum |
|
|
laser
Advanced Member
Australia
3859 Posts |
Posted - 01 February 2004 : 15:25:37
|
Yeah, it's still a WIP, I just created the txt file because you asked for it . It's nowhere near production quality yet but I should have mentioned that to begin with
PS. David, did you get that directory tree navigation working in the .Net gallery code ? |
|
|
DavidRhodes
Senior Member
United Kingdom
1222 Posts |
Posted - 01 February 2004 : 15:27:53
|
quote: Originally posted by laser PS. David, did you get that directory tree navigation working in the .Net gallery code ?
Never got around to it, I found a free one at www.ngallery.org but haven't implemented it yet |
The UK MkIVs Forum |
|
|
Topic |
|