Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Template Modifications

Reply
 
Thread Tools
PC Hardware info Details »»
PC Hardware info
Version: 1.01, by Mith Mith is offline
Developer Last Online: Jul 2010 Show Printable Version Email this Page

Version: 3.0.7 Rating:
Released: 07-12-2005 Last Update: 07-19-2005 Installs: 8
Template Edits
 
No support by the author.

So many people in so many forums want this and the information given was vague, so i decided to make my own.

Usage:
Although any admin can add user profile fields easily..getting them to show in the correct place in the postbit can be tricky.

This little mod allows your users to add details about their pc and shows it in their postbit.
Adds a little check box to allow them to easily show or hide their hardware.

8 New user profile feilds
1 Template edit

Difficulty -> Easy
Time -> 5-10 minutes
See the txt file attached for install instructions.

V1.01 - added instructions for postbit_legacy

My first ever modification, so if theres any ways of tidying/improving it etc, valuable feedback is appreciated.

This works perfectly well for VB3.5 (All Flavors inc Gold)

If anyone wishes to convert this to a 3.5 plugin, I'd be most interested to see how thats achieved ;-) (Please PM me)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 07-17-2005, 01:59 AM
Tony G's Avatar
Tony G Tony G is offline
 
Join Date: Nov 2001
Location: Melbourne, Australia
Posts: 8,357
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What's the code problem that you're having? o_O Need to be a bit more descriptive please.
Reply With Quote
  #13  
Old 07-17-2005, 03:33 PM
vakvak vakvak is offline
 
Join Date: Mar 2005
Location: T?rkiye
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
<td width="90%">&nbsp;</td>
<td valign="top" nowrap="" align="left">
<div class="smallfont">

<if condition="$post['field7'] == '7'">
<b>Donanım Bilgilerim</b><br>
</if>
<if condition="$post['field8'] AND $post['field7'] == '7'">
KSA: $post[field8]<br>
</if>
<if condition="$post['field9'] AND $post['field7'] == '7'">
MB: $post[field9]<br>
</if>
<if condition="$post['field10'] AND $post['field7'] == '7'">
CPU: $post[field10]<br>
</if>

</div>

</td>
<td width="100%">&nbsp;</td>
where to fall into error?
Reply With Quote
  #14  
Old 07-19-2005, 09:41 AM
vakvak vakvak is offline
 
Join Date: Mar 2005
Location: T?rkiye
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

help me pls...
Reply With Quote
  #15  
Old 07-19-2005, 09:58 AM
Mith Mith is offline
 
Join Date: Jul 2004
Location: Newcastle, UK
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Are you getting some sort of error?

I'm new to all this myself, but if you can describe better what error or what is happening that you don't expect I'm sure I'll have a stab at helping you out, or I know there are others that will direct you.
Reply With Quote
  #16  
Old 07-19-2005, 10:15 AM
vakvak vakvak is offline
 
Join Date: Mar 2005
Location: T?rkiye
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

field7



field10



where problem?
Reply With Quote
  #17  
Old 07-19-2005, 11:36 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Vakvak, you showed us some code and screenshots, but you didn't say what the problem is that you have with this.
Reply With Quote
  #18  
Old 07-19-2005, 11:46 AM
vakvak vakvak is offline
 
Join Date: Mar 2005
Location: T?rkiye
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

postbit_legacy

Quote:
<td width="90%">&nbsp;</td>
<td valign="top" nowrap="" align="left">
<div class="smallfont">

<if condition="$post['field7'] == '7'">
<b>Donanım Bilgilerim</b><br>
</if>
<if condition="$post['field8'] AND $post['field7'] == '7'">
KSA: $post[field8]<br>
</if>
<if condition="$post['field9'] AND $post['field7'] == '7'">
MB: $post[field9]<br>
</if>
<if condition="$post['field10'] AND $post['field7'] == '7'">
CPU: $post[field10]<br>
</if>

</div>

</td>
<td width="100%">&nbsp;</td>
problem

Reply With Quote
  #19  
Old 07-20-2005, 03:27 PM
Mith Mith is offline
 
Join Date: Jul 2004
Location: Newcastle, UK
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The mod is for postbit not postbit_legacy I will look into doing one for legacy now.

find in postbit_legacy:
Code:
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon]</div>
Under that put:
Code:
<if condition="$post['fieldx1'] == '1'">	
<b>Hardware Info</b><br>
</if>
<if condition="$post['fieldx2'] AND $post['fieldx1'] == '1'">
	CPU: $post[fieldx2]<br>
</if>
<if condition="$post['fieldx3'] AND $post['fieldx1'] == '1'">
	GFX: $post[fieldx3]<br>
</if>
<if condition="$post['fieldx4'] AND $post['fieldx1'] == '1'">
	RAM: $post[fieldx4]<br>
</if>
<if condition="$post['fieldx5'] AND $post['fieldx1'] == '1'">
	HDD: $post[fieldx5]<br>
</if>
<if condition="$post['fieldx6'] AND $post['fieldx1'] == '1'">
	Mobo: $post[fieldx6]<br>
</if>
<if condition="$post['fieldx7'] AND $post['fieldx1'] == '1'">
	OS: $post[fieldx7]<br>
</if>
<if condition="$post['fieldx8'] AND $post['fieldx1'] == '1'">
	Sound: $post[fieldx8]
</if>
Hope thats right.. again if anyone can tidy it, lemme know
Reply With Quote
  #20  
Old 07-20-2005, 04:10 PM
Mith Mith is offline
 
Join Date: Jul 2004
Location: Newcastle, UK
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

also in replt to #15
vakvak.. remember not to put <leave blank> in the default value field or you defeat the point of the if statements... just leave it empty = blank
Reply With Quote
  #21  
Old 07-20-2005, 04:51 PM
vakvak vakvak is offline
 
Join Date: Mar 2005
Location: T?rkiye
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Mith thank you
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:21 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.07545 seconds
  • Memory Usage 2,299KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete