hola gente de vbhispano alguien me podria ayudar a entender este codigo para integrar Show System Stats es que no entiendo nada
gracias
gracias
Show System Stats
Auther: SnowBot @ Synergy
This will allow your members to input their system information
and display it in the postbit.
iNSTALLATiON
Create Fields
1. Go to AdminCP => User Profile Field Manager => Add New User Profile Field
Profile Field Type: Single Selection Menu
Title: System Specs
Description: Would you like to show other members your computer specs? Default is (NO) This will be displayed in your posts via a drop down menu for other members to view. Add your system specs in your usercp Edit options.
Options:
NO
YES
Set Default: Yes, but no first blank option.
Field Required: No, but display at registration
Field Editable To User: Yes
Display Page: Thread Viewing
Once you got it done, write down your field# . i.e field5
2. OK now to create the input fields.
Go to AdminCP => User Profile Field Manager => Add New User Profile Field
Profile Field Type: Single-Line Text Box
Title: CPU
Description: What CPU do you have?
Field Required: NO
Field Editable by User: YES
Display Page: Thread Viewing
REPEAT step 2 for
Mainboard
Memory
HDD
Graphics Card
Sound Card
OS
3. Open postbit(_legacy) template,
FiND
<if condition="$show['reputation']"><div><if condition="$show['reppower']">$vbphrase[reppower]: $post[reppower]</if>$post[reputationdisplay]</div></if>
BELOW that ADD
<!--System Specs-->
<br />
<if condition="$post[fieldX] == YES">
<div id="sysinfo_$post[postid]" align="left" class="info" nowrap>
<a href="#sysinfo"><b>My System</b> </a><script type="text/javascript"> vbmenu_register("sysinfo_$post[postid]"); </script></div>
</if>
<br />
<!--/System Specs-->
CHANGE fieldX to the field number you wrote down in step 1.
STiLL in postbit(_legacy) template
FiND
</div>
<!-- / post $post[postid] popup menu -->
BELOW that ADD
<!--System Specs-->
<div class="vbmenu_popup" id="sysinfo_$post[postid]_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<td class="thead">My System Information</td>
<if condition="$post[fieldX]"><tr><td class="vbmenu_option"><b>CPU:</b> $post[fieldX]</td></tr></if>
<if condition="$post[fieldX]"><tr><td class="vbmenu_option"><b>Mainboard:</b> $post[fieldX]</td></tr></if>
<if condition="$post[fieldX]"><tr><td class="vbmenu_option"><b>Mem:</b> $post[fieldX]</td></tr></if>
<if condition="$post[fieldX]"><tr><td class="vbmenu_option"><b>HDD:</b> $post[fieldX]</td></tr></if>
<if condition="$post[fieldX]"><tr><td class="vbmenu_option"><b>Video:</b> $post[fieldX]</td></tr></if>
<if condition="$post[fieldX]"><tr><td class="vbmenu_option"><b>Sound:</b> $post[fieldX]</td></tr></if>
<if condition="$post[fieldX]"><tr><td class="vbmenu_option"><b>OS:</b> $post[fieldX]</td></tr></if>
</table>
</div>
<!--/System Specs-->
CHANGE ALL fieldX to the field numbers you wrote down in step 2.
2 instancies of fieldX need to be changed in the above code.
<!----- That's The Lot Enjoy! ----->
Snowy
Synergy