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)

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


All times are GMT. The time now is 08:23 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.02615 seconds
  • Memory Usage 1,741KB
  • 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_code_printable
  • (3)bbcode_php_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