vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Mini Mods - Signature Rules - post rules for users to follow (https://vborg.vbsupport.ru/showthread.php?t=232499)

SonicGT 01-07-2010 10:00 PM

Signature Rules - post rules for users to follow
 
1 Attachment(s)
About
This is my very first vb mod and a simple one at that. There are similar mods for older versions of vb, but not for 4.x yet, so decided to try it myself, and wanted to share.

The modifciation allows admins to post a list of rules or guidelines for users to follow when updating or creating a signature. It is a simple list and does not truely force users to follow the rules listed; however, it is a good reminder right where the user is creating their signature of any rules you may be trying to enforce.

Updates
1.0 Initial Release
1.1 Updated installer to account for vb 4.1.x

Options
1. Up to 10 rules can be displayed
2. Can use a single column list or multi column to display the rules
3. Can change the graphic used as a bullet for the list, by default uses the accept.png located in the images/misc folder

Installation
1. Import the Signature-Rules.xml product file
2. Add a reference to the template in the modifysignature template
to do this edit the modifysignature template and add the following as the first line in the template
PHP Code:

{vb:raw signaturerules


SonicGT 01-08-2010 03:03 AM

I'm very new to vb mods, so I will try and support any issues as best as I can. The mod is very simple so I don't really see issues popping up, but you never know.

Also if anyone has suggestions on what can be done better since I am new please do let me know

Hornstar 01-08-2010 05:00 AM

For your first mod, it is very nice. Tagged for when I upgrade. thanks.

Aexo 01-08-2010 06:29 AM

very useful. Thanks

KevinGupta 01-08-2010 06:41 AM

Excellent stuff :)
First mod and First NICE STUFF :D hehe.. keep it up
I have installed it on my site and works like a charm

Forum Lover 01-08-2010 07:26 AM

It will be more cool if we force our members to follow the rules. Can u go for that mate? Tagged.

Skyrider 01-08-2010 08:04 AM

Quote:

Originally Posted by Forum Lover (Post 1950189)
It will be more cool if we force our members to follow the rules. Can u go for that mate? Tagged.

Since it's signatures, I don't think it's a good idea to force the rules for those who already have good ones. If they wish to edit it, they would see the new rules, correct? That's all I want. I'll be sure to download this once I get back home, thanks!

Kolbi 01-08-2010 09:00 AM

Looks nice but can be done with a simple template modification. :)

Skyrider 01-08-2010 09:04 AM

Quote:

Originally Posted by Kolbi (Post 1950223)
Looks nice but can be done with a simple template modification. :)

A lot can be done with simple template modifications. Just the add-ons makes it a lot easier and simple. :p

woffie 01-08-2010 09:11 AM

Quote:

Originally Posted by FF|Skyrider (Post 1950225)
A lot can be done with simple template modifications. Just the add-ons makes it a lot easier and simple. :p

Yes, I love mods that make it so I don't have to make those skin edits everytime I add a new skin.

SonicGT 01-08-2010 12:51 PM

Quote:

Originally Posted by Kolbi (Post 1950223)
Looks nice but can be done with a simple template modification. :)

Yea it can be a template modification, and is not that complex, thus why I chose to do this for my first mod attempt, and I feel I learned a decent amount about how the plugin system works doing it :up:
Also I myself tend to like the plugin system a little better then having to add alot to my templates on my boards and this makes it a little easier on me when/if I need to change my rules I can just go into settings and make an update :D

And thanks everyone for compliments so far

Deirdre 01-13-2010 06:06 AM

love it! very nice indeed!

Selcor 01-19-2010 04:36 PM

I apply the mod and configure in Admincp-options-Signature Rules.

Add to template "modifysignature" and "newThread" and does nothing, it shows all the same.

Using Vb 4.0.1

