vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Social Group and Album Enhancements - All Albums (https://vborg.vbsupport.ru/showthread.php?t=172215)

abrecher 10-24-2008 07:18 PM

Just tried to upgrade and got the following error:

XML Error: Empty document at Line 1

ProtoPC 10-24-2008 07:34 PM

I get this error on a search:

Database error in vBulletin 3.7.3:

Invalid SQL:

SELECT COUNT(*) AS total
FROM vb_album
WHERE state IN ('public', 'private', 'profile') AND vb_album.visible > 0 AND (album.title LIKE '%test%' OR album.description LIKE '%test%');

MySQL Error : Unknown column 'album.title' in 'where clause'
Error Number : 1054
Request Date : Friday, October 24th 2008 @ 02:37:58 PM
Error Date : Friday, October 24th 2008 @ 02:37:58 PM
Script : http://www.cywire.com/community/all_...e=1&query=test
Referrer : http://www.cywire.com/community/all_albums.php
Classname : vB_Database
MySQL Version : 5.0.67-community



Code modified:


$albumcount = $db->query_first("
SELECT COUNT(*) AS total
FROM " . TABLE_PREFIX . "album
WHERE state IN ('" . implode("', '", $state) . "') AND vb_album.visible > 0 $searchwhere
");



And:

// fetch data and prepare data
$albums = $db->query_read("
SELECT album.*,
picture.pictureid, picture.extension, picture.idhash,
picture.thumbnail_dateline, picture.thumbnail_width, picture.thumbnail_height,
user.*
FROM " . TABLE_PREFIX . "album AS album
LEFT JOIN " . TABLE_PREFIX . "picture AS picture ON (album.coverpictureid = picture.pictureid AND picture.thumbnail_filesize > 0)
LEFT JOIN " . TABLE_PREFIX . "user AS user ON (album.userid = user.userid)
WHERE album.state IN ('" . implode("', '", $state) . "')
AND album.visible > 0 $searchwhere
ORDER BY $sortname $sortorder
LIMIT $start, $perpage
");

jazde86 10-24-2008 07:40 PM

First the db error if you search, second phrase the Submit button on the search, please. Thanks Abe. :)

abrecher 10-24-2008 07:43 PM

Quote:

Originally Posted by abrecher (Post 1651984)
Just tried to upgrade and got the following error:

XML Error: Empty document at Line 1

I didn't follow the install directions, my apologies. After I uploaded the php file it worked.

Search worked for me as well.

ElForro 10-24-2008 08:08 PM

Quote:

Originally Posted by ProtoPC (Post 1651995)
Code modified:


$albumcount = $db->query_first("
SELECT COUNT(*) AS total
FROM " . TABLE_PREFIX . "album
WHERE state IN ('" . implode("', '", $state) . "') AND vb_album.visible > 0 $searchwhere
");


I think it still needs a TABLE_PREFIX instead of "vb_album.visible".. But I really don't know how to code PHP, so I can't help...

Abe1 10-24-2008 08:12 PM

Quote:

Originally Posted by ArnyVee (Post 1651973)
Thanks! Looks good! :D

Is there anyway to put a little something like "Search the Albums" next to the field?

Next version.

redlabour 10-24-2008 08:12 PM

Bug:

Error on Search :

Datenbankfehler in vBulletin 3.7.3:

Invalid SQL:

SELECT COUNT(*) AS total
FROM vb3_album
WHERE state IN ('public', 'private', 'profile') AND (album.title LIKE '%redlabour%' OR album.description LIKE '%redlabour%');

MySQL-Fehler : Unknown column 'album.title' in 'where clause'
Fehler-Nr. : 1054
Fehler-Zeit : Friday, 24.10.2008 @ 23:11:59
Datum : Friday, 24.10.2008 @ 23:11:59
Skript : http://www.politikstube.de/forum/all...uery=redlabour
Referrer : http://www.politikstube.de/forum/all_albums.php
IP-Adresse : XXXX
Benutzername : XXX
Klassenname : vB_Database_MySQLi
MySQL-Version : 5.0.67

imedic 10-24-2008 08:21 PM

Same bug on search after upgrade:

Database error in vBulletin 3.7.3 PL1:

Invalid SQL:

SELECT COUNT(*) AS total
FROM vbalbum
WHERE state IN ('public', 'private', 'profile') AND (album.title LIKE '%remove%' OR album.description LIKE '%remove%');

MySQL Error : Unknown column 'album.title' in 'where clause'
Error Number : 1054
Request Date : Saturday, October 25th 2008 @ 12:20:01 AM
Error Date : Saturday, October 25th 2008 @ 12:20:01 AM
Script : http://www.eugenol.ro/forum/all_albu...1&query=remove
Referrer : http://www.eugenol.ro/forum/all_albums.php
IP Address : .............
Username : admin
Classname : vB_Database_MySQLi
MySQL Version : 5.0.51a-community


Any chance for a picture resizer in albums? If I click a thumbnail picture it shows full size pics much bigger than the forum.

Abe1 10-24-2008 08:22 PM

Quote:

Originally Posted by TsirhCitna (Post 1651977)
Just tried the new search and got a SQL error.
PHP Code:

Database error in vBulletin 3.7.3:

Invalid SQL:

        
SELECT COUNT(*) AS total
        FROM vb3_album
        WHERE state IN 
('public''private''profile') AND (album.title LIKE '%waterfall%' OR album.description LIKE '%waterfall%');

MySQL Error   Unknown column 'album.title' in 'where clause'
Error Number  1054
Request Date  
FridayOctober 24th 2008 02:58:22 PM
Error Date    
FridayOctober 24th 2008 02:58:22 PM
Script        
http://www.tenstones.net/forums/all_albums.php
Referrer      http://www.tenstones.net/forums/albums.html
IP Address    70.61.229.26
Username      
Bob
Classname     
vB_Database
MySQL Version 
5.0.67-log 


Fixed in a version about to come out.

Abe1 10-24-2008 08:27 PM

Version 2.5 (10/24/08):
  • Added Search text right near search box
  • Fixed a prefix bug when using search.
  • If a user knows that to put into a URL to do a search, if search is turned off, it will not work.


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