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

Reply
 
Thread Tools
My Best Threads Details »»
My Best Threads
Version: 1.2.7, by Developer Developer is offline
Developer Last Online: Nov 2010 Show Printable Version Email this Page

Version: 3.5.4 Rating:
Released: 02-16-2006 Last Update: 06-08-2006 Installs: 88
DB Changes Uses Plugins Template Edits
 
No support by the author.

My Best Threads
v.1.2.7
Description::.
This adds to ur members a feature allow to them to choose thy best thread(s) via thread tools, shows in thier profiles
[Hack Features::.
1-easy yo install
2-Controlable by users
3-easy to add/remove threads
4-table in users profile shows
4.1-Thread title
4.2-Thread date
4.3-Thread forum
4.4-last poster
4.5-last post time
4.6-Views
4.7-replies
5-Users that doesn't have permission to view threads from restricted forums can't view them
[See Screen Shots]
PlannedFeatures::.
N/A

User Controllable
From Thread Tools ==> Add Thread To My best Threads OR Remove Thread from My best Threads.]

Installation::.
1-Import The Product.
3-Edit Template SHOWTHREAD
Find:
Code:
<tr>
		<td class="thead">$vbphrase[thread_tools]<a name="goto_threadtools"></a></td>
	</tr>
Add Below it
Code:
<if condition="$thread['postuserid'] == $bbuserinfo['userid']">
	<tr>
		<td class="vbmenu_option">	<if condition="in_array($thread['threadid'], $mybestthread)"><a href="showthread.php?$session[sessionurl]do=removemybest&amp;t=$threadid">$vbphrase[mybest_remove]</a><else /><a href="showthread.php?$session[sessionurl]do=addmybest&amp;t=$threadid">$vbphrase[mybest_add]</a></if></td>
	</tr>
    </if>
History::.
0.0.1 On 17. Feb 2006 Beta Version.
1.0.0 On 20. Feb 2006 Initial Version.[to upgrade:delete user field then import the product again and follow instruction above]
1.0.1 On 22. Mar 2006 Fix Template Edit
1.2.4 On 15. Apr 2006 Fix a slight bug
1.2.6 On 17. Apr 2006 Fix A minor bug & add alternate alt & no threads error
1.2.7 On 21. Apr 2006 Add forum permission for threads

Hack Languages::.
English Only For Now
Details::.
1 plugins, 13 phrases, 0 option, 1 query(reading only not change or add) and another addin a new row in user's table
Donation::.
Feel Free To
aT lAsT::.
IF YOu lIkE iT cLIcK INSTALL
vbulletin.org

Support Given For Who Clicked Install {ONLY}

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #32  
Old 02-20-2006, 05:35 PM
Developer's Avatar
Developer Developer is offline
 
Join Date: Sep 2005
Location: EgYpT
Posts: 662
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by emin3m
juss wondering every of your plugin is great but you dun use template changes within the xml file
like
PHP Code:
$vbulletin->templatecache['MEMBERINFO']=str_replace('$footer','$mybest
$footer'
,$vbulletin->templatecache['MEMBERINFO']); 
make hook location "parse_template"
but not every one want to put it above the footer
Reply With Quote
  #33  
Old 02-20-2006, 07:13 PM
emin3m's Avatar
emin3m emin3m is offline
 
Join Date: Oct 2005
Posts: 76
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

lol then users can change from plugin!
i was juss suggestin to make it all in juss xml
Reply With Quote
  #34  
Old 02-20-2006, 07:28 PM
Hornstar Hornstar is offline
 
Join Date: Jun 2005
Location: Australia
Posts: 2,469
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very nice hack, this may make people more interested in making threads now. I'll intall it and let you know if everything goes good.
Reply With Quote
  #35  
Old 02-20-2006, 08:00 PM
bashy bashy is offline
 
Join Date: Nov 2005
Posts: 2,544
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am having issues m8...
I cant see the the image /button in the thread tools menu
I have upped the image to my styles buttons dir
theres nothing in the menu thats changed and i have done the edit
Reply With Quote
  #36  
Old 02-20-2006, 08:05 PM
Hornstar Hornstar is offline
 
Join Date: Jun 2005
Location: Australia
Posts: 2,469
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

im doing the template edits, but for mine it looks like this

Code:
<a href="subscription.php?$session[sessionurl]do=addsubscription&amp;t=$threadid">$vbphrase[subscribe_to_this_thread]</a>
				</if>
			</div>
		</if>
Where as yours ended in
</if>
</td>
</tr>


Where should I add this after
Code:
<if condition="$thread['postuserid'] == $bbuserinfo['userid'] && $thread['firstpostid'] != $bbuserinfo['userid']">
	<tr>
		<td class="vbmenu_option"><img class="inlineimg" src="$stylevar[imgdir_button]/best.gif" />
		<if condition="in_array($thread['threadid'], $mybestthread)">
			<a href="showthread.php?$session[sessionurl]do=removemybest&amp;t=$threadid">$vbphrase[mybest_remove]</a>
		<else />
			<a href="showthread.php?$session[sessionurl]do=addmybest&amp;t=$threadid">$vbphrase[mybest_add]</a>
		</if>
		</td>
	</tr></if>
?
Reply With Quote
  #37  
Old 02-20-2006, 08:11 PM
Developer's Avatar
Developer Developer is offline
 
