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)

Scott MacVicar 09-29-2002 11:38 PM

Code:

<script language="javascript" type="text/javascript">
<!--
function aimwindow(aimid) {
        window.open("member.php?action=aimmessage&aim="+aimid,"_blank","toolbar=no,location=no,menubar=no,scrollbars=no,width=175,height=275,resizeable=yes,status=no")

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);
}

}
// -->
</script>

should be

Code:

<script language="javascript" type="text/javascript">
<!--
function aimwindow(aimid) {
        window.open("member.php?action=aimmessage&aim="+aimid,"_blank","toolbar=no,location=no,menubar=no,scrollbars=no,width=175,height=275,resizeable=yes,status=no")
}

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);
}
// -->
</script>

you've pasted it before the last } and not after.

Tailfeathers 09-29-2002 11:46 PM

It's working perfectly now. Thanks! :banana:

Areku 10-07-2002 11:16 AM

Not sure if any1 has asked this before...

Can you make that EDIT SIGNATURE is displayed ONLY if you're an admin?

So others don't have even the idea of such option does exist...

Dean C 10-07-2002 05:41 PM

i would like to know how to do that too :D ^

- miSt

N9ne 10-18-2002 07:26 PM

Anyone found a way to only display the link to those of authority?

Medivith 11-12-2002 08:36 PM

Well... I made a major screw up.

I need to allow only Admins / Super Moderators (both standard groups) and one non standard (groupid=31) to use this feature, and not all moderators.

I tried to do this myself, however my... less than skillful bodgeing wound up allowing registerd users to use the feature.

Having messed that one up badly, I decided to ask for help in doing so, seeing as how no one has requested it or someting similar enough that I can adapt.

Regards, and thanks for the great hack PPN,
Medivith

VAN 01-14-2003 11:15 PM

Cool hack, PPN. :)

To those of you still fighting over how to hide the "Edit Sig" link from regular members, or to limit it to Admins only, all you need to do is install Logicians genius "Dynamic Templates" hack and you can easily accomplish this.

Get his hack here:

https://vborg.vbsupport.ru/showthrea...threadid=43325

Also, I added a tiny JavaScript onClose event to this hack so that after you edit a users sig, the parent window reloads and shows the updated sig.

Anyone who wants to do this, just open your editsig_done template and replace <body> with

<body onClose="opener.location.reload(true);">

Thanks for the hack, PPN.

MarkL 01-15-2003 08:03 PM

Yes, I just added this hack, and since I am a newbie, I was wondering if anyone could help me and tell me how I could edit it to use the custom replacement tags instead of using the author's own site's colors. :$

Scott MacVicar 01-15-2003 11:27 PM

this is a bug here at vB.org the replacements are being replaced. I'll mention it to chen.

S1R1US 02-10-2003 02:56 AM

can this be made to work with 2.2.9 or does it already?


All times are GMT. The time now is 01:53 PM.

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.01342 seconds
  • Memory Usage 1,739KB
  • 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
  • (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