vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   UserID in postbit_legacy (https://vborg.vbsupport.ru/showthread.php?t=98645)

Lea Verou 10-17-2005 10:00 PM

UserID in postbit_legacy
 
This little modification adds a field in postbit_legacy (the vertical/classic one) for the userID, under the posts number. If guest posting is allowed the field will not be displayed in the postbit at all for the guests. :)

Instructions:

In the template postbit_legacy find:
HTML Code:

<div>
      $vbphrase[posts]: $post[posts]
</div>

Add below:
HTML Code:

<if condition="$post[userid]">
    <div>UserID: $post[userid]</div>
</if>

You're done! :)

Let me know if you'd like the UserID somewhere else in the postbit.

If you liked it and are using it don't forget to click INSTALL! :)

hivelord 10-18-2005 03:35 AM

Cool idea.

Snake 10-18-2005 12:02 PM

Oh man that's what I've been looking for. Thanks!

Scooter-project 10-20-2005 04:38 PM

thank you very much!!!!

:D

if i want to change "userID" whit something else how can i do?

Lea Verou 10-20-2005 04:48 PM

Quote:

Originally Posted by Scooter-project
thank you very much!!!!

:D

if i want to change "userID" whit something else how can i do?

Just change "UserID" in the template addition.
You can also make it as a phrase by adding a phrase called (for example) "userid_postbit" in the GLOBAL group and then in the template instead of UserID put $vbphrase[userid_postbit].
Wou can name the phrase whatever you like, userid_postbit is just an example to show you how it works ;)
Ask me if you have more questions :)

Andyrew 10-24-2005 11:05 PM

My forum uses the horizontal how do i change it..?

It's ok i found it.

rb290 10-25-2005 07:10 AM

thanks installed.

rb290 10-25-2005 07:11 AM

any ideas on how to put space between join date, posts, etc. cause it kinda looks stacked up ontop of eachother

Lea Verou 10-25-2005 09:38 AM

Quote:

Originally Posted by rb290
any ideas on how to put space between join date, posts, etc. cause it kinda looks stacked up ontop of eachother

Can you provide a screenshot with an arrow showing where you'd like that?
Anyway, most of the times tis can be done with an extra <br /> :)

kungfujesus 04-10-2006 06:03 AM

Beautiful. Nothing better than showing your members exactly where they stand in the n00b department.
Installed on 3.5.4 with no problems.


All times are GMT. The time now is 01:50 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.01024 seconds
  • Memory Usage 1,729KB
  • 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
  • (2)bbcode_html_printable
  • (2)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
  • (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