Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 08-11-2005, 07:46 PM
JMH11788 JMH11788 is offline
 
Join Date: Jan 2005
Location: Ohio
Posts: 83
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default New section in user profile...

I basically want something like the image attached below, the computer information section. I have all the profile fields made in my admincp, I just need to know how I make a serperate section to put them in. If anyone could tell me how to do this, I'd greatly appreciate it.
Attached Images
File Type: jpg rig.JPG (192.5 KB, 0 views)
Reply With Quote
  #2  
Old 08-12-2005, 05:28 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

So, you want to add these fields to your profile?

You can edit the profile template in the Admin CP to do so, or are you asking for specific code to add?
Reply With Quote
  #3  
Old 08-12-2005, 07:44 PM
JMH11788 JMH11788 is offline
 
Join Date: Jan 2005
Location: Ohio
Posts: 83
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Tony G
So, you want to add these fields to your profile?

You can edit the profile template in the Admin CP to do so, or are you asking for specific code to add?
Yes I know I can edit in the admincp, but when I do the fields show up in additional info...I'd rather make a new section in the profile to hold the other fields.
Reply With Quote
  #4  
Old 08-13-2005, 07:35 PM
Brinnie's Avatar
Brinnie Brinnie is offline
 
Join Date: Jul 2005
Location: Louisiana
Posts: 360
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Then add a new table.

First duplicate the contents of the Forum Info table.
and then start replacing the codes with your custom codes from whatever hack your using.
Reply With Quote
  #5  
Old 08-14-2005, 05:53 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

The way Brinnie told you to do it is the easiest way, doesn't even require much HTML knowledge. Just add another table by copying one already made, change 'Additional Info' to whatever you want to call the table, and add your content inside.
Reply With Quote
  #6  
Old 08-16-2005, 01:28 AM
JMH11788 JMH11788 is offline
 
Join Date: Jan 2005
Location: Ohio
Posts: 83
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok I made all the user fields, modified the name of "Additional Information" to "Computer Specs"...now what template do I modify to make it look like the first image attached. I also attached an image of what mine currently looks like. Thanks guys.
Attached Images
File Type: jpg attachment.jpg (192.5 KB, 0 views)
File Type: jpg computerspecs.JPG (71.7 KB, 0 views)
Reply With Quote
  #7  
Old 08-21-2005, 07:36 PM
JMH11788 JMH11788 is offline
 
Join Date: Jan 2005
Location: Ohio
Posts: 83
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Alright guys I got it semi-working...but I have one last problem. I created the Rig Specs area like I wanted, but the fields are showing up in both Rig Specs and Additional Information. How do I remove the fields from the Additional Information, but keep them in Rig Specs? Thanks guys.
Attached Images
File Type: jpg rigspecs.JPG (103.7 KB, 0 views)
File Type: jpg addinfo.JPG (72.8 KB, 0 views)
Reply With Quote
  #8  
Old 08-24-2005, 07:39 PM
JMH11788 JMH11788 is offline
 
Join Date: Jan 2005
Location: Ohio
Posts: 83
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can anyone help me with the issue above?
Reply With Quote
  #9  
Old 08-24-2005, 09:18 PM
Adrian Schneider's Avatar
Adrian Schneider Adrian Schneider is offline
 
Join Date: Jul 2004
Posts: 2,528
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Post your MEMBERINFO template (the portion that you are working on).
Reply With Quote
  #10  
Old 08-24-2005, 09:34 PM
JMH11788 JMH11788 is offline
 
Join Date: Jan 2005
Location: Ohio
Posts: 83
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here's the custom code I've added to the template...

PHP Code:
<!-- / Specs Hack -->
<if 
condition="$post['field19'] == '1'">
<
table class="tborder" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="0" width="100%" align="center">
<
tr>
     <
td class="tcat" width="100%">$userinfo[username]'s $vbphrase[rig_specs]</td>
</tr>
<tr valign="top">

    <td class="panelsurround" align="center">
    <div class="panel">
        <div align="$stylevar[left]">
        
        <div class="fieldset">
                <div style="padding:$stylevar[formspacer]px">
                
                <fieldset class="fieldset">    
                <legend>$vbphrase[rig_specs_system]</legend>    
<if condition="$post['
field20'] AND $post['field19'] == '1'">
    CPU: <strong>$post[field20]</strong><br>
</if>
<if condition="$post['
field21'] AND $post['field19'] == '1'">
    Motherboard: <strong>$post[field21]</strong><br>
</if>
<if condition="$post['
field23'] AND $post['field19'] == '1'">
    Memory: <strong>$post[field23]</strong><br>
</if>
<if condition="$post['
field24'] AND $post['field19'] == '1'">
    Graphics Card: <strong>$post[field24]</strong><br>
</if>
<if condition="$post['
field28'] AND $post['field19'] == '1'">
    Sound Card: <strong>$post[field28]</strong><br>
</if>
<if condition="$post['
field25'] AND $post['field19'] == '1'">
    Hard Drive(s): <strong>$post[field25]</strong><br>
