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.

redlabour 10-24-2008 08:36 PM

Quote:

Originally Posted by Abe1 (Post 1652031)
Version 2.5 (10/24/08):[LIST][*]Added Search text right near search box

Useless. Before you did this i just translated the Button to "Suche" (means Search in German).

Why don?t you just rename the Button to "Search" ...:confused:

No i have to translate Search (Suche) and Submit ..(Los / Go) to make a sense in translating this.

Just a Hint ...

ArnyVee 10-24-2008 08:55 PM

Much better! :D

Thanks Abe!

ProtoPC 10-24-2008 09:50 PM

Thanks Abe. Version 2.5 search works for me now at http://www.cywire.com/member-albums.html. Took prefix I had added out:

------------------------------------------------------

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

------------------------------------------------------


// 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
");


------------------------------------------------------

gsipromotions 10-24-2008 09:52 PM

I will be upgrading my version soon but was wondering....

Is there any way to show only one album per user (like maybe the last album created)?
It would be nice since vbulletin doesn't have a way to limit the amount of Albums the users can have.

Lars T 10-25-2008 07:23 AM

I think you can limit the amount of albums in your AdminCP.?

trilogy33 10-25-2008 11:43 AM

Upgraded and works fine. Thank you :)

TheLab 10-25-2008 12:23 PM

Thanks Abe1 for the search and the update!

Though i was more looking for a "forced" search. When users will go to all_albums i ll need to have them only look up for albums with specific name. Is that possible? (by editing the php probably?)

hotwheels 10-25-2008 01:47 PM

Very nice mod.....

Abe1 10-25-2008 10:43 PM

Quote:

Originally Posted by TheLab (Post 1652387)
Thanks Abe1 for the search and the update!

Though i was more looking for a "forced" search. When users will go to all_albums i ll need to have them only look up for albums with specific name. Is that possible? (by editing the php probably?)

dont install this mod then. if you want to see just one user at time, this is how vb has it.

TheLab 10-26-2008 06:30 AM

Quote:

Originally Posted by Abe1 (Post 1652702)
dont install this mod then. if you want to see just one user at time, this is how vb has it.

No no, this mod is very good.

I don't want a user at a time. I want to have my users create album with a specific name and when they click on all_albums page to search in the db only for albums called "test" for example.

Thanks :)

Edit: Actually i want this: "http://xxx/all_albums.php?s=&sort=lastpicturedate&order=desc& page=1&query=Test" but i don't want users to be able to change the attributes.

Abe1 10-26-2008 03:16 PM

For the same reason I created this hack, I created another hack for the albums also. This time it makes the Next & Prev Links Use AJAX. It works for both vb 3.7 and vb 3.8. You can get it here: https://vborg.vbsupport.ru/showthread.php?t=194628

darkpilgrim 10-26-2008 05:20 PM

Excellent :)

Martell 10-26-2008 06:50 PM

Thanks!

Lars T 10-27-2008 08:47 AM

It a great MOD..! Just installed 2.5.

Is there anyway to organize/change to display order of the pictures?
Now when users upload pictures to their album the first uploaded picture displays as at last in the album?
Is there any way to let the users organize the pictures?

abrecher 10-27-2008 01:50 PM

Quote:

Originally Posted by Lars T (Post 1653613)
It a great MOD..! Just installed 2.5.

Is there anyway to organize/change to display order of the pictures?
Now when users upload pictures to their album the first uploaded picture displays as at last in the album?
Is there any way to let the users organize the pictures?

This is exactly what I need as well!

pewa 10-27-2008 04:26 PM

Stupid question, but how do I upgrade? Is there a way to upgrade without loosing my translations?

the stig 10-28-2008 02:27 AM

This is F'ing great. Another great mod from you.

Is there any way to change the text color to "yellow"?

Abe1 10-28-2008 11:22 PM

Quote:

Originally Posted by pewa (Post 1653902)
Stupid question, but how do I upgrade? Is there a way to upgrade without loosing my translations?

Just upload the xml into products using the override option.

Abe1 10-28-2008 11:26 PM

Quote:

Originally Posted by Lars T (Post 1653613)
It a great MOD..! Just installed 2.5.

Is there anyway to organize/change to display order of the pictures?
Now when users upload pictures to their album the first uploaded picture displays as at last in the album?
Is there any way to let the users organize the pictures?

You can click on the tile of a column, it will sort that column.

glorify 11-01-2008 11:18 PM

Replaced the Default'Albums and Pictures' page with this in the navbar. So much better Abe.

PoetJA-1975 11-02-2008 09:49 AM

Why on earth the security token error issue is not corrected in the current download is beyond me -- specifically the album_all_album_list template section of the xml -- but thanx very much for the share none-the-less.

Jacquii.

synth19 11-02-2008 11:49 PM

Will this mean we would have to re-install "all albums?"


Quote:

Originally Posted by Kahuna900 (Post 1554854)
I fixed the vbadvanced navbar linking problem by editing the "product-abe1_all_albums.xml" file.

Just replace all instances of "<a href="all_albums.php" with "<a href="/forums/all_albums.php".

Then I re-installed the product utilizing the overwrite option.


The Ring Lord 11-04-2008 10:47 PM

Is there a way to use this mod to put a picture in a post?
Users currently click the little pic button above
https://vborg.vbsupport.ru/external/2011/07/5.gif
and paste a URL.
It would make my year if you clciked that button and you uploaded a picture to an album.

The best solution is that the album or the pcitures have tags that allow you to sort by category. This would make albums a gallery and even more useful.

Dexter_kcd 11-05-2008 04:53 PM

Abe,

I have installed 3 of your Album mods (this one, the Ajax Next/Prev, and the Click the Pic for Next) and am very happy to with them, thanks for your efforts.

Question regarding the new search feature in this mod. I note that it only seems to search the text in the album title and description. Any chance of having it also search picture descriptions?

Dexter...

abroad 11-06-2008 08:04 PM

would be nicer to have 3 albums in a row and then the next column with the next 3 albums...and a rating under each album would also be great!

Abe1 11-06-2008 11:21 PM

Quote:

Originally Posted by Dexter_kcd (Post 1659992)
Abe,

I have installed 3 of your Album mods (this one, the Ajax Next/Prev, and the Click the Pic for Next) and am very happy to with them, thanks for your efforts.

Question regarding the new search feature in this mod. I note that it only seems to search the text in the album title and description. Any chance of having it also search picture descriptions?

Dexter...

Would be a much harder search and would give search results that a user might not realize are related to his search term.

akonze 11-09-2008 04:56 AM

Thanks for this great Mod! Although vB goes into the same direction with 3.8, they do not go far enough. Abe, some ideas I really would like to see in this mod:

1. A list of the top X album creators. Number should be configureable through the admin interface.

2. A top X list of the best picture uploaders. Again config through admin interface.

3. Another top X list for the most viewed pictures.

4. And finally a list of the top X commented pictures.

5. A box for a random album.

6. Finally a box for a random image.

All this boxes could be on top of everything or at the side. All should be turned on or off through admin area. Finally it would be an idea to

7. add own albums at the bottom (like vB does in 3.8).

Everybody feel free to comment. :)

The Ring Lord 11-10-2008 01:19 PM

ABE: any comments on my question?

I'll repeat it here without the spelling errors so I look smarter.

Is there a way to use this mod to put a picture in a post?
Users currently click the little pic button above
https://vborg.vbsupport.ru/external/2011/07/5.gifand paste a URL.
It would make my year if you clicked that button and you uploaded a picture to an album.

The best solution is that the album or the pcitures have tags that allow you to sort by category. This would make albums a gallery and even more useful. The category thing is very important for my site.

You can see what we are using now by going here and here
http://www.theringlord.org/gallery/main.php
http://www.theringlord.org/forum/

Vangerltd 11-15-2008 03:53 AM

request for this hack functions, please.

Bflat5 11-16-2008 06:11 AM

Instaklled and seems to work fine with 3.7.3. Only problem I see so far is that it shows empty albums.


All times are GMT. The time now is 11:38 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.02089 seconds
  • Memory Usage 1,850KB
  • 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
  • (12)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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