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)
-   -   Forum Display Enhancements - Global Threads for VB4 (https://vborg.vbsupport.ru/showthread.php?t=258084)

Taurus1 02-01-2011 09:41 AM

I am getting the following database error with this enabled:

Database error in vBulletin 4.1.1:

Invalid SQL:

SELECT
IF(votenum >= 1, votenum, 0) AS votenum,
IF(votenum >= 1 AND votenum > 0, votetotal / votenum, 0) AS voteavg,
post.pagetext AS preview,post.thankscache,
thread.threadid, thread.title AS threadtitle, thread.forumid, pollid, open, postusername, postuserid, thread.iconid AS threadiconid,
thread.dateline, notes, thread.visible, sticky, votetotal, thread.attach, thread.lastpost, thread.lastposter, thread.lastposterid, thread.lastpostid, thread.replycount, IF(thread.views<=thread.replycount, thread.replycount+1, thread.views) AS views,
thread.prefixid, thread.taglist, hiddencount, deletedcount,
user.usergroupid, user.homepage, user.options AS useroptions, IF(userlist.friend = 'yes', 1, 0) AS isfriend
, NOT ISNULL(subscribethread.subscribethreadid) AS issubscribed
, deletionlog.userid AS del_userid, deletionlog.username AS del_username, deletionlog.reason AS del_reason
, threadread.readtime AS threadread
, threadredirect.expires
, firstpostid,modification.mod_installcount,usermod. mod_tagged,usermod.mod_installed,usermod.mod_downl oaded,modification.last_update
FROM vbthread AS thread
LEFT JOIN vbuser AS user ON (user.userid = thread.lastposterid)
LEFT JOIN vbuserlist AS userlist ON (userlist.relationid = user.userid AND userlist.type = 'buddy' AND userlist.userid = 3)
LEFT JOIN vbdeletionlog AS deletionlog ON(thread.threadid = deletionlog.primaryid AND deletionlog.type = 'thread')
LEFT JOIN vbsubscribethread AS subscribethread ON(subscribethread.threadid = thread.threadid AND subscribethread.userid = 3 AND canview = 1)
LEFT JOIN vbthreadread AS threadread ON (threadread.threadid = thread.threadid AND threadread.userid = 3)
LEFT JOIN vbpost AS post ON(post.postid = thread.firstpostid)

LEFT JOIN vbthreadredirect AS threadredirect ON(thread.open = 10 AND thread.threadid = threadredirect.threadid)
WHERE thread.forumid = 223
ORDER BY lastpost DESC
LIMIT 5;

MySQL Error : Unknown column 'modification.mod_installcount' in 'field list'
Error Number : 1054
Request Date : Tuesday, February 1st 2011 @ 05:38:58 AM
Error Date : Tuesday, February 1st 2011 @ 05:38:58 AM
Script : http://creativx.net/forums/forumdisplay.php?f=25
Referrer : http://creativx.net/forums/
IP Address :
Username :
Classname : vB_Database
MySQL Version : 5.1.54

Please help.

BadgerDog 02-01-2011 10:55 AM

1 Attachment(s)
Installed on 4.04pl1 for testing with thanks ... :up:

Regards,
Doug

Edit: Set-up as per instructions (see attached pic), added "Global Messages Forum" and ENABLED mod.

Created a post in the new "Global Messages Forum" and hit submit ....

Nothing appears in any of the forums specified, however post appears in "Global Messages Forum". :confused:

BirdOPrey5 02-01-2011 02:32 PM

1 Attachment(s)
Quote:

Originally Posted by Taurus1 (Post 2157284)
I am getting the following database error with this enabled:

Database error in vBulletin 4.1.1:

Invalid SQL:

SELECT
...

MySQL Error : Unknown column 'modification.mod_installcount' in 'field list'
Error Number : 1054
Request Date : Tuesday, February 1st 2011 @ 05:38:58 AM
Error Date : Tuesday, February 1st 2011 @ 05:38:58 AM
Script : http://creativx.net/forums/forumdisplay.php?f=25
Referrer : http://creativx.net/forums/
IP Address :
Username :
Classname : vB_Database
MySQL Version : 5.1.54

Please help.

Hi, I see the problem... I forgot to remove 1 hook from the code and another modification you have is interfering with the query.

I will release an update to fix this bug shortly. In the mean time if you want to fix it you can go to Plugin Manager -> Edit the plugin titled: Query Global Threads
Find this line:
Code:

$hook_query_fields
And simply erase it, hit save, and it should work.

Or wait for my next update later today.

Quote:

Originally Posted by BadgerDog (Post 2157296)
Installed on 4.04pl1 for testing with thanks ... :up:

Regards,
Doug

Edit: Set-up as per instructions (see attached pic), added "Global Messages Forum" and ENABLED mod.

Created a post in the new "Global Messages Forum" and hit submit ....

Nothing appears in any of the forums specified, however post appears in "Global Messages Forum". :confused:

Is the mod still enabled? If so please give me the forumid of your global forum. I will take a look.

My guess off hand is you have the permissions set wrong- users need to be able to view the forum and threads... here is a screenshot of proper forum permissions:

Taurus1 02-01-2011 03:21 PM

Thank you very very much!! Works perfectly now!!! You ROCK big time mate!!

BadgerDog 02-01-2011 03:48 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2157346)

Is the mod still enabled? If so please give me the forumid of your global forum. I will take a look.

My guess off hand is you have the permissions set wrong- users need to be able to view the forum and threads... here is a screenshot of proper forum permissions:

Thanks for the quick response ... :up:

Yes, enabled and I checked forum permissions and they are fine...

In fact, I'm an Admin who created the seed post and all permissions for the forum are on, yet I can't see any of the posts. :confused:

Can I send you AdminCP access privately to have a look?

Regards,
Doug

BirdOPrey5 02-01-2011 04:13 PM

You can PM me access info but please first try this new version, 2.01 I just released just in case your problem is related to the bug fix. :up:

The new version also ads an option where you can display global threads above or below a sticky divider if you have one.

BadgerDog 02-01-2011 05:27 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2157389)
You can PM me access info but please first try this new version, 2.01 I just released just in case your problem is related to the bug fix. :up:

The new version also ads an option where you can display global threads above or below a sticky divider if you have one.

Downloaded and installed v2.01 on our v4.04pl1. :)

Re-checked all settings ....

Deleted old test post from "Global Messages Forum" and created a new one... submitted it ...

It doesn't show up in any of the forums listed in the "included" listing.

Should there be spaces in list? ie: 1, 2, 3 versus 1,2,3 the way I have it?

I'll get you the login information. Sure like to get this working as it could add a lot of value to the nature of how we operate our forums.

Thanks for your help ... :up:

Regards,
Doug

BirdOPrey5 02-01-2011 05:36 PM

1,2,3 or 1, 2, 3 both work, I tested it both ways... will take a look when you PM me info.

BadgerDog 02-01-2011 06:01 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2157423)
1,2,3 or 1, 2, 3 both work, I tested it both ways... will take a look when you PM me info.

Thanks ... :)

Sent you a PM ....

Also, sent you a PayPal donation for this, as well as other mods and work you've done that we've started using. Been meaning to do that for a while now ... :D

Regards,
Doug

TheLastSuperman 02-01-2011 06:59 PM

Awesome Joe, I like how you updated this quite handy imo!


All times are GMT. The time now is 05:59 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.01386 seconds
  • Memory Usage 1,752KB
  • 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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