</if>
<if condition="$post['
field26'] AND $post['field19'] == '1'">
    Cooling: <strong>$post[field26]</strong><br>
</if>
<if condition="$post['
field27'] AND $post['field19'] == '1'">
    Power Supply: <strong>$post[field27]</strong><br>
</if>
<if condition="$post['
field29'] AND $post['field19'] == '1'">
    Case: <strong>$post[field29]</strong><br>
</if>
<if condition="$post['
field30'] AND $post['field19'] == '1'">
    Monitor: <strong>$post[field30]</strong><br>
</if>
<if condition="$post['
field32'] AND $post['field19'] == '1'">
    Keyboard: <strong>$post[field32]</strong><br>
</if>
<if condition="$post['
field33'] AND $post['field19'] == '1'">
    Mouse: <strong>$post[field33]</strong><br>
</if>
<if condition="$post['
field31'] AND $post['field19'] == '1'">
    Operating System(s): <strong>$post[field31]</strong><br>
</if>
                </fieldset>
                
                <fieldset class="fieldset">    
                <legend>$vbphrase[rig_speeds]</legend>     
<if condition="$post['
field34'] AND $post['field19'] == '1'">
    CPU - Stock: <strong>$post[field34]</strong><br>
</if>
<if condition="$post['
field35'] AND $post['field19'] == '1'">
    CPU - Overclocked: <strong>$post[field35]</strong><br>
</if>
<if condition="$post['
field36'] AND $post['field19'] == '1'">
    Graphics Card - Stock: <strong>$post[field36]</strong><br>
</if>
<if condition="$post['
field37'] AND $post['field19'] == '1'">
    Graphics Card - Overclocked: <strong>$post[field37]</strong><br>
</if>
<if condition="$post['
field40'] AND $post['field19'] == '1'">
    Memory - Stock: <strong>$post[field40]</strong><br>
</if>
<if condition="$post['
field41'] AND $post['field19'] == '1'">
    Memory - Overclocked: <strong>$post[field41]</strong><br>
</if>
<if condition="$post['
field42'] AND $post['field19'] == '1'">
    Memory Timings: <strong>$post[field42]</strong><br>
</if>
</fieldset>

                <fieldset class="fieldset">    
                <legend>$vbphrase[rig_temps]</legend>     
<if condition="$post['
field43'] AND $post['field19'] == '1'">
    CPU Temperature - Idle: <strong>$post[field43]</strong><br>
</if>
<if condition="$post['
field44'] AND $post['field19'] == '1'">
    CPU Temperature - Load: <strong>$post[field44]</strong><br>
</if>
<if condition="$post['
field55'] AND $post['field19'] == '1'">
    Graphics Card Temp - Idle: <strong>$post[field55]</strong><br>
</if>
<if condition="$post['
field56'] AND $post['field19'] == '1'">
    Graphics Card Temp - Load: <strong>$post[field56]</strong><br>
</if>
<if condition="$post['
field45'] AND $post['field19'] == '1'">
    Ambient Temperature: <strong>$post[field45]</strong><br>
</if>
</fieldset>

                <fieldset class="fieldset">    
                <legend>$vbphrase[rig_benchmarks]</legend>     
<if condition="$post['
field48'] AND $post['field19'] == '1'">
    3DMark05 Score: <strong>$post[field48]</strong><br>
</if>
<if condition="$post['
field47'] AND $post['field19'] == '1'">
    3DMark03 Score: <strong>$post[field47]</strong><br>
</if>
<if condition="$post['
field46'] AND $post['field19'] == '1'">
    3DMark01SE Score: <strong>$post[field46]</strong><br>
</if>
<if condition="$post['
field51'] AND $post['field19'] == '1'">
    AquaMark3 Score: <strong>$post[field51]</strong><br>
</if>
<if condition="$post['
field52'] AND $post['field19'] == '1'">
    PCMark05 Score: <strong>$post[field52]</strong><br>
</if>
<if condition="$post['
field49'] AND $post['field19'] == '1'">
    SiSoft Sandra 2005 - CPU Score: <strong>$post[field49]</strong><br>
</if>
<if condition="$post['
field50'] AND $post['field50'] == '1'">
    SiSoft Sandra 2005 - RAM Score: <strong>$post[field31]</strong><br>
</if>
<if condition="$post['
field57'] AND $post['field57'] == '1'">
    SuperPi Score: <strong>$post[field31]</strong><br>
</if>
<if condition="$post['
field53'] AND $post['field19'] == '1'">
    eCalc Score: <strong>$post[field53]</strong><br>
</if>
</fieldset>

                <fieldset class="fieldset">    
                <legend>$vbphrase[rig_other]</legend>     
<if condition="$post['
field54'] AND $post['field19'] == '1'">
     $post[field31]<br>
</if>
</fieldset>
                </div>
              </div>
          </td>
     </tr>
</table>
</if>

<!-- / End Specs Hack --> 
Reply With Quote
Reply


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 01:40 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05033 seconds
  • Memory Usage 2,336KB
  • Queries Executed 12 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (5)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete