PDA

View Full Version : Miscellaneous Hacks - Featured Threads


MarkFL
09-30-2015, 09:00 PM
Overview

This product is designed to allow for the creation, display and management of a list of threads that you wish to feature on your site. It gives you a convenient means of showcasing especially good thread content on your forum and give it the increased visibility to registered users and visitors alike that you likely already feel it so richly deserves. You will find that when the featured threads list is displayed on its static page, then the block element is not collapsible since it does not share space with any other content, otherwise it is collapsible so that users will not have to scroll past this list to get to other parts of the page it they wish not to. This is consistent with the behavior of other vBulletin elements.

You may choose to manage this list yourself, or allow others on your staff to share in or even take over the management duties. Some or all of your members may even be allowed and encouraged to be a part of the process by their nominations of threads for the list. You can choose to allow nominations via this product, or use vBulletin's intrinsic thread rating system, or use a combination of both systems. You may also choose to display the most replied threads as well. In this way you could elect to implement a threads of the week or month etc. by popular vote. This product makes all of this possible and easy to accomplish.

You will find that you have a great deal of flexibility in where and how the list is displayed. Those you designate as managers of the list can add, remove, and set the display order of the threads in the list. Also, you may choose to allow your managers to auto-create voting polls to narrow down the selection of nominated threads to be added as featured threads, which is posted to a forum of your choosing. This forum may be private so that only staff is involved in the final voting, or a public forum may be selected so that everyone may vote. All actions performed by users and managers are confirmed with a standard vBulletin redirect message.

Upon installation, two tables are added to your database, one to store the list of featured threads, and one to store the nominations data. Queries are joined so that the latest data for all threads is displayed in the lists and to minimize the redundancy of stored data. If the product is uninstalled, then naturally the two added tables are removed.

The product settings are conveniently sub-divided into the following six categories:

Location Of "Featured Threads" List

https://vborg.vbsupport.ru/attachment.php?attachmentid=153660&stc=1&d=1447446809

You may choose to have the featured threads list displayed on every page, either below the navbar or above the footer. You are given the option to exclude any scripts that you choose. For example you may not want the featured threads list to display on pages whose associated script names are inlinemod, member or online.

In addition to displaying the list on all pages, you may choose one or more of the following options:


Display the list on your forum home page, either above or below the forums.
Display the list on your forum display pages, either above or below the threads.
Display the list on your show thread pages, either above or below the posts.

Note, the above 3 options will be effectively disabled if you have chosen to display on all pages to prevent duplication of content, unless you have set them as excluded scripts for displaying on all pages. This gives you increased control over these 3 pages. For example, you may wish for the featured threads list to display at the top of the page everywhere except on your home page, and so you could have it displayed below the forums there instead.

In addition to, or instead of these options, you may choose to display the list on its own static page. If you have chosen to display on all pages, that will naturally be disabled on the static page to prevent duplication of content. You then have the option to either create your own link to the page using the "Navigation Manager" or you may opt to have a link to the page auto-added as either a navtab:

https://vborg.vbsupport.ru/attachment.php?attachmentid=153417&stc=1&d=1443673128

A navlink on the navbar:

https://vborg.vbsupport.ru/attachment.php?attachmentid=153418&stc=1&d=1443673194

Or as a link in either the "Community" or "Quick Links" drop-down menus on the navbar:

https://vborg.vbsupport.ru/attachment.php?attachmentid=153419&stc=1&d=1443673266

https://vborg.vbsupport.ru/attachment.php?attachmentid=153420&stc=1&d=1443673193

Appearance Of "Featured Threads" List

https://vborg.vbsupport.ru/attachment.php?attachmentid=153661&stc=1&d=1447446809

You may choose to give the "Featured Threads" list element a custom title. This title will be used in the header of the list element, as the link text to the static page on the nav bar, and as the page title for the static page.

You may set a maximum height for the list that applies when it shares space with other content, that is, when it is not on the static page. A vertical scroll-bar is introduced when the list is taller than the maximum height you set. This height does not inlude the header element, just the table of data.

You may set the left/right margins of the list element as a percentage of the parent element. For example, if you wish for the list element to be 75% as wide as the parent element, and centered, then you would enter 12.5 for both the left and right margins. If you want the element to still be 75% as wide as the parent, but all the way on the right, then you would enter 25 for the left margin and 0 for the right margin.

You may set the background color for the "Featured Threads" element, using an HTML color picker.

You may define the CSS for the borders of the list element. This includes both the outer border and the inner borders of the table containing the data. The table cells are only given borders on the right.

You are given an HTML color picker for the color of the Forum/Thread links in the list, as well as the option to give any additional CSS for these links. You may also set the alignment for the thread links (left/center/right).

You may choose how the featured threads are sorted (by Thread Id/Thread Title/Date/Time Added To List/Thread Author User Id) and whether to sort in ascending or descending order. Note that when one of your managers imposes an order for the threads, then that ordering will take precedence.

You may chose to include optional thread information to be displayed, including Replies, Views, Last Poster, Forum, and Prefixes. Thread authors and titles are always displayed. The thread author has a tooltip showing when they created the thread. The replies has a tooltip giving a breakdown of everyone who posted in the thread, sorted in descending order by the number of posts, and then by user id in the case of ties in the number of posts. The last poster has a tooltip that shows when they posted that last post. All usernames in both lists (featured threads and nominated threads) are shown using their current HTML markup. And finally the thread has a tooltip showing a preview of the content of the first post. The number of characters is that which you have set in the AdminCP's general settings.

You can set the maximum number of characters of each thread's forum name to be displayed since these can be long and take up a lot of space. To display the complete forum names, set this maximum to zero. All forum titles that are truncated will have a tooltip that shows the complete forum name on mouse hover.

You are given the option to have an alternating row background color be given to the rows (in all thread tables) to make reading each row easier. You may choose either not to have the alternating backgrounds at all, to have them only for your managers who will benefit more from them because of thread selections while managing the list, and for everyone to see them. An HTML color piker allows you to choose this alternate background color.

https://vborg.vbsupport.ru/attachment.php?attachmentid=153422&stc=1&d=1443673426

"Featured Threads" Icon

https://vborg.vbsupport.ru/attachment.php?attachmentid=153662&stc=1&d=1447446809

You may choose to display an image icon for the featured threads in several places. You are given a choice of 5 included icons, or you may upload your own and give its filename in the settings. You must upload your custom icon to the "markfl_featuredthreads/icons" folder. The icons are appropriately sized depending on the location they are displayed.

If you choose to use an icon, then they are displayed in the thread listing when viewing forums, to the immediate right of the thread titles for those threads in the featured threads list.

https://vborg.vbsupport.ru/attachment.php?attachmentid=153424&stc=1&d=1443673631

Support for this product can be found here:


MHB - Featured Threads (http://mathhelpboards.com/vbulletin-products-61/featured-threads-21861.html)
TAZ - Featured Threads (https://theadminzone.com/threads/featured-threads.145165/)


(continued in post #2)

MarkFL
10-01-2015, 02:40 AM
When viewing a featured thread, the icon(s) are displayed at the top of the page to the immediate right of the thread title below the reply button.

https://vborg.vbsupport.ru/attachment.php?attachmentid=153425&stc=1&d=1443673861

You may choose to give special recognition to the top featured threads, the number of which you decide. If you decide, for example, to recognize the top 3 threads, then the top thread will get 3 icons, then second thread will get 2 icons and the third thread will get 1 icon, all of which are displayed in the featured threads list. These top threads also get their extra icons in the forum display and show thread pages. The icons in all places are given a tooltip indicating their place in the top order.

You are also given the option to recognize the authors of the featured threads by displaying the icon to the left of their username in postbits and on their profile pages. A tooltip indicates that they are a featured thread author and how many currently featured threads they have authored.

Managing The "Featured Threads" List

https://vborg.vbsupport.ru/attachment.php?attachmentid=153664&stc=1&d=1447447056

You may designate users by usergroup and/or by username to be managers of the featured threads list. These users will see a set of controls in the featured threads element that allow them to perform various tasks associated with managing the list. They will see to the far right of each thread title, a small text input element for ordering the threads and a checkbox used for selecting threads for removal from the list. Whenever a checkbox is checked, then that row's opacity changes to 0.5 to make it easier to see which threads are selected.

Below the list, they will see a row of buttons allowing them to open the nominated threads list element (if you have user-nominations turned on), select all threads, invert their selection, restore the default sorting order, reorder the threads based on the values of the text inputs, and remove all selected threads. All actions require a confirmation to help prevent accidents.

https://vborg.vbsupport.ru/attachment.php?attachmentid=153427&stc=1&d=1443674014

If a manager clicks the "Show Nominated" button, then the list of nominated threads will appear. This list is sorted in descending order by the number of nominations it has received. The number of nominations shown has a tooltip showing the list of members that nominated the thread, sorted in ascending order by user id. The thread author is shown, and like in the featured threads list, the author has a tooltip showing the time the thread was created. As with the featured threads list, each thread has a checkbox to the far right for selecting the threads on which to perform actions.

https://vborg.vbsupport.ru/attachment.php?attachmentid=153515&stc=1&d=1445100226

There is a row of buttons below the nominated threads list for selecting all, inverting the selection, creating a poll thread (if you have that option turned on), removing the selected threads from the list and for adding the selected to the featured threads list.

If a manager clicks "Create Poll" a popup appears that allows them to choose to give optional additional comments to clarify the reason for creating the poll, and to temporarily turn off user nominations so that this is suspended while voting occurs.

https://vborg.vbsupport.ru/attachment.php?attachmentid=153516&stc=1&d=1445100323

When a manager clicks "Add Selected" a popup appears that gives them the option to remove all currently featured threads and/or to remove all remaining nominated threads from their respective lists as part of the addition process.

https://vborg.vbsupport.ru/attachment.php?attachmentid=153430&stc=1&d=1443674194

If a manager chooses an action, but has selected no threads, then they are alerted that threads must be selected first before any action can be taken. All actions performed by a manager that results in threads being added or removed from the featured threads list, or changes the displayed order of these threads, are recorded in the moderator log.

You may decide to allow your managers to add/remove threads directly to/from the list as they are viewing threads. If so, then the managers will see a button to the right of the "+ Reply to Thread" button at the top of the page. For threads not on the featured list they will see a button allowing them to add the thread to the list and for threads that are already on the featured threads list, the button will allow them to remove the thread. You may choose to select only certain forums from which threads may be added/removed from the list (this applies to user nominations as well). If a thread from a private or restricted forum is added to the featured threads list, or a featured thread is or becomes in the moderation queue, only users with permission to view the thread will see it in the list.

Any threads deleted by an administrator/moderator will be removed from any table associated with this product to which they belong. Even if a soft-deleted thread is restored, it will have to be manually added back to the featured threads list if that is desired. The nominations data cannot be restored. If you wish to temporarily hide a featured/nominated thread from non-moderators, and have it retain its featured/nominated status, then use the thread approval system instead to place it in the moderation queue.

You are given the ability to designate certain forums where new threads added there are automatically added to the "Featured Threads" list. You can choose also whether the previously added thread is automatically removed at the same time.

User-Nomination Of "Featured Threads"

https://vborg.vbsupport.ru/attachment.php?attachmentid=153665&stc=1&d=1447447056

You may choose to allow all registered users, or only certain usergroups, to be able to nominate threads for the featured threads list. You may also choose to exclude users by user name if you find that they are abusing the system or you simply wish to exclude them from the process for any reason. Those users with permission to nominate threads will see a button to the right of the "+ Reply to Thread" button at the top of the page that allows them to add their nomination. Once they have nominated a thread, they will then see a button that allows them to remove their nomination if they change their mind about the thread.

If you decide to allow user nominations, you are given the option to either allow only threads not on the featured threads list to be nominated or threads that are already featured as well.

You may decide whether to allow users to nominate their own threads, and give a minimum post count before users are allowed to nominate threads.

You may temporarily disable user nominations, which is useful in case voting is going on, and the poll creator neglected to turn off nominations. Also, there may be other reasons you wish to suspend nominations.

You may also choose to exclude certain threads from nominations based on thread prefix. You are given the list of thread prefixes you have defined, and checkboxes to select any prefixes you wish to use to exclude threads.

As part of the user nomination process, you may choose to include threads rated by users via vBulletin's intrinsic thread rating system. If you elect for your managers to consider these threads, you can set the minimum numbers of votes a thread must have before appearing on the list of user rated threads, and you may set the average rating minimum as well. The minimums appear in the block header for the user-rated threads list so your managers are aware of the exact restrictions. You are also given the option whether to allow your managers to remove thread ratings via this product.

Lastly, you may also choose to display the threads which have the most replies, referred to as "Most Replied Threads." You may choose to display either the threads with the most total replies, or the threads with the most distinct posters. You set how many threads to display for potential selection.

Voting Polls For "User-Nominated Threads"

https://vborg.vbsupport.ru/attachment.php?attachmentid=153666&stc=1&d=1447447056

You are given the option to allow your managers to create voting polls from the user-nominated and/or user-rated threads and/or most replied lists. This is useful in the event of a large number of nominations that you wish to narrow down, or a tie for one of the top places, etc. The manager selects the threads to be included in the poll, and then a poll is posted in the forum you designate, which includes an anonymous multi-select poll. The poll options include the thread title, the number of nominations and/or rating/votes data received and/or replies, and the author of the thread.

When creating a poll, your managers are given the option from each list to include the selected threads in the other lists, as long as the other lists are enabled. When creating a poll that includes both user-nominated and user-rated threads and/or most replied threads, the user-nominated threads are listed first, regardless of which list is used to create the poll.

In the body of the post, there is a salutation (or greeting) that you define in the settings, a list of links to all threads in the poll for ease of inspecting these threads, any additional comments the poll creator entered when creating the poll in a quote block, and then the signoff that you have defined in the settings.

The poll threads are given a title of the following form:

Featured Threads Voting (User-Nominated|User-Rated|Most Replied) mm/dd/yyyy

The string "User-Nominated|User-Rated|Most Replied" will only contain the names of the lists from which threads were selected. The date is included so that each title will be unique (unless you are voting more than once per day which I felt was quite unlikely).

https://vborg.vbsupport.ru/attachment.php?attachmentid=153519&stc=1&d=1445100525

Updates:

Version 1.1:


Checks added before queries used to determine if a "Featured Thread" author should have the icon the the left of their name so that a valid userid is present, and a database error is avoided.


Version 1.2:


Change made to external script to avoid possible error when creating polls.


Version 1.3:


Database error fixed when using sorting options for the featured threads from the settings.


Version 1.4:


Fixed other broken queries because of recent changes.


Version 1.5:


Fixed minor CSS issues.
Extra thread information is now displayed in the supplemental lists.
Added the option to use "Most Replied" threads as candidates for the "Featured Threads" list.


Version 1.6:


Fixed typo on settings page.
Tooltip for thread authors in "Most Replied" list shows correct thread creation date/time.


Version 1.7:


Added setting for background color of product elements.
Added setting for alternate row background color.
Added setting for whether users can nominate their own threads.
Added setting for minimum post count requirement for users allowed to nominate threads.


Version 1.8:


Added setting that allows the "Most Replied" list to either be by the number of replies or by the number of posters.


Version 1.9:


Fixed bug where if no thread prefixes are selected for exclusion from user-nominations, the nomination buttons will still show up.
Settings sections separated into idividual pages, and now accessible from the AdminCP sidebar.


Version 1.9.5:


Several minor bug fixes.
When viewing the "User-Rated" threads the voters and their votes are displayed when hovering over the number of votes.
Thread icons show up to the right of thread titles in search results.


Version 1.9.6:


Added setting to allow maximum length of displayed forum names.
Fixed bug with collapse button.


Version 1.9.7:


Fixed bad link to forums bug introduced in last update.
Added setting to designate forums where latest thread posted there is auto-added to "Featured Threads" list, with the option to simultaneously auto-remove the previously added thread.


Compatibility:

Tested and working on VB 4.2.x and should work on all 4.x versions of vBulletin.

Backup/Warning:

This product alters your database by adding two tables, however it is always good practice to make regular backups and you should make a backup before installing ANY new mod.

As always, products are USE AT YOUR OWN RISK. I will provide support and do my best to help but no absolute guarantee is offered. All suggestions/requests for improvement are appreciated and welcome, and will be given serious consideration for future updates.

To Install:


Download and extract the attached .zip file.
Upload the contents of the "upload" folder to your forum's root directory.
Follow AdminCP ► Plugins & Products ► Manage Products ► Add/Import Product.
Click on "Choose File" and browse to the product .xml file that was packaged in the .zip file.
Click "Import."
You MUST enable the product in the settings before it will function.
Configure the remaining settings to your liking. Each setting has a detailed explanation of its use.


https://vborg.vbsupport.ru/attachment.php?attachmentid=153639&stc=1&d=1446963869

SwollenCranium
10-01-2015, 07:18 PM
Wow, nice write up.

I'll give it a try a report back how it goes. :)

akz645
10-01-2015, 07:45 PM
Wow, that must have taken a long time to write up.

A good idea. I might install later.

Thanks for the upload :)

Thangvip9x
10-01-2015, 11:24 PM
You are most welcome! Thank you very much, but i don't use it

bosanci28
10-01-2015, 11:50 PM
Nice one! Will test it soon!

Thank you for your hard work.

zorcocuq
10-02-2015, 05:27 PM
Nice mod, thanks for sharing.

ku-med
10-02-2015, 08:48 PM
Great work! Tagged. :)

iiioroh
10-03-2015, 06:09 AM
Hi.
AWESOME extension.
!!!!!!!!!!!! ***** 5 STARS ***** !!!!!!!!!

How to insert this code manually ?

Can you please help solving the problem ?

MarkFL
10-03-2015, 01:17 PM
Hi.
AWESOME extension.
!!!!!!!!!!!! ***** 5 STARS ***** !!!!!!!!!

How to insert this code manually ?


Can you please help solving the problem ?

Do you mean how to install the product?

iiioroh
10-03-2015, 02:43 PM
I talked about this possibility - http://take.ms/a4Iqy

MarkFL
10-03-2015, 02:54 PM
I talked about this possibility - http://take.ms/a4Iqy

You can choose to display the featured threads below the navbar, is it not working on your site because of some conflict with this other add-on?

iiioroh
10-03-2015, 09:37 PM
All works. I would like so - http://take.ms/hGzTf
Because of the module there is a mistake:

Database error in vBulletin 4.2.3:

Invalid SQL:

SELECT COUNT(*) AS thread_count, thread.postuserid
FROM thread AS thread
INNER JOIN featuredthreads AS featuredthreads
ON thread.threadid = featuredthreads.threadid
WHERE thread.postuserid =;

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 '' at line 5
Error Number : 1064
Request Date : Sunday, October 4th 2015 @ 02:34:59 AM
Error Date : Sunday, October 4th 2015 @ 02:34:59 AM
Script : http://primspinning.ru/external.php?type=RSS2

MarkFL
10-04-2015, 12:19 AM
Hmm...that database error doesn't match the screenshot you posted. I really don't know what's going on in the screenshot either. Could you explain more fully?

iiioroh
10-04-2015, 12:34 AM
Hmm...that database error doesn't match the screenshot you posted. I really don't know what's going on in the screenshot either. Could you explain more fully?

Has written the personal message.
At creation of voting too there is a mistake

MarkFL
10-04-2015, 12:55 AM
Has written the personal message.
At creation of voting too there is a mistake

Did you put "featuredthread.php" in your root directory?

iiioroh
10-04-2015, 01:05 AM
Yes.

MarkFL
10-04-2015, 01:10 AM
Is the file "functions_databuild.php" in the "includes" folder?

iiioroh
10-04-2015, 01:21 AM
Yes.

MarkFL
10-04-2015, 01:26 AM
According to the error message I am getting when creating a poll, that file ("functions_databuild.php") cannot be found at the required location.

iiioroh
10-04-2015, 01:33 AM
??? - http://take.ms/46XHj

MarkFL
10-04-2015, 01:47 AM
??? - http://take.ms/46XHj

Try creating a poll and you will see what I mean about the error message stating that the required file cannot be found at that location. I am thinking you have a non-standard directory structure. The directory structure in the screenshot of your FTP looks different than what is given in your "Forum URL" in your settings.

MarkFL
10-04-2015, 03:00 AM
Version 1.1:


Checks added before queries used to determine if a "Featured Thread" author should have the icon the the left of their name so that a valid userid is present, and a database error is avoided.

RichieBoy67
10-04-2015, 04:15 AM
Great work Mark! Thank you for all of your time! No branding, no lite version or anything.. Just hard work with another awesome release to the community!

Before I install this myself I would love to take a look. Does anyone have this working on a live site?

Thanks

MarkFL
10-04-2015, 04:40 AM
Great work Mark! Thank you for all of your time! No branding, no lite version or anything.. Just hard work with another awesome release to the community!

Before I install this myself I would love to take a look. Does anyone have this working on a live site?

Thanks

Thank you for your kind words, Richie! :D

Unfortunately I don't have a live version online with all of the features available that I can show you at the moment. I would recommend installing to a test site first to play around with it see how it all works, and make sure there are no issues/conflicts with your own particular set of add-ons. If there are, I will do my best to resolve these.:up:

ProfC
10-05-2015, 05:50 PM
I've tagged, I'll definitely take a look later on. ^^ Looks awesome work though.

mapleleaffans
10-06-2015, 12:35 AM
Same here! This looks great, Mark. Will definitely look into this mod soon!

MarkFL
10-06-2015, 05:19 AM
Update - version 1.2:


Change made to external script to avoid possible error when creating polls.

iiioroh
10-06-2015, 10:56 AM
Why search in phrases in the translation not working?
Every time translate that?

MarkFL
10-06-2015, 11:04 AM
Why search in phrases in the translation not working?
Every time translate that?

All of the phrases used in this product are for the redirect messages.

thenicehorizon
10-08-2015, 06:00 PM
thank you but i got this database error:

Database error in vBulletin 4.2.1:

Invalid SQL:

SELECT thread.*
FROM thread AS thread
INNER JOIN featuredthreads AS featuredthreads
ON thread.threadid = featuredthreads.threadid
ORDER BY featuredthreads.thread_order ASC, featuredthreads.dateline ASC;

MySQL Error : Unknown column 'featuredthreads.dateline' in 'order clause'
Error Number : 1054
Request Date : Thursday, October 8th 2015 @ 09:57:32 PM
Error Date : Thursday, October 8th 2015 @ 09:57:32 PM
Script : http://www.tomohna.net/vb/featurepage.php
Referrer :
IP Address : 41.100.204.198
Username : tomohna.com
Classname : vB_Database
MySQL Version : 5.5.45-cll-lve

MarkFL
10-08-2015, 06:17 PM
thank you but i got this database error:

Database error in vBulletin 4.2.1:

Invalid SQL:

SELECT thread.*
FROM thread AS thread
INNER JOIN featuredthreads AS featuredthreads
ON thread.threadid = featuredthreads.threadid
ORDER BY featuredthreads.thread_order ASC, featuredthreads.dateline ASC;

MySQL Error : Unknown column 'featuredthreads.dateline' in 'order clause'
Error Number : 1054
Request Date : Thursday, October 8th 2015 @ 09:57:32 PM
Error Date : Thursday, October 8th 2015 @ 09:57:32 PM
Script : http://www.tomohna.net/vb/featurepage.php
Referrer :
IP Address : 41.100.204.198
Username : tomohna.com
Classname : vB_Database
MySQL Version : 5.5.45-cll-lve

I am not finding how that query is generated by my product. The "featuredthreads" table does not have that column, and it is not referenced in any location that I find.

edit: I spoke too soon...I found the problem, and have fixed it in the following update:

Version 1.3:


Database error fixed when using sorting options for the featured threads from the settings.

smirkley
10-12-2015, 04:42 PM
Mark. Love the product.

Hey, I made a couple mistakes and want to uninstall everything, and start fresh with a clean install.

But I cannot get rid of reminant templates the product installed originally.

MarkFL
10-12-2015, 05:26 PM
Mark. Love the product.

Hey, I made a couple mistakes and want to uninstall everything, and start fresh with a clean install.

But I cannot get rid of reminant templates the product installed originally.

The templates should have been removed when you uninstalled, unless you edited them. In that case they will have to be reverted twice (once to restore to original, and then once to remove) I think to remove them.

Elixar
10-14-2015, 05:03 PM
Marked as installed.

MarkFL
10-17-2015, 02:55 PM
Update Version 1.5:


Fixed minor CSS issues.
Extra thread information is now displayed in the supplemental lists.
Added the option to use "Most Replied" threads as candidates for the "Featured Threads" list.

MarkFL
10-23-2015, 03:11 PM
Update Version 1.6:


Fixed typo on settings page.
Tooltip for thread authors in "Most Replied" list shows correct thread creation date/time.

InSite
11-05-2015, 09:10 AM
Hi Mark,

I installed this and you've done a really nice job so far, thank you so much! I have a few suggestions for a future release if you are interested. Here is my installation so that you can see where I'm at with it: http://www.cyrus-gaming.com/forums/featurepage.php

1. Some things are hardcoded into the PhP files, such as the alternating column colour and the display order of the columns. This isn't so great for websites with a dark background or if you want to change the order of the columns. Maybe these options could be changed to variables in the admin settings?

2. The integration with the new icons on the forums are excellent! But the static page itself comes out as quite underwhelming. Maybe it would be a nice addition to allow a brief description of each thread, so it's not just a list with no context? An image option would also be very nice. It would be great to really make this a page that stands on its own and encourages people to check out the best threads / most important news items on a forum.

3. Do you happen to know whether it would be possible to make this a page on vBA CMPS (vBulletin Advanced)?

Great work again, and thanks so much!

Edit to add: This is my homepage: http://www.cyrus-gaming.com. My idea for the standalone page would be to have a similar layout, but with much shorter (new) descriptions of each article, and a small image. This would allow the page to hold around 15 - 20 articles on it.

MarkFL
11-06-2015, 05:21 PM
Update: Version 1.7:


Added setting for background color of product elements.
Added setting for alternate row background color.
Added setting for whether users can nominate their own threads.
Added setting for minimum post count requirement for users allowed to nominate threads.

MarkFL
11-07-2015, 03:39 PM
Update: Version 1.8:


Added setting that allows the "Most Replied" list to either be by the number of replies or by the number of posters.

InSite
11-07-2015, 03:55 PM
Thanks for the updates! Do I need to do anything to upgrade other than re-upload the files? :)

MarkFL
11-07-2015, 04:01 PM
Thanks for the updates! Do I need to do anything to upgrade other than re-upload the files? :)

Re-upload the .PHP files and then import the .XML file and set "Allow Overwrite" to "Yes." Then tweak the new settings like you want. :)

InSite
11-07-2015, 04:22 PM
Updated, went perfectly. Some nice updates, thanks! I'm looking forward to seeing where this mod goes, as it could be a major feature for my website. Once an article is gone from my website homepage, it's hard to easily keep a top list, so this is very nice.

I wish the vBulletin community was as active as it used to be, I hope you know that while the audience may be smaller, your effort are still very much appreciated :)

MarkFL
11-07-2015, 06:17 PM
...I'm looking forward to seeing where this mod goes, as it could be a major feature for my website...

A couple of ideas I am getting set to work on is the addition of a cpnav file, and breaking the unwieldy settings page into six pages, each accessible as a navoption. Also, I am thinking about the creation of a separate log table for this product, rather than using the moderator log. :)

MarkFL
11-08-2015, 04:29 AM
Update: Version 1.9:


Fixed bug where if no thread prefixes are selected for exclusion from user-nominations, the nomination buttons will still show up.
Settings sections separated into idividual pages, and now accessible from the AdminCP sidebar.

InSite
11-08-2015, 01:09 PM
Hi Mark, thanks for the updates again!

I've been thinking about what I'd like to do with the static "Featured Threads" page, and I think I'd like to work towards something like the example below. I'm wondering if we are on the same page, or if I should work on another solution (knowing me, hardcoding a page!).

I'd like the Featured Threads page to be a standalone page for my website. At the moment I use vBAdvanced (sadly no longer supported) for my home page and other web pages. So my home page articles are really just truncated forum posts with links to the main thread. I'd also really like the page to share the vBA page elements (side blocks).

My issue is that when I post a lot of new updates for my homepage to keep the content fresh, there is no way to highlight older articles that are worth reading historically, and not just the current news. This feature would solve that, but it must be a standalone page like my homepage.

I looked for some simple website examples, and I think the following would be a nice easy template that would fit most purposes:

http://myanimelist.net/featured

The part of this page I am looking at is just the main section, not the side menus (which would be added by vBA). It starts with a 2 column view with larger graphics, title, short description, and author. It would be nice to have the date posted next to the author too. Then after the top x threads, they move to a single column list of articles with small thumbnails etc.

That are your thoughts? Is this a direction you are interested in too, or should I look for another solution? Whatever your thoughts, thanks again for supporting this community - we need more people like you :)

MarkFL
11-08-2015, 01:25 PM
Hi Mark, thanks for the updates again!

I've been thinking about what I'd like to do with the static "Featured Threads" page, and I think I'd like to work towards something like the example below. I'm wondering if we are on the same page, or if I should work on another solution (knowing me, hardcoding a page!).

I'd like the Featured Threads page to be a standalone page for my website. At the moment I use vBAdvanced (sadly no longer supported) for my home page and other web pages. So my home page articles are really just truncated forum posts with links to the main thread. I'd also really like the page to share the vBA page elements (side blocks).

My issue is that when I post a lot of new updates for my homepage to keep the content fresh, there is no way to highlight older articles that are worth reading historically, and not just the current news. This feature would solve that, but it must be a standalone page like my homepage.

I looked for some simple website examples, and I think the following would be a nice easy template that would fit most purposes:

http://myanimelist.net/featured

The part of this page I am looking at is just the main section, not the side menus (which would be added by vBA). It starts with a 2 column view with larger graphics, title, short description, and author. It would be nice to have the date posted next to the author too. Then after the top x threads, they move to a single column list of articles with small thumbnails etc.

That are your thoughts? Is this a direction you are interested in too, or should I look for another solution? Whatever your thoughts, thanks again for supporting this community - we need more people like you :)

Thank you for your support and kind words. :)

I do agree the static page is mundane and leaves a lot to be desired. I like the direction you are suggesting for this, and would be a major improvement for the product. At the moment I can't give a timeline for it, but I am definitely interested and will be moving in that direction. :up:

InSite
11-08-2015, 01:29 PM
Thank you for your support and kind words. :)

I do agree the static page is mundane and leaves a lot to be desired. I like the direction you are suggesting for this, and would be a major improvement for the product. At the moment I can't give a timeline for it, but I am definitely interested and will be moving in that direction. :up:

That's awesome news - my website is for a gaming guild that is currently inactive while we wait for a specific game to be released, so I'm in no major rush. I'll happily stick with this mod and am happy to help with any feedback you need :)

MarkFL
11-09-2015, 01:05 PM
Update: Version 1.9.5:


Several minor bug fixes.
When viewing the "User-Rated" threads the voters and their votes are displayed when hovering over the number of votes.
Thread icons show up to the right of thread titles in search results.

jjohns12
11-09-2015, 07:15 PM
Hi

Hope you can help? After upgrading to the latest version I receive This error

PHP Fatal error: Cannot redeclare user_link() (previously declared in /***/****/****/****/showthread.php(2406) : eval()'d code:214) in /***/****/****/****/markfl_featuredthreads/featurebuild.php on line 541

Not every time but quit often.

Thanks

MarkFL
11-09-2015, 07:52 PM
Hi

Hope you can help? After upgrading to the latest version I receive This error

PHP Fatal error: Cannot redeclare user_link() (previously declared in /***/****/****/****/showthread.php(2406) : eval()'d code:214) in /***/****/****/****/markfl_featuredthreads/featurebuild.php on line 541

Not every time but quit often.

Thanks

I discovered in investigating this that there was a conflict between this product and my "Enhanced Thread Rating" product. I have updated the other product to resolve this conflict...so go here:

Enhanced Thread Rating (https://vborg.vbsupport.ru/showthread.php?t=320670)

and update to version 1.2, and this should take care of it. Thank you for bringing this to my attention! :)

jjohns12
11-09-2015, 09:51 PM
That did it great! :)

Love this mod Great work!:up:

MarkFL
11-12-2015, 01:55 AM
Update: Version 1.9.6:


Added setting to allow maximum length of displayed forum names.
Fixed bug with collapse button.

ikopylov
11-13-2015, 06:33 PM
MarkFL, There are 2 problems:
1 - there is a lot of text in scripts and modules. Therefore if the forum is bilingual or non-English language, it will not be displayed correctly

2 - if the forum has 2 skins: light and dark. The unit will be not correctly displayed

MarkFL
11-13-2015, 06:44 PM
Update: Version 1.9.7:


Fixed bad link to forums bug introduced in last update.
Added setting to designate forums where latest thread posted there is auto-added to "Featured Threads" list, with the option to simultaneously auto-remove the previously added thread.

MarkFL
11-13-2015, 06:50 PM
MarkFL, There are 2 problems:
1 - there is a lot of text in scripts and modules. Therefore if the forum is bilingual or non-English language, it will not be displayed correctly

Okay, I will see about replacing all text with phrases. :)

2 - if the forum has 2 skins: light and dark. The unit will be not correctly displayed

Do you mean what works for a one style doesn't work for another in terms of coloring? If so, I will look into giving the option to use stylevars OR custom coloring.

ikopylov
11-13-2015, 07:41 PM
replacing all text with phrases.
I will look into giving the option to use stylevars OR custom coloring.
It is a really good ideas

chloe101
12-31-2015, 03:35 AM
The installation went without a hitch on my development site and I'm really loving it.

Thanks so much for this!

setishock
12-31-2015, 01:18 PM
Would it be possible to have it show XXXX viewed threads with a set point of the amount of views?
I have several threads that are over 8000 views while a few hover around 2000. Some others I'd like to draw attention to are 800 to 900 views and less. I'd like to draw attention to those threads also that don't have many views.

Or is this add on over kill for something like that?

edwinrcollins
01-04-2016, 01:34 PM
Loaded and seems to be working only one issue.

The featured Thread Button is out of alignment:

https://vborg.vbsupport.ru/external/2016/01/22.jpg

MarkFL
01-04-2016, 03:41 PM
Loaded and seems to be working only one issue.

The featured Thread Button is out of alignment:

In the template "markfl_featuredthreads_showthread.css" at the very top, locate the selector:

.pagination_top {
width: 35% !important;
}

and try setting this to a smaller value. :)

edwinrcollins
01-04-2016, 04:46 PM
It doesn't seem to matter how I move the percentage:

https://vborg.vbsupport.ru/external/2016/01/20.jpg

https://vborg.vbsupport.ru/external/2016/01/21.jpg

I can never get it on that same level: I went from 0-100%

I only have it set for admins to see this maybe I can add a line break some place to place it under the other other tab but not over the words?

MarkFL
01-04-2016, 06:27 PM
I would be willing to come to your site and troubleshoot. If you want me to, PM the credentials for a temporary admin account to me. :)

edwinrcollins
01-04-2016, 06:52 PM
Pm sent, Thanks!

MarkFL
01-04-2016, 07:23 PM
I got the issue straightened out...I reverted the CSS template associated with ths product, and then to your "additional.css" template, I added the following selector:

#above_postlist .newcontent_textcontrol {
clear: none !important;
}

edwinrcollins
01-04-2016, 08:05 PM
I got the issue straightened out...I reverted the CSS template associated with ths product, and then to your "additional.css" template, I added the following selector:

#above_postlist .newcontent_textcontrol {
clear: none !important;
}

Thanks for the fix, awesome work! :up:

CAG CheechDogg
01-05-2016, 01:58 AM
Good stuff Mark ..I always go through every single page of a mod before I decide to use it ..I look for bugs and if they have been fixed and this is something I am going to check out sometime next week ..very busy this week with work and this weekend with my Son and Girlfriend .... thank you !!!

vze2yqtm
01-06-2016, 05:00 PM
Thank you so much for the mod, Sir :) Is there a way I can embed it in a custom location on my index?

MarkFL
01-06-2016, 05:27 PM
Thank you so much for the mod, Sir :) Is there a way I can embed it in a custom location on my index?

Where did you want it to appear?

vze2yqtm
01-06-2016, 05:39 PM
Where did you want it to appear?

Above my shoutbox, please - also is there a way to have a 2nd instance of this? Say one instance for news sections and another for a pictures section? Or have the links from each in the same instance but different color links?

MarkFL
01-06-2016, 07:18 PM
I would have to come to your site to see why the shoutbox is above it. At present there's not a way to have multiple lists. :)

vze2yqtm
01-09-2016, 08:39 AM
I would have to come to your site to see why the shoutbox is above it. At present there's not a way to have multiple lists. :)


Messaged, thanks so much :)

jagtpf
01-10-2016, 11:43 AM
Only installed on test PC site.

On any Location setting, bar default, I get error :

Fatal error: Maximum execution time of 30 seconds exceeded in C:\xampp\htdocs\poets\includes\class_core.php on line 1394

Geoff

MarkFL
01-12-2016, 02:54 AM
Messaged, thanks so much :)

I found the issue...another product is replacing your "navbar" template with a custom version, which makes my product the ineffectual. I hacked my plugin to use the name of the custom template instead, and rearranged where my custom hook is added so that now the "Featured Threads" list appears above the shoutbox, on the index page. :)

vze2yqtm
01-12-2016, 10:22 AM
I found the issue...another product is replacing your "navbar" template with a custom version, which makes my product the ineffectual. I hacked my plugin to use the name of the custom template instead, and rearranged where my custom hook is added so that now the "Featured Threads" list appears above the shoutbox, on the index page. :)

Thanks so much :)

MarkFL
01-14-2016, 06:35 AM
Thanks so much :)

I have traced the issue to you allowing HTML in posts, and so I am attaching a replacement for "markfl_featuredthreads/featurebuild.php" that will account for that. :)

Download this file, and then upload it to the "markfl_featuredthreads" folder, overwriting the file already there. This change will automatically be incorporated into future updates of this product, as will a workaround for those using the same product you are using that replaces the "navbar" template with a custom version.

This attached file is just a bandaid for you until then. ;)

vze2yqtm
01-14-2016, 06:24 PM
Thanks so much Mark :)

jagtpf
01-18-2016, 03:27 PM
Sorry Mark - I've loaded this onto a fresh test version of Forum (under xampp) and I'm still getting ....


Fatal error: Maximum execution time of 30 seconds exceeded in C:\xampp\htdocs\poetsl\includes\class_core.php on line 1394



Geoff

MarkFL
01-18-2016, 04:49 PM
Sorry Mark - I've loaded this onto a fresh test version of Forum (under xampp) and I'm still getting ....




Geoff

Hello Geoff,

I apologize for not responding to your earlier post...I have no idea what could be causing this error. Can you post the line of code at which the error is pointing?

jagtpf
01-19-2016, 08:59 AM
Hello Geoff,

I apologize for not responding to your earlier post...I have no idea what could be causing this error. Can you post the line of code at which the error is pointing?


{
$this->connection_recent =& $link;
$this->querycount++;

if ($queryresult = mysqli_query($link, $this->sql, ($buffered ? MYSQLI_STORE_RESULT : MYSQLI_USE_RESULT)))
{
// unset $sql to lower memory .. this isn't an error, so it's not needed
$this->sql = '';

return $queryresult;
}


Line 1394 seems to be pointing at the 'if statement'.

The database in config.php is set to mysql - and everything else, Live and Test are running OK with this setting.

hazem_aliraqi
01-19-2016, 10:22 AM
thank u mark that was awesome installed and 5 stars

Q \ can i get the number (count) of the Featured Threads for each user ?

and add the count to postbit ?

jagtpf
01-19-2016, 02:56 PM
Line 1394 seems to be pointing at the 'if statement'.

The database in config.php is set to mysql - and everything else, Live and Test are running OK with this setting.


just discovered through diagnostics that vBulletin (admincp) has advised :
class_core.php File does not contain expected contents!

MarkFL
01-19-2016, 05:45 PM
just discovered through diagnostics that vBulletin (admincp) has advised :
class_core.php

Did you upload a fresh version of that file and now everything works?

MarkFL
01-19-2016, 05:47 PM
thank u mark that was awesome installed and 5 stars


Q \ can i get the number (count) of the Featured Threads for each user ?

and add the count to postbit ?

I sort of already have this, if you set "Recognize "Featured Threads" Authors In Postbits/Profiles" to "Yes" in the "Icons" section of the settings. The icon has a tooltip that indicates how many "Featured Threads" the user has authored. :)

ikopylov
01-19-2016, 06:34 PM
Hi Mark!
Minor bugs in mod Featured Threads v1.9.7

1
Replase all phrases to {vb:rawphrase vb_standart_phrase}
This is for non English forums

2
Find and replase
<br> ==> <br />
<img src="' . $icon . '">'; ==> <img src="' . $icon . '" alt="" />';
<input bla-bla-bla> ==> <input bla-bla-bla />
<hr></hr> ==> <hr />


3
This is for forums with UTF8:

$preview = substr($firstpost['pagetext'], 0, $vbulletin->options['threadpreview']);
==>
$preview = iconv_substr($firstpost['pagetext'], 0, $vbulletin->options['threadpreview'], 'UTF-8');

next

$forum_trunc = strlen($forum_name) > $forum_length ? substr($forum_name,0,$forum_length) . "...": $forum_name;
==>
$forum_trunc = strlen($forum_name) > $forum_length ? iconv_substr($forum_name,0,$forum_length, 'UTF-8') . "...": $forum_name;


