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
  #22  
Old 02-20-2006, 02:04 PM
The Realist's Avatar
The Realist The Realist is offline
 
Join Date: Oct 2001
Location: UK
Posts: 842
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Would just removing the product remove the user field as well?

And the user field is that removed from the database via phpmyadmin?

Quote:
Originally Posted by Developer
1.0.0 On 20. Feb 2006 Initial Version.[to upgrade:delete user field then import the product again and follow instruction above]
now it's great
Reply With Quote
  #23  
Old 02-20-2006, 02:07 PM
Developer's Avatar
Developer Developer is offline
 
Join Date: Sep 2005
Location: EgYpT
Posts: 662
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by The Realist
Would just removing the product remove the user field as well?

And the user field is that removed from the database via phpmyadmin?
no, user field is added and removed manually from ACP
Reply With Quote
  #24  
Old 02-20-2006, 02:52 PM
The Realist's Avatar
The Realist The Realist is offline
 
Join Date: Oct 2001
Location: UK
Posts: 842
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Tried to follow instructions but my templates are not standard VB.

You state:
Quote:
Find:

<else />
<a href="subscription.php?$session[sessionurl]do=addsubscription&amp;t=$threadid">$vbphrase[subscribe_to_this_thread]</a>
</if>
</td>
</tr>
And below it place:
Quote:
<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>
My templates have this code in them:
Quote:
<else />
<a href="subscription.php?$session[sessionurl]do=addsubscription&amp;t=$threadid">$vbphrase[subscribe_to_this_thread]</a>
</if>
</div>
</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 -->
I have tried adding your code below the above and within the code, but the link does not show up?

Any ideas?

Laters
Reply With Quote
  #25  
Old 02-20-2006, 03:08 PM
bashy bashy is offline
 
Join Date: Nov 2005
Posts: 2,544
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi

Im sorry im a little lost...what user field lol
Reply With Quote
  #26  
Old 02-20-2006, 03:23 PM
Developer's Avatar
Developer Developer is offline
 
Join Date: Sep 2005
Location: EgYpT
Posts: 662
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sorry i had something wrong in the product i'll fix it then answer ur questions
Reply With Quote
  #27  
Old 02-20-2006, 04:10 PM
Developer's Avatar
Developer Developer is offline
 
Join Date: Sep 2005
Location: EgYpT
Posts: 662
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

fixed you have to download the product again
Reply With Quote
  #28  
Old 02-20-2006, 04: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 The Realist
Tried to follow instructions but my templates are not standard VB.

You state:


And below it place:


My templates have this code in them:


I have tried adding your code below the above and within the code, but the link does not show up?

Any ideas?

Laters
add the code below
Code:
<else />
<a href="subscription.php?$session[sessionurl]do=addsubscription&amp;t=$threadid">$vbphrase[subscribe_to_this_thread]</a>
</if>
</div>
</if>
Reply With Quote
  #29  
Old 02-20-2006, 04: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 bashy
Hi

Im sorry im a little lost...what user field lol
i mean user profile field
Reply With Quote
  #30  
Old 02-20-2006, 04:20 PM
OmeR4eVeR OmeR4eVeR is offline
 
Join Date: Nov 2005
Location: SudaN
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks developer very nice
Reply With Quote
  #31  
Old 02-20-2006, 05:18 PM
emin3m's Avatar
emin3m emin3m is offline
 
Join Date: Oct 2005
Posts: 76
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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"
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 06:47 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.06797 seconds
  • Memory Usage 2,320KB
  • 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
  • (3)bbcode_code
  • (1)bbcode_php
  • (7)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