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)

imported_magjr 05-16-2006 12:03 AM

Quote:

Originally Posted by UtahNissans
Does this forum allow you to restrict access to specific usergroups?

Yes, you have to work it though the forums permissions as well as user group permissions.

On my board, no one can post to the gallery except the gallery chairman, so I edited user groups and form permissions and it works great.

Bernd 05-16-2006 07:12 AM

Quote:

Originally Posted by imported_magjr
Yes, you have to work it though the forums permissions as well as user group permissions.

On my board, no one can post to the gallery except the gallery chairman, so I edited user groups and form permissions and it works great.

Can View Thread Content option does not seem to work though. Unregistered members can never view the gallery, no matter what permissions are set.

Harald_T 05-16-2006 03:51 PM

This is a setting in the templates. Normally also guests can view the gallery. At least they should be able to see the thumbnails. See here:

www.sf-galerie.de

Bernd 05-16-2006 04:07 PM

I've looked at the gallery postbit template, but not sure what has to be removed to allow guests to view the gallery posts themselves.

I'm currently reading up on the permissions system of vbulletin. Would be nice if the gallery pulls all permissions directly from the forum\user permission settings, including being able to view a thread\gallery thread or not.

UtahNissans 05-17-2006 12:59 AM

Hey I noticed with your install instructions it shows you have to link it in the navbar but what if I want to add it to the bigger gray bar that home and everything else is located in?

Also where is the template forumhome located?

azntfl 05-17-2006 03:13 AM

Quote:

Originally Posted by Bernd
I've looked at the gallery postbit template, but not sure what has to be removed to allow guests to view the gallery posts themselves.

I'm currently reading up on the permissions system of vbulletin. Would be nice if the gallery pulls all permissions directly from the forum\user permission settings, including being able to view a thread\gallery thread or not.

Yeh I am having a lot of trouble with this also :(

UtahNissans 05-17-2006 03:46 AM

Are you both just referring to the fact that guests cant view the gallery? Or are you saying that if someone isnt in the usergroup to use the gallery that they can't view it?
I just want to double check because I want to be able to limit each users ability to upload to the gallery but have all registered users be able to view pics.

napukjon 05-17-2006 02:21 PM

Just a little problem

Pictures aren't showing up in the Gallery. Not even a red X. Any help would be greatly appreciated!

But the pictures appear on the front page!

Harald_T 05-17-2006 03:51 PM

Check in your vbulletin-options, if you have set thumbs enabled. It could be, that not the thumbnails, but the attachment as it self will be shown in the post.

The problem for me is: I only have the german-version of the board, and i don't know the english translation for the options.

napukjon 05-17-2006 04:14 PM

First thing i check and there enabled.

UtahNissans 05-17-2006 06:26 PM

Quote:

Originally Posted by UtahNissans
Are you both just referring to the fact that guests cant view the gallery? Or are you saying that if someone isnt in the usergroup to use the gallery that they can't view it?
I just want to double check because I want to be able to limit each users ability to upload to the gallery but have all registered users be able to view pics.

Anyone....?

UtahNissans 05-17-2006 10:45 PM

Quote:

Originally Posted by UtahNissans
Hey I noticed with your install instructions it shows you have to link it in the navbar but what if I want to add it to the bigger gray bar that home and everything else is located in?

Also where is the template forumhome located?

Anyone? Am I actually looking for .php file or do I go through vbulletin admin panel to edit?

azntfl 05-18-2006 01:55 AM

I just want it so guess can view the pictures instead of this coming up

"Nur für Mitglieder!"

UtahNissans 05-18-2006 02:20 AM

Is there not an english version?

azntfl 05-18-2006 02:47 AM

i dunno, i am thinking of uninstalling this mod and try Photoplog

UtahNissans 05-18-2006 04:49 AM

I got it installed on my site in english. Only problem is there is no upload button and the gallery looks like a normal forum thread

Bernd 05-18-2006 05:26 AM

Quote:

Originally Posted by UtahNissans
Is there not an english version?

Changing the language,

A few posts back i have explained how to change the text "nur fur mitglieder". All german text is hard coded, but it can be easily replaced with phrases (see one of my previous posts). It only takes a few minutes.

Allow guests to view the gallery,

-Open the template gallery_postbit
-Remove the following lines

Code:

<if condition="$show['member']">
and

Code:

<br />
<table class="tborder" id="post$post[postid]" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="640" align="center">
<tr>
<td class="thead">
Nur f?r Mitglieder!
</td>
</tr>
<tr>
<td class="alt1">
<img src="images/not_registered.jpg">
</td>
</tr>
</table>

Done! If you remove the above, the gallery will use the forum's permissions fully. So, if you disallow guests to view a thread, the gallery thread will not be displayed etc etc.

Upload permissions,

As for upload permissions, the gallery should still use the forum's upload permissions. Just set the upload permissions for an usergroup and they won't be able to upload, but will still be able to view the gallery.

if your forum thread looks normal, you have probably forgotten to specify that the forum should act as a gallery under forum options.

Buttons,

Most templates come with a psd file. Make your own ;)

p.s. I'm not the one who should be saying this, but have some patience. These hacks are available for free.

napukjon 05-18-2006 07:28 AM

Quote:

Originally Posted by UtahNissans
I got it installed on my site in english. Only problem is there is no upload button and the gallery looks like a normal forum thread

What internet browser do you use?

Harald_T 05-18-2006 05:14 PM

@Bernd: I know i should be the one, but thanks anyway for your help. I'm just having almost no time atm, so this is, why i don't answer any time.

UtahNissans 05-19-2006 03:27 AM

Quote:

Originally Posted by napukjon
What internet browser do you use?

I use firefox.

UtahNissans 05-19-2006 03:41 AM

So answer me this. THe instructions say to upload the upload.jpg in the folder images/button, now the icon I have in the .zip download is upload.gif. Also is it images/button or forums/images/button or forums/images/buttons?

The reason I ask is because I am getting nothing but "There are no posts in this forum"

Bernd 05-19-2006 09:07 AM

wrong placement of a button shouldn't get you the return message you are receiving, only a red x.
post the url to your website if you can...it's a bit hard to imagine what is going on without looking at it.

UtahNissans 05-19-2006 06:51 PM

Quote:

Originally Posted by Bernd
wrong placement of a button shouldn't get you the return message you are receiving, only a red x.
post the url to your website if you can...it's a bit hard to imagine what is going on without looking at it.

http://utahnissans.com/forumdisplay.php?f=60

Zowners 05-19-2006 11:04 PM

Ok I have everything working fine I was just wondering can you make the latest gallery pictures section collapsable. And is it possible to insert subforums in a forum in the gallery category. At the moment its created duplicates of the subforums in the gallery category.

Bernd 05-20-2006 07:03 AM

Quote:

Originally Posted by UtahNissans

I can't even register on your forum without getting an error, so i doubt it's a gallery related issue ;)

Harald_T 05-20-2006 03:13 PM

@Zowners: I can make it collapsable, i will include it in the next coming update. A subforum isn't possible atm. But i will look after it.

Bernd 05-20-2006 05:24 PM

Here is a working thumbnailer for this gallery.

step 1,

edit template gallery_attachment and replace the code with

PHP Code:

<if condition="$attachment[filename] == $vboptions[featured_thumbnail]">
<else />
<
a href="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&amp;d=$attachment[dateline]"<if condition="$show['newwindow']"target="_blank"</if>>
<
img class="thumbnail" src="tn_image.php?image=$vboptions[bburl]/attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]border="0" align="center"></a>
&
nbsp;<if condition="$show['br']"><br /><br /></if></if> 

'/' in '$vboptions[bburl]/attachment.php' has to be left out if you've set your forum url ending with '/' in forum options.

Step 2,


Upload tn_image.php to your forum directory and set the following parameters to your specifications
$x = 600; //width
$y = 600; //height

Currently, tn_image.php resizes images that are too small to the paramaters specified. Someone with a bit more php knowledge should be able to fix that easily. The current advantage over the old resizer is that it uses the GD library to create thumbnails, meaning that images will not have the pixelated look that it would otherwise have.

Note that tn_image.php was not written by me. I can't credit the writer since the name was not listed ;)

Harald_T 05-20-2006 06:01 PM

Thanks for your help Bernd. I will see how i can integrate it completly.

DrewM 05-21-2006 06:53 PM

why not just use the condition with the extenion field it's alot easier.

Harald_T 05-21-2006 07:12 PM

@LarrySW: But this one only assures that only a picture will be uploaded. But it doesn't check the size of it.

Bernd 05-21-2006 07:40 PM

Well, it would solve the issue that currently files are being parsed too.

Would it be possible to create a sql that selects attachments with certain extensions only?
For example $vboptions[galleryextensions] returns the value jpg,bmp,png and adjust the sql to only return attachments with these extensions. It's not exactly a condition, but i guess it might be a bit easier to implement?

Would a plugin hooked into attachment.php which checks for certain extensions in the upload field require less resources than the above?

I guess it's the last thing that would make this gallery fool proof.

Harald_T 05-21-2006 08:59 PM

I thinked over this possibilty and i'm not quite sure, but i think it's exactly that, what LarrySW is talking about.

DrewM 05-21-2006 09:06 PM

Quote:

Originally Posted by Bernd
Well, it would solve the issue that currently files are being parsed too.


Would it be possible to create a sql that selects attachments with certain extensions only?
For example $vboptions[galleryextensions] returns the value jpg,bmp,png and adjust the sql to only return attachments with these extensions. It's not exactly a condition, but i guess it might be a bit easier to implement?

Would a plugin hooked into attachment.php which checks for certain extensions in the upload field require less resources than the above?

I guess it's the last thing that would make this gallery fool proof.

that is exactly what I mean :p

Harald_T 05-21-2006 09:15 PM

Ok, i will look after it, but, give me some time. I don't have too much freetime.

imported_magjr 05-23-2006 01:19 AM

I have it running on my board now, however it slows my entire server down. most cases, I have to restart apache. Any ideas?

UtahNissans 05-23-2006 04:29 AM

Quote:

Originally Posted by Bernd
I can't even register on your forum without getting an error, so i doubt it's a gallery related issue ;)

Try again, I just resolved this issue with vbulletin support. Let me know what you think I did wrong.

Bernd 05-23-2006 06:54 AM

check if gallery_postbit template exists. The rest seems to work fine.

Gehanna 05-23-2006 10:43 AM

Hello Again,

I primarily use the Firefox browser version 1.5.0.3. When I view the gallery using this browser, I noticed that the images are set to the left leaving black space over in the right of the thumbnail. If you use Firefox, please refer to this link for an example of what I mean:

http://www.currentday.com/forums/forumdisplay.php?f=71


Is there anything I can do to fix this so that the thumbnail is centered properly when viewing the image in Firefox?

Sincerely,
Gehanna

LBSources 05-23-2006 01:04 PM

very well .. but i willl wait fro

Possibility for file-upload, not only pictures.

as you had said maybe it would be included in _this_ release :(

Thanks anyway .. good job :)

UtahNissans 05-23-2006 03:34 PM

Quote:

Originally Posted by Bernd
check if gallery_postbit template exists. The rest seems to work fine.

It seems I do have it under "Gallery Templates"
PHP Code:

<!-- post #$post[postid] -->
<if condition="$show['member']">
<if 
condition="$show['spacer']">
    
$spacer_open
    
<div id="edit$post[postid]style="padding:0px 0px $stylevar[cellpadding]px 0px">
    <if 
condition="!$post['islastshown']"><!-- this is not the last post shown on the page --></if>    
</if>

<
table class="tborder" id="post$post[postid]cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="0" width="100%" align="center">
<
tr>
    <
td class="thead">
        
        <
div class="normal">
&
nbsp;            
        </
div>
    </
td>
</
tr>
</
table>
<
br />


<
table class="tborder" id="post$post[postid]cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="0" width="640" align="center">
<
tr>
<
td class="thead">
&
nbsp;
</
td>
</
tr>
<
tr>
    <
td class="alt1" id="td_post_$post[postid]">
    <!-- 
messageattachmentssig -->
    

                <if 
condition="$show['thumbnailattachment']">
                
                                        <
div style="padding:$stylevar[formspacer]px" align="center">
$gallery_attachment
                    $post
[gallery_attachment]
                    </
div>
            </if>
            </
div>
        <!-- / 
attachments -->
        
</
td>
</
tr>
<
tr>
<
td class="alt2">
$vbphrase[gal_show_pic_size]
</
td>
</
tr>
</
table>
<
br /> <br />

<
table class="tborder" id="post$post[postid]cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="0" width="350" align="center">
<
tr>
<
td class="tcat" colspan="2">
Informationen
</td>
</
tr>
<
td class="alt2">
<
b>
$vbphrase[gal_posted_by]
</
b>
</
td>
<
td class="alt1" align="right">    
$post[musername]
</
td>
</
tr>
<
tr>
<
td class="alt2">
<
b>
$vbphrase[gal_posted_date]
</
b>
</
td>
<
td class="alt1" align="right">
$post[postdate]
</
td>
</
tr>
<
tr>
<
td class="alt2">
<
b>
$vbphrase[rating]
</
b>
</
td>
<
td class="alt1" align="right">
<if 
condition="$thread[rating]">
<
img class="inlineimg" src="$stylevar[imgdir_rating]/rating_$thread[rating].gif">
<else />
&
nbsp;
</if>
</
td>
</
tr>
<
tr>
<
td class="alt2" colspan="2">
<
b>
$vbphrase[gal_comments]
</
b>
</
td>
</
tr>
<
tr>
<
td colspan="2" class="alt1">
$post[message]
</
td>
</
tr>
</
table>

<
br />
<
hr>
<if 
condition="$post['editlink']">
<
a href="$post[editlink]name="vB::QuickEdit::$post[postid]"><img src="$stylevar[imgdir_button]/edit.gif" alt="$vbphrase[edit_delete_message]border="0" /></a>
</if>
<if 
condition="$show['spacer']">
    </
div>
    
$spacer_close
</if>
<else />
<if 
condition="$show['spacer']">
    
$spacer_open
    
<div id="edit$post[postid]style="padding:0px 0px $stylevar[cellpadding]px 0px">
    <if 
condition="!$post['islastshown']"><!-- this is not the last post shown on the page --></if>    
</if>
<
br /><br />
<
table class="tborder" id="post$post[postid]cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="0" width="640" align="center">
<
tr>
<
td class="thead">
Nur f?r Mitglieder!
</
td>
</
tr>
<
tr>
<
td class="alt1">
<
img src="images/not_registered.jpg">
</
td>
</
tr>
</
table>
<if 
condition="$show['spacer']">
    </
div>
    
$spacer_close
</if>
</if>
<!-- / 
post #$post[postid] -->
<!-- / post #$post[postid] --> 



All times are GMT. The time now is 07:33 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.02581 seconds
  • Memory Usage 1,912KB
  • 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
  • (2)bbcode_code_printable
  • (2)bbcode_php_printable
  • (13)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
  • (40)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