Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Mod Name / Version: No Image Tag in Signatures

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.

Working Under: UBB.Threads 6.2-6.4

Mod Status: Beta

Any pre-requisites: none

Author(s): JoshPet

Date: 10/12/03

Credits: Leo Laporte of www.leovilletownsquare.com for requesting it.

Files Altered: ubbt.inc.php, changebasic.php, /languages/english/editbasic.php

New Files: updatesigs.php (optional)

Database Altered: none

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.


Attachments
96864-NoImageInSig1.0.zip (0 Bytes, 65 downloads)

Last edited by JoshPet; 12/15/2003 1:28 AM.
Sponsored Links
Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
Problem with this and the Birthday Mod together. Will have to work out details

Joined: Jan 2002
Posts: 674
Junior Member
Junior Member
Offline
Joined: Jan 2002
Posts: 674
Can this be setup by groups.. so advertisers can have and others can't.

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
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.

Joined: Mar 2001
Posts: 145
Member
Member
Offline
Joined: Mar 2001
Posts: 145
Dumb question, but..

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.

Sponsored Links
Joined: Oct 2001
Posts: 213
Member
Member
Offline
Joined: Oct 2001
Posts: 213
Hi Josh, are you inferring that no img in sig could be applied to certain groups and other groups would be excluded from this restriction?

If not, can that be done? I think that'd be very cool, as sig images is one of the "features" we'd like to offer paid members via myPaymentPal.

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Hey Joe - sorry for the late reply - I've been on vacation.

When looking for this:

if ($config['allowimages']) {

Change the one in the "function do_markup" section.

The other one appears in the undo_markup section and does not need to be changed.

I'll clarify better in my instructions.

Josh

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
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.

Joined: Oct 2001
Posts: 213
Member
Member
Offline
Joined: Oct 2001
Posts: 213
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.

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
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.

Sponsored Links
Joined: Oct 2001
Posts: 213
Member
Member
Offline
Joined: Oct 2001
Posts: 213
I'd be happy to help you - since I am doing the exact same thing to get ready for mPP! I can turn the list over to you if it'd help, just let me know.

Joined: Jan 2002
Posts: 674
Junior Member
Junior Member
Offline
Joined: Jan 2002
Posts: 674
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


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
Ruben Rocha
Ruben Rocha
Lutz,FL,USA
Posts: 254
Joined: January 2000
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
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,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)