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 12-07-2005 08:50 PM

I'm working on this. I'm not sure if i got a solution for this. But I'll try. It's more an idea at the moment.

@ScottC20: I have to look. I personally didn't upgrade yet.

nexus851 12-08-2005 08:59 AM

can u cache the random and latest gallery templates too please... its not cached yet...

Harald_T 12-08-2005 05:44 PM

They should be cached. Do you still use the old templates? Or those for the vBadvanced CMPS? If so, you have to edit the plugin "forumcache-->Gallery" and insert the names of the templates.

The Chief 12-08-2005 05:49 PM

I have just switched to vB 3.5.2 and my photos aren't appearing in the forums...they are appearing on the main page but in the forums we see nothing....

have a look...

http://www.myetalk.com

http://etalk.gamebgs.com/forums/forumdisplay.php?f=84

Harald_T 12-08-2005 06:05 PM

@ScottC20: Did you edit the forumdisplay.php again? If you updated then you it's possible that you have a new file forumdisplay.php.

The Chief 12-08-2005 06:07 PM

Quote:

Originally Posted by Harald_T
It may be the bug on vB 3.5.2. There seems to be some problems with the new version. I'm looking at it.

Glad you'll have a look at it harald, thanks ;)

Harald_T 12-08-2005 06:09 PM

Quote:

Originally Posted by gamebgs
I have just switched to vB 3.5.2 and my photos aren't appearing in the forums...they are appearing on the main page but in the forums we see nothing....

have a look...

http://www.myetalk.com

http://etalk.gamebgs.com/forums/forumdisplay.php?f=84

Would you be so kind an contact me by pm? I guess i must have a look inside.

The Chief 12-08-2005 06:27 PM

Quote:

Originally Posted by Harald_T
Would you be so kind an contact me by pm? I guess i must have a look inside.

I just sent you a pm, do you want some screenshots or what?

The Chief 12-09-2005 03:25 AM

I don't know if anybody else is getting this error with vB 3.5.2??

nexus851 12-10-2005 04:37 AM

Quote:

Originally Posted by Harald_T
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.



I CANT seem to get the Vertical to work at all... i made those above templates but nothing is showing up at all in my homepage... please help...


All times are GMT. The time now is 12:48 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.01601 seconds
  • Memory Usage 1,758KB
  • 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
  • (4)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