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)

UtahNissans 05-28-2006 08:18 PM

Here is my gallery forumdisplay, can someone please help me identify my problem with the upload button not appearing?


PHP Code:

$stylevar[htmldoctype]
<
html dir="$stylevar[textdirection]lang="$stylevar[languagecode]">
<
head>
<
meta name="description" content="$foruminfo[description]/>
<
title>$vboptions[bbtitle] - $foruminfo[title]</title>
$headinclude
</head>
<
body>
$header
$navbar

<br />
<
table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-bottom:3px">
<
tr valign="top">
    <
td class="smallfont"><if condition="$show['newthreadlink']"><a href="newthread.php?$session[sessionurl]do=newthread&amp;f=$foruminfo[forumid]"><img src="$stylevar[imgdir_button]/upload.gif" alt="$vbphrase[post_new_thread]border="0" /></a><else />&nbsp;</if></td>
    <if 
condition="$pagenav"><td align="$stylevar[right]">$pagenav</td></if>
</
tr>
</
table>

<if 
condition="$show['threadslist']">
<!-- 
threads list  -->

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

<if 
condition="$show['threads']">
<
tr>
    <
td colspan="6">
    <
table align="center">
        <
tr>
            
$threadbit_gallery    
            
<if condition="$col">
            <
td colspan=$col class="alt1">&nbsp;</td>
            </if>
        </
tr>
    </
table>
    </
td>
</
tr>
<!-- 
end show threads -->
<else />
    <!-- 
show no threads message -->
    <
tr>
        <
td class="alt1" colspan="$foruminfo[bottomcolspan]align="center">
            <
div style="padding: 16px">
                <if 
condition="$show['noposts']"><strong>$vbphrase[no_posts_in_this_forum]</strong><else /><strong><phrase 1="$daysprune">$vbphrase[no_posts_last_x_days_forum]</phrase></strong><br />
                <
span class="smallfont">$vbphrase[try_controls_below_for_older_posts]</span></if>
            </
div>
        </
td>
    </
tr>
    <!-- 
end show no threads message -->
</if>
</
table>



<!-- 
controls below thread list -->
<
table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-top:3px">
<
tr valign="top">
    <
td class="smallfont"><if condition="$show['newthreadlink']"><a href="newthread.php?$session[sessionurl]do=newthread&amp;f=$foruminfo[forumid]"><img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]border="0" /></a><else />&nbsp;</if></td>
    <if 
condition="$pagenav"><td align="$stylevar[right]">$pagenav</td></if>
</
tr>
</
table>
<!-- / 
controls below thread list -->


<
br />



<!-- 
############## END THREADS LIST ##############  -->
</if>


<!-- 
forum rules forum jump -->
<
table cellpadding="0" cellspacing="0" border="0" width="100%" align="center">
<
tr valign="top">
    <
td align="right" width="100%">
        
$forumjump
        
<if condition="!$show['popups'] AND $show['adminoptions']">
            <
br />
            <
form action="moderator.php" method="get">            
            <
input type="hidden" name="s" value="$session[sessionhash]/>
            <
input type="hidden" name="f" value="$forumid/>
            <
div class="smallfont"><strong>$vbphrase[admin_tools]</strong>:</div>
            <
select name="do" onchange="this.form.submit();">
                <
optgroup label="$vbphrase[admin_tools]">
                    <
option value="modposts" selected="selected">$vbphrase[view_posts_queue]</option>
                    <
option value="modattach">$vbphrase[view_attachment_queue]</option>
                    <
option value="move">$vbphrase[mass_move]</option>
                    <
option value="prune">$vbphrase[mass_prune]</option>
                    <if 
condition="$show['addmoderator']">
                        <
option value="addmoderator">$vbphrase[add_moderator]</option>
                    </if>
                </
optgroup>
            </
select>$gobutton            
            
</form>
        </if>
    </
td>
</
tr>
</
table>
<!-- / 
forum rules forum jump -->

$footer
</body>
</
html


DrewM 05-29-2006 03:02 PM

is the image in the buttons folder for all styles? Hwats your website?

wezoo 05-29-2006 03:54 PM

Larry
the upload appears fine on mine and i did nothing other than what it says to do it... ?

just make sure the icon is in the images/buttons/ folder !!!

did you manage to get rid of the german text ? im getting Nur f?r Mitglieder!
for none registered users, ill see if i can figure it out, im not too clever with this stuff :)


wez

Harald_T 05-29-2006 03:54 PM

@UtahNissans: I also would suggest, that you check, if the upload.gif-file is uploaded to your images/buttons-folder. Remember also, that it can be style-dependent, where you have to place button-images.

@Wez: No panic. I'll stay member. And the unfeature function will be done tonight.

Bernd 05-29-2006 04:10 PM

@ Harald

I've noticed that the user profile 'latest gallery submissions' is not included in your last uploaded file.

What plugin has to be added to allow this? (name, code, hook location).

Edit, saw u posted at about the same time. I'll wait for the updated release.

imported_magjr 05-29-2006 04:19 PM

any luck with mines harald?

wezoo 05-29-2006 04:33 PM

Bernd

this is now working i beleive !!!! ?

it does on mine anyway, theres a downloadable .XML file on the previous page or two ....

As for me , anyone know how to get rid of this "Nur für Mitglieder"
ive looked in the languages and i cant find it for the life of me

cheers

Harald_T 05-29-2006 04:58 PM

@Wez: Look into the template "gallery_postbit". There you find it. It's not phrased at the moment.

@all users: If you find some more, please post it here. I'll check them and phrase them out.

imported_magjr 05-29-2006 05:00 PM

harald,

My issue was once the gallery is enabled, my server seizes up and shuts down forcing me to restart apache. I sent you a pm wiht the link to my board and the admin login

wezoo 05-29-2006 05:15 PM

the only other bit of german language i can find is

Dateigr??e

not sure where to change this, apart for that its all i can find

Harald, what bit controlls where the featured images are placed, i would like to put it across the top under the nav bar, is this an easy task, sorry for asking i know you got your hands full at the moment ;)

wez

Bernd 05-29-2006 05:18 PM

I just read the html file of the actual product zip file, and the template modification is listed there.

Code:

<!-- gallery-featured header -->
<table cellspacing="0" cellpadding="0" align="center">
<tr>
$featured_gallery
</tr>
</table>

displays the featured gallery bit. Relocate that somewhere in your header.
As for phrase replacement, i have explained a few pages back how to change that yourself.

Harald_T 05-29-2006 05:25 PM

@Wez: Dateigröße = Filesize

@imported_magjr: I'll a look after it tonight.

wezoo 05-29-2006 05:38 PM

Brilliant Bernd !!!!
that worked :)

any idea where i remove the origional ?
as i have it twice now :)

Bernd 05-29-2006 05:43 PM

Just do a template search on $featured_gallery, and it will return the template files which contains that phrase.

wezoo 05-29-2006 05:48 PM

thanks burnd

sorry for my ignorance, its a big learning curve for me :)

Bernd 05-29-2006 06:13 PM

lol :P
I didn't know my name had a past tense ;)

Anyways, no problem. I'm a vbulletin noob myself and know how frustrating it can be at times.

wezoo 05-29-2006 06:39 PM

hehe Sorry Bernd <------ note correct spelling ;)

anyway thats sorted i think, i managed to put it under the nav bar , only problem was it stayed there no matter where you went, i only want it there on the forum home, but hey beggers cant be choosers so ive put it back to where it was for now, but thanks all the same.

heres a problem for you...(Harald) ;)
when you click on the image and it takes you to the thread it shows your image and the thumbnail,

is it possible NOT to display the thumbnail ? it just looks rather messy as the thumbnail is scaled up, id rather not show it at all in the thread.

sorry i keep asking all these questions but i never enjoyed myself hacking my forum this much :)



EDIT : just noticed that if you go to the relevant thread,
The pictures are displayed in the thumbnails section and thumbnails are displayed in pictures !!!



wez

Bernd 05-29-2006 07:43 PM

That should be prevented if you upload the correct featured thumbnail image name. Check out the gallery options for more details.

wezoo 05-29-2006 08:23 PM

thanks bernd that sorted it :)
so all the thumbnails for all images have to be called the same ?

or can you use a wild card like thumb*.jpg

Harald_T 05-29-2006 09:09 PM

@Wez: You can just call each thumbnail for the featured header "test.jpg" for example.

You just have to fill in the name in the vBi-Gallery-Settings. That's all.

But i'm testing out atm, how to avoid this. So you just have to upload a thumbnail, that should it do.

Bernd 05-29-2006 09:14 PM

Wildcards are currently not supported. I can code something for the general gallery display template, but Harald said that the thumbnail name was filtered through the sql statement itself. I haven't looked into it yet.

A way to check for a wildcard in the template file is using the function STRPOS.

http://nl3.php.net/strpos.

I'll look into it 2morrow.

crashys 05-29-2006 09:42 PM

I got a problem after finishing all code modifications with this latest mod.
Attachment 48485
When i click to see the image, the image apears, but there is no thumbnail of it.

At the installation text its is mentioned "Please ensure, that your vbulletin is capable of creating thumbnails for your attachments." But i dont find any option or any place to check this.

Can anyone help me?

Bernd 05-29-2006 09:56 PM

Vbulletin options -> image settings
vbulletin options -> message attachment options
Attachments -> Extensions & sizes. Enable thumbnail creation for each image type there.

wezoo 05-29-2006 10:05 PM

guys im realy getting there now :)

thanks for being so patient with me

one last question ( i hope) is it at all possible to display the featured images under the navbar but only on the forum home so its not visible if you visit a thread ?

Harald , will you check to see i have done exactly what you asked on my forum ?

thanks

wezoo 05-29-2006 11:18 PM

Found a bug ( i think)

on latest gallery submissions it shows the link to the thumbnails rather than the image ?

Treasure Quest 05-29-2006 11:35 PM

Hello and thanks for this hack!

I just installed and I see 2 gallery boxes under my navbar. How can I remove the top one?

http://www.treasurequestxlt.com/community/
Thanks,

Gregory

wezoo 05-29-2006 11:47 PM

Hi

in you vboptions - gallery

there you will find a check box for latest images and random images

you must have them both checked, you only need one !!!

Treasure Quest 05-30-2006 12:14 AM

That worked! Thank you.

crashys 05-30-2006 07:27 AM

Quote:

Vbulletin options -> image settings
vbulletin options -> message attachment options
Attachments -> Extensions & sizes. Enable thumbnail creation for each image type there.
I have checked that, and its all ok as mentioned, but still i have no thumbnails... :|

http://www.quadaventuratt.net/forumdisplay.php?f=6

Bernd 05-30-2006 07:57 AM

if thumbnails were disabled at first, you may have to rebuild them through update counters. Also make sure that guests have permission to view thumbnails in that forum.

Different topic, is it possible to allow the featured item in thread tools to appear in non-gallery threads too? That way an admin can feature any thread anywhere.

wezoo 05-30-2006 09:16 AM

Yeahhh Bernd thats a real nice idea

Harald_T 05-30-2006 05:35 PM

Quote:

Originally Posted by crashys
I have checked that, and its all ok as mentioned, but still i have no thumbnails... :|

http://www.quadaventuratt.net/forumdisplay.php?f=6

I can't check it, have no permissions. Can you give me a test account?

Harald_T 05-30-2006 05:37 PM

@Bernd: This is possible.

Please find in your showthread_template:

Code:

<if condition="$show['editpoll']"><div><label for="ao_edp"><input type="radio" name="do" id="ao_edp" value="editpoll" />$vbphrase[edit_poll]</label></div></if>
right after this insert following code:

Code:

<if condition="$show['movethread']">
<div>
<label for="ao_feat">
<input type="radio" name="do" id="ao_feat" value="feat" />Feature
</label>
</div>
</if>
<if condition="$show['movethread']">
<div>
<label for="ao_unfeat">
<input type="radio" name="do" id="ao_unfeat" value="unfeat" />Unfeature
</label>
</div>
</if>

That's almost all.

To make the unfeature function work, change the code of the plugin "gallery_featured" to:

Code:

if ($_POST['do'] == 'feat')
{

if (!can_moderate($threadinfo['forumid'], 'caneditthreads'))
        {
                print_no_permission();
        }
       
        // check if there is a forum password and if so, ensure the user has it set
        verify_forum_password($foruminfo['forumid'], $foruminfo['password']);

$db->query_write("UPDATE " . TABLE_PREFIX . "thread SET featured=1 WHERE threadid ='$threadid'");


$vbulletin->url = 'showthread.php?' . $vbulletin->session->vars['sessionurl'] . "t=$threadid";
        eval(print_standard_redirect('',true,true));
}
if ($_POST['do'] == 'unfeat')
{

if (!can_moderate($threadinfo['forumid'], 'caneditthreads'))
        {
                print_no_permission();
        }
       
        // check if there is a forum password and if so, ensure the user has it set
        verify_forum_password($foruminfo['forumid'], $foruminfo['password']);

$db->query_write("UPDATE " . TABLE_PREFIX . "thread SET featured=0 WHERE threadid ='$threadid'");


$vbulletin->url = 'showthread.php?' . $vbulletin->session->vars['sessionurl'] . "t=$threadid";
        eval(print_standard_redirect('',true,true));
}

That should do it.

Bernd 05-30-2006 07:09 PM

That would be great.
Looking forward to it.

Harald_T 05-30-2006 07:09 PM

Edited my last post.
See it for instructions.

crashys 05-30-2006 08:07 PM

Harald_T: i've just PM you with the login/password to access the forum to check whats wrg. :|

wezoo 05-30-2006 08:44 PM

seems the unfeature wont work Harald

it appears on an ordinary thread but not in my gallery ?

any ideas ?

Harald_T 05-30-2006 08:48 PM

@Wez: Edit your gallery_showthread-template.

In the template find:

Code:

<if condition="$show['movethread']">
<div>
<label for="ao_feat">
<input type="radio" name="do" id="ao_feat" value="feat" />Feature
</label>
</div>
</if>

after this, insert:

Code:

<if condition="$show['movethread']">
<div>
<label for="ao_unfeat">
<input type="radio" name="do" id="ao_unfeat" value="unfeat" />Unfeature
</label>
</div>
</if>

This should do it.

Harald_T 05-30-2006 08:53 PM

Quote:

Originally Posted by crashys
Harald_T: i've just PM you with the login/password to access the forum to check whats wrg. :|

Done it. You didn't set "Enable Thumbnails" to yes, in your attachment-settings.

It was this setting:

Code:

Mostrar Miniatura para este Tipo?Isto s? se aplica a arquivos de imagem com extens?es: bmp, gif, jpe, jpg, jpeg, png, psd, tif e tiff. A cria??o de uma miniatura de qualquer tipo de imagem n?o ? garantida.
I've done it with jpg, and now it's working. But not with "Teste2", because in this posting you've used an linked image. This is not working, yet.

wezoo 05-30-2006 08:57 PM

WEHeeeeeeeeeeeeeyyyyy
pure class !!!!
nice one Harald,

what else can i ask for ???? ;)


All times are GMT. The time now is 02:22 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.02585 seconds
  • Memory Usage 1,890KB
  • 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
  • (7)bbcode_code_printable
  • (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
  • (1)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