vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Add-On Releases - Picture and Album Gallery (https://vborg.vbsupport.ru/showthread.php?t=237931)

MooseMoney 03-11-2010 11:04 PM

Works perfectly!
Thank you so much!

kevinfx 03-11-2010 11:51 PM

i just installed the latest version and got this:

Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: Access denied for user 'nobody'@'localhost' (using password: NO) in [path]/picall.php on line 110

Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: A link to the server could not be established in [path]/picall.php on line 110

ImmortalForums 03-12-2010 01:17 AM

1 Attachment(s)
I realized I missed some templates in the cache call. Here it is attached please include this in your future products. You have 5 uncached templates.

Bojangles 03-12-2010 03:57 AM

Great mod! It works.. but I am having an issue with the formatting of the pictures and albums. Please see the screenshot below:

https://vborg.vbsupport.ru/

I upped the max limit of displayed pictures and albums to 30 to try to compensate and fix it because it wasn't working with the default 10/25.

Do you have any suggestions? Thanks!

HCGB 03-12-2010 07:57 AM

Quote:

Originally Posted by Bojangles (Post 2001937)
Great mod! It works.. but I am having an issue with the formatting of the pictures and albums.
...
Do you have any suggestions? Thanks!

It look like the thumbnails might be different sizes - try AdminCP->Maintenance->Update Counters->Rebuild Attachment Thumbnails

I note you are running vb 4.0.1 - this mod has only been tested on 4.0.2 :)

XManuX 03-12-2010 08:15 AM

I wanted to give a bigger emphasis on the gallery, thus displaying the link in the main navbar, not in the "forum" sub-bar.

Here are the modifications in the navbar template :

Find:
Code:

{vb:raw template_hook.navtab_end}
Add Below:
Code:

<vb:if condition="!$vboptions['selectednavtab'] AND (THIS_SCRIPT == 'albumall' OR THIS_SCRIPT == 'album' OR THIS_SCRIPT == 'picall')">
                        <vb:if condition="$show['member']">
                                <li  class="selected"><a class="navtab" href="albumall.php?{vb:raw session.sessionurl}">Gallery</a>
                                <ul class="floatcontainer">
                                        <li><a href="picall.php?{vb:raw session.sessionurl}">Picture Gallery</a></li>
                                        <li><a href="albumall.php?{vb:raw session.sessionurl}">Album Gallery</a></li>
                                        <li><a href="album.php?{vb:raw session.sessionurl}do=latest">Latest Albums</a></li>
                                        <li><a href="album.php?{vb:raw session.sessionurl}u={vb:raw userinfo.userid}">My Albums</a></li>
                                        <li><a href="album.php?{vb:raw session.sessionurl}do=addalbum">Add Albums</a></li>
                                </ul>
                        <vb:else />
                                <li  class="selected"><a class="navtab" href="albumall.php?{vb:raw session.sessionurl}">Gallery</a>
                                <ul class="floatcontainer">
                                        <li><a href="picall.php?{vb:raw session.sessionurl}">Picture Gallery</a></li>
                                        <li><a href="albumall.php?{vb:raw session.sessionurl}">Album Gallery</a></li>
                                        <li><a href="album.php?{vb:raw session.sessionurl}do=latest">Latest Albums</a></li>                               
                                </ul>
                        </vb:if>
                <vb:else />
                        <li><a class="navtab" href="albumall.php?{vb:raw session.sessionurl}" >Gallery</a>
                </vb:if>

Find:
Code:

<vb:if condition="!$vboptions['selectednavtab'] AND THIS_SCRIPT != 'search'">
Replace With:
Code:

<vb:if condition="!$vboptions['selectednavtab'] AND THIS_SCRIPT != 'search' AND THIS_SCRIPT != 'albumall' AND THIS_SCRIPT != 'album' AND THIS_SCRIPT != 'picall'">
Done.

Note: the addition in navbar could be easily coded as a hook on navtab_end, not sure that the replacment could be achieved in a "clean" way (ie : not altering the navbar template)

HCGB 03-12-2010 08:52 AM

Quote:

Originally Posted by kevinfx (Post 2001831)
i just installed the latest version and got this:

Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: Access denied for user 'nobody'@'localhost' (using password: NO) in [path]/picall.php on line 110

Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: A link to the server could not be established in [path]/picall.php on line 110

Those are database connection errors and nothing to do with this mod.


Quote:

Originally Posted by ImmortalForums (Post 2001870)
I realized I missed some templates in the cache call. Here it is attached please include this in your future products. You have 5 uncached templates.

The templates defined as $globaltemplates ARE cached by global.php - an extra plug-in isn't needed - unless I've missed something?

kevinfx 03-12-2010 03:44 PM

HCGB,
i understand, but do you have any ideas what's causing that since the whole forum is working perfectly and i'm not getting that error anywhere else?

Kolbi 03-12-2010 03:48 PM

Little issue: The template gallery_navbar is still there. Shouldn´t it be deleted?

HCGB 03-12-2010 06:01 PM

Quote:

Originally Posted by kevinfx (Post 2002239)
HCGB,
i understand, but do you have any ideas what's causing that since the whole forum is working perfectly and i'm not getting that error anywhere else?

Quote:

Originally Posted by Kolbi (Post 2002241)
Little issue: The template gallery_navbar is still there. Shouldn?t it be deleted?

Both fixed (hopefully :)) in latest version (v1.04b).


All times are GMT. The time now is 08:40 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.02067 seconds
  • Memory Usage 1,754KB
  • 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
  • (4)bbcode_code_printable
  • (5)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