vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Gallery for vBulletin 3.5.X (https://vborg.vbsupport.ru/showthread.php?t=92875)

antropus 01-29-2006 01:04 AM

Hi,
I installed both gallery and attachment as forum thumbnails and now when I try to access the gallery forum I'm getting this error message:

Quote:

Database error in vBulletin 3.5.3:

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,
thread.threadid, thread.title AS threadtitle, thread.forumid, pollid, open, replycount, postusername, postuserid, thread.iconid AS threadiconid,
thread.lastpost, lastposter, thread.dateline, IF(views<=replycount, replycount+1, views) AS views, notes, thread.visible, sticky, votetotal, thread.attach , attachment.attachmentid AS attachmentid , NOT ISNULL(subscribethread.subscribethreadid) AS issubscribed, deletionlog.userid AS del_userid, deletionlog.username AS del_username, deletionlog.reason AS del_reason
FROM vb3_thread AS thread
LEFT JOIN vb3_deletionlog AS deletionlog ON(thread.threadid = deletionlog.primaryid AND type = 'thread')
LEFT JOIN vb3_subscribethread AS subscribethread ON(subscribethread.threadid = thread.threadid AND subscribethread.userid = 1)

LEFT JOIN vb3_post AS post ON(post.postid = thread.firstpostid)
LEFT JOIN vb3_attachment as attachment ON(attachment.postid = thread.firstpostid)

LEFT JOIN vb3_attachment as attachment ON (attachment.postid = thread.firstpostid)
WHERE thread.threadid IN (0,9053,9052)
ORDER BY sticky DESC, thread.lastpost DESC;

MySQL Error : Not unique table/alias: 'attachment'
Error Number : 1066
Date : Saturday, January 28th 2006 @ 09:48:46 PM
Script : http://www.3d4all.org/foruns/forumdisplay.php?f=116
Referrer : http://www.3d4all.org/foruns/index.php
IP Address : 24.127.131.174
Username : A_t_o_s
Classname : vb_database
Any thoughts?
Thanks

Harald_T 01-29-2006 07:59 AM

You have a double instruction of LEFT JOIN in your Query.

ScottC20 01-29-2006 09:38 AM

Would it be possible to configure the gallery so as when you are uploading a new picture, it will not let you continue unless a picture is uploaded. Some of my users forget to upload or post a hot link to somewhere like photobucket where their pics are uploaded already.

Chadwiggles 01-30-2006 10:53 PM

Fixed my original problem. Now how can I change the info to English?

pastry 01-31-2006 05:01 AM

I want to change it from the coders language to mine own.. anybody want to give me a hand and tell me how to do this ? :banana:

DrewM 01-31-2006 09:27 AM

Quote:

Originally Posted by Chadwiggles
Fixed my original problem. Now how can I change the info to English?

Go to Languages & Phrases then just chang the gallary phares.

Adyum 01-31-2006 01:42 PM

I don't see any gallery phrases there.

DrewM 01-31-2006 07:09 PM

Search for the fowling phares:
$vbphrase[gal_user]
$vbphrase[gal_comments]
$vbphrase[gal_views]
$vbphrase[gal_show_pic_size]
$vbphrase[gal_posted_by]
$vbphrase[gal_posted_date]
$vbphrase[gal_comments]
and change them to engilsh this is the fastested way.

Harald_T 01-31-2006 08:58 PM

Just to let you know:

ATM i'm very busy on programming an special calculation-application, which has to be finished end february (it's a paid job). So please be patient.

Adyum 01-31-2006 10:06 PM

Thank you , it is much easy to read now :D. One last question. I am using it on my site (lostgurus.com) and I can not get the thumbnail to work. What do I need to post in my thread to get a thumb nail?

Thanks,
Adyum


All times are GMT. The time now is 09:54 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.02265 seconds
  • Memory Usage 1,740KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)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