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)

davidw 11-20-2005 05:31 PM

<font color="SeaGreen">* christianb subscribes to this thread because of the vbagallery incident</font>

lexx27 11-20-2005 06:25 PM

what vbagallery incident?

Harald_T 11-20-2005 06:47 PM

Was thinking the same, too.

Btw. atm i'm installing vbA CMPS.

lexx27 11-20-2005 06:51 PM

I read that vba gallery waa "moved" at photopost and vba doesnt support it anymore

Quote:

Btw. atm i'm installing vbA CMPS.
I am happy about that :)

Harald_T 11-20-2005 08:16 PM

O.k., i've got it so far, but at the moment not as a seperate modul. This will come, i'll promise.

In your template "adv_portal" find:

Code:

$navbar
after this insert:

Code:

<if condition="$vboptions['show_latest']==1">
<table class="tborder" align="center" width=99%">
<tr>
<td colspan=$gal_num_rows>
Latest pictures in the gallery:
</td>
</tr>
<tr>
$latestgallery
</tr>
</table>
<br />
</if>


<if condition="$vboptions['show_random']==1">
<table class="tborder" align="center" width="99%">
<tr>
<td colspan=$gal_num_rows>
Random Pictures from the gallery</td>
</tr>
<tr>
$random_gallery
</tr>
</table>
<br />
</if>

Now, in your /includes/vba_cmps_include_bottom.php find:

Code:

eval('print_output("' . fetch_template('adv_portal') . '");');
before this insert:

Code:

// #################### Latest Gallery-Additions #######################
// fetch the permissions for each forum
// global $vbulletin;
$gal_num_rows = $vbulletin->options['gal_num_rows'];


$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 $gal_num_rows");

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

// #################### Random Gallery-Pictures #######################
// fetch the permissions for each forum

$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.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('random_gallery') . '";');
}

// ##################### End Gallery-Modification ########################

Now it should work.

jarod1981? 11-21-2005 06:31 AM

Hi

In the file forumdisplay.php i don't find:

$thread['hiddencount']++;

}

eval('$threadbit .= "' . fetch_template('threadbit') . '";');

}


Where I must copy this part?

$thread['hiddencount']++;
}
//############################Gallery-Modification###########################
if ($gallery == true)
{
eval('$threadbit .= "' . fetch_template('threadbit_gallery') . '";');
}
else
{
eval('$threadbit .= "' . fetch_template('threadbit') . '";');
}
//############################End Gallery-Modification########################
}


Bye bye

Harald_T 11-21-2005 06:50 AM

It's a bit beneath this hook:

Code:

($hook = vBulletinHook::fetch_hook('threadbit_display')) ? eval($hook) : false;

VBUsers 11-21-2005 07:14 AM

hey there i have it installed but my thumbnails wont show up. ive changed the settings but then nothing happens. i dont want my regular images being links so what can i do?

Harald_T 11-21-2005 07:49 AM

I checked your site, but couldn't see any posts in the gallery. Are the permissions set right? Otherwise, could you do me a favour and give me a test-access?

davidw 11-21-2005 01:42 PM

<font color="SeaGreen">* christianb clicks install</font>

Just created a vbadvanced module too.


All times are GMT. The time now is 11:31 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.02157 seconds
  • Memory Usage 1,746KB
  • 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
  • (5)bbcode_code_printable
  • (1)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