vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=34)
-   -   Signature Guardian Version 1 (Beta Released) (https://vborg.vbsupport.ru/showthread.php?t=79566)

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

Quote:

Originally Posted by MPDev
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.

Mith 04-12-2005 08:21 AM

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

Quote:

Originally Posted by Mith
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...

Code:

                construct_nav_option($vbphrase['promotions'], "usergroup.php?do=modifypromotion", '<br />');
REPLACE ABOVE WITH
Code:

                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:

Code:

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

Quote:

Originally Posted by MarcoH64
@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

Quote:

Originally Posted by Darmak
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

Quote:

Originally Posted by Eternal2u
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

Quote:

Originally Posted by why-not
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

Code:

                                        $errors[] = construct_phrase ( $vbphrase['sig_editor_size_bbc'], $in[$i], $code['size'][0], $code['size'][1] );

REPLACE WITH

Code:

                                        $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

Code:

        $path = ( substr ( $path, -1 ) != '/' ? '/' : '' );

REPLACE WITH

Code:

        $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

Quote:

Originally Posted by DarkSSJ3
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 [img ]http://www.duhweb.com/sig.duh[/img] doesnt work (properly restricted) but [img ]www.duhweb.com/sig.duh[/img] 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:
PHP Code:

INSERT INTO phrase VALUES ('', -1'vb_sig_rules_changed''My must I revalidate my signature?'7000); 

should be :
PHP Code:

INSERT INTO phrase VALUES ('', -1'vb_sig_rules_changed''Why must I revalidate my signature?'7000); 


phrase:
PHP Code:

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:
PHP Code:

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

Jaxx 04-28-2005 11:34 PM

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.

Jaxx 04-28-2005 11:38 PM

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

Quote:

Originally Posted by WebMasterAJ
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!

Lee 05-10-2005 10:59 AM

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.

Quote:

<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">&nbsp;</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,

Lee 05-12-2005 11:14 AM

Quote:

Originally Posted by speedpro50
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

Quote:

Originally Posted by dsboyce8624
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?

WiBu 05-22-2005 08:41 AM

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

Quote:

Originally Posted by nexialys
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
Quote:

A invalid [IMG] link (http://www.mini-itx.com/projects/amd...dcase-0006.jpg) was found.

swantonio 05-25-2005 09:24 PM

Quote:

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/admi...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

Quote:

Originally Posted by swantonio
ERRORE HELP :ermm:

What MySQL version are you using?

swantonio 05-26-2005 09:00 AM

Quote:

Originally Posted by MarcoH64
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.


All times are GMT. The time now is 07:41 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01555 seconds
  • Memory Usage 1,869KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (7)bbcode_code_printable
  • (4)bbcode_php_printable
  • (16)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete