vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Add-On Releases - Feature Threads (https://vborg.vbsupport.ru/showthread.php?t=128644)

Adrian. 10-08-2006 10:00 PM

Feature Threads
 
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

smsmasters 10-09-2006 02:18 PM

Wow, nice, I will try it now!

Allan 10-09-2006 02:24 PM

Good idea ;)

smsmasters 10-09-2006 02:24 PM

Works great with 3.6.2 :D

Check it out here: http://www.smsmasters.co.uk/forum/

smsmasters 10-09-2006 02:26 PM

Just wondering, where are the featured thread descriptions stored and how do I edit the templates for this hack? I want to align the text in the box.

Snake 10-09-2006 02:56 PM

Sounds interesting. I'll check it out soon...

Adrian. 10-09-2006 03:46 PM

Quote:

Originally Posted by smsmasters
Just wondering, where are the featured thread descriptions stored and how do I edit the templates for this hack? I want to align the text in the box.

Where are they sorted? Do you mean stored?

The featured descriptions are saved in a row called "ftdescriptions" in the "thread" table. :)

To edit the templates for the box, the HTML is in the plugin, called "Feature."
If you are going to edit the template via the Plugin code, remember not to add a " in your HTML, ' are fine. :)

Adrian

kushal 10-09-2006 05:19 PM

How does this compare to favourite mod. Even though it being good mod, it confuses me More...which one to use. :(

smsmasters 10-09-2006 08:33 PM

Quote:

Originally Posted by Adrian.
Where are they sorted? Do you mean stored?

The featured descriptions are saved in a row called "ftdescriptions" in the "thread" table. :)

To edit the templates for the box, the HTML is in the plugin, called "Feature."
If you are going to edit the template via the Plugin code, remember not to add a " in your HTML, ' are fine. :)

Adrian

Thank you very much! :)

Adrian. 10-10-2006 08:08 AM

Quote:

Originally Posted by kushal
How does this compare to favourite mod. Even though it being good mod, it confuses me More...which one to use. :(

Well, they are two different sort of modifications.

vB Favorites will let you "favorite" the thread, and will show up in your User CP to you...

Feature threads lets you, feature a thread, which then gets displayed on the forumhome page, for everyone to see...it's just to make important threads stand out. :)

Adrian

thenetbox 10-10-2006 10:25 AM

Thank you so much! I've been looking for something like this since months :)

spazz191 10-10-2006 12:07 PM

I get the following error when installed on 3.6.2:

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 '' at line 1
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /index.php(63) : eval()'d code on line 6

any idea what that is from?
It goes away when I disable the product.

Adrian. 10-10-2006 12:25 PM

Quote:

Originally Posted by spazz191
I get the following error when installed on 3.6.2:

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 '' at line 1
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /index.php(63) : eval()'d code on line 6

any idea what that is from?
It goes away when I disable the product.

Go to vBulletin Options > Feature Thread.
Where it says, "Show x Threads", enter a number.

It should work fine, if not, post here. :)

Adrian

dutchbb 10-10-2006 01:59 PM

I have a question: when I select to show a max of 10 threads, and I have featured 11, will that first oldest one automatically be removed?

If not, is it possible to make it that way, someting like "the latest featured threads" so you don't have to delete the oldest one to add a new.

This is a great hack, I'm doing this work manually now and it's something I have been looking for.

spazz191 10-10-2006 02:12 PM

Quote:

Originally Posted by Adrian.
Go to vBulletin Options > Feature Thread.
Where it says, "Show x Threads", enter a number.

It should work fine, if not, post here. :)

Adrian

Worked like a charm, thanks.

Wonderful Hack, BTW!! :)

ymy 10-10-2006 02:32 PM

Good idea for admin propaganda threads !

Thnaks , click install

nymyth 10-10-2006 02:34 PM

very wierd,

after installing this product, at times my time stamps when a new post was made would show up much later than the current date, causing forumdisplay to be all outta whack. Any ideas man?

Thanks.

UPDATE: No matter, it was a conincidence that my host did an upgrade at the same time and didnt set the time/date correctly.

spazz191 10-10-2006 06:10 PM

Just an idea for the next update..(if you decide to do one) ;) Option to make the thread bold. If that is possible

memorex 10-11-2006 11:50 AM

Awesome hack!! Thanks!

Gizmo5h1t3 10-11-2006 02:12 PM

slight issue, in my admin cp, under the first bit, i see no selection box for the on / off..

instead, i see this....

Quote:

Set this option to Enable to enable Feature Threads. radio: piped 1|Enable 2|Disable

Adrian. 10-11-2006 02:22 PM

Quote:

Originally Posted by Gizmo5h1t3
slight issue, in my admin cp, under the first bit, i see no selection box for the on / off..

instead, i see this....

Ooh, sorry about that, very odd.

Anyway, if you download the attachment, and re-import the .xml file, overwriting the existing mod', it should be fixed.

I changed the option to a simple yes/no boolean. :)

Adrian

Gizmo5h1t3 10-11-2006 02:26 PM

yep, that worked fine..
might be an idea to advise ppl to UNINSTALL the previous version, instead of just over writing the product, as it gave me a DB error.

thxs for sortin it so quickly m8

perfphysio 10-11-2006 03:01 PM

Great, easy to use thread and I would love you to extent the simple features you mention in your initial post. One question though: All my featured threads are appearing at the bottom of my list of forums on the homepage. How can I make it appear at the top? see http://www.physiochat.com

unitedpunjab 10-11-2006 04:06 PM

Can't We add a small thumbnail or something like that to make it look more attractive or appealing.

like unique thumbnail for every featured thread.

Adrian. 10-11-2006 04:36 PM

Quote:

Originally Posted by unitedpunjab
Can't We add a small thumbnail or something like that to make it look more attractive or appealing.

like unique thumbnail for every featured thread.

Not a bad idea.

I will consider this if/when i release V2. :)

perfphysio 10-14-2006 10:06 AM

For some reason my post here has vanished. My forum 3.6.2 is displaying the featured threads fine. However it is showing them at the bottom of my homepage rather than the top as in your screen shots.

Can someone advise how I rectify this issue?

Thanks, http://www.physiobob.com/forum/index.php

Adrian. 10-14-2006 10:16 AM

Quote:

Originally Posted by perfphysio
For some reason my post here has vanished. My forum 3.6.2 is displaying the featured threads fine. However it is showing them at the bottom of my homepage rather than the top as in your screen shots.

Can someone advise how I rectify this issue?

Thanks, http://www.physiobob.com/forum/index.php

Make sure, check again...

That you added,
HTML Code:

$feature_threads
After
HTML Code:

<!-- main -->
In the FORUMHOME Template. :)

Adrian

perfphysio 10-14-2006 10:37 AM

thanks, I put it under the close of the <!-- main --> section by mistake. Now all is great :)

unitedpunjab 10-18-2006 08:06 AM

Quote:

Originally Posted by Adrian.
Not a bad idea.

I will consider this if/when i release V2. :)

Ok. Watin for V2

category 10-18-2006 06:49 PM

easy question but cant find where i can change the template from Featured Threads what should i edit

category 10-18-2006 07:30 PM

nvm found it its in the plug in but you should put it in feature because i want to make rounded edges and each time i do something in the plug in my website doesnt respond

boatdesign 10-19-2006 04:45 AM

What would it take to use this to show the featured threads on a non-vBulletin page of the site?

farooqaaa 10-20-2006 06:19 AM

installed, what about if people can only see thier featured threads?

Gizmo5h1t3 10-20-2006 11:49 AM

installed on 3.5...working fine

Invalid ID 10-20-2006 01:36 PM

Better than the previous one, installed and happy :)

unitedpunjab 10-20-2006 07:08 PM

Getting this error-

Database error in vBulletin 3.6.2:

Invalid SQL:
ALTER TABLE thread ADD
(featured text not null, ftdescription text not null
);

MySQL Error : Duplicate column name 'ftdescription'
Error Number : 1060
Date : Friday, October 20th 2006 @ 09:07:36 PM
Script : http://www.unitedpunjab.co.uk/adminc...=productimport
Referrer : http://www.unitedpunjab.co.uk/adminc...?do=productadd
IP Address :
Username :
Classname : vb_database

Adrian. 10-20-2006 08:15 PM

Quote:

Originally Posted by unitedpunjab
Getting this error-

Database error in vBulletin 3.6.2:

Invalid SQL:
ALTER TABLE thread ADD
(featured text not null, ftdescription text not null
);

MySQL Error : Duplicate column name 'ftdescription'
Error Number : 1060
Date : Friday, October 20th 2006 @ 09:07:36 PM
Script : http://www.unitedpunjab.co.uk/adminc...=productimport
Referrer : http://www.unitedpunjab.co.uk/adminc...?do=productadd
IP Address :
Username :
Classname : vb_database

Have you previously installed this mod'? or attempted.
Or installed another mod' which creates the table "ftdescription"

Adrian

unitedpunjab 10-20-2006 08:31 PM

Quote:

Originally Posted by Adrian.
Have you previously installed this mod'? or attempted.
Or installed another mod' which creates the table "ftdescription"

Adrian

yes,installed & unistalled once.
i have checked the database but cant see table 'ftdescription'

farooqaaa 10-21-2006 04:32 AM

Dear Adrian,

is this possible to show feature threads to ur self. And no one can see ur threads. I mean every user will have his own featured thereds :rolleyes:

SF3D_Tech 10-25-2006 07:30 PM

Quick question - is there a way to use this for thumbnails as well instead of just text? If so I'll definitely be doing an install asap!

Thanks and keep up the good work.


All times are GMT. The time now is 06:05 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01461 seconds
  • Memory Usage 1,835KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (6)bbcode_html_printable
  • (12)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete