vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   vB Staff Titles (https://vborg.vbsupport.ru/showthread.php?t=93783)

Logikos 08-06-2005 10:00 PM

vB Staff Titles
 
vB Staff Title

Show your support and vote this hack for HotM September!!


vBulletin 3.5.0 RC 3
www.vBHackers.com

What this does
This will give you the option to add an additional title for staff members, or any user you would like to add. This can be done with conditions only, like if userid = X show this. But this will make things much eaiser to edit and manage. And I spend alot of time in the ACP.

New Features Since Last Release
  • Option to turn the staff title on/off per user.
    This is good so if you want to temporarily disable someones staff title, but don't want to lose the settings.
  • HTML Mark Available now
    This will make it more customizable

Show rank in your members profile
To show the rank in your members profile. Please see this post


Note:
This hack will work for vBulletin Version 3.5.0 RC-1 and RC-2 ONLY!
This is a port from my original hack which can be found here. Had a couple of PMs about it so I said why not. :)

To do list...
  • Time to install: 3 minutes
  • Queries to run: 4
  • File Mods: 0
  • Templates to edit: 1
  • Templates to add: 0
  • New Phrases: 4
  • New Plugins: 2

Please read carefully and make all the necessary changes as stated. This is will work if installed properly.
PLEASE REMEMBER TO BACKUP BEFORE YOU BEGIN! If you like this hack

Click It For Support!
https://vborg.vbsupport.ru/

Help & Support
Before asking for support Please make sure you have done all necessary changes! If you still need support please post a reply here.

Please post bugs and errors here. Hope you like, feedback welcomed.




Version Info:
v1.1: Fixed Missing Phrase
v1.0: Released

Blam Forumz 08-07-2005 10:39 AM

i like!

Logikos 08-07-2005 10:40 AM

Thanks!

Neal-UK 08-07-2005 10:41 AM

very good, installing thank you

Logikos 08-07-2005 10:43 AM

No problem, Let me know if everything goes well.

Neal-UK 08-07-2005 10:48 AM

Quote:

Originally Posted by Live Wire
No problem, Let me know if everything goes well.

How do I find the setting for this?

Logikos 08-07-2005 10:52 AM

When you enter a new user, or edit a user in the Admin Control Panel.

Neal-UK 08-07-2005 10:53 AM

Quote:

Originally Posted by Live Wire
When you enter a new user, or edit a user in the Admin Control Panel.

10-4 on that, thanks.

RoryF 08-07-2005 11:03 AM

Thanks Live wire, thanks for taking my request for this also ^^.

TTG 08-07-2005 11:03 AM

Very useful, thanks Live Wire.
Clicked install.

Logikos 08-07-2005 11:09 AM

Quote:

Originally Posted by RoryF
Thanks Limewire, thanks for taking my request for this also ^^.

LiveWire ;)

RoryF 08-07-2005 11:17 AM

Sorry :P, edited :).

Boofo 08-07-2005 11:37 AM

Looks good, sir. Been waiting for this. ;)

RoryF 08-07-2005 11:47 AM

PHP Code:

                                        <if condition="$post['staffrank_closetag']">$post[staffrank_cloestag]</if>
                                        </
div>
                                </if> 

Small typo that needs to fix, it causes the HTML Colors to carry on throughout the templates you edit. Change it to : -

PHP Code:

                                        <if condition="$post['staffrank_closetag']">$post[staffrank_closetag]</if>
                                        </
div>
                                </if> 

Thanks, fantastic addon!

Boofo 08-07-2005 11:50 AM

Quote:

Originally Posted by RoryF
PHP Code:

<if condition="$post['staffrank_closetag']">$post[staffrank_cloestag]</if>
</
div>
</if> 

Small typo that needs to fix, it causes the HTML Colors to carry on throughout the templates you edit. Change it to : -

PHP Code:

<if condition="$post['staffrank_closetag']">$post[staffrank_closetag]</if>
</
div>
</if> 

Thanks, fantastic addon!

What did you change? They look the same to me.

Logikos 08-07-2005 11:51 AM

I don't see a diffrence in the code you just posted...

RoryF 08-07-2005 11:53 AM

Quote:

Originally Posted by Boofo
What did you change? They look the same to me.

There is a typo in the closetag bit, i think he said "cloestag" or something like that.

Logikos 08-07-2005 11:56 AM

Your example code doesn't show that. But I looked at my readme.txt file and there is a small typo.

In your postbit/postbit_legacy template Find:
HTML Code:

$post[staffrank_cloestag]
Replace With:
HTML Code:

$post[staffrank_closetag]
Thanks for reporting! ZIP updated! :)

RoryF 08-07-2005 11:59 AM

Yes it did, it show the typo with "es" at the close section in the first php code and the second one corrected it. I see it, no one eles does?

I'm really new to this, so i'll forget about it lol. Again, fantastic hack.

Logikos 08-07-2005 12:01 PM

Your right, to eairly to be paying attention.. :p

Logikos 08-07-2005 12:02 PM

To show the rank in your users profile

In template 'memberinfo' Find:
HTML Code:

<if condition="$userinfo['usertitle']"><div class="smallfont">$userinfo[usertitle]</div></if>
Add Under:
HTML Code:

                                <if condition="$userinfo['isstaffrank']">
                                        <div class="smallfont">
                                        <if condition="$userinfo['staffrank_opentag']">$userinfo[staffrank_opentag]</if>
                                                <if condition="$userinfo['staffrank']">$userinfo[staffrank]</if>
                                        <if condition="$userinfo['staffrank_closetag']">$userinfo[staffrank_closetag]</if>
                                        </div>
                                </if>


bigcurt 08-07-2005 12:47 PM

Good job on the port LiveWire..so when you expect to hit "Master Coder"?? :).


~Curt

Logikos 08-07-2005 12:49 PM

When the funds go threw to Stefans offshore account. :p

Boofo 08-07-2005 01:35 PM

Quote:

Originally Posted by Live Wire
When the funds go threw to Stefans offshore account. :p

They've been diverted. Thanks. ;)

ThePimp 08-07-2005 01:48 PM

*installs

rinkrat 08-07-2005 02:00 PM

Does this have to be used for staff? I'd like to use it for my subscribers and give them a custom title automatically when they subscribe. This would require it recognizing their secondary usergroup as being "Subscriber". Can this be done with this hack?

Logikos 08-07-2005 02:07 PM

Quote:

Originally Posted by rinkrat
Does this have to be used for staff? I'd like to use it for my subscribers and give them a custom title automatically when they subscribe. This would require it recognizing their secondary usergroup as being "Subscriber". Can this be done with this hack?

No it cannot, but if they are being changed to the appropriate user group after subscribing then you can use the custom title field in the usergroup options. Or a simple condition as this:

HTML Code:

<if condition="$bbuserinfo[usergroupid] == X"><i>Site Subscriber</i></if>
Changing X to the subscriber usergroupid :)

Mike Gaidin 08-07-2005 03:50 PM

Nice, I like this. Thanks!

twoseven 08-07-2005 04:02 PM

staffrank_cloestag to staffrank_closetag

Jedi Blaze 08-07-2005 04:03 PM

Thanks, very nice. :D *clicks install*

Logikos 08-07-2005 04:25 PM

Quote:

Originally Posted by twoseven
staffrank_cloestag to staffrank_closetag

https://vborg.vbsupport.ru/showpost....7&postcount=18

Snake 08-07-2005 07:08 PM

What a hack!

Installs and thanks! :)

KURTUL 08-08-2005 06:25 AM

Thanks

Brinnie 08-08-2005 11:29 AM

Thank you... Would be cool to show in Forums Leaders page. :)

Logikos 08-08-2005 11:41 AM

Quote:

Originally Posted by Brinnie
Thank you... Would be cool to show in Forums Leaders page. :)

There are 2 ways of doing this:

1) Hack the existing query in the showgroup.php
2) Add an additional query via a plugin

I don't like either way. Untill vBulletin comes up with a way to hack pre-existing queries via a plugin, then those way above would have to do.

Brinnie 08-08-2005 12:10 PM

Quote:

Originally Posted by Live Wire
There are 2 ways of doing this:

1) Hack the existing query in the showgroup.php
2) Add an additional query via a plugin

I don't like either way. Untill vBulletin comes up with a way to hack pre-existing queries via a plugin, then those way above would have to do.

just HOW many people sit there on the leaders page all day saying "Damn, everytime I come to this page, it goes so slow."

utw-Mephisto 08-08-2005 07:05 PM

I get the following error when uploading the plugin :

http://img309.imageshack.us/img309/8475/untitled8bu.jpg

Boofo 08-08-2005 07:13 PM

That's because you need to import it in the product manager, not as a plug-in. ;)

Logikos 08-08-2005 07:18 PM

Read the readme.txt file. I explained in detail how to import it. ;)

This is my template for ALL of my hacks.
Quote:

// - Log into you Admin Control Panel -
// #############################################
-----------------------------------------------
1.) Find 'Plugin System';
2.) Click 'Manage Products';
3.) Click '[Add/Import Product]';
4.) Under 'Import Product';
5.) Click browse and point to '.xml' which was provided in this .zip file;
6.) Allow Overwrite should be 'off';
7.) Press Import
-----------------------------------------------


utw-Mephisto 08-08-2005 07:24 PM

SHAME on me :D :D


All times are GMT. The time now is 04:46 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.01581 seconds
  • Memory Usage 1,835KB
  • 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
  • (5)bbcode_html_printable
  • (4)bbcode_php_printable
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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