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)

Lionel 11-07-2006 08:31 AM

you need help, but one must register to investigate further.

BOSS 302 11-07-2006 08:51 AM

Sigh.

Harald_T 11-07-2006 08:39 PM

@BOSS 302: Please contact me via PM

YLP1 11-26-2006 06:41 PM

Leave it to me to break a great add on...

I am running vb 3.6.3...

The product installed, adjustments in the ACP Gallery section made (see graphic), the ACP thumbnail adjustments have been made as per instructions; all template and page modifications have been done checked and rechecked.

The only thing that I didn't change to no was using the inline images. I have to have that.

So with the above completed, when I submit a new graphic, it shows on the forum page but the topic that I created to submit the graphic doesn't show the graphic or a link to it: see graphic attached.

When I click show the lastest uploads, nothing shows. But when I click random the graphic I just uploaded shows. I have many graphics in many forums.... can we use multiple forum IDs in the Gallery ACP?

Also, I have a question: Will this add on show ALL attachments like pdf files, avi; or other media files attached or only gif; jpegs; png? I ask because what I am looking for is an addon that will show all latestest attachements regardless of the type.

Thanks in advance.

buurman 11-27-2006 01:48 PM

Quote:

Originally Posted by Harald_T (Post 827700)
O.k. i've got it.

For vertical view of the latest/random pictures:

Change in the plugin: "gallery_images_forumhome" the following code

Code:

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

to this one:

Code:

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

Do the same for the random_gallery:

Code:

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

Now, create two the following two templates:

adv_latestgallery:
Code:

<tr>
<td align="center">
<table class="tborder" align="center">
<tr>
<td class="thead" height="100" width="120" align="center">
<a HREF="attachment.php?attachmentid=$gallery[attachmentid]">
<img src="attachment.php?attachmentid=$gallery[attachmentid]&stc=1&thumb=1" border=0 align="center"></a>
</td>
</tr>
<tr>
<td valign="center" align="center" width="120" height="40">
<br />
<a href="showthread.php?t=$gallery[threadid]">
$gallery[title]
</a>
</td>
</tr>
</table>
</td>
</tr>

adv_random_gallery:
Code:

<tr>
<td align="center">
<table class="tborder">
<tr>
<td class="thead" height="100" width="120" align="center">
<a HREF="attachment.php?attachmentid=$rand_gallery[attachmentid]">
<img src="attachment.php?attachmentid=$rand_gallery[attachmentid]&stc=1&thumb=1" border=0 align="center"></a>
</td>
</tr>
<tr>
<td valign="center" align="center" width="120" height="40">
<br />
<a href="showthread.php?t=$rand_gallery[threadid]">
$rand_gallery[title]
</a>
</td>
</tr>
</table>
</td>
</tr>

now, change the code for adv_portal_gallery (s. post of christianb):

Code:

<if condition="$vboptions['show_latest']==1">
    <tr>
          <td colspan=$gal_num_rows align="center">Latest pictures in the gallery:
</td>
</tr>
$adv_latestgallery
</if>

<if condition="$vboptions['show_latest']==1">
    <tr>
          <td colspan=$gal_num_rows align="center">Random pictures from the gallery:
</td>
</tr>
$adv_random_gallery
</if>

Of course, it could be better for handling, if you make two modules, one with the latest pictures and one with the random pictures.

Second: Forget those file-edit on vba_cmps_include_bottom.php. It's not neccessary anymore.

Thanks, this makes some things clear, but from my homepage CMPS I got red crosses, because the link needs "forum" in between.
How can I fix this?

thx!

buurman 11-30-2006 06:09 AM

Noone a answer to the last question?
to bad :confused: :D

Maybe this one is easyer, hope its poosible to fix it...

Look at the brown bars on the side in the Post where the Pictures are in.
I hope there is a way to adjust the wide settings or something, so that they dont show.

Thx in advance guys...

Harald_T 11-30-2006 04:56 PM

@buurmann: This have to do with the settings in the template "gallery_postbit". I think that the width-setting of the first table have to be changed for that.

For the CMPS-Boxes: It needs to be done in another way. I'll publish this, but not before the weekend. Hopefully i can restart working on the gallery at my holidays next week. There are a couple of things that need to be sort out urgently.

buurman 12-01-2006 10:35 AM

I deleted the "$spacer_open" from the gallery_postbit templete.
This did fix the bars on the side, what does this setting do?

Harald_T 12-02-2006 01:52 PM

This is a template, that is called by default from vb. I'm not sure about this template, i think it fixes some compability-problems with older IE's.

buurman 12-04-2006 04:20 AM

Quote:

Originally Posted by Harald_T (Post 1130015)
This is a template, that is called by default from vb. I'm not sure about this template, i think it fixes some compability-problems with older IE's.

Well, I guess to bad for them.. :)

Thx m8, really like the plugin, it needs a little tuning to customize it to your website, but then again. most do.
Its free, and it looks really nice, im very happy you made it for us!!!:up:


All times are GMT. The time now is 03:08 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.02381 seconds
  • Memory Usage 1,751KB
  • 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
  • (6)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
  • (3)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