Thread: Major Additions - vBonjour - Portal System
View Single Post
  #124  
Old 01-21-2007, 11:14 PM
peterska2 peterska2 is offline
 
Join Date: Oct 2003
Location: Manchester, UK
Posts: 6,504
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by hIBEES View Post
BD error here

Code:
Database error in vBulletin 3.6.4:

Invalid SQL:

        SELECT t.threadid, t.title, t.lastpost, t.forumid, t.open, t.replycount, t.postusername, t.postuserid, t.lastposter, t.dateline, t.views, t.visible, t.firstpostid, f.title AS forumtitle, post.pagetext AS preview
        FROM forum f
        INNER JOIN thread t ON t.forumid = f.forumid
        LEFT OUTER JOIN post AS post ON post.postid = t.firstpostid WHERE t.forumid = 0 AND visible = 1
        ORDER BY dateline DESC
        LIMIT 3;

MySQL Error  : Column: 'visible' in where clause is ambiguous



now my install varies a bit different in the fact that I want to use this as a site map would you believe ...lol...

I already have phpportal installed in the rootand and am happy with it ...

I need a site map for my forum so was thinkin of using this to add info etc to any new sections we might have on our site and explain to user what's what

I renamed it to sitemap.php and get that error

Does this NEED to be a portal install in the root then ?

[high]* hIBEES is confused and goes to study instructions lol[/high]
You haven't put a forumid in the vBOptions for it.

It can be installed in either the root or the forums directory, but you still need to follow the entire instructions.

Quote:
Originally Posted by bigr5026 View Post
im havingthe same issue as the person above
See solution above.

Quote:
Originally Posted by Pierre-Yves View Post
For this problem, replace line 62 and 116 in portal.php


Line 62


Line 116
The code has not changed since the earlier versions. The only change is to the queries to fix the problem with moderated threads being displayed.

Quote:
Originally Posted by bigr5026 View Post
still wont work
No, it won't because the fix posted by Pierre-Yves isn't needed.

Quote:
Originally Posted by JamieLee2k View Post
I am getting the same database error as hIBEES

MySQL Error : Column 'visible' in where clause is ambiguous

Check your vBOptions are set right for it.

Quote:
Originally Posted by hIBEES View Post
Sort off worked lol

As soon as I change the forum ID and have a forum ID in the " Forum ID
Specify the second (optional) forumid where you want your news to come from. " section I get the error again...

Working just now thou so thanks :up:
Make sure that your forumid numbers are correct.

Quote:
Originally Posted by JamieLee2k View Post
So I used the fix from Pierre Yves and a few things need sorting, Since it's took the header from the forums things have changed, the header now doesn't show the images and the shoutbox isn't working properly, it just says loading all the time.
This is because the fix posted is not required. Please replace your file with the copy attached.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01745 seconds
  • Memory Usage 1,781KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code
  • (7)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete