Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons

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
  #82  
Old 04-15-2006, 07:21 PM
Developer's Avatar
Developer Developer is offline
 
Join Date: Sep 2005
Location: EgYpT
Posts: 662
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Nathan2006
Hi thank you for your reply,

The only problem is that this code:

PHP 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> 
Does not seem to show the image as in the old code?

PHP Code:
<if condition="$thread['postuserid'] == $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> 
Or is it me just being stupid?

Im not getting an image in the showthread
yup, no image but u can use one with this code
Code:
<if condition="$thread['postuserid'] == $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
  #83  
Old 04-15-2006, 09:38 PM
Nathan2006's Avatar
Nathan2006 Nathan2006 is offline
 
Join Date: Feb 2006
Location: UK
Posts: 862
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,

I had a few problems with it so I just used the code for the upgrade and now when trying to view a members profile I'm receiving the following error.

Quote:
Database error in vBulletin 3.5.4:

Invalid SQL:

SELECT thread.threadid,
thread.title AS tht,
thread.postusername,
thread.replycount,
thread.lastposter,
thread.lastpost,
thread.dateline,
user.userid AS lastposterid2,
thread.views,
thread.attach,
forum.title AS fot,
forum.forumid AS fir
FROM thread AS thread
LEFT JOIN forum AS forum ON (thread.forumid = forum.forumid)
LEFT JOIN user AS user ON (thread.lastposter = user.username)
WHERE thread.threadid IN ()
AND thread.postuserid = 3
order by thread.threadid Desc
LIMIT 0, 99;

MySQL Error : You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ')
AND thread.postuserid = 3
order by thread.threadi
Error Number : 1064
Thank you for any help
Reply With Quote
  #84  
Old 04-17-2006, 03:25 AM
Developer's Avatar
Developer Developer is offline
 
Join Date: Sep 2005
Location: EgYpT
Posts: 662
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

1.2.6 On 17. Apr 2006 Fix A minor bug & add alternate alt & no threads error
Reply With Quote
  #85  
Old 04-17-2006, 03:34 AM
Nathan2006's Avatar
Nathan2006 Nathan2006 is offline
 
Join Date: Feb 2006
Location: UK
Posts: 862
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Developer
1.2.6 On 17. Apr 2006 Fix A minor bug & add alternate alt & no threads error
Thank you Developer

this is working great now

Is there anyway to add a closed thread to "Best Threads" as they don't have an option?

Thanks again
Reply With Quote
  #86  
Old 04-17-2006, 03:37 AM
Developer's Avatar
Developer Developer is offline
 
Join Date: Sep 2005
Location: EgYpT
Posts: 662
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Nathan2006
Thank you Developer

this is working great now

Is there anyway to add a closed thread to "Best Threads" as they don't have an option?

Thanks again
you could do this by changing the edit in template showthread
Reply With Quote
  #87  
Old 04-17-2006, 03:48 AM
Nathan2006's Avatar
Nathan2006 Nathan2006 is offline
 
Join Date: Feb 2006
Location: UK
Posts: 862
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Developer
you could do this by changing the edit in template showthread
Thanks

oops I found 1 more problem

When admin adds threads from the staff section members can see them threads,

Not sure if its happening to you too?

Thanks for your help
Reply With Quote
  #88  
Old 04-17-2006, 11:03 AM
Ins Ins is offline
 
Join Date: Jan 2006
Location: South Africa
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very nice! *installed*
Reply With Quote
  #89  
Old 04-17-2006, 12:53 PM
Developer's Avatar
Developer Developer is offline
 
Join Date: Sep 2005
Location: EgYpT
Posts: 662
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Nathan2006
Thanks

oops I found 1 more problem

When admin adds threads from the staff section members can see them threads,

Not sure if its happening to you too?

Thanks for your help
i'll fetch forum permission in next release
[high]*BTW:You make my hacks better[/high]
Reply With Quote
  #90  
Old 04-18-2006, 10:06 AM
Nathan2006's Avatar
Nathan2006 Nathan2006 is offline
 
Join Date: Feb 2006
Location: UK
Posts: 862
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Developer
i'll fetch forum permission in next release
[high]*BTW:You make my hacks better[/high]
Thanks

I'm getting the same problem as this member

If you sign in as a normal member you cannot add any best threads at all.

I even made a test member account to an admin and that does not appear for that either. I even tried a moderator account too but still no luck

It only seems to work for admins lol

Thanks for any help

Quote:
Originally Posted by Pcparts
Thanks for this hack.

I installed it, works for me (as admin) but not for normal registered users. They dont get to see the menu in the dropdown?

any idea what it could be?
Reply With Quote
  #91  
Old 04-18-2006, 01:10 PM
jeddah_eyes jeddah_eyes is offline
 
Join Date: Aug 2005
Location: ksa
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks u develper u r the best i said before .
Reply With Quote
Reply

Thread Tools

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:20 AM.


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.04749 seconds
  • Memory Usage 2,333KB
  • 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
  • (2)bbcode_php
  • (8)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