vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Mini Mods - User's role in the forum on Postbit/Postbit_legacy (https://vborg.vbsupport.ru/showthread.php?t=269689)

Scanu 09-04-2011 10:00 PM

User's role in the forum on Postbit/Postbit_legacy
 
1 Attachment(s)
Hi everyone with this mod you can use the usertitle to add a field in the postbit where is the role of the user in the forum, see screenshot to understand

http://img88.imageshack.us/img88/9940/immaginevo.png

Now here how to do..
Download the file in the attachment and upload in the root of your forum

go in /Admincp/Styles and templates/your style - Edit templates/template postbit/postbit or postbit_legacy

Search and delete
Code:

{vb:raw post.usertitle}
then search for

Code:

<vb:if condition="$post['rank']">
<span class="rank">{vb:raw post.rank}</span>
</vb:if>

Under this add

Code:

<dt><b>Role</b>:</dt> <dd>{vb:raw post.usertitle}</dd>
That's it! :) If you want to place in another space please post you postbit code and tell me wherever you want it and will code the correct template :)

P.S. Sorry for my english i'm italian if you don't understand something please feel free to tell me and i will explain in other words :)

Scanu 09-05-2011 10:35 AM

First reserved

tifa.5xp5 09-05-2011 12:27 PM

thanks pro
:)

Scanu 09-05-2011 12:29 PM

you're welcome if you like this mod please mark us installed :)

mavigul 09-06-2011 06:00 AM

can you share your postbit code?

Scanu 09-06-2011 09:43 AM

If you are looking for the style is not by myself is by manzax here is the mod: https://vborg.vbsupport.ru/showthread.php?p=2092239

westbam666 09-16-2011 11:02 AM

To was in frame:
Code:

<div class="post_field"><dt><b>Role</b>:</dt> <dd>{vb:raw post.usertitle}</dd></div>


All times are GMT. The time now is 10:38 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.01785 seconds
  • Memory Usage 1,719KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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