Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Latest x Threads by User Details »»
Latest x Threads by User
Version: 3.8.004, by ry215 ry215 is offline
Developer Last Online: May 2022 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 3.8.2 Rating:
Released: 04-15-2009 Last Update: 04-17-2009 Installs: 155
Uses Plugins Auto-Templates
Translations  
No support by the author.

REQ: https://vborg.vbsupport.ru/showthread.php?t=211325

Description
Show X lastest threads by thread starter below his/her the first post.

Info:
Plugins: 3
Phrases: 22
Template: 5
Setting: 6

Install:
Import Product Via Manage Products
ACP >> Plugins & Products >> Manage Products >> [Add/Import Product]


Settings:

ACP >> vBulletin Options >> vBulletin Options >> Lastest X Thread by User Settings

History:
-v3.8.001: First Release
-v3.8.002: Add Lastest Thread on Memberinfo Tab
-v3.8.003: Fixed DB Error when view a thread created by a deleted user
-v3.8.004: Fixed bug: See your own Lastest Threads at other users' profile tabs.

Download Now

File Type: xml product-lastest_thread_by_user.xml (18.5 KB, 817 views)

Screenshots

File Type: png lxt_acp.png (70.6 KB, 0 views)
File Type: jpg txt_showthread.jpg (76.2 KB, 0 views)
File Type: jpg txt_memberinfo.jpg (71.6 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
mapleleaffans

Comments
  #52  
Old 07-28-2009, 06:29 AM
Markets Where Markets Where is offline
 
Join Date: Feb 2007
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very good plugin, how to add a link to the latest poster of each thread? Then we can check the latest poster's threads also.

Thanks.
Reply With Quote
  #53  
Old 07-29-2009, 05:42 AM
Markets Where Markets Where is offline
 
Join Date: Feb 2007
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<a href="http://forums.glassesadvisor.com/showthread.php?t=7405" target="_blank">http://forums.glassesadvisor.com/showthread.php?t=7405</a>

I want to move the 5 Latest Threads by smiling under Similar Threads, what to do?
tks.
Reply With Quote
  #54  
Old 08-14-2009, 03:27 PM
donny84 donny84 is offline
 
Join Date: Apr 2009
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

installs but doesnt show on the forum, any ideas?
Reply With Quote
  #55  
Old 08-16-2009, 08:50 PM
letsjoy's Avatar
letsjoy letsjoy is offline
 
Join Date: Jun 2006
Location: Dhump State
Posts: 197
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Really rocks...add more options in it
Reply With Quote
  #56  
Old 08-17-2009, 04:16 AM
Capt.Jack Capt.Jack is offline
 
Join Date: Feb 2009
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very nice mod. Thank you.

I have set the result # to 0 to disable the display on showthread.
I have also excluded all but forumid #39 so that only results from it are displayed. I know there is a way to change the code to include only #39, but this was easy and will do for now.

Now, I would like to set the number of results for the members page to a very high number and paginate the results. Unfortunately, I've worked on this for hours and can't figure it out. Is there someone out there that can help me?

Here is an unedited copy of the plugin which controls the members block:

Code:
$blocklist = array_merge($blocklist, array(
		'lxt_memberinfo' => array(
		'class' => 'lxt_memberinfo',
		'title' => $vbphrase['lxt_threads_member'],
		'hook_location' => 'profile_left_middle_one'
	)
));

class vB_ProfileBlock_lxt_memberinfo extends vB_ProfileBlock
{
	var $template_name = 'memberinfo_block_lxt_memberinfo';

	function confirm_empty_wrap()
	{
		return false;
	}

	function confirm_display()
	{
		return ($this->block_data['lxt_memberinfo'] != '');
	}

	function prepare_output($id = '', $options = array())
	{
		global $stylevar, $db, $vbulletin, $vbphrase;

		$lxt_limit_member = $vbulletin->options['lxt_limit_number_member'];
		$trimthreadtitle = $vbulletin->options['lxt_trimthreadtitles'];
		$excludedforums = '';
		if ($vbulletin->options['lxt_exclude_forums'] !== '') {
			$excludedforums = ',' . $vbulletin->options['lxt_exclude_forums'];
		} 

		$excludedforums = substr($excludedforums, 1);

		if ($excludedforums != "") {
			$excludedforums = "AND thread.forumid NOT IN ($excludedforums)";
		}
        
		$get_lxts = $db->query_read_slave("
			SELECT
				thread.threadid, thread.title, thread.lastpost, thread.forumid, 
				thread.replycount, thread.lastposter, thread.dateline, thread.prefixid,
                IF(thread.views<=thread.replycount, thread.replycount+1, thread.views) AS views, 
				thread.visible, user.username, user.userid, user.usergroupid, 
				IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid, 
				forum.title_clean as forum_title, post.pagetext AS preview, post.allowsmilie, post.postid 
				FROM " . TABLE_PREFIX . "thread AS thread
				LEFT JOIN " . TABLE_PREFIX . "user AS user ON (user.username = thread.lastposter)
				LEFT JOIN " . TABLE_PREFIX . "forum as forum ON (thread.forumid = forum.forumid)
				LEFT JOIN " . TABLE_PREFIX . "post AS post ON (post.postid = thread.firstpostid)
				WHERE thread.visible = '1' AND post.visible = '1' AND thread.open!='10'
				AND thread.postuserid = " . intval ($vbulletin->GPC['userid']) . "
				$excludedforums 
				ORDER BY thread.dateline DESC 
				LIMIT $lxt_limit_member");

				if ($db->num_rows($get_lxts))
				{
				while ($get_lxt = $db->fetch_array($get_lxts))	{

				$fperms = fetch_permissions($get_lxt['forumid']);
				if (($fperms & $vbulletin->bf_ugp_forumpermissions['canview']) AND
					(($fperms & $vbulletin->bf_ugp_forumpermissions['canviewothers']) OR ($vbulletin->userinfo['userid'] != 0 AND $simthread['postuserid'] == $vbulletin->userinfo['userid']))
				)
					{
					if (isset($get_lxt['preview']) AND $vbulletin->options['ltx_threadpreview'] > 0)
					{
					$get_lxt['preview'] = strip_quotes($get_lxt['preview']);
					$get_lxt['preview'] = htmlspecialchars_uni(fetch_trimmed_title(strip_bbcode($get_lxt['preview'], false, true), $vbulletin->options['ltx_threadpreview']));
					}
					if ($get_lxt['prefixid'])
					{
						$get_lxt['prefix_plain_html'] = htmlspecialchars_uni($vbphrase["prefix_$get_lxt[prefixid]_title_plain"]);
						$get_lxt['prefix_rich'] = $vbphrase["prefix_$get_lxt[prefixid]_title_rich"];
					}
					else
					{
						$get_lxt['prefix_plain_html'] = '';
						$get_lxt['prefix_rich'] = '';
					}
					$get_lxt[musername] = fetch_musername($get_lxt);
					$get_lxt[fullthreadtitle] = strip_tags($get_lxt[title]);
					if ($trimthreadtitle > 0)	{
						$get_lxt[titletrimmed] = fetch_trimmed_title($get_lxt[fullthreadtitle], $trimthreadtitle);
					}
					else	{
						$get_lxt[titletrimmed] = $get_lxt[fullthreadtitle];
					}
					$get_lxt[newpost] = ($get_lxt[lastpost] > $vbulletin->userinfo['lastvisit'])? 'new' : 'old';
					$get_lxt_forumtitle = strip_tags($vbulletin->forumcache["$get_lxt[forumid]"]['title_clean']);	
					$get_lxt_startdate = vbdate($vbulletin->options['dateformat'], $get_lxt[dateline]);
					$get_lxt_time = vbdate($vbulletin->options['timeformat'], $get_lxt[dateline]);
					eval('$lxt_memberinfo_bits .= "' . $vbulletin->templatecache['memberinfo_lxt_bits'] . '";');
					}
				}
				eval('$lxt_memberinfo_out .= "' . fetch_template('memberinfo_lxt') . '";');
				}	
				$db->free_result($get_lxts);

		$this->block_data['lxt_memberinfo'] = $lxt_memberinfo_out;
	}
}
Reply With Quote
  #57  
Old 07-30-2010, 03:35 AM
inciarco's Avatar
inciarco inciarco is offline
 
Join Date: Mar 2007
Posts: 758
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SnakeV View Post
How can i move it to other location?

For example i want to put it below the Similar Threads.

Thanks
I Also Had the Same Question.

Thank You ry215 for Sharing this Great Mod. :up:

(Nominated, Of Course).

Perhaps You Can Include the Possibility to Choose to Locate the Code of the "showthread_lxt" Template in the Postbit (as it is by Default), and also in a Location on the "ShowThread" Template, using a Replacing Code like "$similarthreads".

Now, to Place it Under "Similar Threads", (Code $similarthreads in the ShowThread Template):

1.

Disable Plugin "LXT - Postbit Complete".

2.

On Template "showthread_lxt", Delete the First "<br />" at the Beginning of the Code. (That "<br />" adds an Extra Space that is Not Necessary).

3.

Create and Activate a New Plugin:

Name: LXT - Postbit Complete - Under Similar Threads - ShowThread_Complete

Hook: showthread_complete

Code:

Code:
global $vbulletin, $db; 
if ($vbulletin->options['lxt_enable']) {

		$lxt_limit = $vbulletin->options['lxt_limit_number'];
		$trimthreadtitle = $vbulletin->options['lxt_trimthreadtitles'];
		$excludedforums = '';
		if ($vbulletin->options['lxt_exclude_forums'] !== '') {
			$excludedforums = ',' . $vbulletin->options['lxt_exclude_forums'];
		} 

		$excludedforums = substr($excludedforums, 1);

		if ($excludedforums != "") {
			$excludedforums = "AND thread.forumid NOT IN ($excludedforums)";
		}
        
		$get_lxts = $db->query_read_slave("
			SELECT
				thread.threadid, thread.title, thread.lastpost, thread.forumid, 
				thread.replycount, thread.lastposter, thread.dateline, thread.prefixid,
                IF(thread.views<=thread.replycount, thread.replycount+1, thread.views) AS views, 
				thread.visible, user.username, user.userid, user.usergroupid, 
				IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid, 
				forum.title_clean as forum_title, post.pagetext AS preview, post.allowsmilie, post.postid 
				FROM " . TABLE_PREFIX . "thread AS thread
				LEFT JOIN " . TABLE_PREFIX . "user AS user ON (user.username = thread.lastposter)
				LEFT JOIN " . TABLE_PREFIX . "forum as forum ON (thread.forumid = forum.forumid)
				LEFT JOIN " . TABLE_PREFIX . "post AS post ON (post.postid = thread.firstpostid)
				WHERE thread.visible = '1' AND post.visible = '1' AND thread.open!='10'
				AND thread.postuserid IN (".$thread['postuserid'].")
				$excludedforums 
				ORDER BY thread.dateline DESC 
				LIMIT $lxt_limit");

				if ($db->num_rows($get_lxts))
				{
				while ($get_lxt = $db->fetch_array($get_lxts))	{

				$fperms = fetch_permissions($get_lxt['forumid']);
				if (($fperms & $vbulletin->bf_ugp_forumpermissions['canview']) AND
					(($fperms & $vbulletin->bf_ugp_forumpermissions['canviewothers']) OR ($vbulletin->userinfo['userid'] != 0 AND $simthread['postuserid'] == $vbulletin->userinfo['userid']))
				)
					{
					if (isset($get_lxt['preview']) AND $vbulletin->options['ltx_threadpreview'] > 0)
					{
					$get_lxt['preview'] = strip_quotes($get_lxt['preview']);
					$get_lxt['preview'] = htmlspecialchars_uni(fetch_trimmed_title(strip_bbcode($get_lxt['preview'], false, true), $vbulletin->options['ltx_threadpreview']));
					}
					if ($get_lxt['prefixid'])
					{
						$get_lxt['prefix_plain_html'] = htmlspecialchars_uni($vbphrase["prefix_$get_lxt[prefixid]_title_plain"]);
						$get_lxt['prefix_rich'] = $vbphrase["prefix_$get_lxt[prefixid]_title_rich"];
					}
					else
					{
						$get_lxt['prefix_plain_html'] = '';
						$get_lxt['prefix_rich'] = '';
					}
					$get_lxt[fullthreadtitle] = strip_tags($get_lxt[title]);
					$get_lxt[musername] = fetch_musername($get_lxt);
					if ($trimthreadtitle > 0)	{
						$get_lxt[titletrimmed] = fetch_trimmed_title($get_lxt[fullthreadtitle], $trimthreadtitle);
					}
					else	{
						$get_lxt[titletrimmed] = $get_lxt[fullthreadtitle];
					}
					$get_lxt[newpost] = ($get_lxt[lastpost] > $vbulletin->userinfo['lastvisit'])? 'new' : 'old';
					$get_lxt_forumtitle = strip_tags($vbulletin->forumcache["$get_lxt[forumid]"]['title_clean']);	
					$get_lxt_startdate = vbdate($vbulletin->options['dateformat'], $get_lxt[dateline]);
					$get_lxt_time = vbdate($vbulletin->options['timeformat'], $get_lxt[dateline]);
					eval('$lxt_bits .= "' . $vbulletin->templatecache['showthread_lxt_bits'] . '";');
					}
				}
				$threadstart = $thread['postusername'];
				eval('$similarthreads .= "' . fetch_template('showthread_lxt') . '";');
				}	
				$db->free_result($get_lxts);
}
4.

That's it, the Location is Adjusted by the Following Line in the Code:

Code:
				eval('$similarthreads .= "' . fetch_template('showthread_lxt') . '";');
Notice the $similarthreads in the Code.


My Best Regards.

Reply With Quote
  #58  
Old 07-30-2010, 07:01 PM
farazfaraz farazfaraz is offline
 
Join Date: Mar 2009
Location: Iran-Tehran
Posts: 59
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yes yes
nice
Reply With Quote
  #59  
Old 10-29-2010, 10:36 AM
haytham's Avatar
haytham haytham is offline
 
Join Date: Jan 2003
Location: USA-Egypt-UAE
Posts: 510
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks installed but only showing on profile page although that is not bad.
Reply With Quote
  #60  
Old 12-02-2010, 04:08 PM
chikkoo chikkoo is offline
 
Join Date: Mar 2005
Posts: 223
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I installed this mod long back, I liked it very much. But I would appreciate if we could select the forums in the Member profile.

I want to display only 4-5 forums, but want to display it forumwise.

Can someone help me, how to modify this?
Reply With Quote
  #61  
Old 12-23-2010, 05:28 AM
chikkoo chikkoo is offline
 
Join Date: Mar 2005
Posts: 223
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very nice Mod....

Similar to Forums Excluded option, can we have Forums Included option???

I have 165 forums in my board, but I want to show only 10 forum contents. With the forums excluded i have to exclude 155 forums. It is better if I could mention only 10 forums, if you introduce the Forum Included feature.
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 03:58 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.09074 seconds
  • Memory Usage 2,355KB
  • Queries Executed 26 (?)
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
  • (3)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (1)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (4)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • 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