PDA

View Full Version : vb IMG code = only from our server?


jamoss
10-10-2002, 06:17 PM
Is there a hack where I can restrict the vb IMG code to only accept images from our server?

I'd like to make a repository of graphics (not smilies) that people can put in their sigs, but the last time I enabled the vb IMG code, they were using HUGE-O graphics from other sites.

THANKS!!!

:cheeky: Jennifer.

jamoss
10-10-2002, 06:37 PM
The lines I have to change are in admin/functions.php after:

// do [ img ]xxx[ /img ]

-- I just don't know the syntax.

help??!?!?

g-force2k2
10-10-2002, 07:16 PM
you'll probably have to alter the bbcodeparse function and add some php to not parse the [img] tags if they don't include the url to your site... you would have to use expressions but im not good with them sorry >_O... but it is a good idea ;) maybe i will see what i can do if i get the time...

g-force2k2

Erwin
10-10-2002, 08:12 PM
Use the Signature Systems Hack that does just that - allows people to upload images for their sigs. You can then just disable the img tags in sigs.

jamoss
10-10-2002, 08:38 PM
I don't want them to upload images. We are going to have an image page where we will have images to offer. That way, we can control the content and size.

Jennifer.

jamoss
10-12-2002, 07:01 AM
I just created a new vb code called [gr].. which references only a local file directory on the server. No hacks needed.

If you are interested in this code.. email me and I'll tell you the details.

jennifer@babynames.com

Chris M
10-13-2002, 06:51 PM
Email Sent:D

Satan

Marshalus
10-14-2002, 06:20 AM
No offence, but why not just post it here?