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)

Wayne Luke 08-16-2005 07:00 PM

Quote:

Originally Posted by Harald_T
No problem, that's why i'm here for.... :D

Think you can answer my question?

https://vborg.vbsupport.ru/showpost....&postcount=115
https://vborg.vbsupport.ru/showpost....&postcount=119

mvigod 08-16-2005 08:19 PM

A nice addition would be a filter of some kind to optionally show all images in a particular thread.

Harald_T 08-16-2005 08:45 PM

@Wayne:
The problem is, it shows only the attachments of the first post. All other posts of the thread will be ignored. To change this, i think, the query has to be changed.

Regarding AVI's: Of course it's possible to create a new attachment-type for .avi but no thumb will be generated.

Harald_T 08-16-2005 08:49 PM

Quote:

Originally Posted by mvigod
A nice addition would be a filter of some kind to optionally show all images in a particular thread.

What do mean exactly? Could you be so kind and explain it a bit more?

Joe Gronlund 08-16-2005 10:03 PM

Quote:

Originally Posted by Harald_T
@Joe:

To remove the sticky-problem change the code for the gallery-plugin: hook.

Yes that fixed it,,

thanks :)

jesus likes pie 08-16-2005 10:43 PM

Harald if you do find otu how to make the "newest 4 additions" to just random 4, could you send me a PM with the post number?

I might miss it...and i dont want to :P

Harald_T 08-16-2005 10:55 PM

Ok. i will

jesus likes pie 08-16-2005 11:06 PM

thanks.

Harald_T 08-17-2005 03:49 PM

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 RAND() LIMIT 4");

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

This should do it.

Wayne Luke 08-17-2005 07:10 PM

Quote:

Originally Posted by Harald_T
@Wayne:
The problem is, it shows only the attachments of the first post. All other posts of the thread will be ignored. To change this, i think, the query has to be changed.

Hmm okay... looks nice, just won't suit my purposes.


All times are GMT. The time now is 04:59 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.02010 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
  • (1)bbcode_code_printable
  • (4)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