View Full Version : Signature Guardian Version 1 (Beta Released)
why-not
04-06-2005, 10:00 PM
Signature Guardian Version 1 / 0212
Tomorrow night will be the big update... April 29, 2005
I have been out of town so I have not had a chance to get the final version done, but it is done now. The final version will include the following...
1. Mod Panel Controls
The Admin Panel has a option for the administrator to set permissions for mods and super mods to access the following controls!
A. Can or can not remove signature bans!
B. Can or can not view or edit signatures! (only signatures that are under ban!)
C. Can or can not access the forum signature controls (threadbit, postbits)
2. Admin Panel Controls
A. Set Auto ban limits ( hour(s), day(s), week(s), month(s), forever ) [per group]
B. You now can merge permissions into multi groups (set one permission to have it be used by many groups)
C. Admin Signature Editor, (all editors, uses the one you have selected in your options)
D. Image viewer (report)
E. Turn on or Off forum signature controls! (validate signatures (by post or thread) full detailed report shown with Admin options... (what to validate)
F. domain blocking via file or database.
I have also written a 15 page help file with over 100 images that explains each control in as much detail as I could. Also Help phrases have been added throughout the Admin and Mod panel and on the threadbits and postbits controls!
That it, c ya tomorrow!
Sonia
(2) mirror errors that should be corrected. MySQL 3 support
https://vborg.vbsupport.ru/showthread.php?p=640036&posted=1#post640036
Added MySQL support for any version of MySQL less than 4.1, including MySQL version 3, but you should update your MySQL install if you can!
Update the zip file to include both Mysql version scripts and error fixes!
The signature control is very advanced signature control and monitor! This modification will allow the administrator to take back control of all signatures on their forum. The control has over 100 key features that will allow total control of signature displaying on your forum!
The signature control allows you to switch from using vBulletin limited signature permissions, to a really advanced signature control. It does this by not ever effecting vBulletin control, allowing you to use the standard vBulletin control for some groups and use this advanced control for others!
The reason for developing this modification was to bring the complete signature control into one single Administrator Panel, so as not to have to set (bbcode rules) on one vBulletin options page, then have to set (image rules) and other signature option on many different pages! It make administering your forum much easier!
The signature control gives you many different options. Each is designed to allow you complete unlimited control of just how you want each groups to display their signatures!
Key Features...
Overrides vBulletin Signature rules
Works via groups and single users!
Group can use signatures (yes/no)
Group can view any signature (yes/no)
Enforce new rules or updated rules now! (yes/no)
Signature monitor (vB fake cron, server cron) scripts included!
Auto Ban (Soft, signature removed until revalidated)
Auto Ban (Hard, signature removed until administrator review)
Signature Admin Panel
View and remove bans on banned signatures (with full details about each ban)
Quick stats (users who are using signatures, sizes)
Signature Permissions
Document permissions
Total lines allowed
Total characters per line
Total characters for (1) single word
Total spacing allowed between lines that have content
Total characters for complete signature
Turn bad word filter on or off
Smilies permissions
Group can use smilies (yes/no)
Total smilies allowed to be used (limit rule)
A list of smilies that are not allowed (denied rule)
bbcode permissions
Each BBCODE has it's own allow rules (yes/no)
Maximum times any (1) bbcode may be reused (#)
The total combined BBCODES allowed (#)
The minimum and maximum font SIZE allowed
URL permissions
Group can have links in their signatures (yes/no)
The maximum number of links allowed (#)
The HTTP protocols that are allowed (http, https, ftp...)
Domain Link blocking (allow and denied list Or just denied list) [simple wildcard rules]
IMAGE permissions
Group can have images in their signatures (yes/no)
Inline or display as link (yes/no)
The maximum number of images allowed (#)
Validate all images not local to this domain (yes/no)
Do line break testing if images with text (yes/no)
maximum size of any (1) image
maximum height of any (1) image
maximum width of any (1) image
image extensions that are allowed!
Domain image blocking (allow and denied list Or just denied list) [simple wildcard rules]
This is the beta release of this modification! The only part that is still beta, is the Admin Panel. The front end of this control is the (100% final working version). There will be no changes to that part of the code when this is released as being (Final).
The Admin Panel still needs (ban list sorting and limiting), see the install file for when this will be added as the first of (2) updates that this modification will have before being released as final!
As it is now, you can 100% (add, update) permissions, you also (view and remove hard bans). The Signature Monitor is (100%) working including (both) versions, the vB fake cron or the real server based cron!
FIRST UPDATE DONE (sort and limit) ban list
Zip File Updated....
For those that already have downloaded this before this update, see the first post below for the update zip file
Demo is here...
http://forum.ya-right.com/index.php?
Just create an account to try it!
Sonia
why-not
04-07-2005, 08:51 PM
UPDATE (1) is attached to this post!
Adds Sort and limit to the Ban List updates the query to work with sorting...
Also see the image 'sort.png' above to see exactly what this update adds!!
Images Explained!
start / removed_sig_warning.png
This is (1) of (3) different signature message a user will see if they have done any of the following! Note these messages are only seen by the user that has violated a signature rule!!!
1.
If a user changes a image on a remote server and that image violates any (1) rule then they will be given a SOFT BAN, (must revalidate signature)
2.
If a user changes a image on a remote server and that image violates any (3) rules then they will be given a HARD BAN, (must ask administrator to remove ban)
3.
If the administrator has set new rules and has chosen to ENFORCE the new rules, then each user in that group that has a signature and that signature is not banned will get a message (please revalidate your signature, because we have enacted new rules)
Overview...
Each message is related to the permission control that the user is under! All messages give HELP links and direct links to do the revalidation!
end / removed_sig_warning.png
start / admin.png
This is the signature permissions setting control where you will setup or update signature permission for each group!
end / admin.png
start / manager.png
The signature manager is the gateway to all controls maintained by the signature control. This includes (signature permissions, ban user manager, ban limit permissions)
end / manager.png
start / ban_list.png
The Ban List, gives you a full list of users that are currently banned from having a signature. The list gives full details about each BAN using mouseover each column will give even more information so you can see exactly why a user signature has been ban!
This list allows the administrator to convert a HARD ban to a SOFT ban so the user can revalidate their signature and again have access to having a signature! SOFT bans are listed but do not need any administration as they are under the signature monitor control!
end / ban_list.png
images explained...
Sonia
TCattitude
04-07-2005, 10:11 PM
WOW!
Awesome work... really useful hack and complete for all neededs.
Bolas
04-07-2005, 10:22 PM
HotM?
lazee
04-07-2005, 10:29 PM
yeathhhhhhhh cool .Hotm 4 me ,waiting for this hack .
demo, link die.
bigcurt
04-07-2005, 10:39 PM
Nice hack man, good HOTM material...need to try first though so...come with the download soon :) :) :)
why-not
04-07-2005, 10:42 PM
Download is up...
I can not connect to the forum from my home, so I am doing this from my office! My ISP says that their 5 servers are under attack, LoL!
Sonia
nexialys
04-08-2005, 12:34 AM
good, i'll now be able to control everybody, everything and everyway.. ;0)
Thanks for sharing it with the community why-not, I'm pretty sure many members will find this mod useful :)
How soon until this will be released as an official hack and not beta? VERY COOL HACK!!
:)
why-not
04-08-2005, 05:45 AM
How soon until this will be released as an official hack and not beta? VERY COOL HACK!!
:)
It is pretty much done in the state it is in. I am just adding (1) more thing to the Admin Panel and then do some code clean up of the back end, not really code clean up, I am just thinking about some logic changes but they only effect people using MySQL 3.
The final version will be released with in the week. I just need to add the Admin Ban Control (ban limits) ie, 1 hour, 1 day, 1 week and so on.. Also add Admin configured Ban Types, that is all part of the Admin Signature Panel that is not in the beta version. But it's not needed to run the modification, like I said before...
This control is 100% working, that includes the monitor and the forum controls and the signature permissions (configure or update). There will be no Forum Script changes from now to Final. That means './includes/signature.php' and all the other Forum related scripts will not need any editing. Only the Admin scripts will need to be overwritten, not edited!
Sonia
lasto
04-08-2005, 05:50 AM
this aint a sig uploader is it ?
Mephisteus
04-08-2005, 06:45 AM
One word, awsome :)
* Mephisteus nominates for HoTM
Aurous
04-08-2005, 06:58 AM
HACK OF THE YEAR!
Will wait for the final version before I install it. Keep up the great work sonia.
This should be a standard option in the next vB Release.
Pretty good job, we'll be looking forward till the final release :)
oh yeah HOTM!
Jenta
04-08-2005, 08:45 AM
the most requested feature ever has arrived
kudos
I got this error when clicked on the Signature Permissions link in Admincp!
Fatal error: Call to undefined function: mysql_real_escape_string() in /home/virtual/site9/fst/var/www/html/vb3/includes/adminfunctions_signature.php on line 992
pelukis
04-08-2005, 10:29 AM
cool..just downloaded the zip..will see how it works...thanks sonia!!:)
nexialys
04-08-2005, 10:33 AM
this aint a sig uploader is it ?if you READ THE DESCRIPTION, you will answer yourself!!!
lasto
04-08-2005, 11:18 AM
if you READ THE DESCRIPTION, you will answer yourself!!!
read it so dont be so narky.
I was wondering why all these options when vbull does`nt even have a decent sig uploader so was a bit confused tbh.But i supose if u allow offsite linking then this hack is fine.
Darmak
04-08-2005, 03:55 PM
Thank You soniaa !! Nice work :D
It is pretty much done in the state it is in. I am just adding (1) more thing to the Admin Panel and then do some code clean up of the back end, not really code clean up, I am just thinking about some logic changes but they only effect people using MySQL 3.
The final version will be released with in the week. I just need to add the Admin Ban Control (ban limits) ie, 1 hour, 1 day, 1 week and so on.. Also add Admin configured Ban Types, that is all part of the Admin Signature Panel that is not in the beta version. But it's not needed to run the modification, like I said before...
This control is 100% working, that includes the monitor and the forum controls and the signature permissions (configure or update). There will be no Forum Script changes from now to Final. That means './includes/signature.php' and all the other Forum related scripts will not need any editing. Only the Admin scripts will need to be overwritten, not edited!
Sonia
Hey Sonia,
I guess my question is will file edits need to be redone when the next version comes out? Or are you just changing the php files that come with this? If that's the case then I will install now! I love the idea of this, just don't want to have to rehack in a week! Please let me know, THANKS!
~006
dndog
04-09-2005, 12:54 AM
Definitely HOTM! This is a hack that has been needed desperatly.
Thanks so much for your hack!
-dndog
C.Birch
04-09-2005, 07:21 AM
I installed this and had a few probs, first of all after install peoples signs wouldshows sometimes and not other times within the same topics also.
2nd the phrases never showed even know they got added to the database.
Trigunflame
04-09-2005, 09:48 AM
Lol, ive got about this same script in a 10 or so line cron script. Would basically be the same thing if I added variables for its configuration in the admin control panel.
Took about 5 or so min to code..
*sigh*
This != hotm
note:
not putting down author :), great hack for those who need it.
Jenta
04-09-2005, 10:31 AM
Lol, ive got about this same script in a 10 or so line cron script. Would basically be the same thing if I added variables for its configuration in the admin control panel.
Took about 5 or so min to code..
*sigh*
This != hotm
ROFLMAO @ U
Mephisteus
04-09-2005, 12:15 PM
Lol, ive got about this same script in a 10 or so line cron script. Would basically be the same thing if I added variables for its configuration in the admin control panel.
Took about 5 or so min to code..
*sigh*
This != hotm
note:
not putting down author :), great hack for those who need it.
1. That goes for almost every hack
2. I higly doubt you got this in a 10 line cron script :p. Really...
Trigunflame
04-10-2005, 12:24 AM
1. That goes for almost every hack
2. I higly doubt you got this in a 10 line cron script :p. Really...
Short of the text replacement (which is 5 lines), and the 4 variables each on 1 line.
Query is ran:
SELECT userid, signature FROM usertextfield WHERE signature <> ''
The code simply checks returned signature for string length, (how many of 3 types of bbcode I monitor are inside the signature), if any 1 violates the limit, the signature is changed with the text replacement.
Nothing I would install an entire hack to replace, maybe im just lazy..
Have you actually read through the feature list? Please do and edit your posts :)
I downloaded it, but I was very confused with the mysql part, otherwise I really love the idea, but i just cant't afford to screw up my database, something that is very possible, when I didn't understand the instructions :-S
I click install anyways and hopes that a final version with better / easier mysql instructions exists then :)
Scerina
04-10-2005, 07:07 PM
Can someone help me out here? How do you add an Real PHP Cron Job? This paragraph confused me...
Next set the values for your database at the top
of the script you are using then place it in the
path that you want it to be called from. Then do
a system call to add the task to your cron.
someone care to explain?
Scerina
04-10-2005, 07:36 PM
i cant see anything on admincp admin signature guardian section
Scerina
04-10-2005, 07:44 PM
i need help on my lang mysql query part
i just messed up on it...
Scerina
04-10-2005, 08:24 PM
i fix the last co uple of issues but the cron job wordin in admin cp...i cant view it...i only see the path to my monitor.php and other stuff but no descriptions
MPDev
04-11-2005, 12:48 PM
Lol, ive got about this same script in a 10 or so line cron script. Would basically be the same thing if I added variables for its configuration in the admin control panel..
Wow, you did all this in 10 lines of code? That's simply amazing! You must be an ubber-coder to get that much functionality out of 10 lines of code. No, really, you must post these 10 lines of code which duplicate all the functionality of this script so that us mere mortals can learn from someone with such mastery of scripting.
Sure my Dodge Viper has four wheels and a motor, but that doesn't mean its the same thing as your Geo Traacker.
Marco van Herwaarden
04-11-2005, 12:56 PM
Lol he didn't mention how long these lines are, not the fact it will only work on MySQL7.3Beta4/PHP9.0.1
But serious. If you take out all the settings and just focus on some fixed limitations, i guess you could code it in a few lines cronjob.
Trigunflame
04-11-2005, 01:20 PM
I format my code as to be easily readible ie (function and brackets on seperate lines), plus the comments...
However if you inline the code and IF() calls, remove comments, and disregard the variables/replace text.. the core script works out to about 9-10 lines.
The starting PHP, and ending PHP are just routine cron sanity check, and then logging if enabled... in cronjob setting.
<?php
error_reporting(E_ALL & ~E_NOTICE);
if (!is_object($DB_site)) { exit; }
// Max Sigs
$maxSigs = 3;
$maxSpoilers = 2;
$maxQuotes = 1;
// Message To Display
$message = "Your signature has been removed due to signature violation.
Signatures are limited to a maximum of $maxSigs images, a maximum
of $maxSpoilers spoilers, and a maximum of $maxQuotes quote tags.
Please remake your signature with the limit in mind.
Note: This has been done via auto Signature Removal.
";
// Signature Query
$signatures = $DB_site->query("SELECT userid, signature FROM usertextfield WHERE signature <> ''");
// Loop Signatures
$total = 0;
while ($signature = $DB_site->fetch_array($signatures))
{
$sig = strtolower($signature['signature']);
if (
substr_count($sig,'[img') > $maxSigs OR
substr_count($sig,'[spoiler') > $maxSpoilers OR
substr_count($sig,'[quote') > $maxQuotes
)
{
$total++;
$DB_site->query(
"UPDATE " . TABLE_PREFIX . "usertextfield " .
"SET signature = '" . $message . "' " .
"WHERE userid = '". $signature['userid']. "'"
);
}
}
// Finished
if ($total)
{
log_cron_action("[#$total] Signatures with violations have been removed.", $nextitem);
}
else
{
log_cron_action('No Signatures found in violation.', $nextitem);
}
?>
PS. I never said it "had" all the functionality of the Thread Authors script..
I just said I wouldn't install an entirely new hack over my simple crontab I have now..
MPDev
04-11-2005, 01:30 PM
Wow, this script really does do everything the mod posted does - and more! I'm impressed. Take out the configuration items, the comments and the line breaks and you really did it in 10 lines. A work of art. Feature for feature your script kicks this mod's butt in simplicity and ease of implentation. Thank you for sharing this genius piece of work.
PS. I never said it "had" all the functionality of the Thread Authors script..
I just said I wouldn't install an entirely new hack over my simple crontab I have now..
No, that's not what you said. You said, "Lol, ive got about this same script in a 10 or so line cron script. Would basically be the same thing if I added variables for its configuration in the admin control panel.."
Even going to the effort of "laughing out loud" before you made your claim of writing this script in "10 lines or so" and that it would "basically be the same thing".
Marco van Herwaarden
04-11-2005, 01:39 PM
Well your code is not configurable per usergroup/user.
Your code does not control who can SEE signatures.
It don't work real time.
No 'Soft' remove
No moderating of Sig's
No statistics
No Limitation in number of lines
No group control over smily usage
No control over number of smilies
No control over which BB-codes are allowed
.......
Could go on for more then 10 lines like this ;)
Seems i need more then 10 lines to describe what your code is missing.
PS Not trying to burn you down now, but you really did ask for a reaction like this.
why-not
04-11-2005, 03:13 PM
This post was not meant as a reply to or centered at MarcoH64 I apologize if that is how it sounded, it is a reply to the person who keeps making accounts on my demo forum just to PM me really dumb, rude comments!
One of them PMS
PM SENT:
You know your mod really sucks and should not be allowed to be posted at
vb...org. You copied the guy that made this mod for phpBB and did not give
him any credit. Plus your mod don't work at ell!
If you think I copied anyones mod please show where my code is like person you said I copied. You will not find it, because I did not copy anyone's code!
I will answer each of your comments any ways!
Your code does not control who can SEE signatures.
Yes it does, I think your confused!
Go here without being logged in, you can not see any signatures! (configured per group)
http://forum.ya-right.com/index.php?
No Limitation in number of lines
http://24.91.149.80/sig/lines.png
The following (2) are the same (per group)
No group control over smily usage
No control over number of smilies
http://24.91.149.80/sig/smilies.png
No control over which BB-codes are allowed
http://24.91.149.80/sig/bbcode.png
The following is part of the Admin Panel that has not been released with the Beta version...
This includes...
Mod and Admin forum controls (validate signatures when browsing the forum)
Statistics (part of the Admin Panel, update (2) soon to be released!)
Signature Admin Panel
Stats...
total images, total unique links in signatures, search signatures by.. (size, image size, text size)
Admin Configuration!
Cron control
Set Ban Limits
Set Ban Duration
Set Configuration of....
Bad word filter... (user db, or file system to maintain lists)
Domain blocking... (user db, or file system to maintain lists)
Sonia
MPDev
04-11-2005, 03:56 PM
No, no, why-not; he is talking about the guy above us who says his 10 lines of code does everything yours does. He wasnt directing his comments towards you.
Protoman
04-11-2005, 08:22 PM
I commend why-not for even releasing this. nobody else has for vbulletin so I see no reason to complain. very few mods get 9 pages of requests like this has.
Marco van Herwaarden
04-11-2005, 09:21 PM
No, no, why-not; he is talking about the guy above us who says his 10 lines of code does everything yours does. He wasnt directing his comments towards you.MPDev got it right Sonia, i was reacting on the claim that your hack could have been written in 10 lines in a cronjob.
I was summing up some features your hack have that where missing from the given example 10-line cronjob.
I was defending your hack, not attacking it.
Hope this reply have cleared the sky again.
PS I haven't been sending you PMS ;)
@All
Please stick to discussing Sonia's hack, and let's stop hijacking this thread for posting alternative ways. If you can make the same functionality in a better hack, please write it and post it in it's own thread.
@Sonia
Sorry we let your thread got hijacked.
Hi I have a problem and I can't seem to find the error i have made.
1. I don't get any option for the signature manager in the Admin control panel.
2. By typing in the url to signature.php i get the following screen:
https://vborg.vbsupport.ru/
Any pointers greatly appreciated
Marco van Herwaarden
04-12-2005, 08:26 AM
Looks like your Phrases are not installed.
Scerina
04-12-2005, 01:21 PM
i got the same probelm as mitch...how do u install phrases? and am gettin mySQL errors when i try to validate my signature ... can somene help me?
Reeve of shinra
04-12-2005, 01:35 PM
The screen shots look promising. Keep up the good work.
why-not
04-12-2005, 02:16 PM
Hi I have a problem and I can't seem to find the error i have made.
1. I don't get any option for the signature manager in the Admin control panel.
2. By typing in the url to signature.php i get the following screen:
http://mith.pwp.blueyonder.co.uk/images/error.jpg
Any pointers greatly appreciated
First you must install the link to the signature manger in your index.php admin script, you can not directly link to the permissions page because you are by-passing the signature build groups control which will cause database errors!
First....
Go to...
./admincp/index.php
FIND THIS...
construct_nav_option($vbphrase['promotions'], "usergroup.php?do=modifypromotion", '<br />');
REPLACE ABOVE WITH
construct_nav_option($vbphrase['promotions'], "usergroup.php?do=modifypromotion", '<br />');
construct_nav_option($vbphrase['signature_permissions'], "signature.php?do=manage", '<br />');
Then go to your admin panel....
Admin Panel => Languages & Phrases => Language Manager => click 'Rebuild All Languages'
Then refresh the (LEFT NAV FRAME) in your admin panel to get the signature manager link to appear under Usergroup, if it's not being shown!
If you do all the edits before trying to run anything you will not have any problems, if you still have trouble, contact me (PM) and I will help you!
Sonia
Eternal2u
04-12-2005, 05:45 PM
a suggestion for your mod is as follows..:
Make it were the signature permissions can be added to multiple usergroups at once..
in otherwords make it where you DO NOT have to go one by one on each usergroup for the signature permissions..
because i don't know about other sites, but i have in excess 20+ usergroups that are everythign from limited avatars, to limited signatures, to banned usergroups/jailed usergroups..to different colored moderater ranks, and more..
and manually goign one by one would take WAY too much time.
Darmak
04-12-2005, 06:54 PM
I have this error message when i try to edit my signature:
Database error in vBulletin 3.0.7:
Invalid SQL: INSERT INTO monitor VALUES ( 6, 1, '', '' ) ON DUPLICATE KEY UPDATE images = '', bad = ''
mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'ON DUPLICATE KEY UPDATE images = '', bad = ''' at line 1
mysql error number: 1064
Marco van Herwaarden
04-12-2005, 06:58 PM
@Darmak
What MySQL version are you running? the ON DUPLICATE was introduced in MySQL 4.1 if i recall correct.
Darmak
04-13-2005, 03:13 AM
@Darmak
What MySQL version are you running? the ON DUPLICATE was introduced in MySQL 4.1 if i recall correct.
i running mysql 4.0.24 :(
why-not
04-13-2005, 05:47 AM
i running mysql 4.0.24 :(
Hi Darmak
Just download the zip file attached, and replace your current signature include files functions_signature.php and adminfunctions_signature.php with the ones included in this zip file!
NOTE: ONLY FOR MySQL Server 4.0.24
Enjoy...
Sonia
Marco van Herwaarden
04-13-2005, 06:05 AM
Then you must hope for Sonia to update her hack to support older MySQL versions.
Edit: Oops never noticed that Sonia was faster with a solution then i was with my reply. :D
why-not
04-13-2005, 06:26 AM
a suggestion for your mod is as follows..:
Make it were the signature permissions can be added to multiple usergroups at once..
in otherwords make it where you DO NOT have to go one by one on each usergroup for the signature permissions..
because i don't know about other sites, but i have in excess 20+ usergroups that are everythign from limited avatars, to limited signatures, to banned usergroups/jailed usergroups..to different colored moderater ranks, and more..
and manually goign one by one would take WAY too much time.
Hi
I am doing this for the final release, just like Usergroups you can inherit another groups permissions so as to save time not having to configure each group with a new set of permissions! Tere will also be a multi select box at the bottom on the permissions configuration page that will be shown if there are other groups that inherit the same permissions!
After the final release I will be doing another plugin that will allow for multi groups for each user, so a user can be a member of many groups and have different permissions based on forum and permissions that s/he has for the forum they are currently accessing. That will be as far as will be going with this mod, besides keeping it updated until the need for it has been replaced with a better vBulletin control.
Thanks for your input, it will help me make this better for everyone!
Sonia
Darmak
04-13-2005, 08:13 AM
Hi Darmak
Just download the zip file attached, and replace your current signature include files functions_signature.php and adminfunctions_signature.php with the ones included in this zip file!
NOTE: ONLY FOR MySQL Server 4.0.24
Enjoy...
Sonia
Thank you =D
why-not
04-13-2005, 12:03 PM
Fix (2) coding errors!
1. Array to String error for bbcode SIZE tag.
2. Missing dot operator for smilies path.
NOTES:
1. If I have installed this on your forum or fixed a install then you do not need to do this!
2. Darmak or anyone else that I gave MySQL version 3 or 4 files to, do not need these edits!
Everyone else should do this!
Open './includes/functions_signature.php'
FIND THIS
$errors[] = construct_phrase ( $vbphrase['sig_editor_size_bbc'], $in[$i], $code['size'][0], $code['size'][1] );
REPLACE WITH
$errors[] = construct_phrase ( $vbphrase['sig_editor_size_bbc'], $in[1][$i], $code['size'][0], $code['size'][1] );
close and save './includes/functions_signature.php'
Open './includes/adminfunctions_signature.php'
FIND THIS
$path = ( substr ( $path, -1 ) != '/' ? '/' : '' );
REPLACE WITH
$path .= ( substr ( $path, -1 ) != '/' ? '/' : '' );
close and save './includes/adminfunctions_signature.php'
Done with error edits!
Sonia
Mephisteus
04-13-2005, 01:43 PM
Two bugs I found
It doesnt seem to do any of the signature image checks (with the exception the domain restriction which is missing the help file so far :P). And the domain check is bugged in the way that https://vborg.vbsupport.ru/ doesnt work (properly restricted) but https://vborg.vbsupport.ru/ does work (avoids check). And as said, the signature image doesnt get checked for the size, height and width
why-not
04-13-2005, 04:46 PM
Two bugs I found
It doesnt seem to do any of the signature image checks (with the exception the domain restriction which is missing the help file so far :P). And the domain check is bugged in the way that http://www.duhweb.com/sig.duh doesnt work (properly restricted) but www.duhweb.com/sig.duh does work (avoids check). And as said, the signature image doesnt get checked for the size, height and width
Which one is not getting checked! Please give a real example because both of those you gave will not help me find what the problem is, if there is any!
This would not be checked because it would be a error...
{img}http://www.duhweb.com/sig.duh{/img}
:S/ERROR:
A [IMG] link is invalid or using a unsupported (image extension). We only allow [gif, jpg, png, jpeg] for image type linking.
If the extension was valid you would get this error! If the image was not found
A invalid {IMG} link (http://www.duhweb.com/sig.gif) was found.
:E/ERROR:
This would not be checked because it is not a valid img url, it missing the protocol (http://...), so the signature control will not even validate it because it will never be displayed as a image!
{img}www.duhweb.com/sig.duh{/img}
The signature control will only validate a IMAGE that is contained in valid BBCODE or valid HTML code if that is turned on. There is no need to validate IMAGE links that are not valid because they will not be converted! if you want to validate {img}www.duhweb.com/sig.duh{/img} then I will add it for you personally, but I won't add it to the Final release because it is wasteful resources being used. Why, because I would have to guess where the image is (http, https, ftp, ftps) which would result in (4) remote calls because the person is to lazy to add the protocol to the image tag!
So like I said give me a real working example, because I am not very good at guessing!
Oh, ya....
I forgot the HELP file for all the options (Domain blocking configuration and the rest of the options) will be up tonight, plus the HELP phrases will be added tonght so you can add them to the Admin Panel if you want!
Sonia
Protoman
04-16-2005, 01:40 PM
error in phrases:
INSERT INTO phrase VALUES ('', -1, 'vb_sig_rules_changed', 'My must I revalidate my signature?', 7000);
should be :
INSERT INTO phrase VALUES ('', -1, 'vb_sig_rules_changed', 'Why must I revalidate my signature?', 7000);
phrase:
INSERT INTO phrase VALUES ('', -1, 'sig_editor_spaces', 'To many line breaks in a row. You are allowed <strong>{1}</strong> line breaks in between lines that contain content.', 11);
should be:
INSERT INTO phrase VALUES ('', -1, 'sig_editor_spaces', 'Too many line breaks in a row. You are allowed <strong>{1}</strong> line breaks in between lines that contain content.', 11);
note I have no DB prefix.
edit: more issues!
the phrase signature_permissions would not display as a Control Panel homepage type. I had to make it a CP global before it would display.
I have the same issue mentioned above, it doesn't check the image's dimensions at all using proper img tags and gives this error:
A [IMG] link is invalid or using a unsupported (image extension). We only allow [gif, jpg, png, jpeg] for image type linking.
Mike343
04-19-2005, 06:52 PM
Hey I am getting this error, if I get time tonight I will look into your for statement but if you happen to fix it before then let me know
Warning: Invalid argument supplied for foreach() in /includes/adminfunctions_signature.php on line 560
Thanks, Mike
For those of you that are getting blank menu's and you followed the instructions, you need to refresh your phrases.
Easiest way is to go and edit any one of the phrases in your phrase manager, BUT DO NOT CHANGE anything in it. Just save it.
This will force a refresh. Then refesh your admincp window and you should be all set.
Hm. Now I have to figure out what to do. If I force the validation of off-site images, then those that have used my siguploader hack lose the ability to have their sigs. :/
Reason being, the sig uploader hack will spit out the text you need to put in so it points at your sig. But its formatted as hxxp://www.website.org/forums/image.php?blahblahblahblahblah
So its invalid.
/sigh
FightRice.com
04-29-2005, 10:34 PM
Is the install files going to become any easier? I couldn't install this becuase of this, (Not that its hard to open each install instruction .txt file, but becuase i'm to lazy i guess)
And i definetly don't understand what to do with the cron stuff
WebMasterAJ
04-30-2005, 01:56 AM
I've been waiting for this hack ever since I went to vB3. Has the big upgrade come around?
why-not
04-30-2005, 11:47 AM
I've been waiting for this hack ever since I went to vB3. Has the big upgrade come around?
Sorry I am a little slow. But I am almost there, finished I mean! I had to rewrite the secondary user group permissions so it's taking me more time than what I thought it would. This is because I want this mod to be able to work side by side with vB(s) default permissions, so as to not just overwrite the vB default permissions but to allow for both the default vB permissions and my advanced permissions to work without having to do code edits again and again. Also because this deals with most every posting form it must do things one way for a certain request and then do things differently for another request, so it's more complex than just adding a new feature! Almost 3,000 lines of code should tell you how complex it is!
God Bless
Sonia
WebMasterAJ
05-01-2005, 09:56 PM
Awesome. No Rush IMO. I rather it be more complete :cool:
Thanks for all your hard work!
I have a user that is getting the following error when trying to edit his sig:
There seems to have been a slight problem with the SprintUsers.com database.
Please try again by pressing the refresh button in your browser.
An E-Mail has been dispatched to our Technical Staff, who you can also contact if the problem persists.
We apologise for any inconvenience.
<html><head><title>SprintUsers.com Database Error</title><style type="text/css"><!--.error { font: 11px tahoma, verdana, arial, sans-serif; }--></style></head>
<body></table></td></tr></table></form>
<blockquote><p class="error"> </p><p class="error"><b>There seems to have been a slight problem with the SprintUsers.com database.</b><br />
Please try again by pressing the <a href="javascript:window.location=window.location;">refresh</a> button in your browser.</p><p class="error">An E-Mail has been dispatched to our <a href="mailto:vbdb2004@sprintusers.com">Technical Staff</a>, who you can also contact if the problem persists.</p><p class="error">We apologise for any inconvenience.</p></blockquote>
<!--
Database error in vBulletin 3.0.7:
Invalid SQL: INSERT INTO monitor VALUES ( 22, 331, '', '' );
mysql error: Duplicate entry '331' for key 1
mysql error number: 1062
Any ideas? Thanks for an AMAZING hack!!!
dsboyce8624
05-11-2005, 03:21 PM
Okay, I really want this. I just want to know if the downloadable file at the top is the complete package (has it been updated), or do I need to go through the thread again after and apply all the chages I saw (yes I read the thread before I install.)
Thanks,
I have a user that is getting the following error when trying to edit his sig:
There seems to have been a slight problem with the SprintUsers.com database.
Please try again by pressing the refresh button in your browser.
An E-Mail has been dispatched to our Technical Staff, who you can also contact if the problem persists.
We apologise for any inconvenience.
Any ideas? Thanks for an AMAZING hack!!!
Any ideas on my post above?
dsboyce8624
05-19-2005, 05:36 PM
Okay, I really want this. I just want to know if the downloadable file at the top is the complete package (has it been updated), or do I need to go through the thread again after and apply all the chages I saw (yes I read the thread before I install.)
Thanks,
Hello?
I'm wondering the same thing. Also the way you've given the install intructions in the package is a pain...
nexialys
05-22-2005, 10:11 AM
strange, i was able to install this without a single problem... anyway, i hope to see the update soon, as it's in beta stage actually...
dsboyce8624
05-22-2005, 05:12 PM
strange, i was able to install this without a single problem... anyway, i hope to see the update soon, as it's in beta stage actually...
I haven't tried yet, but I have in the past had problems because rather than updating the first post with fixes or changes they are scattered throughout the thread. It has caused me to be more cautious.
Protoman
05-22-2005, 08:48 PM
I still have problems with this.. it can't limit the size of images. I turn the 'validate image links' on and it just says
A invalid [IMG] link (http://www.mini-itx.com/projects/amdcase/images/amdcase-0006.jpg) was found.
swantonio
05-25-2005, 09:24 PM
Database error in vBulletin 3.0.6:
Invalid SQL: UPDATE vb3_user AS u LEFT JOIN vb3_usertextfield AS t ON (u.userid = t.userid) SET u.access = 2 WHERE u.usergroupid = 10 AND u.access = 1 AND t.signature <> ''
mysql error: You have an error in your SQL syntax near 'AS u LEFT JOIN vb3_usertextfield AS t ON (u.userid = t.userid) SET u.access = 2 ' at line 1
mysql error number: 1064
Date: Thursday 26th of May 2005 12:19:16 AM
Script: http://www.losmuertos.biz/forum/admincp/signature.php
Referer: http://www.losmuertos.biz/forum/admincp/signature.php?s=&do=edit&usergroupid=10
Username: LOSMUERTOS SWAN
ERRORE HELP :ermm:
SharpDoggy
05-25-2005, 09:40 PM
I am a little confused with the conjob...do I type:
curl -q /dev/null http://<url>.com/monitor.php
or
curl -s -o /dev/null http://<url>.com/monitor.php
or is it something totally different? (This is in my cron options in cpanel)
also:
what does this mean:
Before you do anything, open the script that you
will be using. Set the #bang bang line# to point
to your scripts interperter.
I'm guessing it is for the #!/usr/bin/php -q line, but what would I need to change and where do I find the "scripts interperter" ???
Marco van Herwaarden
05-26-2005, 05:01 AM
ERRORE HELP :ermm:What MySQL version are you using?
swantonio
05-26-2005, 09:00 AM
What MySQL version are you using?
Apache/2.0.53 (Fedora)
PHP Version 4.3.11
MySQL Version 3.23.58-log
Marco van Herwaarden
05-26-2005, 09:21 AM
I think the multi table UPDATE syntax was added in MySQL 4.0.4
This means that either you can not use this hack, or the coder would have to come up with an alternative for this statement.
roundhost
05-26-2005, 03:58 PM
Is this hack ok with vb 3.0.3 ?
I still have problems with this.. it can't limit the size of images. I turn the 'validate image links' on and it just says
i have been getting that same issue. Even though the link is valid, it won't work correctly.
The following errors occurred when this message was submitted:
1. A invalid [IMG] link (http://miniprofile.xfire.com/bg/sf/type/1/thejaxx.png) was found.
Protoman
05-27-2005, 01:56 PM
maybe I'll write the quick sig size (https://vborg.vbsupport.ru/showthread.php?t=60354) hack into this one so that part works correctly. :ermm:
dsboyce8624
05-27-2005, 10:54 PM
I really want to use this, but why-not hasn't been here in a while and I don't want to mucking around when she finally shows up with an update.
Somebody give her a virtual smack and let her know that many of us are waiting for this update she talked about.
Crypticel
05-28-2005, 02:48 AM
I'm still waiting on this too. I could really use this, but I don't want to install now if the update really is going to arrive.
Protoman
05-30-2005, 12:20 AM
I just went to another mod here that limits the total lines in a signature.. not a perfect fix but it works.
I've started getting the following after my host did something with updates. Not quite sure whats going on:
Notice: Undefined variable: mysql_free_result in /home/ahaziorg/public_html/forums/includes/cron/monitor.php on line 24
Fatal error: Call to undefined function: () in /home/ahaziorg/public_html/forums/includes/cron/monitor.php on line 24
Spinball
06-12-2005, 07:26 AM
why-not has not posted on this forum since May 4th. Seems to me that considering his/her promise to update this hack in very early May, something has happened which has made why-not unable or unwilling to participate here.
I (probably like many others) have been waiting well over a month for the full release of this hack and I'm beginning to think it's not going to happen.
Does anyone know why-not and/or shed any light in his/her mysterious disappearance?
yoyoyoyo
06-16-2005, 03:39 AM
why-not has not posted on this forum since May 4th. Seems to me that considering his/her promise to update this hack in very early May, something has happened which has made why-not unable or unwilling to participate here.
I (probably like many others) have been waiting well over a month for the full release of this hack and I'm beginning to think it's not going to happen.
Does anyone know why-not and/or shed any light in his/her mysterious disappearance?I would like to see an update of this hack as well.
danrak
06-27-2005, 12:45 PM
MySQL version 4.0.23-standard
Recieving the following error:
Database error in vBulletin 3.0.7:
Invalid SQL: INSERT INTO monitor VALUES ( 9, 29430, '', '' ) ON DUPLICATE KEY UPDATE images = '', bad = ''
mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'ON DUPLICATE KEY UPDATE images = '', bad = ''' at line 1
mysql error number: 1064
Date: Monday 27th of June 2005 07:51:18 AM
Script: http://www.techsupportforum.com/profile.php
Referer: http://www.techsupportforum.com/profile.php?do=editsignature
I saw this user said he was getting the same thing (https://vborg.vbsupport.ru/showpost.php?p=639936&postcount=53) but the fix was for 4.0.24 not 4.0.23 Will I still be able to run this patch with no problems?
BTW, so far seems like a great hack. My "sig cop" is a happy guy now.
VBUsers
07-15-2005, 10:18 AM
ok i did all the edits to the files and everything seems fine. i went ahead and changed all the phrases to the proper prefix that im using. i installed the phrases thru Mysql and it said successful. but when i go to the hack in my admincp theres nothing there. i see a little space on where the letters are suppose to be but not how it should look. i then click the space and it shows me all of the usergroups (so i can change the settings per group) i then click the usergroup i want to change but there is no text in there. the filds are there but nothing else. please help i dont know what to do. i tried loading the lang file thru mysql and it says duplicate everytime. what can i do?
GameWizard
07-21-2005, 07:58 AM
Just out of curiosity, the first post in a thread shows the message telling the user to change his sig. However, any more posts in that same thread made by the same user will display the signature.
Now I can't seem to figure out if this is a feature or a bug. :ermm:
GameWizard
08-07-2005, 08:36 PM
Also I noticed it doesnt check for how many images I use. I set the limit to 2, it lets me use as many as I want.
I'm using the [IMG] tags, which are allowed. But the limits aren't being enforced.
Noonster
08-08-2005, 08:33 PM
I am a little confused with the conjob...do I type:
curl -q /dev/null http://<url>.com/monitor.php
or
curl -s -o /dev/null http://<url>.com/monitor.php
or is it something totally different? (This is in my cron options in cpanel)
also:
what does this mean:
Before you do anything, open the script that you
will be using. Set the #bang bang line# to point
to your scripts interperter.
I'm guessing it is for the #!/usr/bin/php -q line, but what would I need to change and where do I find the "scripts interperter" ???
Anyone help with this as I also need to know??
Thanks
madmaca
08-09-2005, 04:57 PM
I installed it but want to use a php script for rotating the sig images (on refresh) - but this hack prevents using the .php extension inside a [IMG] tag :(
Any ideas of a way around this?
madmaca
08-09-2005, 10:27 PM
Also when anyone tries to include a URL link in their signature they get the following error:
"Warning: in_array(): Wrong datatype for second argument in /includes/functions_signature.php on line 565
Warning: implode(): Bad arguments. in /includes/functions_signature.php on line 567"
And then:
The following errors occurred when this message was submitted:
A [U RL] link is missing or using a unsupported (HTTP PROTOCOL). We only support [] type [U RL] links.
The sig in question looks like this:
[U RL=http://www.bbc.co.uk][I MG]http://www.domain.com/madmac/sigs/6.jpg[/I MG][/U RL]
:confused:
HELP!?
Zain Jaffer
08-09-2005, 10:39 PM
Is this mod still getting supported?
b/c why-not his Last Activity was 13. May 2005... and the demo site is also down.
I would like to try this mod but i am not so sure if its so smart. Many ppl got problems and my database is damn big so if it goes wrong =/
Selene
08-09-2005, 11:44 PM
ok i installed this hack
now few problems
1) i have for registrered usergroup "enabled" the sig hack....and i set the image max to 400x80 pixels....
then as a normal registered user i tried to put a IMG in sig and even tho it was bigger than 400x80 it did put it...
and for many registered users i still see the "big" images they are using as sig...
why isnt it getin removed or they gettin the sig msg?
phiber
08-19-2005, 02:56 PM
Please update it, we really need it :)
yahoooh
08-20-2005, 04:35 AM
me too
ultranerds
08-26-2005, 05:53 AM
Hi,
Great mod.. if I can get it to work :/
Phrases are defo installed into the DB;
SQL-query
SELECT * FROM phrase ORDER BY phraseid LIMIT 7820, 20
( 7834 records in total ) Save Result
< Previous page > < Top page >
Goto Page: of 392
phraseid languageid varname text phrasetypeid
95868 -1 times_smilies times 11 Edit Delete
95869 -1 sig_editor_not_url A [<strong>{1}</strong>] linking to domain: <strong>{2}</strong>, is not in our list of domains allowed [<strong>{1}</strong>] linking access! 11 Edit Delete
95870 -1 sig_editor_denied_url A [<strong>{1}</strong>] linking to domain: <strong>{2}</strong>, is in our list of domains denied any [<strong>{1}</strong>] linking access! 11 Edit Delete
95871 -1 sig_editor_max_url Signature contains <strong>{1}</strong> [<strong>{2}</strong>] link(s). The total number of allowed [<strong>{2}</strong>] link(s) is <strong>{3}</strong>. 11 Edit Delete
95872 -1 sig_editor_link_invalid A invalid [<strong>{1}</strong>] link <strong>(</strong>{2}<strong>)</strong> was found. 11 Edit Delete
95873 -1 sig_editor_image_protocol A [<strong>{1}</strong>] link is missing or using a unsupported <strong>(</strong>HTTP PROTOCOL<strong>)</strong>. We only support [<strong>{2}</strong>] type [<strong>{1}</strong>] links. 11 Edit Delete
95874 -1 sig_editor_image_ext A [<strong>{1}</strong>] link is invalid or using a unsupported <strong>(</strong>image extension<strong>)</strong>. We only allow [<strong>{2}</strong>] for image type linking. 11 Edit Delete
95875 -1 sig_editor_image_size A [<strong>IMG</strong>] link, point to <strong>(</strong>{1}<strong>)</strong> is <strong>{2}</strong> bytes in size, that is <strong>{3}</strong> bytes over the allowed limit of <strong>{4}</strong> bytes. 11 Edit Delete
95876 -1 sig_editor_image_height A [<strong>IMG</strong>] link, point to <strong>(</strong>{1}<strong>)</strong> is <strong>{2}</strong> pixels in <strong>height</strong>, that is <strong>{3}</strong> pixels over the allowed limit of <strong>{4}</strong> pixels. 11 Edit Delete
95877 -1 sig_editor_image_width A [<strong>IMG</strong>] link, point to <strong>(</strong>{1}<strong>)</strong> is <strong>{2}</strong> pixels in <strong>width</strong>, that is <strong>{3}</strong> pixels over the allowed limit of <strong>{4}</strong> pixels. 11 Edit Delete
95878 -1 sig_editor_image_text Line <strong>{1}</strong> has both images and text. The line length is <strong>{2}</strong>, that is <strong>{3}</strong> over the maximum of <strong>{4}</strong> that is allowed. 11 Edit Delete
95879 -1 sig_next_user Show: {1} - {2} / {3} 2 Edit Delete
95880 -1 sig_sort_user Sort: Username {1} 2 Edit Delete
95881 -1 sig_quick_nav {1} {2} <input type='submit' name='nav' class='button' value='Go!' /> 2 Edit Delete
< Previous page > < Top page >
.. yet in my admin panel.. they show up as "blanks"
Even this (in /admincp/index.php);
construct_nav_option($vbphrase['signature_permissions'], "signature.php?do=manage", '<br />');
..didn't work :/
I had to change it to this, before I could even get into the settings :|
construct_nav_option($vbphrase['signature_permissions'].' Sig Settings', "signature.php?do=manage", '<br />');
PLEASE PLEASE PLEASE can someone give me a hand?
TIA
boozehound
08-26-2005, 01:41 PM
You just needed to edit a phrase to rebuild the phrase cache ;)
Zain Jaffer
08-27-2005, 11:26 AM
ok i installed this hack
now few problems
1) i have for registrered usergroup "enabled" the sig hack....and i set the image max to 400x80 pixels....
then as a normal registered user i tried to put a IMG in sig and even tho it was bigger than 400x80 it did put it...
and for many registered users i still see the "big" images they are using as sig...
why isnt it getin removed or they gettin the sig msg?
i got the exact same problem for the rest it works fine...
Death Reaper
08-29-2005, 07:43 PM
This mod looks great, any chance it will be upgraded to 3.5? Right now that's the only thing holding me back from upgrading..
Regards,
Zain Jaffer
08-30-2005, 09:02 PM
it looks like the mod doesn't get suported anymore... so don't count on it. It would be nice if the some off the bugs got fixed and it would get ported...
Zain Jaffer
09-03-2005, 01:24 PM
i have been getting that same issue. Even though the link is valid, it won't work correctly.
The following errors occurred when this message was submitted:
1. A invalid [IMG] link (http://miniprofile.xfire.com/bg/sf/type/1/thejaxx.png) was found.
did somebody find a solution tho this? I got the same problem that some urls aren't working when they should =/
Abe Babe
09-09-2005, 07:53 AM
I guess this isn't supported anymore ... pity, it's quite a nice hack.
The only problem that I found was the same as the Jaxx had posted, that it doesn't recognize some URLs, even though they are valid. I had the same problem pointing to 3 different images on the same domain.
On doing some research and trying to elimate certain sections of the code [keep in mind, I'm not a coder, so I was kind of hit/missing as I only had this hack enabled for admins anyways], I found that the error was occurring if a file name had capitals in it. When I renamed the file to lowercase, it found the image.
I don't know anything about image checking functions, but maybe this information can be helpful to someone who does.
Abe Babe...
Zain Jaffer
09-21-2005, 03:50 PM
mmm if there is a fix for that i would really like it
NeoGameTavern
10-26-2005, 06:23 PM
I'm confused about how to install this....there doesn't seem to be a single instruction file explaining what edits to make or where to put what files.
Datenpapst
11-26-2005, 09:31 AM
This should be a standard option in the next vB Release.
Pretty good job, we'll be looking forward till the final release :)
oh yeah HOTM!
why-not is it possible that you help me with installing the script? :) Please
Spinball
11-26-2005, 10:28 AM
I guess this isn't supported anymore ... pity, it's quite a nice hack.
It never was supported. It never was finished.
why-not is it possible that you help me with installing the script? :) Please
Why-not has not been on this forum for over 6 months. Someone else needs to pick up this hack and complete it.
Datenpapst
11-26-2005, 01:49 PM
Hmmm... not good, does anyone know how to install the actual script?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.