vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Show Thread Enhancements - User PC Specs in Postbit (https://vborg.vbsupport.ru/showthread.php?t=197083)

LG Alex 11-23-2008 10:00 PM

User PC Specs in Postbit
 
LIVE DEMO

Introduction:

This template mod will put User PC Specs in your Postbit!
This mod is obviously FREE, and I do not ask for donations. All I ask is that you support me and my passion for Forum Success and register at my new site and give me your input on it!
- http://pcarmada.com/ -thanks :)

Installation:

Create the following new User Profile Fields:

Type: Single-Selection Radio Buttons
Title: Type of Computer
Description: What ever you want.
Options:
PC
Laptop
Mac
iPhone
Handheld


Type: Single-Line Text Box
Title: Motherboard
Description: What ever you want.


Type: Single-Line Text Box
Title: Processor
Description: What ever you want.


Type: Single-Line Text Box
Title: Video Card
Description: What ever you want.



In the Postbit Templates > Postbit Legacy
FIND:
Code:

$template_hook[postbit_userinfo_right_after_posts]

(IF YOU CANT FIND THAT ONE, TRY THIS AND ADD THE BELOW CODE BELOW IT INSTEAD:
Code:

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

)

Add Above:
Code:

$post[musername]'s <if condition="$post['fieldXXX']">
        $post[fieldXXX]
</if> Specs:<br>
<b>Mobo</b>: <if condition="$post['fieldXXX']">
        $post[fieldXXX]
</if><br>
<b>Prcr</b>: <if condition="$post['fieldXXX']">
        $post[fieldXXX]
</if><br>
<b>Vid</b>: <if condition="$post['fieldXXX']">
        $post[fieldXXX]
</if>

Replace the XXX with your corresponding Field ID. (Ex: Field7)

DONE!

Please visit my site to support this mod and to support me:
http://pcarmada.com/
Thank you so much. If I typed something in wrong, let me know and I'll fix it ASAP.

Mike-D 11-24-2008 08:40 PM

It's pretty much the same like Profile Fields in a Postbit Dropdown ;)

Alex LD 11-24-2008 09:40 PM

Actually it is way different then that.
Nice mod.

LG Alex 11-25-2008 12:29 AM

Yes, I would say that that modification has a bit more content to it though. And mine displays the info right on the postbit (better for members to show off) and in a sentance form.

ebed146 12-29-2008 03:15 PM

How do you make this to show up in new postbit not the legacy?


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