vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   End-User Options - Starred Posts (https://vborg.vbsupport.ru/showthread.php?t=323063)

MarkFL 07-20-2016 09:00 PM

Starred Posts
 
1 Attachment(s)
Overview:

This product is designed to give your users the ability to create/manage a list of starred/favorite posts so they can easily locate them in the future. Some users may have limited time when browsing your site, and wish to earmark posts to which they will want to reply later when they have more time. This product will allow them to tag these posts and easily find them later.

Upon installing the product a new table is added to your database to store the data pertaining to the user lists, and a new column is added to your user table to store the number of posts in each user's list.

Users with permission to use the system will see a star icon in the postbits just above the signature and to the far right that allows them to add the posts to their list. Once a post has been added, a checkmark appears next to the star icon to indicate that that post is already on their list, and if this is clicked the post is removed from the list. The icons have tooltips to indicate what will happen upon clicking them, as do all buttons and checkboxes used by the system.

https://vborg.vbsupport.ru/attachmen...1&d=1469081947

In the search results and forum thread listings, an icon is shown to users to indicate which threads have posts in their starred list, and the icon has a tooltip indicates how many posts in the thread are in the user's starred list.

https://vborg.vbsupport.ru/attachmen...1&d=1469213989

Under the "Quick Links" menu, users who have permission to use the system, will find a link titled "My Starred Posts" which will take them to a custom page which displays their starred posts and allow for posts to be removed. Each post has detailed information regarding the post, with links to the forum, thread and to the post itself. There are controls that allow the user to select posts for removal from the list, and to expand the post content so they can review the entire post(s) right there and to reply to the post with a quote. Post content can be expanded/collapsed one a per post basis, or all at once. Each postbit can be collapsed as well.

https://vborg.vbsupport.ru/attachmen...1&d=1469166372

Users who have a limit imposed on the number of posts in their list will be shown additional information in the redirect messages that tell them how many additional posts they can add to their list. Once a user has added the maximum number of posts in their list, they will no longer see the star icon in the postbits with threads to add posts...they will only see the icon fro removing posts from their list.

In the product settings, you may select the usergroups that have permission to use the system, set a limit to the number of posts a user may have in their list, excempt usergroups from this limit, give limits based on usergroups, and set the persistence of user lists so that users who are inactive for longer than the number of days you have set will have their list removed from the database via a daily cron job. You may also set the maximum height of the elements containing the list of posts, and the post content within each list postbit.

https://vborg.vbsupport.ru/attachmen...1&d=1483361196

This product is fully phrased, and stylevars are used so that the CSS for the custom page can be customized per style.

Updates:

Version 1.1:
  • Added reply button.
  • Online location processed.

Version 1.2:
  • Fixed issue with postbit star icon not displaying.
  • Added icon to threadbits to show users which threads haev posts in the starred list.

Version 1.3:

Version 1.3.1:
  • Fixed Thread/Post authors in postbits.

Version 1.4:
  • Deleted posts removed from the lists of all users.
  • Posts moved to areas where users do not have permission to view are removed from the lists of those users.
  • User lists are updated when posts/threads are merged.
  • Unapproved posts and posts within unapproved threads are removed from the lists of users who are not moderators of the forum in which the affected posts reside.
  • Stylevar added for the margins of the postbit icon.

Version 1.5:
  • Usernames escaped to avoid db errors.
  • Postbit icon now appears at the lower right of the post content element when using legacy postbit, regardless of the post length.
  • Postbit icon CSS moved to template.

Version 1.6:
  • Added setting to allow for limits per usergroup.

Version 1.6.1:
  • Guests shown no permission message if trying to access the external script.

Version 1.6.2:
  • Users not part of the allowed usergroups shown no permission message if trying to access the external script.

Compatibility:

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

Backup/Warning:

This product does alter your database, 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.

To Install:
  1. Download and extract the attached .zip file.
  2. Upload the files from the "upload" folder to your root folder on your server.
  3. Follow AdminCP -> Plugins & Products -> Manage Products -> Add/Import Product.
  4. Click on "Choose File" and browse to the product .xml file that was packaged in the .zip file.
  5. Click "Import."
  6. You MUST enable the product in the settings before it will function.
  7. Configure the remaining settings to your liking. Each setting has a detailed explanation of its use.

Special acknowledgement goes to the administrators of Christianity Haven for the general idea of this product and for their feedback and testing through all phases of development. :up:

Support for this product can be found here:

thenicehorizon 07-21-2016 07:56 AM

great job
thank you very much

Alan_SP 07-21-2016 11:09 AM

Nice idea. :up:

mikez006 07-21-2016 05:18 PM

for some reason only 1 member has the star next to his posts/threads. it doesn't show up for anyone else.

I have it enabled for all usergroups.

MarkFL 07-21-2016 05:39 PM

Quote:

Originally Posted by mikez006 (Post 2573577)
for some reason only 1 member has the star next to his posts/threads. it doesn't show up for anyone else.

I have it enabled for all usergroups.

I've personally installed this on 3 separate vB 4.2.x sites, and that hasn't been an issue at all on them.

I would have to come to your site with an admin account to troubleshoot...if interested, send the credentials to such an account on your site, along with a link to your site, to me by PM and I can look into this tonight.

RichieBoy67 07-21-2016 11:35 PM

This is an outstanding idea Mark! I am going to check it out right now!

RichieBoy67 07-22-2016 12:35 AM

Works great but i really need to do the css so it will work with my theme.. I also changed the phrase and the nav to "My Favorites List"..

Awesome Mark! Thanks

####I see you added stylevars! Really nice Mark! The first 5 star rating is from me. :)

MarkFL 07-22-2016 01:07 AM

Quote:

Originally Posted by RichieBoy67 (Post 2573595)
Works great but i really need to do the css so it will work with my theme.. I also changed the phrase and the nav to "My Favorites List"..

Awesome Mark! Thanks

####I see you added stylevars! Really nice Mark! The first 5 star rating is from me. :)

Thank you! I do appreciate your kind words. :D

Stratis 07-22-2016 02:37 AM

Quote:

Originally Posted by mikez006 (Post 2573577)
for some reason only 1 member has the star next to his posts/threads. it doesn't show up for anyone else.

I have it enabled for all usergroups.

Some thing like this is for me to, with the difference... if one thread has 10 posts it shows it only in 2-4 posts, same to all other threads. All posts don't show the icon.

Very nice idea, thanks

MarkFL 07-22-2016 02:40 AM

I have discovered there is a conflict with the "Show First Post Only" product of mine...are you running that mod by chance?

MarkFL 07-22-2016 03:50 AM

Update - Version 1.1:
  • Added reply button.
  • Online location processed.

Techno Cowboy 07-22-2016 09:00 AM

Awesome...works nicely & the added stylevars needed to work with my different themes, makes for a perfect addon!

Awesome Work Mark ...Thanks!

Installed & Rated....:up:

MrD 07-22-2016 11:01 AM

1 Attachment(s)
Hi Mark,
i have followed Problems.
  1. Expand and Expand all are not Working in VB4.2.3 PL1.
  2. The left Pointing Pointer are bigger then the left, see Att.

MarkFL 07-22-2016 01:28 PM

Quote:

Originally Posted by MrD (Post 2573629)
Hi Mark,
i have followed Problems.
  1. Expand and Expand all are not Working in VB4.2.3 PL1.
  2. The left Pointing Pointer are bigger then the left, see Att.

What browser are you using?

ArcadeSyndicate 07-22-2016 01:52 PM

really nice addon, but the idea itself isn't new, there already is something similar from dragonbyte availiable around here...

https://vborg.vbsupport.ru/showthread.php?t=258738

if you are looking for additional features, take a look at the bookmarks addon for xenforo, where you can choose between private and public. with the public bookmarks you can create a list of recomented posts for other users. also you can add a little comment to each bookmark.

https://xenforo.com/community/resources/bookmarks.272/

MrD 07-22-2016 02:00 PM

Hi Mark,
Quote:

Originally Posted by MarkFL (Post 2573642)
What browser are you using?

i Use Firefox and Safari. Both in actually Versions.

MarkFL 07-22-2016 03:35 PM

To everyone who has reported the star icon is not appearing in all postbits, I have resolved the issue and am working on an added feature as well, and so an update will be coming very soon. :)

MarkFL 07-22-2016 05:03 PM

Update - Version 1.2:
  • Fixed issue with postbit star icon not displaying.
  • Added icon to threadbits to show users which threads haev posts in the starred list.

jjohns12 07-22-2016 05:17 PM

I get the following error on the top of the My Stared Posts page

Warning: Only variables should be passed by reference in ..../mystarpost.php on line 74

Can you help me out with this?

Thanks

MarkFL 07-22-2016 05:29 PM

Quote:

Originally Posted by jjohns12 (Post 2573654)
I get the following error on the top of the My Stared Posts page

Warning: Only variables should be passed by reference in ..../mystarpost.php on line 74

Can you help me out with this?

Thanks

What vB and PHP versions are you running?

jjohns12 07-22-2016 05:35 PM

Quote:

What vB and PHP versions are you running?
PHP Version 5.4.35

vBulletin version 4.2.2 Patch Level 5

MarkFL 07-22-2016 06:04 PM

Quote:

Originally Posted by jjohns12 (Post 2573656)
PHP Version 5.4.35

vBulletin version 4.2.2 Patch Level 5

After reviewing that line of code, I have no idea why your site (and no others I know of) is throwing that warning. :(

mikez006 07-22-2016 07:18 PM

got it working, thanks MarkFL.

My main concern now is having redundant systems. This is similar to the "thread subscription" feature, but much better, only it doesn't include notifications.

I think having both would be confusing to members who want to keep track of their threads. They need to both star the thread and subscribe to it if they still want to get notified.

I would like to disable thread subscriptions completely and use this exclusively, but that would require notifications to be added so the same options are present.

I would like to suggests email notifications and control panel notifications be added as options.

MarkFL 07-22-2016 09:39 PM

Quote:

Originally Posted by mikez006 (Post 2573658)
got it working, thanks MarkFL.

My main concern now is having redundant systems. This is similar to the "thread subscription" feature, but much better, only it doesn't include notifications.

I think having both would be confusing to members who want to keep track of their threads. They need to both star the thread and subscribe to it if they still want to get notified.

I would like to disable thread subscriptions completely and use this exclusively, but that would require notifications to be added so the same options are present.

I would like to suggests email notifications and control panel notifications be added as options.

I see this product as being complementary to the thread subscription feature. Thread subscriptions allow you to keep track of entire discussions, with notifications of replies while this product allows you to bookmark individual posts, where you are solely interested in returning to that post at some point in the future mainly to reply after having time to think about how you wish to reply.

When I was first approached about this idea by one of the admins at Christianity Haven, my reaction was that the thread subscription feature built into vBulletin already does this, but after more discussion I realized she had something else in mind, and once I realized what that was, I thought it to be a great idea, and began coding. :)

