Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Feature Threads Details »»
Feature Threads
Version: 0.12, by Adrian. Adrian. is offline
Developer Last Online: Feb 2014 Show Printable Version Email this Page

Category: Add-On Releases - Version: 3.6.1 Rating:
Released: 10-08-2006 Last Update: 10-10-2006 Installs: 127
DB Changes Uses Plugins Template Edits
Additional Files  
No support by the author.

Feature Threads
By Adrian at Dreamit.co.uk
Tested on 3.6.1.


Note: This modification is v0.10, It seems to be working fine.
To see why it's not V1, scroll down to the Q&A.

About:
Feature Threads allows you to "Feature a thread", and that thread will then appear on the forumhome.

It's a very useful mod' to get those important, special threads noticed.

Installation:

Download Feature_threads.zip.
  • Upload feature.php and unfeature.php to your forums root folder.
  • Import product_feature.xml.

Template Edits:
Open Forumhome Templates > FORUMHOME
Find:

HTML Code:
<!-- main -->
Add after:

HTML Code:
$feature_threads
Save.

Open Showthread Templates > SHOWTHREAD
Find:

HTML Code:
	<tr>
		<td class="thead">$vbphrase[thread_tools]<a name="goto_threadtools"></a></td>
	</tr>
Add after:

HTML Code:
<tr>
		<td class="vbmenu_option"><img class="inlineimg" src="$stylevar[imgdir_button]/subscribe.gif" 

alt="Feature Thread" /> $feature_status
<input type="hidden" value="$threadinfo[threadid]" name="tid"></td>
	</tr>
Save.

Done.

Easy to install.

Q&A
1. Why is it V0.10?
Well, when i started this mod', i had some good ideas with it, and i started to loose intrest after a while.

I got the "base" made, so i thought, "why not release it?"
So, i have. If i get enough installs, or a positive response to the mod', i will glady spend more time, adding the features i wanted.

2. Oooh...What new features?
Not too many features...things such as...

Featured Thread ordering
  • Order by thread date
  • Order by by date featured
  • Order by amount of replies
  • Custom ordering

The ability to show the featured threads on the forumhome, or on everypage.

Ability to show what information is displayed in the features thread box.

Yeh, these are pritty easy to do, i just don't have the dedication i need to make them, like i said, if i get a good response, expect to see them soon.

3. How many usergroups...?
The option, that allows you to choose certain usergroups to access this mod', is limited to 12 different usergroups.

Not because i'm being mean, i just did the usergroup permission, in my code useing explode and arrays.

Don't ask why, i just did. : /
That will be improved when/if V1 is released.

Changelog
0.10 - Release.

0.11 - Set default value on "Show x" option to 4, to stop confusion with mysql_errors

0.12 - Edited Enable/Disable option from Radio buttons, to a simple Yes / No boolean to avoid errors.

---

If you installed this modification, please click install.

Thanks.

Adrian

Show Your Support

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

Comments
  #42  
Old 10-26-2006, 03:44 AM
Cedric_FP Cedric_FP is offline
 
Join Date: May 2005
Posts: 169
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice mod. Perhaps another addition to contemplate would be to allow the use of categories within the featured thread box.
Reply With Quote
  #43  
Old 10-26-2006, 06:12 PM
sportsoutlaw sportsoutlaw is offline
 
Join Date: Nov 2004
Location: Texas
Posts: 159
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great modification. Another admin on one of my sites was asking about making a box to put important threads in so they didn't get lost and I remembered seeing this. Works Great!

Looking forward to being able to use it on forumdisplay and showthread.
Reply With Quote
  #44  
Old 11-03-2006, 06:33 PM
dutchbb dutchbb is offline
 
Join Date: Nov 2003
Posts: 899
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hello Adrian

Can you reply to my question in PM about paying for customisations?

You have disabled PM so I can't reach you that way.

Thanks!
Reply With Quote
  #45  
Old 11-06-2006, 10:54 AM
thenetbox thenetbox is offline
 
Join Date: Mar 2002
Posts: 184
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello

Do you know how I can add this to a VbAdvanced CMPS block? Thanks
Reply With Quote
  #46  
Old 11-06-2006, 01:16 PM
criscokid criscokid is offline
 
Join Date: Nov 2003
Location: London, UK
Posts: 380
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Trying to add this to my vB3.5 forum I get the following error message:

Database error in vBulletin 3.5.3:
Invalid SQL:

### INSERT QUERY GENERATED BY fetch_query_sql() ###
INSERT INTO plugin
(`active`, `executionorder`, `title`, `hookname`, `phpcode`, `product`)
VALUES
('1', '5', 'Feature', 'forumhome_start', '$rows = $vbulletin->options[\'featurethreads_showx\'];\r\n$query=\"select * from \" . TABLE_PREFIX . \"thread WHERE `featured` = \'featured\' limit $rows \";\r\n $merge=mysql_query($query);\r\n echo mysql_error();\r\n\r\n while($row=mysql_fetch_array($merge)){\r\n\r\n$dis play .= \"\r\n\r\n<img src=\'images/statusicon/subforum_old.gif\' border=\'0\'> <a href=\'showthread.php?t=$row[threadid]\'>$row[title]</a> - <span class=\'smallfont\'>$row[ftdescription] - \r\nBy $row[postusername]</span><br />\";\r\n\r\n}\r\n\r\nif($vbulletin->options[\'featurethreads_enabled\'] == 1) {\r\n\r\n $feature_threads = \"\r\n\r\n<table class=\'tborder\' cellpadding=\'$stylevar[cellpadding]\' cellspacing=\'$stylevar[cellspacing]\' border=\'0\' width=\'100%\' \r\n\r\nalign=\'center\'>\r\n<tr>\r\n<td align=\'center\' class=\'tcat\'>Featured Threads</td>\r\n</tr>\r\n<tr>\r\n<td class=\'alt1\'>$display</td>\r\n</tr>\r\n</table>\r\n<br>\r\n\r\n\";\r\n\r\n}', 'featured');

MySQL Error : Unknown column 'executionorder' in 'field list'
Error Number : 1054
Reply With Quote
  #47  
Old 11-06-2006, 05:56 PM
criscokid criscokid is offline
 
Join Date: Nov 2003
Location: London, UK
Posts: 380
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by criscokid
MySQL Error : Unknown column 'executionorder' in 'field list'
Error Number : 1054
Fixed this by adding the necessary column by hand.
Reply With Quote
  #48  
Old 11-06-2006, 10:09 PM
thenetbox thenetbox is offline
 
Join Date: Mar 2002
Posts: 184
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It seems as if the mod creator doesn't have access to this thread because his VB license expired.

Has any one else gotten this to work with VBadvanced CMPS? Thanks
Reply With Quote
  #49  
Old 11-11-2006, 12:35 AM
Smoothie Smoothie is offline
 
Join Date: Oct 2001
Location: New York
Posts: 1,834
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Work w/3.6.3?
Reply With Quote
  #50  
Old 11-11-2006, 07:51 AM
perfphysio's Avatar
perfphysio perfphysio is offline
 
Join Date: Sep 2006
Location: London, UK
Posts: 212
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Smoothie
Work w/3.6.3?
Yes this works fine in 3.6.3
Reply With Quote
  #51  
Old 11-11-2006, 10:22 AM
criscokid criscokid is offline
 
Join Date: Nov 2003
Location: London, UK
Posts: 380
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Has anyone tried using this in a vbPortal block? I've tried but can't get it to work - see this thread.

I suggest that the developer of this mod take a look at that thread as it includes some information on suggested improvements to his code.
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:32 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.07594 seconds
  • Memory Usage 2,316KB
  • 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
  • (4)bbcode_html
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)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