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)

Harald_T 08-21-2005 08:39 AM

Change the code for the plugin "latest_gallery_images" Hook->forumhome_complete to:

Code:

// #################### Latest Gallery-Additions #######################
// fetch the permissions for each forum
global $vbulletin;


$thumbs = $db->query_read("SELECT gallery, threadid, firstpostid, ". TABLE_PREFIX . "thread.title, attachmentid, ". TABLE_PREFIX . "attachment.dateline FROM ". TABLE_PREFIX . "attachment, ". TABLE_PREFIX . "thread, ". TABLE_PREFIX . "forum
WHERE gallery='1' AND ". TABLE_PREFIX . "thread.forumid=". TABLE_PREFIX . "forum.forumid AND ". TABLE_PREFIX . "thread.firstpostid = ". TABLE_PREFIX . "attachment.postid AND ". TABLE_PREFIX . "attachment.dateline < " . TIME() ." ORDER BY ". TABLE_PREFIX . "attachment.dateline DESC LIMIT X");

while ($gallery = $db->fetch_array($thumbs))
{
eval('$latestgallery .= "' . fetch_template('latestgallery') . '";');
}

Replace 'X' with the amount of thumbs you wish.

That's it.

NuclioN 08-21-2005 10:28 AM

Does this work with SAFE MODE enabled?

Harald_T 08-21-2005 02:30 PM

Normaly: YES, because it's based on the normal Attachment-System of vBulletin. But myself i occured some strange errors after upgrading vB to 3.5.0. And i found out, that it was the SAFE-Mode. So i had to temporarily disable it.

Wordplay 08-21-2005 09:55 PM

i heard it's possible to export 4images images including the the comments, hits, ratings and all the other infos to vbgallery, if so how do i do that?

lairnoc 08-22-2005 06:52 AM

Quote:

Originally Posted by Harald_T
Change the code for the plugin "latest_gallery_images" Hook->forumhome_complete to:

Code:

// #################### Latest Gallery-Additions #######################
// fetch the permissions for each forum
global $vbulletin;


$thumbs = $db->query_read("SELECT gallery, threadid, firstpostid, ". TABLE_PREFIX . "thread.title, attachmentid, ". TABLE_PREFIX . "attachment.dateline FROM ". TABLE_PREFIX . "attachment, ". TABLE_PREFIX . "thread, ". TABLE_PREFIX . "forum
WHERE gallery='1' AND ". TABLE_PREFIX . "thread.forumid=". TABLE_PREFIX . "forum.forumid AND ". TABLE_PREFIX . "thread.firstpostid = ". TABLE_PREFIX . "attachment.postid AND ". TABLE_PREFIX . "attachment.dateline < " . TIME() ." ORDER BY ". TABLE_PREFIX . "attachment.dateline DESC LIMIT X");

while ($gallery = $db->fetch_array($thumbs))
{
eval('$latestgallery .= "' . fetch_template('latestgallery') . '";');
}

Replace 'X' with the amount of thumbs you wish.

That's it.


Thnx a lot Harald_T it did the job suberb

Wordplay 08-22-2005 12:24 PM

Quote:

i heard it's possible to export 4images images including the the comments, hits, ratings and all the other infos to vbgallery, if so how do i do that?
anybody seen that question?

Harald_T 08-22-2005 08:09 PM

@Wordplay: This hack isn't vBGallery. I'm not sure, if it's possible, to convert the images. Because you need to convert them to normal attachment files, if you want to use the with this gallery-hack.

Nutz 09-02-2005 04:12 PM

Any chance at all that this could be changed to run on vB3.0.8 ?

Many Thanks
Mat

Harald_T 09-03-2005 12:44 PM

I would have to change the code, but yes, this is possible. I'll look after it next week.

Forumi Shqiptar 09-03-2005 04:46 PM

Followed all of the steps acordingly to the instructions uploaded and its giving me the message underneath any help will be appreciated:

Many thanks for ur replies
--------------------------------------------------------------------------------
Database error in vBulletin 3.5.0 Release Candidate 2:

Invalid SQL:
INSERT INTO vb3_forum
(title_clean, title, description_clean, description, link, displayorder, daysprune, parentid, newpostemail, newthreademail, options, styleid, password, minuserage, gallery, gallery_rows)
VALUES
('Prova Mbi Forumin', 'Prova Mbi Forumin', '', '', '', 0, -1, -1, '', '', 89799, 0, '', 0, '1', '5');

MySQL Error : Unknown column 'gallery' in 'field list'
Error Number : 1054
Date : Saturday, September 3rd 2005 @ 08:41:12 PM
Script : http://www.humori.net/*******/forum.php
Referrer : http://www.humori.net/******/forum.php?do=add
IP Address : *********
Username : [Elisi]
Classname : vb_database


All times are GMT. The time now is 05:24 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.01814 seconds
  • Memory Usage 1,745KB
  • 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_code_printable
  • (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