Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Gallery for vBulletin 3.5.X Details »»
Gallery for vBulletin 3.5.X
Version: 1.23, by Harald_T Harald_T is offline
Developer Last Online: Jan 2012 Show Printable Version Email this Page

Version: 3.5.4 Rating:
Released: 07-24-2005 Last Update: 05-24-2006 Installs: 346
DB Changes Uses Plugins Template Edits
Code Changes  
No support by the author.

Gallery-Hack:

This hack is a gallery-system for your forum.

Updated 05/25/06

New in this version 1.23:

- Alternative layout
- english phrases
- Addition for the memberprofile
- multiple picture-upload
- Featured threads

What's still to come?

- Possibility for users, to choose the different layout.
- Possibility for file-upload, not only pictures.
- Language-Pack for german users

Have fun with the hack.

For a live-demo look here:

http://www.sf-galerie.de

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #992  
Old 05-30-2006, 09:16 AM
wezoo wezoo is offline
 
Join Date: Apr 2006
Posts: 86
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeahhh Bernd thats a real nice idea
Reply With Quote
  #993  
Old 05-30-2006, 05:35 PM
Harald_T Harald_T is offline
 
Join Date: Aug 2003
Location: Kleve, Germany
Posts: 531
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #994  
Old 05-30-2006, 05:37 PM
Harald_T Harald_T is offline
 
Join Date: Aug 2003
Location: Kleve, Germany
Posts: 531
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@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.
Reply With Quote
  #995  
Old 05-30-2006, 07:09 PM
Bernd Bernd is offline
 
Join Date: Apr 2005
Posts: 138
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That would be great.
Looking forward to it.
Reply With Quote
  #996  
Old 05-30-2006, 07:09 PM
Harald_T Harald_T is offline
 
Join Date: Aug 2003
Location: Kleve, Germany
Posts: 531
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Edited my last post.
See it for instructions.
Reply With Quote
  #997  
Old 05-30-2006, 08:07 PM
crashys crashys is offline
 
Join Date: Oct 2003
Location: Lisboa
Posts: 67
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Harald_T: i've just PM you with the login/password to access the forum to check whats wrg. :|
Reply With Quote
  #998  
Old 05-30-2006, 08:44 PM
wezoo wezoo is offline
 
Join Date: Apr 2006
Posts: 86
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

seems the unfeature wont work Harald

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

any ideas ?
Reply With Quote
  #999  
Old 05-30-2006, 08:48 PM
Harald_T Harald_T is offline
 
Join Date: Aug 2003
Location: Kleve, Germany
Posts: 531
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@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.
Reply With Quote
  #1000  
Old 05-30-2006, 08:53 PM
Harald_T Harald_T is offline
 
Join Date: Aug 2003
Location: Kleve, Germany
Posts: 531
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #1001  
Old 05-30-2006, 08:57 PM
wezoo wezoo is offline
 
Join Date: Apr 2006
Posts: 86
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

WEHeeeeeeeeeeeeeyyyyy
pure class !!!!
nice one Harald,

what else can i ask for ????
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:46 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05879 seconds
  • Memory Usage 2,313KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (6)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete