Hello Lynne
The original program is: https://vborg.vbsupport.ru/showthrea...user+spotlight
Then the template used is: dbtech_spotlight_userinfo
It is displayed in: FORUMHOME (<- what's going on box ->)
the original idea would be to add an id (2) box in the program
https://vborg.vbsupport.ru/external/2014/07/10.png
to go from this:
https://vborg.vbsupport.ru/external/2014/07/11.png
in that:
https://vborg.vbsupport.ru/external/2014/07/12.png
to try a bearing my name can change the hack, I went to: dbtech_spotlight_userinfo
and I duplicated the code by creating a table
HTML Code:
<table style="width:100%" border="0">
<tr><td>
<vb:if condition="$use_full_block">
<div>
<h2 class="blockhead" align="center">{vb:rawphrase dbtech_spotlight}</h2>
<div class="blockbody formcontrols settings_form_border" id="dbtech_spotlight">
<div class="blockrow">
<vb:else />
<div id="wgo_spotlight" class="wgo_subblock section">
<h3 class="blocksubhead"><img src="{vb:stylevar imgdir_misc}/users_online.png" alt="{vb:rawphrase dbtech_spotlight}" />Membre de la semaine</h3>
<div>
</vb:if>
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td width="15">
</td>
<vb:if condition="$spot_userdata['user_has_pic']">
<td width="{vb:raw vboptions.dbtech_spotlight_max_width}">
<img src="{vb:raw spot_userdata['pic']}" alt="User Image" border="0" style="max-height: {vb:raw vboptions.dbtech_spotlight_max_height}px; max-width: {vb:raw vboptions.dbtech_spotlight_max_width}px;">
</td>
<td width="15">
</td>
</vb:if>
<td width="*">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td colspan="2">
<a href="{vb:raw spot_userdata['userlink']}">{vb:raw spot_userdata['musername']}</a>
</td>
</tr>
<tr>
<td>
{vb:rawphrase posts}:
</td>
<td width="15">
</td>
<td>
<a href="search.php?do=finduser&userid={vb:raw spot_userdata['userid']}&contenttype=vBForum_Post&showposts=1">{vb:raw spot_userdata['posts']}</a>
</td>
</tr>
<tr>
<td>
{vb:rawphrase threads}:
</td>
<td width="15">
</td>
<td>
<a href="search.php?do=finduser&userid={vb:raw spot_userdata['userid']}&starteronly=1&contenttype=vBForum_Thread">{vb:raw spot_userdata['threads']}</a>
</td>
</tr>
<vb:if condition="$spot_userdata['spot_location']">
<tr>
<td>
{vb:rawphrase field2_title}:
</td>
<td width="15">
</td>
<td>
{vb:raw spot_userdata['spot_location']}
</td>
</tr>
</vb:if>
<vb:if condition="$spot_userdata['spot_occupation']">
<tr>
<td>
{vb:rawphrase field4_title}:
</td>
<td width="15">
</td>
<td>
{vb:raw spot_userdata['spot_occupation']}
</td>
</tr>
</vb:if>
<vb:if condition="$spot_userdata['show_reputation']">
<tr>
<td>
{vb:rawphrase reputation}:
</td>
<td width="15">
</td>
<td>
{vb:raw spot_userdata['reputation']}
</td>
</tr>
</vb:if>
<vb:if condition="$spot_userdata['cust_block_data']">
{vb:raw spot_userdata['cust_block_data']}
</vb:if>
<vb:if condition="$spot_userdata['can_view_forum']">
<tr>
<td>
{vb:rawphrase dbtech_spot_most_active}:
</td>
<td width="15">
</td>
<td>
<a href="forumdisplay.php?f={vb:raw spot_userdata['most_active_id']}">{vb:raw spot_userdata['most_active']}</a>
</td>
</tr>
</vb:if>
<tr>
<td>
{vb:rawphrase last_activity}:
</td>
<td width="15">
</td>
<td>
{vb:raw spot_userdata['user_lastdate']}
</td>
</tr>
<vb:if condition="$spot_userdata['spot_signature']">
<tr>
<td colspan="3">
{vb:rawphrase signature}:<br />
{vb:raw spot_userdata['spot_signature']}
</td>
</tr>
</vb:if>
</table>
</td>
</tr>
</table>
<vb:if condition="$use_full_block">
</div>
</div>
</div>
<vb:else />
</div>
</div>
</vb:if>
</td><td>
<vb:if condition="$use_full_block">
<div>
<h2 class="blockhead" align="center">{vb:rawphrase dbtech_spotlight}</h2>
<div class="blockbody formcontrols settings_form_border" id="dbtech_spotlight">
<div class="blockrow">
<vb:else />
<div id="wgo_spotlight" class="wgo_subblock section">
<h3 class="blocksubhead"><img src="{vb:stylevar imgdir_misc}/users_online.png" alt="{vb:rawphrase dbtech_spotlight}" />Membre du Mois</h3>
<div>
</vb:if>
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td width="15">
</td>
<vb:if condition="$spot_userdata['user_has_pic']">
<td width="{vb:raw vboptions.dbtech_spotlight_max_width}">
<img src="{vb:raw spot_userdata['pic']}" alt="User Image" border="0" style="max-height: {vb:raw vboptions.dbtech_spotlight_max_height}px; max-width: {vb:raw vboptions.dbtech_spotlight_max_width}px;">
</td>
<td width="15">
</td>
</vb:if>
<td width="*">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td colspan="2">
<a href="{vb:raw spot_userdata['userlink']}">{vb:raw spot_userdata['musername']}</a>
</td>
</tr>
<tr>
<td>
{vb:rawphrase posts}:
</td>
<td width="15">
</td>
<td>
<a href="search.php?do=finduser&userid={vb:raw spot_userdata['userid']}&contenttype=vBForum_Post&showposts=1">{vb:raw spot_userdata['posts']}</a>
</td>
</tr>
<tr>
<td>
{vb:rawphrase threads}:
</td>
<td width="15">
</td>
<td>
<a href="search.php?do=finduser&userid={vb:raw spot_userdata['userid']}&starteronly=1&contenttype=vBForum_Thread">{vb:raw spot_userdata['threads']}</a>
</td>
</tr>
<vb:if condition="$spot_userdata['spot_location']">
<tr>
<td>
{vb:rawphrase field2_title}:
</td>
<td width="15">
</td>
<td>
{vb:raw spot_userdata['spot_location']}
</td>
</tr>
</vb:if>
<vb:if condition="$spot_userdata['spot_occupation']">
<tr>
<td>
{vb:rawphrase field4_title}:
</td>
<td width="15">
</td>
<td>
{vb:raw spot_userdata['spot_occupation']}
</td>
</tr>
</vb:if>
<vb:if condition="$spot_userdata['show_reputation']">
<tr>
<td>
{vb:rawphrase reputation}:
</td>
<td width="15">
</td>
<td>
{vb:raw spot_userdata['reputation']}
</td>
</tr>
</vb:if>
<vb:if condition="$spot_userdata['cust_block_data']">
{vb:raw spot_userdata['cust_block_data']}
</vb:if>
<vb:if condition="$spot_userdata['can_view_forum']">
<tr>
<td>
{vb:rawphrase dbtech_spot_most_active}:
</td>
<td width="15">
</td>
<td>
<a href="forumdisplay.php?f={vb:raw spot_userdata['most_active_id']}">{vb:raw spot_userdata['most_active']}</a>
</td>
</tr>
</vb:if>
<tr>
<td>
{vb:rawphrase last_activity}:
</td>
<td width="15">
</td>
<td>
{vb:raw spot_userdata['user_lastdate']}
</td>
</tr>
<vb:if condition="$spot_userdata['spot_signature']">
<tr>
<td colspan="3">
{vb:rawphrase signature}:<br />
{vb:raw spot_userdata['spot_signature']}
</td>
</tr>
</vb:if>
</table>
</td>
</tr>
</table>
<vb:if condition="$use_full_block">
</div>
</div>
</div>
<vb:else />
</div>
</div>
</vb:if>
</tr></table>
and here is the result:
https://vborg.vbsupport.ru/external/2014/07/7.png
as you can see, the idea is to display a user selected (as prog default) right
either by modifying the program
or by changing the variables by default variables can be customized by the id for each information
I'm fairly complete?
|