vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Forum Display Enhancements - vBi-Gallery for vB 3.6.X (https://vborg.vbsupport.ru/showthread.php?t=128598)

rknight111 10-26-2006 11:48 PM

I also noticed that some new users that go on the board, the pics dont show up just an X, how could I make it so the pics will always show up on the gallery header. If not I would like to turven it off for non registered users and once they register the gallery and header all show up??

What should be the setting for jpg, I set it a few times but it goes back to 97kb

freecodevn 11-01-2006 01:41 AM

I've tried to hack this module and I found out the reason why I 'm not successed as follows:
a, In a successful case:
This forum was hacked successfully, the album display correctly so if you get the direct link of the picture like this
http://mottamlong.com/forum/attachme...1&d=1162350851 and you paste this link to new IE explore the image display correctly.
b, unsuccessful case:
But the image cannot display if I extract the image link forum my forum like this http://www.lhstrungquoc.com/forums/a...&stc=1&thumb=1 and paste it into the new IE explorer.
I suppose that this error caused by my forum attachment system, but I dont know how to solve it.
Any one can help me?
Many thank!

FMCS 11-04-2006 11:32 AM

After the mod was installed we noticed that the forum became horribly slow so I changed the 'gallery_images_forumhome' bit to the following:

PHP Code:

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

if (isset($forumid) == false)
{

$gal_num_rows $vbulletin->options['gal_num_rows'];

if (
$vbulletin->options['show_latest']==1)
{

// fetch latest pics
$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() ."
GROUP BY "
.TABLE_PREFIX ."thread.threadid
ORDER BY "
TABLE_PREFIX "attachment.attachmentid DESC LIMIT $gal_num_rows");



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

// #################### Random Gallery-Additions #######################
// fetch random pics

if ($vbulletin->options['show_random']==1)
{
$random_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.featured!='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 $gal_num_rows");

while (
$rand_gallery $db->fetch_array($random_thumbs))
{
eval(
'$random_gallery .= "' fetch_template('gallery_randompictures') . '";');
}
}



the added bits are 'if (isset($forumid) == false)' so the thumbs aren't attempted to load on other pages than forumhome. (got a big speed-increase on the forums after doing this)

also added 'if ($vbulletin->options['show_random']==1)' and 'if ($vbulletin->options['show_latest']==1)' bits to get rid of redundant sqlqueries.

Hope this is of any use to people :)

Necrosaro420 11-04-2006 08:25 PM

Can this be set up so each user has their each individual section to upload their own pictures?

Harald_T 11-05-2006 10:17 AM

Quote:

Originally Posted by FMCS
After the mod was installed we noticed that the forum became horribly slow so I changed the 'gallery_images_forumhome' bit to the following:

PHP Code:

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

if (isset($forumid) == false)
{

$gal_num_rows $vbulletin->options['gal_num_rows'];

if (
$vbulletin->options['show_latest']==1)
{

// fetch latest pics
$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() ."
GROUP BY "
.TABLE_PREFIX ."thread.threadid
ORDER BY "
TABLE_PREFIX "attachment.attachmentid DESC LIMIT $gal_num_rows");



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

// #################### Random Gallery-Additions #######################
// fetch random pics

if ($vbulletin->options['show_random']==1)
{
$random_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.featured!='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 $gal_num_rows");

while (
$rand_gallery $db->fetch_array($random_thumbs))
{
eval(
'$random_gallery .= "' fetch_template('gallery_randompictures') . '";');
}
}



the added bits are 'if (isset($forumid) == false)' so the thumbs aren't attempted to load on other pages than forumhome. (got a big speed-increase on the forums after doing this)

also added 'if ($vbulletin->options['show_random']==1)' and 'if ($vbulletin->options['show_latest']==1)' bits to get rid of redundant sqlqueries.

Hope this is of any use to people :)

Thanks. You're right, i forgot to add the options for random and latest thumbs. And thanks for the hint regarding the forumid.

Harald_T 11-05-2006 10:23 AM

Quote:

Originally Posted by Necrosaro420
Can this be set up so each user has their each individual section to upload their own pictures?

You could create a forum for each of your users. Depends of course, how many users should have such a section and how many users are on your board.

I was working on a routine, which creates a little gallery in your member-profile. Yet it didn't worked right. I have to rethink the routines...

VBUsers 11-06-2006 02:41 AM

i have a problem , i want my site to look like this attachment but i get this instead

http://www.talkgfx.com/forumdisplay.php?f=20

VBUsers 11-06-2006 02:49 AM

edit: i also seem to have a little german in the template

http://www.talkgfx.com/showthread.php?t=24

Nur f?r Mitglieder! = Only for members!

also no forums show for me here

http://www.talkgfx.com/forumdisplay.php?f=19

Harald_T 11-06-2006 03:50 PM

Quote:

Originally Posted by AR Forums
i have a problem , i want my site to look like this attachment but i get this instead

http://www.talkgfx.com/forumdisplay.php?f=20

In the gallery-options you have one option where you can define the alternative-layout.

VBUsers 11-06-2006 05:56 PM

Quote:

Originally Posted by Harald_T
In the gallery-options you have one option where you can define the alternative-layout.

but the width isnt right. its not long enough.

see here
http://www.talkgfx.com/forumdisplay.php?f=20


All times are GMT. The time now is 02:50 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.01419 seconds
  • Memory Usage 1,790KB
  • 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_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