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)

StevanMD 08-06-2006 05:55 PM

@ wezoo

Tell me please, did you use vBAdvanced CMPS to load Google ads on your page?

Thanks

StevanMD 08-06-2006 06:00 PM

Quote:

Originally Posted by Ticinofelino
I'm sorry I tried everything but I really don't understand what I've done wrong! Can anyone tell me why my "gallery" behaves like a normal forum.
I created the category - to behave like a gallery category
then the forum - to behave like a gallery
I see the upload button but it works like a "new post" button.
I put the id of the category for the navbar, I said yes to use other layouts...
I don't know what else I should do...
Here's the link to the site I'm building:
http://www.ticinofelino.com

Thanks for your help... :surprised:


Edit: it works now thanks!

click install


Can you please tell me what changes you made to integrate the Gallery on the main page of VBAdvanced?

Thanks

Ticinofelino 08-06-2006 06:14 PM

Quote:

Originally Posted by StevanMD
Can you please tell me what changes you made to integrate the Gallery on the main page of VBAdvanced?

Thanks


It's very easy, I followed the instructions from Christianb that he posted some time ago, I quote them here for you.
Now, I would like to eliminate the title upon the pics (Album foto) but I still haven't discoverd how... ;)



Quote:

Originally Posted by christianb
No problem

What I did was went to the VBA CMPS => Add module => Module Type [Template]

Module Title - Gallery (Or whatever you want)
Column [Center Column]
Display Order 20 (whatever you want here)
Active Yes
Template to Include: adv_portal_gallery
Template Content:

PHP Code:

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

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

Use Module Shell Template - Yes
Module Link: (I used this and put it directly to my gallery (same as the link for the navbar - remember your forum ID)

Permissions are up to you - I disallow unregistered and banned users to save bandwidth


StevanMD 08-06-2006 06:23 PM

Simple as that. Thanks.
It still doesn't show up the actual thumbnails there though (it does when I include the Gallery on the Forum main page), but I guess I will working around that.

In the process I'll see where to change the title you need and let you know.

StevanMD 08-06-2006 10:36 PM

Quote:

Originally Posted by Ticinofelino

Now, I would like to eliminate the title upon the pics (Album foto) but I still haven't discoverd how... ;)

Now, from what I've seen (btw, I've spent the last two hours going through every bit of everything - beyond just Gallery thing - to see why the pop up shows for each picture the page loads, and in the end none load at all, and just as I was about to reinstall everything (as if that would bring real change), I figured I should check the server settings, and lo and behold, all image folders were locked by default. Awesome hosting providers these days, awesome).

As for your problem, just change the Module Title

What I did was went to the VBA CMPS => Add module => Module Type [Template]
Module Title - Gallery (Or whatever you want)
Column [Center Column]
Display Order 20 (whatever you want here)
Active Yes
Template to Include: adv_portal_gallery
Template Content:

Ticinofelino 08-07-2006 09:52 AM

Thanks a lot Stevan but what I meant, was to ELIMINATE that blue line with the title... I'll find a solution sooner or later :)

StevanMD 08-07-2006 10:31 AM

Quote:

Originally Posted by Ticinofelino
Thanks a lot Stevan but what I meant, was to ELIMINATE that blue line with the title... I'll find a solution sooner or later :)

I think you need to use this code:

Code:

<if condition="$vboptions['show_latest']==1">
<table class="tborder" cellpadding="6" cellspacing="1" border="0" width="99%">
<tr>
<td class="tcat" colspan=$gal_num_rows>
Galerie
<div class="smallfont">Latest Pictures in the gallery:</div>
</td>
</tr>
<tr>
$latestgallery
</tr>
</table>
<br />
<br />
</if>

<if condition="$vboptions['show_random']==1">
<table class="tborder" cellpadding="6" cellspacing="1" border="0" width="99%">
<tr>
<td class="tcat" colspan=$gal_num_rows>
Gallery
<div class="smallfont">Latest Pictures in the gallery:</div>
</td>
</tr>
<tr>
$random_gallery
</tr>
</table>
<br />
<br />
</if>
<!--Gallery-Addition-->

instead of this:

Code:

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

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

when creating the Gallery module. The longer one defines the class of the td element (that definition for class tcat in this case, holds the properties of the layout of all those blue lines across modules).

So you need to change its from
Code:

class="tcat"
to say
Code:

class="tcatgallery"
and from there on create the tcatgallery in css and define its properties (if you want background completely gone, delete all mention of the background, but then it will be transparent and will have the table background as its own, or define any new bacground - either color or gradient picture for example).

I am not sure where to find the css definition of tcat, but I believe if you search for tcat in AdminCP> Styles & Templates > Search in Templates, you should locate it.

Ignicoccus 08-14-2006 01:30 PM

Hi there,

I tried to install this MOD and everything went fine. Only this part here :

PHP Code:

2. Find:
$thread['hiddencount']++;

}

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



looks different for me. My forumdisplay.php looks like this :

PHP Code:

$thread['hiddencount']++;
                }
                
$show['moderated'] = ($thread['hiddencount'] > AND can_moderate($forumid'canmoderateposts')) ? true false;
                
$show['deletedthread'] = ($thread['deletedcount'] > AND $canseedelnotice) ? true false;
        
                }
                eval(
'$threadbit .= "' fetch_template('threadbit') . '";');
            
        } 

So I changed it to :
PHP Code:

$thread['hiddencount']++;
                }
                
$show['moderated'] = ($thread['hiddencount'] > AND can_moderate($forumid'canmoderateposts')) ? true false;
                
$show['deletedthread'] = ($thread['deletedcount'] > AND $canseedelnotice) ? true false;
        
//############################Gallery-Modification###########################
                
if ($gallery == true)
                    {
                    eval(
'$threadbit .= "' fetch_template('gallery_threadbit') . '";');
                    }
                else
                    {
                    eval(
'$threadbit .= "' fetch_template('threadbit') . '";');
                    }
                
//############################End Gallery-Modification########################
                
}
//                eval('$threadbit .= "' . fetch_template('threadbit') . '";');
            
        


The Gallery appears in my forum, the link in the nav bar works like it should but when I try to post a picture, I only see the standard comment field, like in a normal forum.

Any Idea ? BTW: I am running vB 3.6

Harald_T 08-14-2006 05:13 PM

This is because you're running vb 3.6 This hack isn't released yet for 3.6. It will follow the next days.

Ignicoccus 08-14-2006 05:18 PM

Thanks for your quick reply !


All times are GMT. The time now is 08:02 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.02345 seconds
  • Memory Usage 1,783KB
  • 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
  • (4)bbcode_php_printable
  • (5)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