vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Add-On Releases - EG - Custom Signature Rules (https://vborg.vbsupport.ru/showthread.php?t=139562)

mac27 02-15-2007 10:00 PM

EG - Custom Signature Rules
 
Here is my very first hack. It is a signature rules hack. It is pretty simple. Someone had asked me if I could throw this together and so I did and now I figure I would share it just in case someone else wants to use it.

You set the rules in your adminCP and they show up in the edit signature window in the userCP. It will help the users know what rules they must follow when using a sig on your forum. This doesn't control their sigs it just gives them rules that they must follow or you have the right to delete their sig.

Screen shots attached.

Time to install: 1 minute


Version: 1.6
Fixed it so longer rules will wrap and not cause the rules to spread out.
Updated screen shot to show this.

Version: 1.4
Fixed it so the Additional Notes field is below the rules.


UPGRADE:
Just upload the new product file and select yes to allow override and that is it.

beduino 02-16-2007 12:04 PM

Tks!
Excellent to remenber ;) rules to members.
all the best
beduino

mac27 02-16-2007 12:20 PM

You are welcome. :D Enjoy....

projectego 02-16-2007 01:42 PM

Free nice. Good work! :)

[high]* projectego clicks install[/high]

mac27 02-16-2007 04:22 PM

Thanks projectego. Glad you like it. :D

ChurchMedia 02-16-2007 05:43 PM

Nice and simple. I have members breaking my sig rules all the time because they don't read the forum rules. This should help a lot! Thanks!

mac27 02-16-2007 08:23 PM

I hope it helps. :D

stwilson 02-17-2007 12:10 AM

Nice hack there Mac27, very practical and usefull!!!!

mac27 02-17-2007 12:22 AM

Thanks for the comment stwilson. I hope to make more practical and useful hacks in the future to. :D I still have allot to learn.

butty 02-17-2007 12:26 AM

thanks for this what a handy plugin!

stwilson 02-17-2007 12:39 AM

Quick question. I noticed your additional notes were BELOW your rules. Mine is showing to the right of the rules. How do I get it below the rules?

mac27 02-17-2007 12:44 AM

Actually that is because the width of my forum is pretty narrow. Sorry about that. It is suppose to be next to it. Let me find the code to make it on the bottom.

stwilson 02-17-2007 12:45 AM

Maybe that could be an option...show it to the right or show it below the rules.

HMBeaty 02-17-2007 01:02 AM

Mine is showing to the right as well. And I too would rather have it underneath that way it would look MUCH cleaner

PinkDaisy 02-17-2007 01:23 AM

I'm going to install this tomorrow!! thanks... :D

mac27 02-17-2007 01:28 AM

OK sorry about that. I have made the fix and the new updated ZIP file is uploaded now.

HMBeaty 02-17-2007 01:51 AM

Either I'm missing something or its still not aligned on the bottom

EDIT: Nevermind, it didn't overwrite the previous install, it added a new one. So there's a small bug for you to fix :)

EDIT again: no it didn't, its not aligned on the bottom

mac27 02-17-2007 01:54 AM

Did you upload the new product file? and select override to yes? What version does it show in your product manager?

It is working in both IE and FF for me.

HMBeaty 02-17-2007 01:57 AM

Quote:

Originally Posted by mac27 (Post 1184309)
Did you upload the new product file? and select override to yes? What version does it show in your product manager?

It is working in both IE and FF for me.

Yes, select override was set to yes

v1.4 in my product manager

You can check it out by going to www.RedlineMotorsports.org (username: test, password: testuser)

HMBeaty 02-17-2007 02:00 AM

Ok, got it fixeed, I don't think it overwrote my template. It was working in one style and not the other

mac27 02-17-2007 02:04 AM

I am sorry for the problems.

I am glad it is working for you now. :D

stwilson 02-17-2007 02:21 AM

Thanks Mac27....that update is exactly what I was looking for!!! Sweet MOD.

mac27 02-17-2007 02:25 AM

