vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Sig Editor (https://vborg.vbsupport.ru/showthread.php?t=32086)

Palmer ofShinra 01-03-2002 02:39 AM

Quote:

Originally posted by Sunmoon
This hack looks perfect for what I need.

Everything seems to work, except that no matter what user I try it on (and with me logged in as Administrator,) I get the following when I click Edit signature in teh popup box.

"Farghan Shadehunter is an admin and you are unable to edit their signature. "

Help? :)

I have the same problem...

For some reason, the code is checking who *I* am... because I get told that I'm editing an admin (no matter who I edit) and one of our super mods gets told the same person is a mod.

BTW... there is a mind-numbingly easy way to do the forced suspend sig... I implemented it myself as I hacked this in (mind you, I didn't touch the code that checks for editsig_error, so that's not the reason why)

Add a field to the user table called "suspendsig"

Change the query in the editor that updates the sig to change suspendsig to 1 if suspend was checked,

THEN, in the buildpostbit part of functions.php... after all the code that sets sigs...

Add an eval that sets $post[signature] to equal editsig_suspended

They're old sig is intact, and in fact they can edit it.

It just doesn't get displayed!

Thus you don't clutter up the DB with a second sig field. Just one extra INT.

Of course, you have to add the settings in the CP and that too, as well as whatever else... but it's your hack... I just let you know how I would do it.

Sunmoon 01-03-2002 03:22 PM

Sounds like a plan Palmer, just not sure if I have quite the technical prowess to do that. Would doing what you suggested, allow PPN's hack to work in its current state?

Thanks again for everyone's help!

Palmer ofShinra 01-03-2002 09:46 PM

It requires adding a few things in a lot fo different files...

I ended up having to edit 8 different files in the end to make the sig editor with forced suspend work... in addition to a database modification.

Scott MacVicar 01-04-2002 12:05 AM

ok i've checked my code and it all looks fine

$perms=getpermissions(0, $userid);

that gets the permission for forumid 0 for the userid which is specified, it then does a check to see the permissions of that user

if($perms[ismoderator] || $perms[cancontrolpanel] || $ismod=$DB_site->query_first("SELECT * FROM moderator WHERE userid=$userid")) {

then checks to see which one they are, if i've taken the getpermissions function wrong then could someone please tell me

Rose 01-04-2002 03:00 AM

Quote:

Originally posted by PPN
ok i've checked my code and it all looks fine

$perms=getpermissions(0, $userid);

that gets the permission for forumid 0 for the userid which is specified, it then does a check to see the permissions of that user

if($perms[ismoderator] || $perms[cancontrolpanel] || $ismod=$DB_site->query_first("SELECT * FROM moderator WHERE userid=$userid")) {

then checks to see which one they are, if i've taken the getpermissions function wrong then could someone please tell me

I'm sorry, PPN, and please excuse me if I'm outta line. But which problem are you addressing in the above quote? The problem I'm having with editing the sig of admins and other moderators (as admin), or the problem with the forced suspend signature?

Scott MacVicar 01-04-2002 09:28 AM

the suspend sig thing is simply another feature it isn't a bug..

i'm trying to deal with the error people are getting when they try and edit the signature of a user.

Sunmoon 01-07-2002 03:03 PM

I'm going to try again from home (instead of from behind the firewall at work) to make sure it wasn't on my end.

Warlord 01-12-2002 02:56 AM

Thanks alot! :) Being a newbie to vbulletin, I appreciate you making this very easy to install. I installed it and have yet to encounter any problems! :D

kc5uyw 01-12-2002 02:39 PM

Very nice ... definately a good admin tool.

Rose 01-17-2002 07:32 PM

Any progress on allowing Admins to edit the signature of other moderators or admin??

It would be especially useful to have the main admin (userid=1) able to edit the sigs of other admin/mods.


All times are GMT. The time now is 08:04 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.01103 seconds
  • Memory Usage 1,740KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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