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)

Xelation 01-17-2002 11:37 PM

Um, I get an error on the page when I go to edit the sig.... The part I have trouble with is this part... I'm new to Vb so I don't really know how to fix it myself...

Trouble
l
\/


The important part is <a href="javascript:openeditsigwindow(490,320,'$sessi on[sessionhash]','$post[userid]')">Edit Sig</a> you have to add this somewhere in the postbit template.


I don't know exactly where to put that. and for this... you said there was a space between edit and sig so it looked like this
edit sig... well I can't find that, so is it already corrected? well thanks


showthread
-------------------------
below

function aimwindow(aimid) {
window.open("member.php?action=aimmessage&aim="+ai mid,"_blank","toolbar=no,location=no,menubar=no,sc rollbars=no,width=175,height=275,resizeable=yes,st atus=no")

}

add

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

Scott MacVicar 01-18-2002 02:17 PM

please pm me the url to your forum as it is much easier to debug javascript errors by seeing them as the code is visible in the page source.

Also please don't post instructions on this hack in the thread please.

Bedhead 01-19-2002 04:08 AM

Quote:

Originally posted by Rose
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.

This would be awesome!

Lucky 01-19-2002 04:12 AM

I agree,

That would be great!

Xelation 01-19-2002 02:52 PM

That would be great! You think you can make the addon to your hack ppn?

Scott MacVicar 01-19-2002 03:02 PM

ok its like 2 lines of code :)

re-download the main file and redo the

if ($action=="updatesig") { part of the hack

if your too lazy to download the file then
in the modified code look for
PHP Code:

$getuser=$DB_site->query_first("SELECT username FROM user WHERE userid='$userid'"); 

above it add
PHP Code:

if($bbuserinfo[userid] != 1) { 

then below
PHP Code:

        eval("dooutput(\"".gettemplate("editsig_done")."\");");
      } 

add

PHP Code:




Rose 01-19-2002 06:47 PM

Hmmm. That didn't seem to work. :(

In the first line of code you said to find, I do not have that in my moderator.php. I do have a very similar line -
PHP Code:

    $getuser=$DB_site->fetch_array($DB_site->query("SELECT username FROM user WHERE userid='$userid'")); 


I added the line of code in front of that line, and then added the last "}".

Now, when I go to edit a sig, I get the box, edit it, and click save - The box goes white and no update is saved.

Any ideas?

Shenlong 01-19-2002 07:09 PM

I thought this was something else, I am glad to see what it actually is, I am doing my final postbit edit, I will get back to u in a sec becuase I modified a few files to the users benefit

Shenlong 01-19-2002 07:24 PM

Ok peepz, I got it working!

By the way, thanks so much PPN for this extrodinary hack! I used to have members having little f*** you smilies in their sig, things insulting other members and it got so annoying I just let it go. When I finally took the time to read your hack, I noticed how easy it would make my job, so I typed up a quick rules script and made an edit to editsig_suspend template.

Anyway, if you have any rules or anything you want displayed, and you want their username displayed, you can replace your current editsig_suspend template with the following code:

PHP Code:

//SUSPEND SHENLONG EDIT
$bbuserinfo[username]'s signature has been suspended because it violated one of the Signature Codes. The codes can be found <a href="http://teleblaze.com/docs/sig.php?userid=$bbuserinfo[username]" target="new">here</a>.
//SUSPEND SHENLONG EDIT 


Scott MacVicar 01-19-2002 07:26 PM

whoops i made a mistake o_O

its not after the editsig_error it should be after the
editsig_done will edit that post now


All times are GMT. The time now is 11:50 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.01249 seconds
  • Memory Usage 1,750KB
  • 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
  • (6)bbcode_php_printable
  • (1)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