Thread: Mini Mods - [DBTech] User Spotlight v1 (vB4)
View Single Post
  #181  
Old 07-29-2014, 07:27 PM
Zoul Zoul is offline
 
Join Date: Nov 2012
Posts: 84
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello DBTech

As you know following a request for improvement on your forum, I would like to highlight two users.
Since my notions are limited to coding css and html, I can only change the program.
Nevertheless I think I found a solution (not practical but manageable) to provide a second user display.

In the template: dbtech_spotlight_userinfo
I duplicated information in 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">&nbsp;
				</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">&nbsp;
				</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">&nbsp;
					</td>
					<td>
					<a href="search.php?do=finduser&amp;userid={vb:raw spot_userdata['userid']}&amp;contenttype=vBForum_Post&amp;showposts=1">{vb:raw spot_userdata['posts']}</a>
					</td>
					</tr>

					<tr>
					<td>
					{vb:rawphrase threads}:
					</td>
					<td width="15">&nbsp;
					</td>
					<td>
					<a href="search.php?do=finduser&amp;userid={vb:raw spot_userdata['userid']}&amp;starteronly=1&amp;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">&nbsp;
					</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">&nbsp;
					</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">&nbsp;
					</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">&nbsp;
					</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">&nbsp;
					</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">&nbsp;
				</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">&nbsp;
				</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">&nbsp;
					</td>
					<td>
					<a href="search.php?do=finduser&amp;userid={vb:raw spot_userdata['userid']}&amp;contenttype=vBForum_Post&amp;showposts=1">{vb:raw spot_userdata['posts']}</a>
					</td>
					</tr>

					<tr>
					<td>
					{vb:rawphrase threads}:
					</td>
					<td width="15">&nbsp;
					</td>
					<td>
					<a href="search.php?do=finduser&amp;userid={vb:raw spot_userdata['userid']}&amp;starteronly=1&amp;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">&nbsp;
					</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">&nbsp;
					</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">&nbsp;
					</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">&nbsp;
					</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">&nbsp;
					</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>
to arrive:



I need variable with an id to finalize the display and you can modify the information as desired.
Pouriez you help me and tell me what I pourai variable use in order to display the information of a desired member

That is the idea, so that I can manually change the id and display the desired user
username_ID_2
userthread _ID_2
userpost_ID_2
usermostactive_ID_2
userlastvisit_ID_2


Thank you for your help
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01179 seconds
  • Memory Usage 1,860KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_html
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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
  • showpost_complete