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)

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 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.01803 seconds
  • Memory Usage 1,745KB
  • 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
  • (6)bbcode_code_printable
  • (2)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