4
Some forums have a short URL:
Member, Forum, Thread

return '<a title="' . $title . '" href="member.php?' . $user_name['userid'] . '-' . $user_name['username'] . '" target="_blank">' . $open_tag . $user_name['username'] . $close_tag . '</a>';
==>
return '<a title="' . $title . '" href="member.php?u=' . $user_name['userid'] . '" target="_blank">' . $open_tag . $user_name['username'] . $close_tag . '</a>';

next

$thread .= '<a title="' . get_thread_preview($threadinfo['firstpostid']) . '" style="color: ' . $vbulletin->options['markfl_ft_linkcolor'] . '; ' . $vbulletin->options['markfl_ft_linkformat'] .'" href="showthread.php?' . $threadinfo['threadid'] . '-' . str_replace(' ', '-', $threadinfo['title']) . '">' . $threadinfo['title'] . '</a>';
==>
$thread .= '<a title="' . get_thread_preview($threadinfo['firstpostid']) . '" style="color: ' . $vbulletin->options['markfl_ft_linkcolor'] . '; ' . $vbulletin->options['markfl_ft_linkformat'] .'" href="showthread.php?t=' . $threadinfo['threadid'] . '">' . $threadinfo['title'] . '</a>';

next

return '<td style="border-right: ' . $vbulletin->options['markfl_ft_border'] . '"><a title="' . $ftitle . '" style="color: ' . $vbulletin->options['markfl_ft_linkcolor'] . '; ' . $vbulletin->options['markfl_ft_linkformat'] .'" href="forumdisplay.php?' . $ftthread['forumid'] . '-' . str_replace(' ', '-', $vbulletin->forumcache[$ftthread['forumid']]['title']) . '">' . $forum_trunc . '</a></td>';
==>
return '<td style="border-right: ' . $vbulletin->options['markfl_ft_border'] . '"><a title="' . $ftitle . '" style="color: ' . $vbulletin->options['markfl_ft_linkcolor'] . '; ' . $vbulletin->options['markfl_ft_linkformat'] .'" href="forumdisplay.php?f=' . $thread['forumid'] . '">' . $forum_trunc . '</a></td>';

MarkFL
01-19-2016, 07:18 PM
Hi Mark!
Minor bugs in mod Featured Threads v1.9.7

1
Replase all phrases to {vb:rawphrase vb_standart_phrase}
This is for non English forums

2
Find and replase
<br> ==> <br />
<img src="' . $icon . '">'; ==> <img src="' . $icon . '" alt="" />';
<input bla-bla-bla> ==> <input bla-bla-bla />
<hr></hr> ==> <hr />


3
This is for forums with UTF8:

$preview = substr($firstpost['pagetext'], 0, $vbulletin->options['threadpreview']);
==>
$preview = iconv_substr($firstpost['pagetext'], 0, $vbulletin->options['threadpreview'], 'UTF-8');

next

$forum_trunc = strlen($forum_name) > $forum_length ? substr($forum_name,0,$forum_length) . "...": $forum_name;
==>
$forum_trunc = strlen($forum_name) > $forum_length ? iconv_substr($forum_name,0,$forum_length, 'UTF-8') . "...": $forum_name;


4
Some forums have a short URL:
Member, Forum, Thread

return '<a title="' . $title . '" href="member.php?' . $user_name['userid'] . '-' . $user_name['username'] . '" target="_blank">' . $open_tag . $user_name['username'] . $close_tag . '</a>';
==>
return '<a title="' . $title . '" href="member.php?u=' . $user_name['userid'] . '" target="_blank">' . $open_tag . $user_name['username'] . $close_tag . '</a>';

next

$thread .= '<a title="' . get_thread_preview($threadinfo['firstpostid']) . '" style="color: ' . $vbulletin->options['markfl_ft_linkcolor'] . '; ' . $vbulletin->options['markfl_ft_linkformat'] .'" href="showthread.php?' . $threadinfo['threadid'] . '-' . str_replace(' ', '-', $threadinfo['title']) . '">' . $threadinfo['title'] . '</a>';
==>
$thread .= '<a title="' . get_thread_preview($threadinfo['firstpostid']) . '" style="color: ' . $vbulletin->options['markfl_ft_linkcolor'] . '; ' . $vbulletin->options['markfl_ft_linkformat'] .'" href="showthread.php?t=' . $threadinfo['threadid'] . '">' . $threadinfo['title'] . '</a>';

next

return '<td style="border-right: ' . $vbulletin->options['markfl_ft_border'] . '"><a title="' . $ftitle . '" style="color: ' . $vbulletin->options['markfl_ft_linkcolor'] . '; ' . $vbulletin->options['markfl_ft_linkformat'] .'" href="forumdisplay.php?' . $ftthread['forumid'] . '-' . str_replace(' ', '-', $vbulletin->forumcache[$ftthread['forumid']]['title']) . '">' . $forum_trunc . '</a></td>';
==>
return '<td style="border-right: ' . $vbulletin->options['markfl_ft_border'] . '"><a title="' . $ftitle . '" style="color: ' . $vbulletin->options['markfl_ft_linkcolor'] . '; ' . $vbulletin->options['markfl_ft_linkformat'] .'" href="forumdisplay.php?f=' . $thread['forumid'] . '">' . $forum_trunc . '</a></td>';

1.) Using phrasing (a HUGE task) is on my to-do list. It could be a while before I can get to it.

2.) Those slashes add no functionality to HTML and are not necessary.

3.) I will eventually look into adding UTF-8 encoding functionality. I'm learning as I go.

4.) I tried giving URLs that are the most standard, and play nicely with SEO mods.

ikopylov
01-20-2016, 07:18 AM
1.
It is very necessary. Put it at 1st line in you TODO list. )))

2.
If we used the specification DOCTYPE HTML it would be appropriate to use <br>
But in VB we use specification DOCTYPE XHTML in this case it is necessary to use <br />, <hr />, <input />, <img /> and then the code is valid

3.
php substr() function with utf-8 leaves "�" marks at the end before "..."
I showed how to solve this little problem

4.
Maybe you can add settings option SEO link | Standard Link

jagtpf
01-20-2016, 08:08 AM
Did you upload a fresh version of that file and now everything works?

To be honest, I haven't. Reason being that the Live and Test Forums run perfectly well with the file as it is.
Your Mod seems to be the first instance of something not totally right.

But I'll give it a try and, obviously, let you know.

Many thanks for your kind work and patience on helping.

One food for thought as an enhancement could be options to create more than one variety of nomination? Similar to DBTechs vBnominate...


EDIT : Sorry Mark - have updated the class_core.php file (test forum) - diagnostics clears as OK - but the error continues.

MarkFL
01-20-2016, 03:18 PM
To be honest, I haven't. Reason being that the Live and Test Forums run perfectly well with the file as it is.
Your Mod seems to be the first instance of something not totally right.

But I'll give it a try and, obviously, let you know.

Many thanks for your kind work and patience on helping.

One food for thought as an enhancement could be options to create more than one variety of nomination? Similar to DBTechs vBnominate...


EDIT : Sorry Mark - have updated the class_core.php file (test forum) - diagnostics clears as OK - but the error continues.

From what I gather from the code you posted, the error has to do with a query...but I don't know which one(s), as there are many queries in this product. What version of vB/PHP/MySQL are you running?

jagtpf
01-20-2016, 03:25 PM
From what I gather from the code you posted, the error has to do with a query...but I don't know which one(s), as there are many queries in this product. What version of vB/PHP/MySQL are you running?


(Don't forget I'm only running (!) this on my test Forum via xampp; so there might - probably - possibly be fewer/no issues on the Live).

vB 4.2.3 C1

PC - test Forum
Server Type WINNT
Web Server Apache v2.4.17
PHP 5.6.15
MySQL Version 10.1.9-MariaDB
MySQL Packet Size 1.00 MB

Live Forum
Server Type Linux
Web Server Apache
PHP 5.6.16
MySQL Version 5.6.28
MySQL Packet Size 256.00 MB

MarkFL
01-20-2016, 03:27 PM
If I had to wager a guess, it would be the MariaDB that's at the heart of the issue...:)

jagtpf
01-20-2016, 03:34 PM
Poor old Maria !

MarkFL
01-20-2016, 04:52 PM
1.
It is very necessary. Put it at 1st line in you TODO list. )))

As I said, it is on my list. I plan to use phrasing in all of my products, and so it could be a while before I get to this one. I apologize if this causes you any inconvenience. I am just one person, doing this in my spare time, for free.

2.
If we used the specification DOCTYPE HTML it would be appropriate to use <br>
But in VB we use specification DOCTYPE XHTML in this case it is necessary to use <br />, <hr />, <input />, <img /> and then the code is valid

It appears vB (all of the sites I use) employs:

<!DOCTYPE html...

And so the closing slashes are optional. :)

3.
php substr() function with utf-8 leaves "�" marks at the end before "..."
I showed how to solve this little problem

As I said, I will look into that.

4.
Maybe you can add settings option SEO link | Standard Link

I may look into that, as part of the next update. :)

MarkFL
01-21-2016, 04:22 AM
2.
If we used the specification DOCTYPE HTML it would be appropriate to use <br>
But in VB we use specification DOCTYPE XHTML in this case it is necessary to use <br />, <hr />, <input />, <img /> and then the code is valid

I looked more into this, and I discovered that the Style Variable "htmldoctype" uses the XHTML 1.0 transitional declaration, and so admit I was wrong, and will add the closing slashes when I update this product, so that the code is valid.

Thank you for bringing this to my attention. :)

hazem_aliraqi
01-21-2016, 06:10 PM
I sort of already have this, if you set "Recognize "Featured Threads" Authors In Postbits/Profiles" to "Yes" in the "Icons" section of the settings. The icon has a tooltip that indicates how many "Featured Threads" the user has authored. :)

i get this

Database error in vBulletin 4.2.2:

Invalid SQL:

SELECT COUNT(*) AS thread_count, thread.postuserid
FROM thread AS thread
INNER JOIN featuredthreads AS featuredthreads
ON thread.threadid = featuredthreads.threadid
WHERE thread.postuserid = 1;

hazem_aliraqi
01-21-2016, 06:28 PM
can i get the number like this {vb:raw post.posts} in postbit ?

MarkFL
01-21-2016, 06:41 PM
i get this

Database error in vBulletin 4.2.2:

Invalid SQL:

SELECT COUNT(*) AS thread_count, thread.postuserid
FROM thread AS thread
INNER JOIN featuredthreads AS featuredthreads
ON thread.threadid = featuredthreads.threadid
WHERE thread.postuserid = 1;

I don't see where the SQL is invalid...is there any information regarding the error?

can i get the number like this {vb:raw post.posts} in postbit ?

Yes, I will include this in the next update. :)

MarkFL
01-22-2016, 03:33 AM
can i get the number like this {vb:raw post.posts} in postbit ?

I have added this to the product, but it relies on the same query that is giving you an error, so we need to figure out why it is not working on your installation. :)

I will wait to publish it though, because I am working on a major upgrade, and this will be part of it.

hazem_aliraqi
01-23-2016, 06:31 AM
I have added this to the product, but it relies on the same query that is giving you an error, so we need to figure out why it is not working on your installation. :)

I will wait to publish it though, because I am working on a major upgrade, and this will be part of it.



thank you mark i have made the COUNT from sql using php file

how can i find the Featured Threads for each user ?

i don't want a major upgrade its hard to translate for arabic language :)

hazem_aliraqi
01-23-2016, 06:38 AM
I don't see where the SQL is invalid...is there any information regarding the error?



Yes, I will include this in the next update. :)

this



MySQL Error : Mixing of GROUP columns (MIN(),MAX(),COUNT(),...) with no GROUP columns is illegal if there is no GROUP BY clause
Error Number : 1140

MarkFL
01-23-2016, 06:42 AM
thank you mark i have made the COUNT from sql using php file

how can i find the Featured Threads for each user ?

i don't want a major upgrade its hard to translate for arabic language :)

I need more information regarding the SQL error you get when you try to display the icon next to the names of "Featured Threads" authors in postbits/profiles. You posted that you are getting an error, but not why.

MarkFL
01-23-2016, 06:46 AM
this



MySQL Error : Mixing of GROUP columns (MIN(),MAX(),COUNT(),...) with no GROUP columns is illegal if there is no GROUP BY clause
Error Number : 1140

This is the query:

$myfeatured = $vbulletin->db->query_first("
SELECT COUNT(*) AS thread_count, thread.postuserid
FROM " . TABLE_PREFIX . "thread AS thread
INNER JOIN " . TABLE_PREFIX . "featuredthreads AS featuredthreads
ON thread.threadid = featuredthreads.threadid
WHERE thread.postuserid = " . $post['userid']
);


I use "COUNT" all the time without a "GROUP BY" clause. What MySQL version are you using?

hazem_aliraqi
01-23-2016, 06:57 AM
This is the query:

$myfeatured = $vbulletin->db->query_first("
SELECT COUNT(*) AS thread_count, thread.postuserid
FROM " . TABLE_PREFIX . "thread AS thread
INNER JOIN " . TABLE_PREFIX . "featuredthreads AS featuredthreads
ON thread.threadid = featuredthreads.threadid
WHERE thread.postuserid = " . $post['userid']
);


I use "COUNT" all the time without a "GROUP BY" clause. What MySQL version are you using?



version 5.0.51

MarkFL
01-23-2016, 07:16 AM
version 5.0.51

Try changing the query to:

$myfeatured = $vbulletin->db->query_first("
SELECT COUNT(*) AS thread_count, thread.postuserid
FROM " . TABLE_PREFIX . "thread AS thread
INNER JOIN " . TABLE_PREFIX . "featuredthreads AS featuredthreads
ON thread.threadid = featuredthreads.threadid
WHERE thread.postuserid = " . $post['userid'] . "
GROUP BY thread.postuserid
");


In the plugins titled:


Show Featured Authors (Postbit)
Show Featured Authors (Postbit - Quick Reply)
Show Featured Authors (Profile)


If that works, then we will proceed from there. :)

hazem_aliraqi
01-23-2016, 07:27 AM
Try changing the query to:

$myfeatured = $vbulletin->db->query_first("
SELECT COUNT(*) AS thread_count, thread.postuserid
FROM " . TABLE_PREFIX . "thread AS thread
INNER JOIN " . TABLE_PREFIX . "featuredthreads AS featuredthreads
ON thread.threadid = featuredthreads.threadid
WHERE thread.postuserid = " . $post['userid'] . "
GROUP BY thread.postuserid
");


In the plugins titled:


Show Featured Authors (Postbit)
Show Featured Authors (Postbit - Quick Reply)
Show Featured Authors (Profile)


If that works, then we will proceed from there. :)




awesome
works successfully :)

thank you

MarkFL
01-23-2016, 07:34 AM
awesome
works successfully :)

thank you

Okay, now if you wish for this data to show up in the postbit userinfo area (if you are also showing the icon next to the username), try adding this code:

$t = 'Thread';
if ($myfeatured['thread_count'] > 1)
{
$t .= 's';
}
$template_hook['postbit_userinfo_right_after_posts'] .= '<dt title="Featured Thread Author">FT Author</dt> <dd>' . $myfeatured['thread_count'] . ' ' . $t . '</dd>';


within the if statement (at the end within it) in the plugins titled:


Show Featured Authors (Postbit)
Show Featured Authors (Postbit - Quick Reply)

hazem_aliraqi
01-23-2016, 07:58 AM
Okay, now if you wish for this data to show up in the postbit userinfo area (if you are also showing the icon next to the username), try adding this code:

$t = 'Thread';
if ($myfeatured['thread_count'] > 1)
{
$t .= 's';
}
$template_hook['postbit_userinfo_right_after_posts'] .= '<dt title="Featured Thread Author">FT Author</dt> <dd>' . $myfeatured['thread_count'] . ' ' . $t . '</dd>';


within the if statement (at the end within it) in the plugins titled:


Show Featured Authors (Postbit)
Show Featured Authors (Postbit - Quick Reply)




thank you mark

i use this php file with field42



SELECT COUNT(*) AS thread_count
FROM thread AS thread
INNER JOIN featuredthreads AS featuredthreads
ON thread.threadid = featuredthreads.threadid
WHERE thread.postuserid = userfield.userid


is that right ?

MarkFL
01-23-2016, 08:03 AM
You should be able to do this without having to use a profile field...you wouldn't want to have to run an additional query for each postbit, redundantly updating a profile field each time.

hazem_aliraqi
01-23-2016, 08:09 AM
You should be able to do this without having to use a profile field...you wouldn't want to have to run an additional query for each postbit, redundantly updating a profile field each time.


i used Scheduled Tasks for updating user field in every 24 hour

MarkFL
01-23-2016, 08:12 AM
i used Scheduled Tasks for updating user field in every 24 hour

I would simply use the query that is already being run to display the information in the postbit, as I suggested above. If you wish to do it differently, then that's fine. :)

jagtpf
01-28-2016, 08:28 AM
Have now installed on Live site and am trying to configure it for a particular purpose. That of member nominations & member voting.

Will let you know how it goes !

I can see you've put an awful lot of work into this - Another product from you that shows your kind generous nature.

ps : Like an earlier poster I could do with a second instance of this for another facility :D

jagtpf
01-28-2016, 08:32 AM
Ah - One query.

In above instructions; custom icon goes in "images/icons" folder according to settings display, but text beneath says it goes into "markfl_featuredthreads/icons".

I could save myself the bother and put into both locations - but just wondered which was correct :D

jagtpf
01-28-2016, 08:38 AM
mmm - activating on Live Forum is similar to that on test site - but I don't get an error message - just a blank screen.

Will investigate I've got all the files on the server and in the 'right' places....

EDIT : All OK - Have deactivated for the moment .....

jagtpf
01-28-2016, 11:47 AM
Me stumped.

Test Site :

Notifications switched off.
CMS disabled.
Sideblocks disabled.
All products/plugins disabled.

Feature Threads enabled. Error message, as before. No database error.

All files etc correctly placed - fresh version of download zip file checked against original.

MarkFL
01-28-2016, 03:26 PM
Ah - One query.

In above instructions; custom icon goes in "images/icons" folder according to settings display, but text beneath says it goes into "markfl_featuredthreads/icons".

I could save myself the bother and put into both locations - but just wondered which was correct :D

The icons I have included with the product should be in the "markfl_featuredthreads/icons" folder, but if you wish to use your own icon, then upload it to the "images/icons"folder, as per the settings description. :)

mmm - activating on Live Forum is similar to that on test site - but I don't get an error message - just a blank screen.

Will investigate I've got all the files on the server and in the 'right' places....


EDIT : All OK - Have deactivated for the moment .....

Where/when do you get a blank screen?

Me stumped.

Test Site :

Notifications switched off.
CMS disabled.
Sideblocks disabled.
All products/plugins disabled.

Feature Threads enabled. Error message, as before. No database error.

All files etc correctly placed - fresh version of download zip file checked against original.

What error message do you get?

jagtpf
01-29-2016, 06:08 AM
The icons I have included with the product should be in the "markfl_featuredthreads/icons" folder, but if you wish to use your own icon, then upload it to the "images/icons"folder, as per the settings description. :)


>>>>

You may choose to display an image icon for the featured threads in several places. You are given a choice of 5 included icons, or you may upload your own and give its filename in the settings. You must upload your custom icon to the "markfl_featuredthreads/icons" folder.





Where/when do you get a blank screen?

What error message do you get?


Blank Screen : After activating product, accessing / refreshing Forum through any link, including forum.php.

On test site : error : As previously mentioned; above; but I've just had another go through forum.php and I've received effectively timeout error....


Fatal error: Maximum execution time of 30 seconds exceeded in C:\xampp\htdocs\poetsl\markfl_featuredthreads\feat urebuild.php on line 545

MarkFL
01-29-2016, 02:22 PM
>>>>

You may choose to display an image icon for the featured threads in several places. You are given a choice of 5 included icons, or you may upload your own and give its filename in the settings. You must upload your custom icon to the "markfl_featuredthreads/icons" folder.

Blank Screen : After activating product, accessing / refreshing Forum through any link, including forum.php.

On test site : error : As previously mentioned; above; but I've just had another go through forum.php and I've received effectively timeout error....

Okay, sorry for the confusion...the setting description is wrong, and the custom icon does need to be upload to your "markfl_featuredthreads/icons" folder. :o

The blank screen I presume is associated with the error you are getting, which I have no idea about. :(

jagtpf
01-29-2016, 02:37 PM
Okay, sorry for the confusion...the setting description is wrong, and the custom icon does need to be upload to your "markfl_featuredthreads/icons" folder. :o

The blank screen I presume is associated with the error you are getting, which I have no idea about. :(

Not to worry. The blank screen is, I guess, indicative of the Forum not loading properly and is a result of a time out. I may be getting a specific error message on my test because I have debug mode switched on, but not on the Live Forum.

If no one else has a similar issue, there must be something in the Forum that differs - and yet!?

I'll keep trying and see if I can isolate the particular problem. Though with all hacks disabled, including vBs :(

MarkFL
01-29-2016, 02:46 PM
Not to worry. The blank screen is, I guess, indicative of the Forum not loading properly and is a result of a time out. I may be getting a specific error message on my test because I have debug mode switched on, but not on the Live Forum.

If no one else has a similar issue, there must be something in the Forum that differs - and yet!?

I'll keep trying and see if I can isolate the particular problem. Though with all hacks disabled, including vBs :(

No one else has reported a timeout issue, but to me if one person has the issue, then it is an issue overall. The only thing I can offer at this point is if you would like for me to come to your site and see if I can figure it out, send me the login credentials to a temporary admin account by PM.

jagtpf
01-30-2016, 07:50 AM
I'm suspecting a template issue, though I can't be sure.

If I uncheck
"Render CSS/Featured Threads List Below Navbar/Above Footer",
I can load the test Forum and see "Featured Threads" on the navbar.

But featurepage.php doesn't load up, with time-out error

I'll PM details for Admin access to the Live site.

ProfC
04-18-2016, 12:47 PM
This mod has quickly become a staple of my board, thank you ^^

However, when trying to reorder the threads, I get a database error which suggests that the table "thread" doesn't exist.


Database error in vBulletin 4.2.2:

Invalid SQL:

SELECT thread.*, featuredthreads.id
FROM estate_thread
INNER JOIN estate_featuredthreads
ON thread.threadid = featuredthreads.threadid
ORDER BY featuredthreads.thread_order ASC, featuredthreads.id ASC;

MySQL Error : Unknown table 'thread'
Error Number : 1051

MarkFL
04-18-2016, 01:41 PM
Can you provide the information about the steps you are taking to reorder the list and the exact error you get?

ProfC
04-18-2016, 02:58 PM
Can you provide the information about the steps you are taking to reorder the list and the exact error you get?

Thank you, and from the main page (forumhome) which is where I display the Featured Threads box, I either select all or select the Featured Threads I want to reorder and then alter the value in the display order box to be what I want it to (while editing the display order of any other threads which had that original value to the value of the threads being moved up or down). I then click re-order.

My exact error is this on the standard vBulletin Database Error page:

Page URL: https://www.alexandria-ns.com/featuredthread.php?action=array

Database error in vBulletin 4.2.2:

Invalid SQL:

SELECT thread.*, featuredthreads.id
FROM estate_thread
INNER JOIN estate_featuredthreads
ON thread.threadid = featuredthreads.threadid
ORDER BY featuredthreads.thread_order ASC, featuredthreads.id ASC;

MySQL Error : Unknown table 'thread'
Error Number : 1051
Request Date : Monday, April 18th 2016 @ 02:43:08 PM
Error Date : Monday, April 18th 2016 @ 02:43:08 PM
Script : http://www.alexandria-ns.com/featuredthread.php?action=array
Referrer : https://www.alexandria-ns.com/forum.php
IP Address : xx.xx.xx.xx
Username : Joshua Ravenclaw
Classname : vB_Database_MySQLi
MySQL Version : 5.5.47-0ubuntu0.14.04.1

MarkFL
04-18-2016, 03:27 PM
Okay, try replacing the file "featuredthread.php" (in your forum's root folder) with the attached file...let me know if that works. :)

ProfC
04-18-2016, 04:39 PM
Okay, try replacing the file "featuredthread.php" (in your forum's root folder) with the attached file...let me know if that works. :)

It now works perfectly, thank you so much! :D

MarkFL
04-18-2016, 04:47 PM
It now works perfectly, thank you so much! :D

Thanks for calling this to my attention and for now letting me know it works. :) I neglected to give some tables an alias in a few of the queries which resulted in an error for sites with a table prefix.

I am planning an upgrade for this product soon to fix a lot of minor details, as I have learned a great deal since I wrote the code for this product.

BadgerDog
04-26-2016, 07:02 PM
I'd like to give this a try.. :)

Any idea when upgrade will be forthcoming so I can test the most current version?

Thanks for your efforts ...

Regards,
Doug

MarkFL
04-27-2016, 11:24 AM
I'd like to give this a try.. :)

Any idea when upgrade will be forthcoming so I can test the most current version?

Thanks for your efforts ...

Regards,
Doug

Sorry, I can't be more specific than "soon." The main changes I have in mind are to use phrases and to revise the thread links. :)

BadgerDog
04-27-2016, 11:26 AM
Sorry, I can't be more specific than "soon." The main changes I have in mind are to use phrases and to revise the thread links. :)

Thanks Mark .. :)

I'll keep checking back... :up:

Regards,
Doug

Snowhog
02-06-2017, 11:22 PM
Thanks for calling this to my attention and for now letting me know it works. :) I neglected to give some tables an alias in a few of the queries which resulted in an error for sites with a table prefix.

I am planning an upgrade for this product soon to fix a lot of minor details, as I have learned a great deal since I wrote the code for this product.
Have you gotten around to this yet? I don't see a post from you saying you have.

MarkFL
02-07-2017, 12:06 AM
Have you gotten around to this yet? I don't see a post from you saying you have.

As far as I know, this was done. :)

Morrus
05-08-2017, 03:25 PM
Quick question re the functionality of this. I think I know the answer, but wanted to check first --

Can I use this mod to set up a separate page which lists all the most replied to threads which were started in the last week?

Thanks!

MarkFL
05-08-2017, 03:50 PM
Quick question re the functionality of this. I think I know the answer, but wanted to check first --

Can I use this mod to set up a separate page which lists all the most replied to threads which were started in the last week?

Thanks!

You can see a list of the most replied to threads, from which you can add to the featured list, but it won't auto-add only from the last week.

Morrus
05-08-2017, 04:35 PM
You can see a list of the most replied to threads, from which you can add to the featured list, but it won't auto-add only from the last week.

Darnit. Thanks for the reply!

chloe101
05-19-2017, 04:26 PM
Okay, try replacing the file "featuredthread.php" (in your forum's root folder) with the attached file...let me know if that works. :)

Hi Mark, I am having a similar, though not the exact same, problem and wonder if I should replace this file too? Or if you have another suggestion.

This happens when I try to reorder the threads. Here is my error message:

PHP Warning: mysqli_query(): (42S02/1051): Unknown table 'thread' in ..../includes/class_core.php on line 1394

Database error in vBulletin 4.2.4:

Invalid SQL:

SELECT thread.*, featuredthreads.id
FROM (redacted)thread
INNER JOIN (redacted)featuredthreads
ON thread.threadid = featuredthreads.threadid
ORDER BY featuredthreads.thread_order ASC, featuredthreads.id ASC;

MySQL Error : Unknown table 'thread'
Error Number : 1051

Thanks again for this awesome mod!

MarkFL
05-19-2017, 04:33 PM
Hi Mark, I am having a similar, though not the exact same, problem and wonder if I should replace this file too? Or if you have another suggestion.

This happens when I try to reorder the threads. Here is my error message:

PHP Warning: mysqli_query(): (42S02/1051): Unknown table 'thread' in ..../includes/class_core.php on line 1394

Database error in vBulletin 4.2.4:

Invalid SQL:

SELECT thread.*, featuredthreads.id
FROM (redacted)thread
INNER JOIN (redacted)featuredthreads
ON thread.threadid = featuredthreads.threadid
ORDER BY featuredthreads.thread_order ASC, featuredthreads.id ASC;

MySQL Error : Unknown table 'thread'
Error Number : 1051

Thanks again for this awesome mod!

Yes, try doing the replacement, and let me know if that works or not. If not, we can go from there. :)

chloe101
05-19-2017, 04:53 PM
Thank you! That seems to have worked beautifully. I can now reorder the threads without the SQL error.

Additional question if you don't mind... Is it possible to see how many nominations each thread received? It's entirely possible I'm missing something obvious.

Also, I am not sure what the "Rating Threshold" in the Nominations setting means and how it correlates to the "Votes Threshold".

I have the settings on Auto-Add Featured threads but that's adding an awful lot of threads at the top of my forum. Is it possible to limit the number of threads to 5 or 6 if I use Auto-Add?

MarkFL
05-19-2017, 05:06 PM
Thank you! That seems to have worked beautifully. I can now reorder the threads without the SQL error.

Great...glad to hear it. :)

Additional question if you don't mind... Is it possible to see how many nominations each thread received? It's entirely possible I'm missing something obvious.

You should see how many nomination each thread has received when you open up the list of nominated threads. Only those who have been designated as managers can do this...but since you are reordering threads, you are a manager already.

Also, if you hover your mouse over the number of nominations, a tooltip will show you a list of users who have nominated the threads.

Also, I am not sure what the "Rating Threshold" in the Nominations setting means and how it correlates to the "Votes Threshold".

The "Rating Threshold" is the minimum rating average a thread must have before being including in the "User-Rated Threads" list. The "Votes Threshold" is the minimum number of votes a threads must have before being included.

For example, you might wish to only have 5 star threads in the list, but you want a thread to have at least 5 votes as well, this way you don't see those that have only gotten a small number of votes.

I have the settings on Auto-Add Featured threads but that's adding an awful lot of threads at the top of my forum. Is it possible to limit the number of threads to 5 or 6 if I use Auto-Add?

The only way to limit the number is to use the option "Yes, And Penultimate Thread Is Removed"...this way when the newest thread is added, the previous auto-added thread is removed.

I don't have a way to limit this by number.

I use this feature at MHB for our "Problem Of The Week" forums...when a new problem is posted in one of our problem categories (High School/University/Post-Grad), last week's problem is auto-removed, and the new problem is auto-added. :)

chloe101
05-19-2017, 05:46 PM
You should see how many nomination each thread has received when you open up the list of nominated threads.

Also, if you hover your mouse over the number of nominations, a tooltip will show you a list of users who have nominated the threads.

The User Nominated & Featured tables are different on my forum. I am trying to find a way to sort the threads by number of nominated votes (or at least know how many votes they got) so that when I manually add new ones, I have a little more visibility into which ones to eliminate.

First I couldn't get people to use it on our new forum and suddenly they're using it everywhere so your add-on is a major success!

The "Rating Threshold" is the minimum rating average a thread must have before being including in the "User-Rated Threads" list. The "Votes Threshold" is the minimum number of votes a threads must have before being included.

For example, you might wish to only have 5 star threads in the list, but you want a thread to have at least 5 votes as well, this way you don't see those that have only gotten a small number of votes.

Thank you.

The only way to limit the number is to use the option "Yes, And Penultimate Thread Is Removed"...this way when the newest thread is added, the previous auto-added thread is removed.

I don't have a way to limit this by number.

This will make things difficult when our forum gets busy. Would you be available to tailor this for our needs when donations start rolling in? We'd compensate you of course. One feature I'd love is the ability to put these in a couple of widgets on the CMS. I hope I didn't break any VB rules by asking that!

(on edit, I found the admin setting for "Yes, And Penultimate Thread Is Removed" but I'd still like it tailored ;) )

MarkFL
05-19-2017, 09:16 PM
The User Nominated & Featured tables are different on my forum. I am trying to find a way to sort the threads by number of nominated votes (or at least know how many votes they got) so that when I manually add new ones, I have a little more visibility into which ones to eliminate.

First I couldn't get people to use it on our new forum and suddenly they're using it everywhere so your add-on is a major success!

You should see the number of nominations in the leftmost column in that table when you click the button to view it. There is no option to turn that column off.

The threads in that table are automatically sorted in descending order by the number of nominations they receive, and in the event of a tie, the threads are sorted within the members of the tie by threadid, so that the older threads are displayed first.

chloe101
05-20-2017, 02:51 PM
The threads in that table are automatically sorted in descending order by the number of nominations they receive, and in the event of a tie, the threads are sorted within the members of the tie by threadid, so that the older threads are displayed first.

Thank you for explaining that.

You should see the number of nominations in the leftmost column in that table when you click the button to view it. There is no option to turn that column off.

I can see them when I click on "show nominated". I think my problem, confusion is because I temporarily had it set to 'auto add new threads' thinking that meant new threads that already had the correct number of votes and I thought they'd been nominated. My confusion. Thanks!

MarkFL
05-20-2017, 02:57 PM
Thank you for explaining that.



I can see them when I click on "show nominated". I think my problem, confusion is because I temporarily had it set to 'auto add new threads' thinking that meant new threads that already had the correct number of votes and I thought they'd been nominated. My confusion. Thanks!

The auto-adding of new threads is done without regards to any nominations/ratings/replies; as soon as a new thread is added to one of the designated forums, it is added to the Featured Threads list. :)

chloe101
05-20-2017, 03:05 PM
Is there anyway to make "Most Replied Threads" permanently show for our members on the Featured Threads page?

And also, is it easily possible to insert "Featured Threads" into a widget for the CMS?

Please forgive my excitement at loving your add-on so much

MarkFL
05-20-2017, 03:09 PM
Is there anyway to make "Most Replied Threads" permanently show for our members on the Featured Threads page?

Do you mean where the top X replied threads is auto-maintained? If so, that's not currently a feature of the product.

And also, is it easily possible to insert "Featured Threads" into a widget for the CMS?

Please forgive my excitement at loving your add-on so much

I have no experience with CMS or its widgets. Sorry. :(

chloe101
05-23-2017, 07:54 PM
Thank you Mark. I'll figure out how to squeeze your terrific add-on into a CMS widget yet ;)

chloe101
05-30-2017, 12:48 PM
I removed and added a few forums but when I go to the Management panel, it's still showing the old ones. I emptied the cache and even went to tools to rebuild the forum cache but it's still showing me the old forums. How can I update that please? Thanks

MarkFL
05-30-2017, 01:45 PM
I removed and added a few forums but when I go to the Management panel, it's still showing the old ones. I emptied the cache and even went to tools to rebuild the forum cache but it's still showing me the old forums. How can I update that please? Thanks

For now, until I can address the issue in a future update, remove the threads that are in new/renamed forums from the featured threads list, and them add them back...they should then show the correct forum. :)

chloe101
05-30-2017, 06:09 PM
For now, until I can address the issue in a future update, remove the threads that are in new/renamed forums from the featured threads list, and them add them back...they should then show the correct forum. :)

Thanks Mark. They were already showing the correct forum on the Featured Threads Display block on the forum page. It's just in the Admin CP that the forums aren't updating. If this helps, it's listing the new forums in the Admin CP but not removing the deleted ones in "Managing The "Featured Threads" List"

Take your time. It's just a small thing. Thanks again

MarkFL
05-30-2017, 09:06 PM
Try clearing the system cache. All of my products rely on the cache to construct a list of the available forums within their settings. :)

chloe101
05-31-2017, 03:18 AM
Try clearing the system cache. All of my products rely on the cache to construct a list of the available forums within their settings. :) You may never want to talk with me again. Those forums were only deactivated, not deleted. I obviously need some sleep :( Profuse apologies for wasting your time. That's 2 boxes of chocolate now

MarkFL
05-31-2017, 03:36 AM
You may never want to talk with me again. Those forums were only deactivated, not deleted. I obviously need some sleep :( Profuse apologies for wasting your time. That's 2 boxes of chocolate now

LOL! No worries...I have been known to edit plugins that have been disabled, or edit the wrong version of an external script, and then pull my hair out when the changes have no effect.

And at least you are conscientious enough to admit your minor oversight, rather than simply walking away from it like nothing happened. :cool::D

chloe101
05-31-2017, 03:52 AM
LOL! No worries...I have been known to edit plugins that have been disabled, or edit the wrong version of an external script, and then pull my hair out when the changes have no effect.

And at least you are conscientious enough to admit your minor oversight, rather than simply walking away from it like nothing happened. :cool::D

Ok, now that's funny lol. Thanks for the laugh before going to get some zzzzzs! Now I don't feel so awful but I still apologize for wasting your time :)

chloe101
06-03-2017, 01:08 AM
Hi Mark, Another day, another request if this isn't asking too much because my new problem is with the theme I'm currently using as our default. I didn't even realize this was a problem until I saw that featured threads get a star in the default & in a theme I'm adding but not in my main theme. I can't ask the theme author because he dropped out of site a few years ago. Is it possible to get your star to show up in front of the title?

(Edited to remove images)

MarkFL
06-03-2017, 04:57 AM
Unfortunately when a custom theme changes the HTML layout of a template such that certain elements are no longer present, then my code to append the star to the thread title isn't going to work. :(

chloe101
06-03-2017, 11:09 AM
I was afraid of that. Thanks for replying :)

MarkFL
06-03-2017, 12:55 PM
It may be possible to edit your "SHOWTHREAD" template for that style to add dummy span elements around the title to get it to work. :)

chloe101
06-04-2017, 08:32 PM
Hah! I just logged in to ask you if you had any hints for a determined person who wanted to try on their dev site and you beat my question to it with an answer waiting. I'm going to try- expecting miracles but not holding my breath since this really isn't my forte ;)

Thank you Mark!

scottkoz20
06-06-2017, 10:20 PM
hey Mark - is there a time limit before threads are automatically cleared? I have noticed that threads will delete (I am checking other settings / users that might be playing with the mod)

MarkFL
06-06-2017, 11:09 PM
Thread stay in the featured threads list until either a manager removes them or the thread gets deleted. :)

The Realist
07-20-2017, 11:41 AM
This might sound a sill question but how do you nominate a thread?

Installed fine but I don't see as admin any option.

MarkFL
07-20-2017, 01:12 PM
Follow:

AdminCP -> MarkFL: Featured Threads -> Nominations

By default, nominations are not enabled, so you have to define the settings how you want. :)

The Realist
07-20-2017, 02:26 PM
Thanks Mark worked that out afterwards.

The Realist
07-20-2017, 02:32 PM
Mark,

Just created a poll and received this error?

PHP Warning: mysql_insert_id(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in ..../featuredthread.php on line 334

PHP Warning: mysql_insert_id(): A link to the server could not be established in ..../featuredthread.php on line 334

Any ideas?

MarkFL
07-20-2017, 03:01 PM
Okay, I've attached as a hot fix, a replacement for the "featuredthread.php" script. Please replace the file on your server, and let me know if that fixes the poll creation issue. :)

The Realist
07-20-2017, 03:02 PM
Will do.

The Realist
07-20-2017, 03:05 PM
PHP Warning: require_once(./markfl_featuredthreads/featurebuild.php): failed to open stream: No such file or directory in ..../includes/class_bootstrap.php(433) : eval()'d code on line 399

Fatal error: require_once(): Failed opening required './markfl_featuredthreads/featurebuild.php' (include_path='.:/usr/newage/lib/php') in /var/sites/t/thesaltybox.com/public_html/forum/includes/class_bootstrap.php(433) : eval()'d code on line 399

The Realist
07-20-2017, 03:11 PM
Ops hehehe replaced the wrong file duh?

Above error fixed but when the correct file is replaced I get this error:

PHP Warning: mysql_insert_id(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in ..../featuredthread.php on line 334

PHP Warning: mysql_insert_id(): A link to the server could not be established in ..../featuredthread.php on line 334

MarkFL
07-20-2017, 03:15 PM
Are you sure you have the new file in the right place? That error indicates you are running the old file...

The Realist
07-20-2017, 03:43 PM
Yeh I'll try it again from a fresh download.

The Realist
07-20-2017, 03:48 PM
Thanks Mark worked a treat.

I did indeed use the old file but now poll was created fine.

Thank you.

MarkFL
07-20-2017, 03:52 PM
Great, glad to hear it worked out! :)

Pocket Aces
09-26-2018, 08:09 AM
Works fine in chrome. Firefox results in load timeouts.

Sforums
10-15-2019, 11:16 AM
I am on vb 4.1.0.
I can't see option anywhere how to add thread to featured one. Using vb default skin.
Installed without problems, link is right there on navbar, visible above forums but no button to add or nominate.
What am I doing wrong?

Sforums
10-17-2019, 02:45 AM
MarkFL can you help me out here please?

MarkFL
10-17-2019, 04:18 PM
I am on vb 4.1.0.
I can't see option anywhere how to add thread to featured one. Using vb default skin.
Installed without problems, link is right there on navbar, visible above forums but no button to add or nominate.
What am I doing wrong?

I've never worked with vB 4.1.x, but I would suspect template incompatibility. I see I marked this as for vB 4.x.x, but perhaps I should have used 4.2.x instead.

Are you certain you have designated your usergroup to be able to add/nominate?

Sforums
10-17-2019, 04:23 PM
Yes I have.
Sending you PM.

I've never worked with vB 4.1.x, but I would suspect template incompatibility. I see I marked this as for vB 4.x.x, but perhaps I should have used 4.2.x instead.

Are you certain you have designated your usergroup to be able to add/nominate?