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)

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 05: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.02290 seconds
  • Memory Usage 1,808KB
  • 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
  • (1)bbcode_php_printable
  • (3)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