vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Mini Mods - Site Supporter Button in Postbit - Primary/Additional Usergroups supported (https://vborg.vbsupport.ru/showthread.php?t=148629)

BulletNow 09-22-2007 03:40 PM

Any1?

WoodiE 10-03-2007 07:56 PM

Why is a hack needed for this? A simple user rank will do the same and is built right into vB!?!

TigerWare 10-06-2007 07:50 AM

Quote:

Originally Posted by WoodiE (Post 1352339)
Why is a hack needed for this? A simple user rank will do the same and is built right into vB!?!

The built-in user rank system is fine, but what if you want to add a token image to postbit/postbit_legacy to specifically identify a certain type of user/usergroup?

Example. I use this hack to add postbit_legacy images to specific secondary usergroups (article writers and contributors in my forum). This identifies those group members "in addition to" any ranking system I have employed. It is a simple and very effective hack IMO. In addition, I use this hack to identify user #1 with a special 'Site Owner' image too.

Zachery 10-06-2007 04:19 PM

Basicly all this is is a conditional, and one that could be considerably better.

<if condition="is_member_of($post, X)">

Where X is your usergroupid, it will check both their primary and secondary groups agasint this. Some people need to learn to use conditionals.

This is a template modification, not a hack.

TigerWare 10-06-2007 08:35 PM

Quote:

Originally Posted by TigerWare (Post 1353963)
I use this hack to add postbit_legacy images

Quote:

Originally Posted by Zachery (Post 1354194)
This is a template modification, not a hack.

Sorry Zachery, no offense was intended, just a simple phraseology error.

SVTCobraLTD 11-09-2007 05:07 PM

Installed but one thing... anyone know how to remove the User Title for a certain user group? I added this image under the user name but want to be able to remove the user title and how this in its place.

SVTCobraLTD 11-19-2007 05:05 PM

Quote:

Originally Posted by SVTCobraLTD (Post 1379159)
Installed but one thing... anyone know how to remove the User Title for a certain user group? I added this image under the user name but want to be able to remove the user title and have this in its place.


Anyone know how to do this?

SVT

griffinzx10 02-27-2008 03:37 PM

Hello, I posted this in my POSTBIT section of my site, right after the suggested point. 21 Represents my group called Contributor and the image is loaded into the correct location. I have my test member's primary group as Contrbutor, and their secondary group as registered. But I am not seeing the image...

<!-- Site Supporter Code -->
<br /><if condition="$post[usergroupid] == 21"><img src="images/misc/supporter.gif"></if>
<!-- / Site Supporter Code -->

And suggestions would be greatly appreciated.

Thanks

griffinzx10 02-27-2008 03:58 PM

HA got it, thanks anyway....

griffinzx10 02-27-2008 04:02 PM

actually I do have a question.. I have this working when my Site Contributors group is the Primary group. Now can I leave that set up the way it is, but also incorporate the fix for haveing this work as a secondary group? So I can have it work both ways?


All times are GMT. The time now is 01:46 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.01146 seconds
  • Memory Usage 1,738KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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