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)

Harald_T 07-24-2005 10:00 PM

Gallery for vBulletin 3.5.X
 
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

Harald_T 07-25-2005 07:33 PM

Just to another thing:

This hack was first inspired by the "Thumbnail on Forumdisplay"-Hack, by Dechevious, it pointed me to the right way how to build this hack.

Rest of this is reserved for FAQ.

Allan 07-25-2005 08:01 PM

very nice your hack, congratulation Harald :)


"Click Install"

Impreza04 07-25-2005 08:06 PM

Thanks *clicks install*
Maybe I wont need to buy vBadvance gallery afterall

tamarian 07-25-2005 08:10 PM

Well done :up:

/installs

Boofo 07-25-2005 08:17 PM

I never thought I would ever use anything like this but I have to admit, I'm gonna play with it. Thank you, sir. ;)

Gio~Logist 07-25-2005 08:35 PM

does this give EACH MEMBER their own gallery? like vbgarage?

Harald_T 07-25-2005 08:38 PM

If you setup a special forum for a member, and mark it as a gallery, then yes.

It's not automatic generated.

Gio~Logist 07-25-2005 10:04 PM

so in other words, this doesnt normally function as a user's individual gallery?

GrendelKhan{TSU 07-26-2005 06:49 AM

sorrry for the n00b question but:

how do you "create a new template" and then "Fill in the following template-code:"?

Where do you fill in the code? I usually just fill in stuff one by one in the templates via ACP.

GrendelKhan{TSU 07-26-2005 07:20 AM

er...also.......
can you clarify this:
(from the install instructions):


1. In the Forum-Manager define one category as a gallery-category and set it as not visible.
does this mean?:
ACP>>forum manager>> add a forum called "gallery">> act as forum: "no" >>>Forum is Active: "no"

(that's my guess :/ )

2. Add the needed Forums for the gallery to the gallery-category and in the options set Gallery to 'Yes'

soo....
add forum>>parent forum/category:Gallery>>set what option to "yes"? :/

sorry again if these are stupid questions. first time installing major hack. :(

GrendelKhan{TSU 07-26-2005 07:57 AM

:( I suck. doesn't work.

I got to the end (guessed what to do on those parts in last post)

.....I made a "Gallery forum" (category) and well...its just a forum.
nothing else happens. just acts like it would normally. :ermm:

btw: I'm running Beta 4. dunno if that has anything to do with anything.

tamarian 07-26-2005 11:58 AM

Harald,

Have you considered requesting new hook locations from vBulletin to be made in forumdisplay? If you haven't seen it, there's a thread at vb.com for this purpose:

http://www.vbulletin.com/forum/showthread.php?t=142051

GrendelKhan{TSU 07-26-2005 01:38 PM

did anyone actually get this work on Beta 4 forum?

plz let me know. stuck :(

Harald_T 07-26-2005 04:15 PM

@Grendel:

Let's see, if we can fix your problem.

First of all, did you create the needed templates?

You do this:

ACP->Styles&Templates->Styles-Manager->Selecting from the Style-Options-MenĂ¼: Add a new template.

Give it the neccessary name and in the big field fill in the code for the template.

For setting the category up:

Set the Display-Order to '0', so that it isn't visible (but still accessable) and 'Act as Forum' to 'No', as you already thought.

Before the save-button for the forum-options you should have a new YES/NO-Option named 'Gallery'. This is the gallery-option. Set this to yes.

This should be all.

The effect you got sounds like, that you didn't set the Gallery-Option to yes. Did you also don't forget to run the needed query? Check your database, if there is a field called 'gallery' in your forum-table.

To be sure i will check the code for vB 3.5.0 Beta4 tonight.

Harald_T 07-26-2005 04:25 PM

Quote:

Originally Posted by gio~logist
so in other words, this doesnt normally function as a user's individual gallery?

To answer correctly: Yes, it doesn't. Maybe i can implement it in the future, i don't know yet.

Benj 07-26-2005 05:07 PM

Quote:

Originally Posted by Harald_T
To answer correctly: Yes, it doesn't. Maybe i can implement it in the future, i don't know yet.

would love that i would love for someone to come up with a kinda profile gallery

EasyTarget 07-26-2005 05:45 PM

I also tested this on beta 4, but when I got to the end and tried to add a new forum my add new forum option in the admincp was now broken.

Under enable/disable features it now has a blank line with a yes/no and after that there is no longer a save option.

It also seems that maybe one of the hooks had been added to beta 4 already? I don't know coding, but when I went to edit the forumdisplay.php file I noticed some changes from what you had listed to search for and what was in the actual php file.

I think it was this
Code:

eval('$threadbit .= "' . fetch_template('threadbit_deleted') . '";');
}

else

{

$show['moderated'] = (!$thread['visible'] AND can_moderate($forumid, 'canmoderateposts')) ? true : false;

eval('$threadbit .= "' . fetch_template('threadbit') . '";');

}

which isn't the same in beta 4 I believe.

Harald_T 07-26-2005 06:27 PM

O.k., thanks, i'll check this.

I've downloaded RC1 yet, so i will concentrating on this version.

Harald_T 07-26-2005 06:44 PM

Yup, i've checked it. They changed the way for building the threadbit-templates, so to see. I'll try to fix this asap.

EasyTarget 07-26-2005 06:45 PM

cool.. just got rc1 myself. good luck and I'll be sure to test it out when you're done.

Harald_T 07-26-2005 07:16 PM

O.k., got it working again. Wasn't much. I'll update it in a short time.

Harald_T 07-26-2005 07:31 PM

O.k., i've attached the new version of the hack.

Also, i've found an type-error in the original-text:

The new template to create isn't of course called "template_gallery" but "threadbit_gallery". Sorry for the typo.

And second: You have to add a new phrase.

Place it in forum-related and call it Gallery.

The text for the phrase could be: "Use as gallery?"

Bad Bunny 07-26-2005 11:06 PM

It doesn't say in the first post if this uses plugins, modifies code, etc. Could you fill that information out please?
On another note, I tried to reach your forums, and the page didn't load.

GrendelKhan{TSU 07-27-2005 06:46 AM

Quote:

Originally Posted by Harald_T
@Grendel:

Let's see, if we can fix your problem.

First of all, did you create the needed templates?

You do this:

ACP->Styles&Templates->Styles-Manager->Selecting from the Style-Options-Men?: Add a new template.

Give it the neccessary name and in the big field fill in the code for the template.

For setting the category up:

Set the Display-Order to '0', so that it isn't visible (but still accessable) and 'Act as Forum' to 'No', as you already thought.

Before the save-button for the forum-options you should have a new YES/NO-Option named 'Gallery'. This is the gallery-option. Set this to yes.

This should be all.

The effect you got sounds like, that you didn't set the Gallery-Option to yes. Did you also don't forget to run the needed query? Check your database, if there is a field called 'gallery' in your forum-table.

To be sure i will check the code for vB 3.5.0 Beta4 tonight.



omg you soooo rule.... I'm gunna try this ...but quick question:

I just download RC1. I WILL install it. But should upgrade to RC1 first, then try this again (from beginning? :x) or try this first then install RC1.

I got a little confused cause whether you guys were talking about beta 4 or RC towards the end there (and that update you posted).

GrendelKhan{TSU 07-27-2005 07:18 AM

Quote:

Originally Posted by Harald_T
O.k., i've attached the new version of the hack.

Also, i've found an type-error in the original-text:

The new template to create isn't of course called "template_gallery" but "threadbit_gallery". Sorry for the typo.

And second: You have to add a new phrase.

Place it in forum-related and call it Gallery.

The text for the phrase could be: "Use as gallery?"

whoohoo!! that did it......er...ALMOST

only thing is it doesn't create a thumbnail of the upload. :(

I get one of those X boxes instead, however when you click the image does pop up in a separate window, so it is "working".

I know you mentioned something about this originally being from a different hack. Do I need to install soemthing else first to get the thumbnails to work?

soooo close yet........ again thank you in advanced for everything.... pumped to get this working :)


ps: Still running beta 4 (figure I'll update later....first wanna get this to work :))

tamarian 07-27-2005 02:07 PM

Quote:

Originally Posted by Harald_T
O.k., i've attached the new version of the hack.

Harald, seems you attached it to a post? The old version still shows up at the top.

Harald_T 07-27-2005 04:20 PM

@Grendel: Did you attach the files? It doesn't work with linked Images.

Also be sure, that your forum generates the thumbnails. The gallery uses the standard thumbs from the forum, that's all.

-=Sniper=- 07-28-2005 12:49 AM

just a question, is that one image per thread? so each image gets its own comments etc?

do you think something like this would work better, where as you have the layout like yours for the gallery but when you enter it lists all the images?

http://www.hardwareforums.com/showthread.php?t=5803

I used template condition to do the above.

haiboss 07-28-2005 02:23 AM

thx man, very cool :)

Chris M 07-28-2005 12:42 PM

I'd prefer to see a plugin version of this released, or at least convert as much of it to plugins as possible - You can use the product manager to automatically install the queries and templates and phrases and you can use the new AdminCP Hooks in forum.php to remove that file edit :)

Satan

Harald_T 07-29-2005 06:02 PM

I'm willing to do it so, but first i have to learn how to do it exactly.

Sovereign 07-29-2005 06:13 PM

The Gallery broke the forums I installed it on.

Harald_T 07-29-2005 06:43 PM

That's strange. I'll look after it tomorrow.

Sovereign 07-31-2005 02:20 AM

Hate to bug you, but I have a client (paid work) who I was supposed to install this for, who is getting antsy...

Harald_T 07-31-2005 10:23 AM

It looks like the wrong template is called up, although it is strange, that no posts are listed.

Could it be, that you used the old zip-file? It was only for 3.5.0 Beta 3, not for RC1. Please check out the zip-file, which is uploaded now. There were some minor code-changes. Also, there was a typpo in the old install-guide.

StarBuG 07-31-2005 11:41 AM

Some suggestions about things I noticed when viewing your gallery:

1) The Info boxes are not all the same hight
2) Clicking on an image to enlarge it should open a new window not load in the same
3) Sometimes no thumbnails are shown

Otherwise great hack.
Hope you develope it more ;)

StarBuG

Harald_T 07-31-2005 01:24 PM

@Starbug:

1. The width of the info-boxes is because of the length of the text. I'll change this.
2. That's a good idea, yes. I'll do so.
3. The only situation, no thumbs are shown are:

- It's a linked image, not an attachment.
- There is no attachment in the first post.

Otherwise then this situations, thumbs should be shown.

Chris_D 07-31-2005 05:44 PM

Quote:

An error occurred while attempting to execute your query. The following information was returned.
error number: 1146
error desc: Table 'munneh_sin.forum' doesn't exist
I only get as far as the SQL query unfortunately and I get this error message. munneh_sin is the database name. I didn't set the database up, nor do I know much about SQL databases. Has my host stopped me from doing it?

The query is as it is in the installation readme: "ALTER TABLE `forum` ADD `gallery` TINYINT( 4 ) NOT NULL"

Harald_T 07-31-2005 06:04 PM

Please check out your database with phpmyadmin. Could it be, that the tables have a prefix (e.g. 'vb_forum' instead of 'forum')? If so, you have to change the query.


All times are GMT. The time now is 10:36 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.02240 seconds
  • Memory Usage 1,821KB
  • 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_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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