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)

ZiRu$ 04-19-2002 12:47 PM

i wish this was re-made so that only ADMINS could change the sigs

Scott MacVicar 04-19-2002 02:18 PM

If it was an admin then he can just go into the admin panel....
This hack was designed to let mods who don't have access to the admin panel to be able to edit the signatures of users with abusive sigs.

Scott

Jawelin 04-19-2002 03:17 PM

Quote:

Originally posted by PPN
Hmm I guess I can do this it follows the principles of the hideing the IP link from normal users which is in my sig.
... and as ip.gif you could kindly give us (all of us who used that link in postbit_ip_hidden template) some nice icon for 'edit signature' ... :laugh:
Couldn't you ?
:bandit:

Takara 05-07-2002 06:13 AM

Thanks verra much for the hack ^_^

I kinda, hid the hack behind the foldericon. In functions.php find:

Code:

        if ($post[dateline]>$bbuserinfo[lastvisit]) {
                $post[foldericon]="<img src=\"https://vborg.vbsupport.ru/images/posticonnew.gif\" border=\"0\" alt=\"New Post\">";
        } else {
                $post[foldericon]="<img src=\"https://vborg.vbsupport.ru/images/posticon.gif\" border=\"0\" alt=\"Old Post\">";
        }

and replace by

Code:

        if ($post[dateline]>$bbuserinfo[lastvisit]) {
                $post[foldericon]="<a href=\"javascript:openeditsigwindow(490,320,'$session[sessionhash]','$post[userid]')\"><img src=\"https://vborg.vbsupport.ru/images/posticonnew.gif\" border=\"0\" alt=\"New Post\"></a>";
        } else {
                $post[foldericon]="<a href=\"javascript:openeditsigwindow(490,320,'$session[sessionhash]','$post[userid]')\"><img src=\"https://vborg.vbsupport.ru/images/posticon.gif\" border=\"0\" alt=\"Old Post\"></a>";
        }

works nicely ^_^

Jawelin 05-07-2002 06:56 AM

Yeh, but what's the relationship between [Newpost] and Edit signature, to use that button ? ;)
Thnx

Rose 05-08-2002 05:26 PM

PPN - I'm having problems with this hack, royally! I think I finally have it so two of the three admins can edit members posts, but not the third admin. Mods, it seems, can't edit anything. And no one can edit admin posts (admin, I mean). Could you maybe look at my moderator.php to see how badly I seem to have messed it up? I have it working on one board, but not on this one. I'd give you a url, but the domain isn't set up yet and the boards not open (maybe by Thursday).

Elentari 05-14-2002 01:03 AM

Hi :)
Ive installed this hack this evening, and it seems to be working ok, except that I'm getting an IE error on the page now!!

The address where I'm getting this error is
http://www.christiansurvivors.com/fo...?s=&threadid=4

Hope someone can help ;) Its probably something stupid and all my fault! *sigh* :nervous:

Scott MacVicar 05-14-2002 06:03 AM

its looking fine for me, no javascript errors or anything.

Elentari 05-14-2002 11:35 AM

Its not a javascript error. Its an IE error, that comes up on every thread ... you know, the small yellow warning sign that IE pops up every now and then?
The exact warning is as follow :
Quote:

Line : 1198
Char : 63
Error : Undetermined String Constant
Code : 0
Url : http://www.christiansurvivors.com/fo...?s=&threadid=4
Hope that helps some?

Just one more question - in the downloadable file, it says you need to create 3 templates, then appears to tell you 4 templates that you need to make. Am I right in having all 4?? (editsig; editsig_done; editsig_error; & editsig_suspend)

Scott MacVicar 05-14-2002 04:03 PM

I'm looking at the board now and i'm getting no javascript error at all.

Elentari 05-14-2002 09:24 PM

Lol like I said. it wasnt a java error .... but I uninstalled and installed it all again this afternoon and it was a problem with one of the templates. Its ok now.
Thanks for your time!! :)

Keyser S?ze 06-01-2002 01:42 AM

[QUOTE]Originally posted by PPN
Hmm I guess I can do this it follows the principles of the hideing the IP link from normal users which is in my sig.

N9ne 06-10-2002 03:41 PM

yeah any luck?

talon3dhq 06-13-2002 05:29 PM

Ok, I have installed this hack, and something wierd happens. When I click on the link, all I see what I have attached to this post. Other members have this same problem, but other members have no problems and can use the sig editor. Any suggestions?

talon3dhq 06-22-2002 02:13 PM

Has anyone updated the instructions for 2.2.5 yet?

Larz 06-26-2002 01:26 AM

Quote:

Originally posted by PPN
Hmm I guess I can do this it follows the principles of the hideing the IP link from normal users which is in my sig.
Any progress? I hate that text in the lower right corner of every post - and my users are REAL nosy and obnoxious. :D

Scott MacVicar 06-26-2002 07:19 AM

Open functions.php look for
PHP Code:

        $post[message]=bbcodeparse($post[pagetext],$forum[forumid],$post[allowsmilie]); 

ABOVE it add

PHP Code:

        if ($bbuserinfo[usergroupid]==|| ismoderator($forum[forumid])) {
          
$sigedit "<a href=\"javascript:openeditsigwindow(490,320,'$session[sessionhash]','$post[userid]')\">Edit Sig</a> | ";
        } 

Now in the postbit template change

Code:

<p align="right"><smallfont><a href="report.php?s=$session[sessionhash]&postid=$post[postid]">Report this post to a moderator</a> | $post[iplogged]</smallfont></p>
to

Code:

<p align="right"><smallfont>$editsig<a href="report.php?s=$session[sessionhash]&postid=$post[postid]">Report this post to a moderator</a> | $post[iplogged]</smallfont></p>

Massiel 07-18-2002 01:06 PM

I installed it and all seemed to be going okay until I tested it as a registered member and it was letting me edit signatures too, I tested it as a mod and admin and it was letting me edit them too, so I took it out, any ideas why? Pretty scary if everyone can go changing everyone's signatures around!! I followed all instructions too... :(

Is there anyway in which only admins can use this?

Massiel 07-18-2002 10:35 PM

Anyone? Please help :(

Massiel 07-19-2002 05:08 AM

bump

cerebro 07-19-2002 06:58 PM

i just install in vb 2.2.6 and work really fine!!

Nice hack!

Brianna 07-25-2002 01:26 AM

Okay, i'm not sure if there was a change in the setup of php calling or whatever, but I found an error and I managed to fix it on my own (horrah for me! i know nothing about php until this point ;))

this is for the showthread template

instead of:
Code:

function openeditsigwindow(x,y,sessionhash,userid) {
                window.open("moderator.php?action=editsig&s"+sessionhash+"&userid="+userid, "EditSig", "toolbar=no,scrollbars=yes,resizable=yes,width="+x+",height="+y);
}

it should be:
Code:

function openeditsigwindow(x,y,sessionhash,userid) {
                window.open("moderator.php?s="+sessionhash+"&action=editsig&userid="+userid, "EditSig", "toolbar=no,scrollbars=yes,resizable=yes,width="+x+",height="+y);
}

note, i am using version 2.2.6, and like I said i'm not sure if they changed anything or whatnot lol O_O

Awesome hack sir *bows* :)

Scott MacVicar 07-25-2002 04:38 AM

Im not sure why your chaging the location but you are right there should be another "=" after the s

Brianna 07-25-2002 10:28 AM

Ah, so the location does not matter? Just the = does?

Scott MacVicar 07-25-2002 11:45 AM

yep location doesnt matter the variables will still be read before the script is executed, just the = missing

Dean C 07-25-2002 03:10 PM

is there anyway to have this so only admins can see the link to the sig editor directly from the postbit :D?

Thanks in Advance

Dean C 07-26-2002 10:14 AM

[QUOTE]Originally posted by Mist
is there anyway to have this so only admins can see the link to the sig editor directly from the postbit :D?

Thanks in Advance

Dean C 07-29-2002 04:16 PM

:(....

PHP Code:

if ($bbuserinfo[usergroupid]==|| ismoderator($forum[forumid])) {
          
$sigedit "<a href=\"javascript<img src="https://vborg.vbsupport.ru/images/newsm/embarrassed.gif" border="0" alt="">peneditsigwindow(490,320,'$session[sessionhash]','$post[userid]')\">Edit Sig</a> | ";
        


how do i change this code so it only applies for admins .. so that only admins can see $sigedit ???

Chris M 07-29-2002 06:38 PM

Presumably :

PHP Code:

if ($bbuserinfo[usergroupid]==6) {
          
$sigedit "<a href=\"javascript<img src="https://vborg.vbsupport.ru/images/newsm/embarrassed.gif" border="0" alt="">peneditsigwindow(490,320,'$session[sessionhash]','$post[userid]')\">Edit Sig</a> | ";
        


Satan

Chris M 07-29-2002 06:46 PM

Hmm...

Guess not...

The only other thing I can suggest is :

PHP Code:

if ($bbuserinfo[usergroupid]==|| $getperms[cancontrolpanel]==1)) {
          
$sigedit "<a href=\"javascript<img src="https://vborg.vbsupport.ru/images/newsm/embarrassed.gif" border="0" alt="">peneditsigwindow(490,320,'$session[sessionhash]','$post[userid]')\">Edit Sig</a> | ";
        


If that doesnt work, I have no clue...

Satan

Dean C 07-29-2002 06:59 PM

none of these work :(...

Chris M 07-29-2002 07:23 PM

:(

Satan

Dean C 07-30-2002 09:19 AM

so can anyone figure a way around this ?

dwh 08-10-2002 02:45 PM

It would be cool if instead of suspending the sig it would just allow the user with the sig to see it and everyone else doesn't moohaha

Learner29 09-02-2002 08:44 PM

thank you once again PPN

I tried this hack on the new vb2.2.7 and it works perfect.

this hack is really wonderful....

N9ne 09-09-2002 07:13 PM

Hey PPN, how do I make it so user Id 1, 3, 4 can edit ALL sigs and not just userid1?

PHiXTiT 09-10-2002 08:16 AM

Great hack!


5 minutes to install!

Everything works as stated!


Thanks for the great hack 5 stars :)

Matt 09-17-2002 02:44 PM

Code:

if ($bbuserinfo[usergroupid]==6 || ismoderator($forum[forumid])) {
          $sigedit = "<a href=\"javascript : openeditsigwindow(490,320,'$session[sessionhash]','$post[userid]')\">Edit Sig</a> | ";
        }


..in functions.php. Then place $sigedit where you want it to appear. It works for me.

REMOVE the spaces from the left and right of ":".

yaser2003 09-21-2002 03:07 AM

hi every one...
can we make somthing cool like every user can edit thire sig with this hack......it will be nice

Tailfeathers 09-29-2002 10:07 PM

If I click on Edit Sig in a post, I get a JavaScript error:

IE says:

Line: 1
Char: 1
Error: Object expected
Code: 0
URL: http://www.tailfeathersnetwork.com/s...s=&threadid=14

Any ideas?

Thanks. :)


All times are GMT. The time now is 11:06 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.01577 seconds
  • Memory Usage 1,831KB
  • 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
  • (5)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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