:(

cloferba 01-19-2010 11:49 PM

Quote:

Originally Posted by Selcor (Post 1960355)
I apply the mod and configure in Admincp-options-Signature Rules.

Add to template "modifysignature" and "newThread" and does nothing, it shows all the same.

Using Vb 4.0.1

:(

Selcor? i only know one guy which uses that username...in all world

are you or dont? :)

SonicGT 01-20-2010 02:13 AM

Quote:

Originally Posted by Selcor (Post 1960355)
I apply the mod and configure in Admincp-options-Signature Rules.

Add to template "modifysignature" and "newThread" and does nothing, it shows all the same.

Using Vb 4.0.1

:(


It will not work in any other template then the modifysignature, so the newthread behavior is expected.

Can you verify that under admincp that you do have the mod enabled, and that you have
Code:

{vb:raw signaturerules}
as the first line of your modifysignature template.

If so can you post screenshots of all 3 locations (options, template, and what a user sees when editing signature)

Selcor 01-20-2010 05:07 PM

The mistake is mine, sorry, misunderstand the function of this MOD. This works well.

Thank you.


Pd: cloferba, my real nick is Gmaster :D

LbR 01-20-2010 05:38 PM

Every template edit will be needed in each theme i add in future :S

SonicGT 01-20-2010 06:35 PM

Quote:

Originally Posted by LbR (Post 1961408)
Every template edit will be needed in each theme i add in future :S

It depends on how you add themes, but if all themes are added at the top level then yes, unfortunatly vb does not have a hook at the location that I want to display the mod.
What I do to get around this is I make my themes all a child of the default style, then make the edit in the default style and it propagates to all children without having to modify each on individually

cloferba 01-23-2010 01:22 PM

Quote:

Originally Posted by SonicGT (Post 1961466)
It depends on how you add themes, but if all themes are added at the top level then yes, unfortunatly vb does not have a hook at the location that I want to display the mod.
What I do to get around this is I make my themes all a child of the default style, then make the edit in the default style and it propagates to all children without having to modify each on individually

that would be great!

plase! :D

wayne.richards@ 01-23-2010 02:03 PM

Fan Bluddy Tastic Sonic! What A Great Little Mod! Thank You! :up:

Working great on 4.0.1

Selcor 01-25-2010 09:15 PM

I want to translate "Signature Rules" to another language (alone this phrase in the bar of signatures).

I search this phrase for admincp and translating it, but I do not work.

How I must do?.

Regards.

SonicGT 01-25-2010 10:58 PM

Quote:

Originally Posted by Selcor (Post 1966520)
I want to translate "Signature Rules" to another language (alone this phrase in the bar of signatures).

I search this phrase for admincp and translating it, but I do not work.

How I must do?.

Regards.


Unfortunatly that is about the one thing that I didn't phrase. If you edit the template Signature_Rules you can make the change

Code:

<div class="block">
        <h2 class="blockhead">
                <b>Signature Rules</b>
        </h2>

Just find the above section in the template and change ""Signature Rules" to whatever you wish it to say

Selcor 01-25-2010 11:31 PM

Perfect, thanks! :D

STORMS 08-22-2010 10:08 PM

Love it! Thanks.

fishmaster 08-23-2010 02:06 AM

Very nice and useful!

sbsforum.us 08-23-2010 08:53 PM

Quote:

Originally Posted by SonicGT (Post 1960805)
It will not work in any other template then the modifysignature, so the newthread behavior is expected.

Can you verify that under admincp that you do have the mod enabled, and that you have
Code:

{vb:raw signaturerules}
as the first line of your modifysignature template.

If so can you post screenshots of all 3 locations (options, template, and what a user sees when editing signature)

This did the trick for me thanks!!

d2gaming 02-26-2011 10:35 AM

Great mod. Kudos!

COL NIL SATIS 02-26-2011 11:45 AM

Tagged for install later

venom2124 02-26-2011 04:17 PM

works good with 4.1.2

rfsforums 03-29-2011 02:21 PM

Installed - Thanks!
Now my users won't have any excuses - yeah right lol

buddha69 07-19-2011 07:42 PM

Newbie here. Where do I find the "template". I'm not sure what the templates are.

buddha69 07-19-2011 07:46 PM

ok I think I found where the templates are - in styles & templates (surprise!). Not sure what to do in there though.

Luca_ITA 08-05-2011 12:25 PM

Just installed in 4.1.5pl1
Working perfectly
Thank you for this mod!!

Luca_ITA 12-27-2011 09:44 AM

works on 4.1.9

HHelp1 12-27-2011 10:33 AM

Nice Mod It's very simple to use And thank you for sharing it hope you develop more Mods like this one
Working on Vb 4.1.8

Scyther 12-28-2011 01:41 AM

works well with 4.1.8
Marked installed and sent for MOTM!

thanks

datoneer 12-28-2011 11:35 AM

Awesome mod! Installed, rated 5, nominated. Working with 4.1.8

michelle86 10-22-2012 02:26 PM

Is there a version of this that is compatible with 4.2.0 or can this mod be updated? I tried installing it and it says it is not compatible. Thanks!

https://vborg.vbsupport.ru/external/2012/10/14.jpg

autoescala 10-24-2012 06:56 AM

Works perfect on 4.2.0 I modify the xml to let me install :)

PHayward 10-27-2012 09:51 PM

How to make it work for 4.2:

1. Open the .xml with notepad
2. Find "<dependency dependencytype="vbulletin" minversion="4.0.0" maxversion="4.1.99" />"
It is on the 8th line so count down or ctrl+f
3. Change max version to 4.2
4. It should look like this:
<dependency dependencytype="vbulletin" minversion="4.0.0" maxversion="4.2.99" />

Now upload and it'll work all good :)


All times are GMT. The time now is 02:36 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.01296 seconds
  • Memory Usage 1,818KB
  • 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
  • (3)bbcode_code_printable
  • (1)bbcode_php_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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