vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   End-User Options - Personal Sticky Threads (https://vborg.vbsupport.ru/showthread.php?t=189444)

down.low 06-28-2009 10:12 PM

In case no one has asked or answered this question- it works on vB 3.8.1 with no problems. Thanks for the hack- works great.

down.low 06-28-2009 10:24 PM

Quote:

Originally Posted by FeatheredFriend (Post 1836739)
So i am going to ask what do I do if I don't have anything in the show thread.php folder? I have all the other edits done but this one. Thanks.

Umm, since you said .php- it would only be the forumdisplay.php file on your server that you would have to edit.

Then you have to edit the said templates- which your showthread template would not possibly be empty.

FeatheredFriend 06-30-2009 02:51 PM

Thanks down.low I am going to come up with the thought that the templet i am to edit is in my admin cp.

Fangs404 07-13-2009 12:05 AM

I just installed this on a 3.8.3 install, and it worked without any problems.

RobbieZ 07-26-2010 12:40 PM

Works on a 3.8.4 PL 1 board, but I want it to work on a Vb 4 :D

inciarco 07-29-2010 05:28 AM

Quote:

Originally Posted by mystikmedia (Post 1748383)
Darn. I tried it, but got a message about invalid SQL with this change:

Code:

===========================================================================
==== Find in forumdisplay.php
                $stickies = $db->query_read_slave("
                        SELECT thread.threadid, lastpost, open
                        FROM " . TABLE_PREFIX . "thread AS thread
                        WHERE forumid = $foruminfo[forumid]
                                AND sticky = 1
                                $prefix_filter
                                $visiblethreads
                                $limitothers
                                $globalignore
==== Replace with
                $stickies = $db->query_read_slave("
                        SELECT thread.threadid, lastpost, open
                        FROM " . TABLE_PREFIX . "thread AS thread
                        WHERE forumid = $foruminfo[forumid]
                                AND (sticky = 1
                                OR threadid IN ($personalstickysq))
                                $prefix_filter
                                $visiblethreads
                                $limitothers
                                $globalignore
===========================================================================

This is the exact error if you're interested:

Database error in vBulletin 3.8.1:

Invalid SQL:

SELECT thread.threadid, lastpost, open
FROM thread AS thread
WHERE forumid = 12
AND (sticky = 1
OR threadid IN ())

AND visible IN (0,1,2);

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 visible IN (0,1,2)' at line 5
Error Number : 1064
Request Date : Wednesday, February 18th 2009 @ 03:52:55 PM
Error Date : Wednesday, February 18th 2009 @ 03:52:55 PM
Script : http://www.gadgetadvisor.com/hammerf...splay.php?f=12
Referrer :
IP Address : 71.11.83.89
Username : Gadget Advisor
Classname : vB_Database
MySQL Version : 5.0.67-community

Too bad about you not having time to support, but I can certainly understand. Good luck!

The Error is in this Line:

Code:

OR threadid IN ($personalstickysq))
It should be:

Code:

OR threadid IN ($personalstickysq)
Without the Second ")".

My Best Regards.

:)

john1744 08-08-2010 01:13 PM

Has anyone attempted this with vB 4.0?

Kaelon 01-27-2011 02:28 AM

Quote:

Originally Posted by john1744 (Post 2080846)
Has anyone attempted this with vB 4.0?

This won't work with vBulletin 4.x, nor do I plan to port this to vB 4.x. This mod is intended only for vB 3.7.x or vB 3.8.x.


All times are GMT. The time now is 04:47 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.01177 seconds
  • Memory Usage 1,738KB
  • 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
  • (3)bbcode_code_printable
  • (3)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
  • (8)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