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
  #72  
Old 04-09-2006, 05:10 PM
MarsNIIT MarsNIIT is offline
 
Join Date: Aug 2005
Posts: 93
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Developer
Support Given For Who Clicked Install {ONLY}
Clicked Install :P
Reply With Quote
  #73  
Old 04-09-2006, 05:13 PM
akanevsky akanevsky is offline
 
Join Date: Apr 2005
Posts: 3,972
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What's the difference between this and my vBFavorites?
Reply With Quote
  #74  
Old 04-09-2006, 05:26 PM
Allan's Avatar
Allan Allan is offline
 
Join Date: Jun 2003
Location: France
Posts: 1,513
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Psionic Vision
What's the difference between this and my vBFavorites?
Easy install of course

No templates modifications.
Reply With Quote
  #75  
Old 04-15-2006, 08:05 AM
Nj?rd Eriksson Nj?rd Eriksson is offline
 
Join Date: Jul 2003
Location: Midg?rd
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Nathan2006
Found just 1 problem

When a member views another members profile when looking at the Best Threads list at the bottom all the threads the user chose don't show up for other members to see.

That's a member choosing best threads and the admin not being able to view anything

I did all the template edits and the table is there but no info in it for other threads

Thank you for any help
Yes, one can only see the threads in one's own profile but not the threads in other members' profiles.

Replace 3 in hook location member_start with:

PHP Code:
$mybestthread1 $vbulletin->GPC['userid'];
$mybestthread2 mysql_query("SELECT * FROM " TABLE_PREFIX "user WHERE userid = $mybestthread1");
while (
$row mysql_fetch_assoc($mybestthread2)) {    
    
$mybestthreads $row['oneof'];
}
if (
$mybestthreads == NULL) {
    
$mybestthreads "0";

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

Update Is Coming Soon !!
Reply With Quote
  #77  
Old 04-15-2006, 04:11 PM
Developer's Avatar
Developer Developer is offline
 
Join Date: Sep 2005
Location: EgYpT
Posts: 662
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

1.2.4 On 15. Apr 2006 Fix a slight bug
Reply With Quote
  #78  
Old 04-15-2006, 04:12 PM
Developer's Avatar
Developer Developer is offline
 
Join Date: Sep 2005
Location: EgYpT
Posts: 662
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Psionic Vision
What's the difference between this and my vBFavorites?
Completelty different this hack give users a feature to select thier best thread
Reply With Quote
  #79  
Old 04-15-2006, 06:25 PM
Nathan2006's Avatar
Nathan2006 Nathan2006 is offline
 
Join Date: Feb 2006
Location: UK
Posts: 862
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,

I have removed all the previous code from the other install and installed the new product but I'm getting this error?

Quote:
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/forum/public_html/includes/adminfunctions_template.php(3537) : eval()'d code on line 344

This happens when I add this code:

Quote:
<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>
Thank you for any help
Reply With Quote
  #80  
Old 04-15-2006, 06:54 PM
Developer's Avatar
Developer Developer is offline
 
Join Date: Sep 2005
Location: EgYpT
Posts: 662
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

fixed.
edit the template again
Reply With Quote
  #81  
Old 04-15-2006, 07:12 PM
Nathan2006's Avatar
Nathan2006 Nathan2006 is offline
 
Join Date: Feb 2006
Location: UK
Posts: 862
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Developer
fixed.
edit the template again
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
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:56 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.04804 seconds
  • Memory Usage 2,337KB
  • 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
  • (2)bbcode_code
  • (3)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