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

Nice one M8, keep them coming

Laters
Reply With Quote
  #3  
Old 02-17-2006, 01:44 PM
The Realist's Avatar
The Realist The Realist is offline
 
Join Date: Oct 2001
Location: UK
Posts: 842
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

My best threads are NOT showing above the footer of my member info?

The code "$mybest" has been added to the memberinfo template but its not showing.

The thread ID's I have added to my info like: 1,2,3,4, and NOT 1, 2, 3, 4,

Any ideas why its not showing up?

Laters

PS,

Also you say to edit the X with the correct ID's, my line 62 and 64 reads:

// START EDIT
################################################## ############
##$mybestdevel = $vbulletin->userinfo['fieldX'];##Field ID####
################################################## ############
##$mybestlimit = XX;##Limit###################################
################################################## ############
// END EDIT

Do I remove the ## infront of the code? or leave it as it is?

Laters
Reply With Quote
  #4  
Old 02-17-2006, 02:27 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
My best threads are NOT showing above the footer of my member info?

The code "$mybest" has been added to the memberinfo template but its not showing.

The thread ID's I have added to my info like: 1,2,3,4, and NOT 1, 2, 3, 4,

Any ideas why its not showing up?

Laters

PS,

Also you say to edit the X with the correct ID's, my line 62 and 64 reads:

// START EDIT
################################################## ############
##$mybestdevel = $vbulletin->userinfo['fieldX'];##Field ID####
################################################## ############
##$mybestlimit = XX;##Limit###################################
################################################## ############
// END EDIT

Do I remove the ## infront of the code? or leave it as it is?

Laters
download the zip again and you'll find an updated product
or you just change the code into
// START EDIT
$mybestdevel = $vbulletin->userinfo['fieldX'];
$mybestlimit = XX;
// END EDIT
and in profile feind make it into options: other not into edit profile and sorry for this i was in hurry
Reply With Quote
  #5  
Old 02-17-2006, 03:13 PM
bashy bashy is offline
 
Join Date: Nov 2005
Posts: 2,544
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi m8...only me
Another fine idea...have installed but got this error when i went into my profile

Code:
Database error in vBulletin 3.5.3:

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, forum AS forum, user AS user
     WHERE thread.postuserid = 1
     AND thread.forumid = forum.forumid
     AND thread.threadid IN ()
     AND thread.lastposter = user.username
     LIMIT XX;

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.lastposter = user.username
     LIMIT XX' at line 16
Error Number : 1064
Date         : Friday, February 17th 2006 @ 05:11:02 PM
Script       : http://www.bashys-place.com/forums/member.php?u=1
Referrer     : http://www.bashys-place.com/forums/usercp.php
Reply With Quote
  #6  
Old 02-17-2006, 03:24 PM
Developer's Avatar
Developer Developer is offline
 
Join Date: Sep 2005
Location: EgYpT
Posts: 662
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Open The Product With any Editor on line 61 replace X with your field ID and on line 62 edit XX and replace it with the number of threads You Want To Be showen in member's profile
Reply With Quote
  #7  
Old 02-17-2006, 03:30 PM
Developer's Avatar
Developer Developer is offline
 
Join Date: Sep 2005
Location: EgYpT
Posts: 662
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Put your best 10 threads ids seperated by , eg:1,2,3,4,5 (change 10 With your limit)
note: (change 10 With your limit) this is my comment don't put it in Description
Reply With Quote
  #8  
Old 02-17-2006, 03:45 PM
HaMaDa4eVeR's Avatar
HaMaDa4eVeR HaMaDa4eVeR is offline
 
Join Date: Jun 2004
Location: Sudan
Posts: 107
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Hi m8

Ok sorted it now...
I needed to change fieldx blah blah blah lol

This is a little how can i say, erm... Well if a member makes a boo boo when inputting there best threads for e.g. 1 10 12 40 and fails to follow the correct guidelines and use the commas this will give a DB error is there not a fail safe that will stop this giving the error?

Also my best thread aint showing lol
Reply With Quote
  #10  
Old 02-17-2006, 04:16 PM
kall's Avatar
kall kall is offline
 
Join Date: Apr 2004
Location: New Zealand
Posts: 2,608
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What would be nice is if the users could tick a box, rather than entering the ids manually.

Many people (especially those on forums using some form of SEO hack) will have no idea what the thread id might be.
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 07:03 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.11700 seconds
  • Memory Usage 2,289KB
  • Queries Executed 23 (?)
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
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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