Ajuda com "My System" à lá Zwame :P

vascorama

Power Member
Boas, segui estas instruções:

Código:
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.

E já dá para inserir os detalhes no perfil, agora gostava era que aparecesse como aqui na zwame, um botão todo pipi e uma drop down box ao pé do avatar.
Alguém pode ajudar?
Cumps
 
vBulletin.
Esse código que postei tirei lá do fórum, mas não me estou a safar...
Primeiro escolha YES ou NO aparece sempre no perfil, mas apenas no perfil, não aparece o botão "My System" tipo aqui...
 
Back
Topo