DSemen 07-23-2016 11:57 AM

Beautiful and very useful product! But, unfortunately, in my version 4.1.3 does not work. It is possible to adapt to the version 4.1.3?

MarkFL 07-23-2016 01:06 PM

Quote:

Originally Posted by DSemen (Post 2573693)
Beautiful and very useful product! But, unfortunately, in my version 4.1.3 does not work. It is possible to adapt to the version 4.1.3?

I don't have access to vB 4.1.x...I would highly recommend updating your vB. :)

MarkFL 07-23-2016 01:38 PM

Update - Version 1.3:

mikez006 07-23-2016 01:50 PM

Quote:

Originally Posted by MarkFL (Post 2573663)
I see this product as being complementary to the thread subscription feature. Thread subscriptions allow you to keep track of entire discussions, with notifications of replies while this product allows you to bookmark individual posts, where you are solely interested in returning to that post at some point in the future mainly to reply after having time to think about how you wish to reply.

When I was first approached about this idea by one of the admins at Christianity Haven, my reaction was that the thread subscription feature built into vBulletin already does this, but after more discussion I realized she had something else in mind, and once I realized what that was, I thought it to be a great idea, and began coding. :)

My site is a marketplace forum, so sellers like to keep track of their own threads. I know many sellers would love this addon, but they also want notifications so they can reply to customers right away.

Having to go to two separate pages to accomplish this is just clunky to me, it would be more streamlined if they could star, setup and keep track of notifications on the same page.

It might not be useful to other sites, but for marketplace forums, it would be an awesome addition to make everything simpler and more user friendly. I can make a donation to have this functionality added, just message me your Paypal email and a price :)

babyv0x 07-25-2016 12:44 AM

Thanks MarkFL for useful product .

i test version 1.3 on vBulletin 4.2.2 Patch Level 4

I get error when go to quick link/My starred posts

Strict Standards: Only variables should be passed by reference in ................/mystarpost.php on line 172

Strict Standards: Only variables should be passed by reference in ................/mystarpost.php on line 173

Strict Standards: Only variables should be passed by reference in ................/mystarpost.php on line 172

Strict Standards: Only variables should be passed by reference in ................/mystarpost.php on line 173

Strict Standards: Only variables should be passed by reference in ................/mystarpost.php on line 172

Strict Standards: Only variables should be passed by reference in ................/mystarpost.php on line 173
.....

MarkFL 07-25-2016 01:10 AM

Quote:

Originally Posted by babyv0x (Post 2573861)
Thanks MarkFL for useful product .

i test version 1.3 on vBulletin 4.2.2 Patch Level 4

I get error when go to quick link/My starred posts

Strict Standards: Only variables should be passed by reference in ................/mystarpost.php on line 172

Strict Standards: Only variables should be passed by reference in ................/mystarpost.php on line 173...

Okay, try the latest update:

Update - Version 1.3.1:
  • Fixed Thread/Post authors in postbits.

Note: Make sure you upload the new copy of mystarpost.php. ;)

babyv0x 07-26-2016 02:47 PM

1 Attachment(s)
I add the posts to the list, then another admin remove this post (Physically remove)

when i go to My starred posts, i see
https://vborg.vbsupport.ru/attachmen...1&d=1469551318

When i remove this post from list, i get error
HTML Code:

Database error in vBulletin 4.2.2:

Invalid SQL:

                        DELETE FROM starposts
                                WHERE postid IN ()
                                AND userid = 1;

MySQL Error  : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')
                                AND userid = 1' at line 2
Error Number  : 1064
Request Date  : Tuesday, July 26th 2016 @ 06:25:36 PM
Error Date    : Tuesday, July 26th 2016 @ 06:25:37 PM
Script        : http://xxxxxxxx/starpost.php?do=selected
Referrer      : http://xxxxxxxxx/mystarpost.php
IP Address    : xxxxxxxxxxxxxxxxxxxx
Username      : xxxxxxxxxxxxxxxxx
Classname    : vB_Database
MySQL Version : xxxxxxx


MarkFL 07-26-2016 04:37 PM

Yes, code needs to be added to handle when posts have been deleted, or moved to areas in which the user doesn't have permission to view the post. I will do that soon, as time permits. :)

MarkFL 07-28-2016 02:57 PM

Update - Version 1.4:
  • Deleted posts removed from the lists of all users.
  • Posts moved to areas where users do not have permission to view are removed from the lists of those users.
  • User lists are updated when posts/threads are merged.
  • Unapproved posts and posts within unapproved threads are removed from the lists of users who are not moderators of the forum in which the affected posts reside.
  • Stylevar added for the margins of the postbit icon.

Stratis 08-02-2016 06:30 AM

Mark i want to ask...
What about bbcodes and attached files ?
I don't see the attach file xxx.zip that the real post has in to it.
I don't see content in users defined bbcodes.(made by others or me)

I see the [HIDE-POSTS] nothing in side here[/HIDE-POSTS]
Its ok to see nothing inside, but it supposed to see the image that says to hit thank you button to see content. or not to see at all the bbcode code.

Thanks, all other is ok

MarkFL 08-02-2016 09:40 AM

It's not intended to show attachments (except inline attachments).

The spoiler BBCode I use works fine...which one are you using?

Stratis 08-02-2016 11:58 AM

Yes, I see it to, actually I see all standard bbcodes, I test them one by one and don't see two of them made by me, that's why in previous post I said users defined bbcodes. All made by some one but they are standard for me :)
I have others made by me that I can see. The [HIDE-POSTS] is from here (modification)


Its not a big deal...


for the attachment, ok, as you say.

MarkFL 08-02-2016 02:18 PM

Quote:

Originally Posted by Stratis (Post 2574246)
Yes, I see it to, actually I see all standard bbcodes, I test them one by one and don't see two of them made by me, that's why in previous post I said users defined bbcodes. All made by some one but they are standard for me :)
I have others made by me that I can see. The [HIDE-POSTS] is from here (modification)


Its not a big deal...


for the attachment, ok, as you say.

Without a link to the modification you are using for the [HIDE-POSTS] tags, it's hard to say, but there may be additional processing that needs to be done. For example, my UserName Markup BBCode ([UNM]) is like that, and I had to add code to this product to support it.

Stratis 08-02-2016 02:35 PM

https://vborg.vbsupport.ru/showthread.php?t=282328 :)

MarkFL 08-02-2016 02:43 PM

Quote:

Originally Posted by Stratis (Post 2574255)

OKay, I would assume, given the fact that that product has additional files that need to be uploaded, that this BBCode requires additional external processing to work correctly. :)

MarkFL 01-01-2017 02:11 PM

Update - Version 1.5:
  • Usernames escaped to avoid db errors.
  • Postbit icon now appears at the lower right of the post content element when using legacy postbit, regardless of the post length.
  • Postbit icon CSS moved to template.


All times are GMT. The time now is 11:44 AM.

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

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

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete