Description: This will disable the use of the [ image ] tag (other than graemlins) inside of signatures. Applying this hack will stop all profiles from using the image tag when they edit their profile. Existing signatures are unaffected unless you run the included optional script which updates and removes the markup from existing signatures.
Info/Instructions: Apply changes. If you wish to remove the markup from the existing signatures, upload the updatesigs.php script to your ubbthreads directory and run it in your browser. Remove it when you are done. <img src="/forum/images/graemlins/wink.gif" alt="" />
Disclaimer: Please backup every file that you intend to modify. If the modification modifies the database, it's a good idea to backup your database before doing so.
Note: If you modify your UBB.Threads code, you may be giving up your right for "official" support from Infopop.If you need official support, you'll need to restore unmodified files.
You'd have to have it check the group while they are editing their profiles, but it's basically passing a parameter to the do_markup function, which if the parameter is passed, it'll skip the image tag markup.... so you could use groups to determine if you pass the parameter or not.
I was looking through your noimageinsig mod, and have a question about a line of text.. Specifically this.
[] ## ## Find this: ##
if ($config['allowimages']) {
# # Change to this: #
// Modify so that the image tag can't be used in sigs - by JoshPet if (($config['allowimages']) && (!$noimage)) { [/]
The code we're supposed to find shows up more than once in the file - are we supposed to replace all occurrances of that? Would like clarification before I go mucking up the file.
That would probably be possible, although not part of this mod. It's doable, but would take some additional coding to check it against group permissions.
Cool - thanks Josh. FWIW being able to restrict sig images by groups would be an attractive change!
I may have mentioned but we are looking to implement myPaymentPal and package features w/ it - ie only paid members can post pix, sig images, have avatars, etc.
Once I get myPaymentPal ready for sale - I need to pull together a number of these "restrict by group" type modifications and post them. As they do/can go hand in hand. It's on my list.
I am working on commisioning josh to do these upgrades. We definately need to have these hacks for the mypaypal addon. Folks just won't subscribe for no features or incentives and to turn off the board to non subscribers will just kill your site growth. Very excited to see these mods come out
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.