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?

Erwin 02-10-2003 03:32 AM

It works for 2.2.9.

ImportPassion 03-05-2003 12:50 PM

i have a little problem.

When I suspend a sig I get this



PHP Code:

<!-- BEGIN TEMPLATEeditsig_suspend -->
Signature Suspended as it is in violation with signature rules.
<!-- 
END TEMPLATEeditsig_suspend --> 


ImportPassion 03-05-2003 02:42 PM

I have done the Sig Suspended hack. The real one that does NOT allow the user to go in and change their signature back again.

It is pretty easy. But, you MUST have Logicians genius "Dynamic Templates" hack.

See the instructions attached.

ImportPassion 03-05-2003 02:43 PM

Here is a screenshot in the users profile.

larryd 03-22-2003 04:17 AM

Hey PPN first off I wanted to say thanks for the great hack. Ive been using it for quite some time now and its truly a great hack. Ive run into one problem thats not with your code but my moderating staff and I was wondering if there was an easy fix for this.

I have had a few signatures suspended from moderators that will not come forth and tell me that they suspended the signature. For this reason I would either like to put a log file on this function or limit it to only admins and some moderators. I saw above how to limit it to admins and super mods but that would almost defeat the purpose of the hack. Is there anything you can do for me?

Thanks,
Larry Dougherty
www.newcelica.org

ImportPassion 05-04-2003 02:09 AM

that is a Javascript error. If you show me what is on that line and one b4 and after, I might be able to fix it.

D

WEForums 05-11-2003 05:41 AM

Hmm... 6thgenCivic, is there a way to enable the user's signatures back? If so, how? I was testing on a mod of mine and...well...yeah.

Or does a query need to be run?

azork 05-11-2003 04:55 PM

i have a real problem with this hack:

in the postbit, the names have disappeared. i thought that imade a mistake during the installation, so i re-installed it again. same. i've deleted the modifications, the templates... and it is still the same.

i have the 2.2.3 version and the names of the mods have disapeared in the postbit in every thread :(

WEForums 05-11-2003 08:13 PM

Are you sure $post[username] is in your postbit hack?

azork 05-11-2003 09:41 PM

yes. only the name of the mods has been removed. as i have installed lesane store hack, the code in the postbit is not excatly $post[username]

WEForums 05-11-2003 10:13 PM

$storeextraglow

Well...I don't see how this hack would even affect usernames......

ImportPassion 05-12-2003 10:10 PM

Quote:

Yesterday at 02:41 AM WEForums said this in Post #177
Hmm... 6thgenCivic, is there a way to enable the user's signatures back? If so, how? I was testing on a mod of mine and...well...yeah.

Or does a query need to be run?

just go in an edit the sig again. make sure the checkbox is not checked and save. all done.

azork 05-13-2003 09:53 PM

Quote:

Yesterday at 12:13 AM WEForums said this in Post #181
$storeextraglow

Well...I don't see how this hack would even affect usernames......


i agree but it's what happened. actually only the mods who have a glow have their name disappeared

Learner29 05-27-2003 06:01 AM

hi

this hack is constantly telling my mods and supermods that userX is a moderator and thus you cannot edit his signature.....

but userX is NOT a moderator......

any help ?????

ChrisMJ 05-29-2003 11:45 AM

hey guys i cant get this hack to work? any ideas y?

http://www.pcgamesonline.com/forums/

if someone decent cud help me sort this our woudl be kool thanks

Erwin 05-30-2003 05:46 AM

This hack is working very well. I just installed it for my own private forums. :)

Morgalis 07-12-2003 06:11 AM

hmmm

love this hack.. but what might have happened to cause this? just happened o.O

when signatures are suspended it looks like

Quote:

<!-- BEGIN TEMPLATE: editsig_suspend -->
Signature Suspended as it is in violation with signature rules.
<!-- END TEMPLATE: editsig_suspend -->
thanks in advance

clamcrusher 08-01-2003 04:42 AM

in my postbit template i tried to follow the text instructions and where to place the java. i run 2.2.8

in his example it supposed to look like this:

PHP Code:


<p align="right"><smallfont><a href="javascript:openeditsigwindow(490,320,'$session[sessionhash]','$post[userid]')">Edit Sig</a> | <a href="report.php?s=$session[sessionhash]&postid=$post[postid]">Report this post to a moderator</a> | $post[iplogged]</smallfont></p>

but mine looks like this

<
TD align="right"><smallfont><a href="javascript:openeditsigwindow(490,320,'$session[sessionhash]','$post[userid]')">Edit Sig</a> | <a href="report.php?s=$session[sessionhash]&postid=$post[postid]">Report this post to a moderator</a> | $post[iplogged]</smallfont></p

my code doesnt start and and with <p and </p> it starts with <TD and ends with </td>

everything looks good in the postbit but when i click on edit sig, nothing happens. ive tried opera and ie6. ie sais error on page. if i click propeties in ie6 on the edit sig link it lists the url of the link as this: javascript:openeditsigwindow(490,320,'','15')

can the code be changed to work w/ mine?

PurpleCow 08-05-2003 11:58 AM

does this hack work fine on 2.3.0 ??

Thank you

msimplay 08-07-2003 04:56 AM

works great on Vb 2.3.0 :D

MaDCaT75 08-07-2003 07:43 AM

Mine works great but why is the 3 links (edit sig, report post, IP logged) to the left and above quickedit? What do I do to make those 3 links parallel to quickedit button?

zsmom 10-03-2003 11:11 PM

Works most excellently on 2.3.2. Great hack, saves me a lot of time!

cerebro 11-21-2003 01:33 PM

Re install in 2.3.3...works Fine.

index 12-29-2003 07:52 AM

Hi guyz,


I tried my best to let the hack work in my forum which is version 2.3.0 and I couldn't let it work :(

and also, I have another hack, which let the member fix his signture and it works fine without any problem

so, can anyone help me out of this problem !

Thanks a lot

David Coutts 03-06-2004 11:30 PM

Thanks, good hack.
/me presses install.

David Coutts 03-17-2004 10:07 PM

For some reason, I get the following:

Quote:

Parse error: parse error in /home/telb/public_html/moderator.php on line 10
Whenever I open the Edit Sig box. Any help, please? :ermm:

ludachris 04-26-2004 07:25 PM

VB3 version??

Edison Chen 06-11-2004 02:05 PM

Installed and working beautifully.

Cle 03-06-2005 05:55 PM

Hmm, I tried to install this hack, everything works fine but one thing doesn't.

If I edit someone's sig and I click 'Update Signature', I see this:
'The signature for has been changed to the following.'
Somehow the $getuser[username] between for and has doesn't work for me. Does anybody know how to fix this?

larryd 05-03-2005 08:32 PM

This worked great for VB2; does anyone make a version of it for VB3?


All times are GMT. The time now is 10:24 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.02390 seconds
  • Memory Usage 1,828KB
  • 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
  • (2)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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