You are very welcome. I am glad you like it and thanks to you and everyone else that has clicked install so far. I appreciate it.

six58 02-17-2007 05:27 AM

i like it..temporary measure til we can have actual signature limits hack like on 6.5

only hassle i am having is unless i limit my text in the rules, the two columns are not even...the first column with the first three rules runs across the whole line pushing the second column with its three rules into a narrower column..just looked very untidy and have to abbreviate my rules which i'd have preferred not to do.

nice hack :)

mac27 02-17-2007 05:50 AM

Yes it wasn't designed for long laid our rules. More for to the point short rules.

I will look at doing a fix for that in the next update. Thanks for the feedback.

Thanks again

MThornback 02-17-2007 11:29 PM

If your rule is more than a few words you could try this alternate method of displaying the template:

Code:

<if condition="$vbulletin->options['eagle_sigrule_on']">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center">
<tr>
        <td class="tcat">               
$vbphrase[sig_rules]
</td>
</tr>
<tbody>
<tr>
        <td class="alt1">
<div class="smallfont">
                        <div style="float:$stylevar[left]; margin-right:10px">
<menu>
<div><LI type="circle">$vboptions[eagle_sigrule_1]</div>
<div><LI type="circle">$vboptions[eagle_sigrule_2]</div>
<div><LI type="circle">$vboptions[eagle_sigrule_3]</div>
<div><LI type="circle">$vboptions[eagle_sigrule_4]</div>
<div><LI type="circle">$vboptions[eagle_sigrule_5]</div>
<div><LI type="circle">$vboptions[eagle_sigrule_6]</div>
</div></menu>
</td></tr>
<tr><TD class="alt1" COLSPAN="2">
<div style="float:$stylevar[left]; margin-right:10px">
<div>
<strong>**$vbphrase[eagle_add_notes]</strong>
$vboptions[eagle_sigrule_7]</div>
</div>
</td>
</tr>
</tbody>
</table>
</if>
<br />

I found that it left a gap between rule 3 & 4 and this looks alot cleaner for me.

(the edit is common sense...but its for the benifit of those who don't do HTML :p)

mac27 02-17-2007 11:34 PM

Good point for those that want to use it. But that will also stretch your rules down in a single column and make the rules block longer. I went for a compact look.

I am sure someone will use it. Thanks for posting it.

MThornback 02-17-2007 11:53 PM

Code:

<if condition="$vbulletin->options['eagle_sigrule_on']">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center">
<tr>
        <td class="tcat">               
$vbphrase[sig_rules]
</td>
</tr>
<tbody>
<tr>
<td class="alt1">
<div class="smallfont">
<table border="1" width="100%">
<tr>
<td valign="top">
<div style="float:$stylevar[left]; margin-left:1px">
<menu>
<div><LI type="circle">$vboptions[eagle_sigrule_1]</div>
<div><LI type="circle">$vboptions[eagle_sigrule_2]</div>
<div><LI type="circle">$vboptions[eagle_sigrule_3]</div>
</div></menu>
</td>
<td valign="top">
<div style="float:$stylevar[left]; margin-right:1px">
<menu>
<div><LI type="circle">$vboptions[eagle_sigrule_4]</div>
<div><LI type="circle">$vboptions[eagle_sigrule_5]</div>
<div><LI type="circle">$vboptions[eagle_sigrule_6]</div>
</div></menu>
</td>
</tr>
</table>
</td></tr>
<tr><TD class="alt1" COLSPAN="2">
<div style="float:$stylevar[left]; margin-right:10px">
<div>
<strong>**$vbphrase[eagle_add_notes]</strong>
$vboptions[eagle_sigrule_7]</div>
</div>
</td>
</tr>
</tbody>
</table>
</if>
<br />

A TEMP work around till the author comes up with something better :p this is a hackjob at best.

All this will do is split the rules into 2 table cells forcing them to even up.

mac27 02-18-2007 01:49 AM

Updated to Version 1.6

OK this modification has been updated. The rules will now wrap. Thanks for the suggestion and pointing this out six58.

Let me know how this works for you.

cybrnetico 02-18-2007 02:12 AM

Good Work Mac! :)

six58 02-18-2007 07:17 AM

excellent
thanks for updating so quickly...the wrap is working well in my rules thank you :)

mac27 02-18-2007 07:20 AM

You are welcome. Glad to get it going how you wanted. :D

Ohiosweetheart 02-23-2007 08:25 PM

I'm loving this! :)

Sofia 03-17-2007 11:19 AM

Thanks a lot for this hack :) Great !!

But if i don't use all rules (for example 3 rules), the rules where there is "N/A" -> N/A appears.

So you can effectuate this modification in the XML :

Find :

Code:

<TABLE class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center">
<TR> <TH COLSPAN=2 class="tcat" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0"><strong>Signature Rules</strong></TH> </TR>
<TR><TD align="left" valign="top" class="alt1" WIDTH=50%><menu>
<li type="circle">$vboptions[eagle_sigrule_1]
<li type="circle">$vboptions[eagle_sigrule_3]
<li type="circle">$vboptions[eagle_sigrule_5]</TD> <TD align="left" valign="top" class="alt1" WIDTH=400><menu>
<li type="circle">$vboptions[eagle_sigrule_2]
<li type="circle">$vboptions[eagle_sigrule_4]
<li type="circle">$vboptions[eagle_sigrule_6]</menu></TD> </TR>
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center">
<TR><TD class="alt1" width=100%><strong>**$vbphrase[eagle_add_notes]</strong>
$vboptions[eagle_sigrule_7]</TD></TR>
</TABLE>

Replace by :

Code:

<TABLE class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center">
<TR> <TH COLSPAN=2 class="tcat" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0"><strong>R?gles des signatures</strong></TH> </TR>
<TR><TD align="left" valign="top" class="alt1" WIDTH=50%><menu>
<if condition="$vboptions[eagle_sigrule_1]"><li type="circle">$vboptions[eagle_sigrule_1]</if>
<if condition="$vboptions[eagle_sigrule_3]"><li type="circle">$vboptions[eagle_sigrule_3]</if>
<if condition="$vboptions[eagle_sigrule_5]"><li type="circle">$vboptions[eagle_sigrule_5]</if></TD> <TD align="left" valign="top" class="alt1" WIDTH=400><menu>
<if condition="$vboptions[eagle_sigrule_2]"><li type="circle">$vboptions[eagle_sigrule_2]</if>
<if condition="$vboptions[eagle_sigrule_4]"><li type="circle">$vboptions[eagle_sigrule_4]</if>
<if condition="$vboptions[eagle_sigrule_6]"><li type="circle">$vboptions[eagle_sigrule_6]</if></menu></TD> </TR>
<if condition="$vboptions[eagle_sigrule_7]"><table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center">
<TR><TD class="alt1" width=100%><strong>** $vbphrase[eagle_add_notes]</strong>
$vboptions[eagle_sigrule_7]</TD></TR>
</TABLE></if>


mac27 03-17-2007 01:56 PM

Yes you could do that. You could also just leave the rules blank so they don't show anything.

paradoxx109 03-17-2007 03:12 PM

sweet, once adviced to the user, lets you edit anytime you want without asking the user to do it.

Sofia 03-17-2007 06:09 PM

Quote:

Originally Posted by mac27 (Post 1205627)
Yes you could do that. You could also just leave the rules blank so they don't show anything.

When I made it, it showed circles (<li>). It's for this reason :p

epoc fitness 07-24-2007 01:55 AM

Is there a way or does anyone know of another mod which will let me replace a signature with a signature stating that their signautre has been disabled and to re-read the rules edit their signature and then allow me to turn it back on manually.

bada_bing 11-20-2007 12:22 AM

Will this work on VB 3.5.x ?


All times are GMT. The time now is 05:24 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.02576 seconds
  • Memory Usage 1,816KB
  • 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
  • (4)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (39)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete