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)

Snowhog 01-01-2017 09:09 PM

Installed. A nice 'New Years' addition to our Forum. :up:

Snowhog 01-01-2017 09:52 PM

As written, this MOD allows selection of Usergroups who can use it, and to select Usergroups who are exempt from the limit. I would like it if I were able to have more control.

I'd like to be able to set limits 'by Usergroup'. Why? We implemented Paid Subscriptions several years back but don't have any incentives for them. This MOD, with that ability, would make a nice 'incentive', allowing us to establish higher limits based on the Paid Subscription level.

MarkFL 01-01-2017 10:21 PM

Quote:

Originally Posted by Snowhog (Post 2580162)
As written, this MOD allows selection of Usergroups who can use it, and to select Usergroups who are exempt from the limit. I would like it if I were able to have more control.

I'd like to be able to set limits 'by Usergroup'. Why? We implemented Paid Subscriptions several years back but don't have any incentives for them. This MOD, with that ability, would make a nice 'incentive', allowing us to establish higher limits based on the Paid Subscription level.

I'll add that to my to-do list. :)

MarkFL 01-02-2017 10:50 AM

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

I.G.O.T.A. 01-07-2017 10:38 AM

Installed on vB 4.2.3 Patch Level 2 and working correctly.

Very nice. ;)

Snowhog 01-17-2017 10:54 PM

I would like very much to be able to 'tag' users so posts they make are automatically included in my Starred Posts. Can that be put on your wish list?

MarkFL 01-18-2017 02:35 PM

Quote:

Originally Posted by Snowhog (Post 2580996)
I would like very much to be able to 'tag' users so posts they make are automatically included in my Starred Posts. Can that be put on your wish list?

That isn't really part of the intended purpose of this product, which is to be able to bookmark posts as you read them. You can already search for posts by username. :)

Snowhog 01-19-2017 11:32 PM

I do understand that, but I think you may understand my wish. Your MOD, as written, requires that you actually click on a post and then mark it as a Starred Post; you are already 'reading' it when you click on it.

I know that I, and others, would love to be able to tag users we want to track, and this MOD, if it were modified to do so, would be perfect for this. It would put posts made by those tagged users in to our Starred Posts. In my way of seeing things, this would be way more useful.

Just my 2-cent observation.

Snowhog 02-07-2017 04:47 PM

...DragonByte Tech's Thread / Post Bookmarking MOD. At least that MOD no longer works at here.

The button and icon (Thread / Post) are present, as well as the clickable entries for them in the user's Settings. But, while in a thread, clicking on either button does not result in the Thread and/or Post being added.

It's an assumption on my part that these two MODs are in conflict, with your's 'breaking' his. Can you confirm? For the moment I've disabled DB Tech's MOD.

MarkFL 02-07-2017 04:58 PM

I don't have that product installed, and I am swamped with other issues right now. :)

Snowhog 02-07-2017 05:15 PM

Totally understand. It isn't a big deal.

MarkFL 02-07-2017 05:17 PM

Quote:

Originally Posted by Snowhog (Post 2582036)
Totally understand. It isn't a big deal.

When I get some time, I will install DBTech's product on my local dev site and see if I can resolve the conflict. :)

Snowhog 02-07-2017 05:17 PM

That would be great. Thank you.

DSemen 03-31-2017 04:39 PM

Help me please. DB Error. Very good and useful mod, for a long time can someone tell me how to make it work on 4.1.3
Quote:

Database error in vBulletin 4.1.3:

Invalid SQL:

SELECT starposts.dateline AS stardateline, post.*, thread.title AS threadtitle, thread.postusername as postusername, thread.postuserid AS postuserid, thread.dateline AS threaddateline, thread.replycount AS replycount, thread.views AS views, thread.postercount AS threadpostercount, thread.lastpost AS threadlastpost, forum.forumid AS forumid, forum.title AS forumtitle, forum.description AS forumdescription, forum.parentlist AS forumparents
FROM starposts AS starposts
LEFT JOIN post AS post
ON post.postid = starposts.postid
LEFT JOIN thread AS thread
ON thread.threadid = post.threadid
LEFT JOIN forum AS forum
ON forum.forumid = thread.forumid
WHERE starposts.userid = 1
ORDER BY starposts.dateline ASC;

MySQL Error : Unknown column 'thread.postercount' in 'field list'
Error Number : 1054
Request Date : Friday, March 31st 2017 @ 09:35:00 PM
Error Date : Friday, March 31st 2017 @ 09:35:00 PM
Script : http://forum.mysite.net/mystarpost.php

MarkFL 03-31-2017 04:57 PM

Quote:

Originally Posted by DSemen (Post 2584530)
Help me please. DB Error. Very good and useful mod, for a long time can someone tell me how to make it work on 4.1.3

I don't have access to vB 4.1.x to test, but that column is a part of the thread table by default in vB 4.2.x.

After a quick check, I see it is not present in vB 3.8.11, so perhaps it was added in vB 4.2.x.

The quickest solution here would be for you to update to vB 4.2.4 (or vB 4.2.5 if you want to upgrade to PHP 7.x) ;)

DSemen 03-31-2017 05:00 PM

Unfortunately it will not be possible to update. Many mods require a serious alteration. I already tried several times to update myself and it always ended in failure. I ask you, I am ready to pay, help me.

MarkFL 03-31-2017 05:22 PM

Quote:

Originally Posted by DSemen (Post 2584532)
Unfortunately it will not be possible to update. Many mods require a serious alteration. I already tried several times to update myself and it always ended in failure. I ask you, I am ready to pay, help me.

Locate the following code in the file "mystarpost.php":

PHP Code:

$posts $vbulletin->db->query_read("
    SELECT starposts.dateline AS stardateline, post.*, thread.title AS threadtitle, thread.postusername as postusername, thread.postuserid AS postuserid, thread.dateline AS threaddateline, thread.replycount AS replycount, thread.views AS views, thread.postercount AS threadpostercount, thread.lastpost AS threadlastpost, forum.forumid AS forumid, forum.title AS forumtitle, forum.description AS forumdescription, forum.parentlist AS forumparents
    FROM " 
TABLE_PREFIX "starposts AS starposts
    LEFT JOIN " 
TABLE_PREFIX "post AS post
    ON post.postid = starposts.postid
    LEFT JOIN " 
TABLE_PREFIX "thread AS thread
    ON thread.threadid = post.threadid
    LEFT JOIN " 
TABLE_PREFIX "forum AS forum
    ON forum.forumid = thread.forumid
    WHERE starposts.userid = " 
$vbulletin->userinfo['userid'] . "
    ORDER BY starposts.dateline ASC
"
); 

Change if to read:

PHP Code:

$posts $vbulletin->db->query_read("
    SELECT starposts.dateline AS stardateline, post.*, thread.title AS threadtitle, thread.postusername as postusername, thread.postuserid AS postuserid, thread.dateline AS threaddateline, thread.replycount AS replycount, thread.views AS views, thread.lastpost AS threadlastpost, forum.forumid AS forumid, forum.title AS forumtitle, forum.description AS forumdescription, forum.parentlist AS forumparents
    FROM " 
TABLE_PREFIX "starposts AS starposts
    LEFT JOIN " 
TABLE_PREFIX "post AS post
    ON post.postid = starposts.postid
    LEFT JOIN " 
TABLE_PREFIX "thread AS thread
    ON thread.threadid = post.threadid
    LEFT JOIN " 
TABLE_PREFIX "forum AS forum
    ON forum.forumid = thread.forumid
    WHERE starposts.userid = " 
$vbulletin->userinfo['userid'] . "
    ORDER BY starposts.dateline ASC
"
); 

Now, in the template "markfl_starpost_postbit", locate the line:

HTML Code:

<tr><td>Poster Count</td><td>{vb:raw post.threadpostercount}</td><tr>
And remove it.

Let me know if this works. :)

DSemen 03-31-2017 05:45 PM

DB error has disappeared. But nowhere is there a reference to mystarpost.php
Also, when clicking on a link that is also not found anywhere (enter in the address bar) on the starpost.php forum posts:
Quote:

vBulletin Message
DSe, you do not have permission to access this page. This could be due to one of several reasons:

Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.
"Go To Post" - Does not lead to a message, but leads to the first page

MarkFL 03-31-2017 05:55 PM

The file "mystarpost.php" is accessed via the navbar, under "Quick Links." It could be that vB 4.1.x is incompatible with this...this is one of many reasons I marked this product for vB 4.2.x.

I'm sorry, but I just don't have the time to rewrite this product for vB 4.1.x. There are simply too few people still using it to make it worth the effort for me. vB 4.1.x is obsolete, and I would recommend anyone still using it to upgrade.

DSemen 03-31-2017 06:04 PM

Adding to the navigation bar is not a problem at all, I'll do it myself. The problem remains that by clicking the transfer is done not to the selected post, but to the first message in the topic.

MarkFL 03-31-2017 06:16 PM

Quote:

Originally Posted by DSemen (Post 2584537)
...The problem remains that by clicking the transfer is done not to the selected post, but to the first message in the topic.

What are you clicking?

DSemen 03-31-2017 06:19 PM

Quote:

Originally Posted by MarkFL (Post 2584538)
What are you clicking?

https://vborg.vbsupport.ru/external/2017/03/1.jpg

MarkFL 03-31-2017 06:23 PM

On those links, I get a URL of the format:

Code:

...showthread.php?1104-My-New-Thread?p=2572&viewfull=1#post2572
What format are you getting?

DSemen 03-31-2017 06:27 PM

Link in the address bar
PHP Code:

/showthread.php?t=1105?p=454239&viewfull=1#post454239 


MarkFL 03-31-2017 06:29 PM

Quote:

Originally Posted by DSemen (Post 2584541)
Link in the address bar
PHP Code:

/showthread.php?t=1105?p=454239&viewfull=1#post454239 


Okay, go to that post, and let me know what the link format is for that post...as if you were going to manually link to that post.

DSemen 03-31-2017 06:34 PM

Link leads to the post
PHP Code:

/showthread.php?t=13&p=466900&viewfull=1#post466900 

The link leads to the first post, when I click in mystarpost.php
PHP Code:

/showthread.php?t=13?p=466900&viewfull=1#post466900 

The problem here
13?p=466900&viewfull

MarkFL 03-31-2017 06:37 PM

Please go to the post that should be linked to, and let me know what the format of the link to that post is...

DSemen 03-31-2017 06:44 PM

Sorry, made a mistake when translating into English. I will repeat the new post

Link leads to the post
PHP Code:

/showthread.php?t=13&p=466900&viewfull=1#post466900 

The link leads to the first post, when I click in mystarpost.php
PHP Code:

/showthread.php?t=13?p=466900&viewfull=1#post466900 

The problem here
13?p=466900&viewfull

It is necessary that there should be

13&p=466900&viewfull

MarkFL 03-31-2017 06:52 PM

Okay, in the file "mystarpost.php" locate the line (should be line #177):

PHP Code:

    $post['link'] = fetch_seo_url('thread'$post) . '?p=' $post['postid'] . '&viewfull=1#post' $post['postid']; 

And change that to:

PHP Code:

    $post['link'] = fetch_seo_url('thread'$post) . '&p=' $post['postid'] . '&viewfull=1#post' $post['postid']; 


DSemen 03-31-2017 07:04 PM

Thank you very much!

MarkFL 03-31-2017 09:05 PM

Quote:

Originally Posted by DSemen (Post 2584551)
Thank you very much!

If all is good now, please consider marking the product as installed. :)

DSemen 04-01-2017 03:26 AM

I can not understand why a guest can go to the page mystarpost.php when he is not even registered on the forum

MarkFL 04-01-2017 03:48 AM

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

Quote:

Originally Posted by DSemen (Post 2584557)
I can not understand why a guest can go to the page mystarpost.php when he is not even registered on the forum

If you update to version 1.6.1 you'll have to redo the hacks to the external script. :)

DSemen 04-01-2017 04:34 AM

Thank you very much! Thank you for giving so much time to my problem.
How can I ban this mod for some user groups?
What would forbidden groups displayed the page as well as guests.

MarkFL 04-01-2017 05:10 AM

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

Quote:

Originally Posted by DSemen (Post 2584560)
Thank you very much! Thank you for giving so much time to my problem.
How can I ban this mod for some user groups?
What would forbidden groups displayed the page as well as guests.

There is a setting that allows you to set which usergroups are allowed to use this product. Now they will get a no permission page if they manually enter the url to the script. :)

DSemen 04-01-2017 05:24 AM

True, they can not do this by reference. But they can go to /mystarpost.php

https://vborg.vbsupport.ru/external/2017/04/9.jpg

And when they click on "Remove" there is a database error

MarkFL 04-01-2017 05:30 AM

With version 1.6.2, they will get the no permission page if they are not a member of one or more of the allowed usergroups. Users who are allowed but don't have any posts in their list cannot remove anything, because they are unable to select anything.

DSemen 04-01-2017 05:38 AM

What do I need to do with version 1.6.2?

MarkFL 04-01-2017 05:42 AM

Quote:

Originally Posted by DSemen (Post 2584564)
What do I need to do with version 1.6.2?

If you want to show users not in the allowed groups the no permission page, then you need to update to this version, and apply the hacks to the external script mentioned before.

djbaxter 04-05-2017 02:15 PM

We just had a member asking for some sort of bookmarking threads feature and I came here to do a search and there it was! :)

Working perfectly out of the box on vB 4.2.4


All times are GMT. The time now is 07:16 PM.

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

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01418 seconds
  • Memory Usage 1,861KB
  • 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_code_printable
  • (1)bbcode_html_printable
  • (10)bbcode_php_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