Join Date: Sep 2005
Location: EgYpT
Posts: 662
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bashy
I am having issues m8...
I cant see the the image /button in the thread tools menu
I have upped the image to my styles buttons dir
theres nothing in the menu thats changed and i have done the edit
change
Code:
$stylevar[imgdir_button]/best.gif
to the image location
Reply With Quote
  #38  
Old 02-20-2006, 08:13 PM
Developer's Avatar
Developer Developer is offline
 
Join Date: Sep 2005
Location: EgYpT
Posts: 662
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by hornstar1337
im doing the template edits, but for mine it looks like this

Code:
<a href="subscription.php?$session[sessionurl]do=addsubscription&amp;t=$threadid">$vbphrase[subscribe_to_this_thread]</a>
				</if>
			</div>
		</if>
Where as yours ended in
</if>
</td>
</tr>


Where should I add this after
Code:
<if condition="$thread['postuserid'] == $bbuserinfo['userid'] && $thread['firstpostid'] != $bbuserinfo['userid']">
	<tr>
		<td class="vbmenu_option"><img class="inlineimg" src="$stylevar[imgdir_button]/best.gif" />
		<if condition="in_array($thread['threadid'], $mybestthread)">
			<a href="showthread.php?$session[sessionurl]do=removemybest&amp;t=$threadid">$vbphrase[mybest_remove]</a>
		<else />
			<a href="showthread.php?$session[sessionurl]do=addmybest&amp;t=$threadid">$vbphrase[mybest_add]</a>
		</if>
		</td>
	</tr></if>
?
add it after the code you get it
Code:
<a href="subscription.php?$session[sessionurl]do=addsubscription&amp;t=$threadid">$vbphrase[subscribe_to_this_thread]</a>
				</if>
			</div>
		</if>
Reply With Quote
  #39  
Old 02-20-2006, 08:14 PM
bashy bashy is offline
 
Join Date: Nov 2005
Posts: 2,544
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just check my usercp options and the best threads ID box aint there any more either
Reply With Quote
  #40  
Old 02-20-2006, 08:16 PM
bashy bashy is offline
 
Join Date: Nov 2005
Posts: 2,544
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Something like this?

Quote:
Originally Posted by Developer
change
Code:
$stylevar[imgdir_button]/forums/images/buttons_mns/best.gif
to the image location
Reply With Quote
  #41  
Old 02-20-2006, 08:28 PM
Hornstar Hornstar is offline
 
Join Date: Jun 2005
Location: Australia
Posts: 2,469
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Developer
add it after the code you get it
Code:
<a href="subscription.php?$session[sessionurl]do=addsubscription&amp;t=$threadid">$vbphrase[subscribe_to_this_thread]</a>
				</if>
			</div>
		</if>

I added it after that, but nothing shows up when I click on "thread tools" for my thread.

Here is what i have




Code:
<!-- thread tools -->
	<div class="smallfont">
		<if condition="!$show['search_engine']">
			<div><img class="inlineimg" src="$stylevar[imgdir_button]/printer.gif" alt="$vbphrase[show_printable_version]" vspace="1" /> <a href="printthread.php?$session[sessionurl]t=$threadid" accesskey="p" rel="nofollow">$vbphrase[show_printable_version]</a></div>
			<div><img class="inlineimg" src="$stylevar[imgdir_button]/sendtofriend.gif" alt="$vbphrase[email_this_page]" vspace="1" /> <a href="sendmessage.php?$session[sessionurl]do=sendtofriend&amp;t=$threadid" rel="nofollow">$vbphrase[email_this_page]</a></div>
		</if>
		<if condition="$show['member']">
			<div><img class="inlineimg" src="$stylevar[imgdir_button]/subscribe.gif" alt="$vbphrase[subscription]" vspace="1" />
				<if condition="$show['subscribed']">
					<a href="subscription.php?$session[sessionurl]do=removesubscription&amp;t=$threadid">$vbphrase[unsubscribe_from_this_thread]</a>
				<else />
					<a href="subscription.php?$session[sessionurl]do=addsubscription&amp;t=$threadid">$vbphrase[subscribe_to_this_thread]</a>
				</if>
			</div>
		</if>

<if condition="$thread['postuserid'] == $bbuserinfo['userid'] && $thread['firstpostid'] != $bbuserinfo['userid']">
	<tr>
		<td class="vbmenu_option"><img class="inlineimg" src="$stylevar[imgdir_button]/best.gif" />
		<if condition="in_array($thread['threadid'], $mybestthread)">
			<a href="showthread.php?$session[sessionurl]do=removemybest&amp;t=$threadid">$vbphrase[mybest_remove]</a>
		<else />
			<a href="showthread.php?$session[sessionurl]do=addmybest&amp;t=$threadid">$vbphrase[mybest_add]</a>
		</if>
		</td>
	</tr></if>

		<if condition="$show['addpoll']">
			<div><img class="inlineimg" src="$stylevar[imgdir_button]/addpoll.gif" alt="$vbphrase[add_a_poll]" vspace="1" /> <a href="poll.php?$session[sessionurl]do=newpoll&amp;t=$threadinfo[threadid]">$vbphrase[add_a_poll_to_this_thread]</a></div>
		</if>
	</div>
	<!-- / thread tools -->

Can you see anything wrong with this?
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 11:24 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08912 seconds
  • Memory Usage 2,331KB
  • Queries Executed 25 (?)
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
  • (11)bbcode_code
  • (1)bbcode_php
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (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
  • 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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete