PDA

View Full Version : Gallery for vBulletin 3.5.X


Pages : [1] 2 3 4 5 6

Harald_T
07-24-2005, 10:00 PM
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
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
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 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
@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
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
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
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 existI 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.

Chris_D
07-31-2005, 06:23 PM
Aha, I think I know what I've done then. Cheers Herald, will let you know how I get on.

Chris_D
07-31-2005, 07:18 PM
Yeah, sorted it :)

Sovereign
07-31-2005, 07:46 PM
I had the RC1 version, *tries installing again* Success, except the server I installed on doesn't have GD or ImageMagick (no thumbs...)

Harald_T
07-31-2005, 08:57 PM
That's bad, although you can install IM afterwards (and GD also, within the PHP-Package).

Made some new things:
- Latest Image-Thumbs on Forumhome
- Setting the number of rows, which are shown, in the forum-options.
- No editing of admincp/forum.php, the functions are now plugins.

I will update it tomorrow.

jesus likes pie
07-31-2005, 10:53 PM
hell yes!

/me installs.

jesus likes pie
07-31-2005, 10:54 PM
rofl you spelled "galery" wrong. It's not "galerie"

xxskullxx
07-31-2005, 11:31 PM
As did you. His spelling is correct for his language....

seangworld
08-01-2005, 01:00 AM
@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.

looks good, i may dump my coppermine and use this instead.

Sovereign
08-01-2005, 01:08 AM
YAY! Plugins r +3h pwnz0r. h@x0rz r +eh suck. (Plugins own, code hacks suck)

seangworld
08-01-2005, 05:50 AM
hell yes!

* jesus likes pie installs.

ok, i ran the query - done.
now, i got forumdisplay.php open and it cant find anything you said to FIND and REPLACE.

...... what's the deal?

StarBuG
08-01-2005, 06:54 AM
Another good addition to your hack would be:

A separated rating system not using thread rating.
Make a click option from 1 to 10
then make a vote average calculation

This would go nicely with a "dia show"
If you choose a category a random image is shown and you can vote on it.
If you have voted the next random image is shown and you can vote on that
beside the next image the old image is shown as thumbnail with the avarage voting shown below

But this would be a major addition

It?s just an idea ;)

mooj
08-01-2005, 10:14 AM
Harald_T,

regarding of this attractive idea :

take an example (IPB):
http://www.lifejourney.com.sa/community/

its displaying the last 4 Thumbnails from ( forum # 143 ) which is for ( digital arts )
(AND )
displaying the last 4 Thumbnails from ( forum # 144 ) which is for ( Photography images )

But ..

the first row displays last 4 Thumbnails from cat #143 (under the cat itself )
and the other row doing tha same for another cat ..

you can use <IF conditon > in the tamplate to do this ..
some thing like this ..

-------------------------------------------
<IF condition="show forums">

forum content .. bla bla bla

<IF condition="forumID=XX, XX">
display the last 4 Thumbnails row
</IF>

</IF>
-------------------------------------------

;)

Sovereign
08-01-2005, 02:15 PM
Thumbnails still don't work! I don't even get red Xs. http://www.civicowners.com/forum/forumdisplay.php?f=48

Harald_T
08-01-2005, 04:17 PM
As far, as i could see, the gallery works (i registered and made an test-upload).
Did you installed Image Magick or GD?

If so, are you sure, you enabled the thumbs in the attachment-manager (in the AdminCP)?

Harald_T
08-01-2005, 04:20 PM
ok, i ran the query - done.
now, i got forumdisplay.php open and it cant find anything you said to FIND and REPLACE.

...... what's the deal?

Huh? Nothing? But it should be, unless Jelsoft would have released two different versions of RC1.

If it doesn't work, please contact me by mail.

Harald_T
08-01-2005, 05:20 PM
Good News: Beside of ONE file-edit the rest of the gallery-system works now as a plug-in. It seems, i begin to understand, how the plugins works... :D

seangworld
08-01-2005, 05:41 PM
email sent.

Sovereign
08-01-2005, 05:49 PM
Still doesn't show up...*checks admin panel* GD is present, version 2+
Thumbs are enabled for all image types.

Harald_T
08-01-2005, 06:05 PM
Numb question: Did you enable Thumbs in the image-options?

Sovereign
08-01-2005, 06:42 PM
Yes...PNG thumbnail generation is off. Having it on/off had no effect on my issue.

Harald_T
08-01-2005, 07:21 PM
Did you also checked under "Message Attachment Options" if Thumbnails are enabled?
And did you run Import & Maintenance -> Update Counters -> Rebuild Attachment Thumbnails?

seangworld
08-01-2005, 08:21 PM
Did you also checked under "Message Attachment Options" if Thumbnails are enabled?
And did you run Import & Maintenance -> Update Counters -> Rebuild Attachment Thumbnails?

ok i noticed you changed the zip file, i redownloaded it and checked. i will try and reinstall later today. i'll reply again and click install if all goes well. thanks harald. :)

seangworld
08-02-2005, 08:21 AM
ok i noticed you changed the zip file, i redownloaded it and checked. i will try and reinstall later today. i'll reply again and click install if all goes well. thanks harald. :)

ok, it's still not working right for me. i went thru all the instructions, and looked thru all the replies here so far, nothing helped.

sigh.

take a look at my forum: http://www.seangworld.com/forums you'll see 'latest threads' at top (cuz im not german or whatever that lang was).

also, when i went to make the Gallery category, there were no 2 options just before the SAVE button.

let's begin with that and see what fixes you have up your sleeve, then we'll move on.... lol

Harald_T
08-02-2005, 03:31 PM
Please notice

There is a major bug inside of the code, which is throwing the ordinary forums around. I'll fix this tonight, but a.t.m. i don't have the time for it, so please wait for the update tonight (german time).

I'm very sorry for this.

seangworld
08-02-2005, 06:02 PM
Please notice

There is a major bug inside of the code, which is throwing the ordinary forums around. I'll fix this tonight, but a.t.m. i don't have the time for it, so please wait for the update tonight (german time).

I'm very sorry for this.

ok, and to add to it, i just noticed a new error when going from page to page...

Parse error: parse error, unexpected '<' in /home/www/seangworld/forums/forumdisplay.php(105) : eval()'d code on line 1

seangworld
08-02-2005, 09:04 PM
hey, i just found out what i did wrong. i added the xml as a plugin, not a product. i didnt see the really tiny ass link underneath my list of products (which is just vbulletin). lol

ok, the 2 options are there now, so im checking against your instructions and trying again...

Harald_T
08-02-2005, 09:12 PM
@Sean: Please wait, till i found the bug.

Or use the older instructions, they should work.

seangworld
08-02-2005, 09:40 PM
@Sean: Please wait, till i found the bug.

Or use the older instructions, they should work.

i uninstalled it completely, let me know when it's bug free. i actually didnt like the fact that you can only upload one pic at a time anyway. for now, i'll stick with coppermine.

mooj
08-04-2005, 03:49 PM
helo Harald_T,

i just installed the mod and faced a porb..

how can i define cat # 1 and 2 as a normal forum ?
i turn (Act as a gallery? ) to "NO" ..

But its still displaying the cat a gellary .. !!

My all forums changed to (gallery cat's) ??? :ermm:

Harald_T
08-04-2005, 04:15 PM
Yup, i know, as i said before, there is a bug in this version. I'm busy on fixing it, and i'm very sorry for this.

As far as i can see now, it's a problem with the plugins, if the is build in the forumdisplay.php, then it's all working fine.

I'll hope i can fix it till the weekend.

mooj
08-04-2005, 09:02 PM
Umm, do you have the old instractions so i can install it manully .. ??

:)

tinjon
08-05-2005, 01:53 AM
questions.
1)can i disable viewing for guests? allow only members to view pictures?
2) what happens if a thread has multiple attachments? does it stop working or something?

thanks.

Harald_T
08-05-2005, 07:07 PM
@mooj: I'll post the instructions at the weekend. At the moment i have not enough time to fix it right, so i decided to post the old instructions. It worked, so i think, it's the best solution.

@tinjon: Yes, you can disable view for guest. The gallery uses the same was as the forum does. The gallery is basicly nothing else than a part of the forum, which looks like a gallery.

vBintense
08-05-2005, 07:39 PM
I just installed and it was messin up my norm forums so I looked and found an error.

In plugins forumdisplay_query the gallery hook is wrong it should be if ($foruminfo['gallery']=='1')
{
$displaythumbs = true;
}


if ($displaythumbs == true)
{
$hook_query_fields .= ", attachment.attachmentid AS attachmentid";
$hook_query_joins .= " LEFT JOIN " . TABLE_PREFIX . "attachment as attachment ON (attachment.postid = thread.firstpostid)";
}Before it was if ($foruminfo['gallery']=='1')
{
$displaythumbs = true;
}


if ($displaythumbs=true)
{
$hook_query_fields .= ", attachment.attachmentid AS attachmentid";
$hook_query_joins .= " LEFT JOIN " . TABLE_PREFIX . "attachment as attachment ON (attachment.postid = thread.firstpostid)";
} and it was messing up the forums, works fine with this fix.

mooj
08-06-2005, 08:31 AM
insane-topics,

you are >>> :up:

its working fine ..

thanks man .. :)

Joe Gronlund
08-06-2005, 03:22 PM
I am having a problem importing the plugin, it just wont upload properly, all my other plugins upload fine??

Anyone else have this problem?

I get invalid argument error???

Harald_T
08-07-2005, 02:49 PM
@Insane: Yupp, that it was. Thanks, i didn't notice that '==' instead of '='.

The fixed version is now uploaded.

Harald_T
08-07-2005, 03:06 PM
@Joe: Did you upload the included XML-File as an Product? Please do not import it as an plugin, cause it's a kind of package of plugins.

vBintense
08-07-2005, 03:28 PM
@Insane: Yupp, that it was. Thanks, i didn't that '=' instead of '='.

The fixed version is now uploaded.

Welcome , and nice hack btw :)

Joe Gronlund
08-07-2005, 03:28 PM
@Joe: Did you upload the included XML-File as an Product? Please do not import it as an plugin, cause it's a kind of package of plugins.

How do you go about uploading it as a product?

I just uploaded it directly as an XML file..

Thanks

Joe

vBintense
08-07-2005, 03:31 PM
How do you go about uploading it as a product?

I just uploaded it directly as an XML file..

Thanks

Joe

Admincp [plugins] >> manage products >> import (at the bottom)

Joe Gronlund
08-07-2005, 03:40 PM
Admincp [plugins] >> manage products >> import (at the bottom)

I see now,, thank you :)

ThePimp
08-08-2005, 04:00 AM
This plugin has problems with DB prefixes. It's a pretty nasty error. Can't get it to work properly at all. Uninstalls until bugs are worked out.

Harald_T
08-08-2005, 08:51 PM
You're right. That is still not be done. I'll fix it tomorrow.

Harald_T
08-09-2005, 08:25 PM
@Pimp: Just try the latest version. It should handle prefixes now.

ThePimp
08-10-2005, 09:11 AM
Is there a way to get this on the ForumDisplay under the navbar also?

ThePimp
08-10-2005, 09:36 AM
Also, Rating & Filesize don't seem to be working. Is this rating system based on vb's built in rating system?

EDIT: Is there a way to remove the Thread Message box from the Gallery Forums, and make it Uploads Only?

EDIT 2: N/M on the rating thing, I had it set to 5 votes before showing a rating.

EDIT 3: Does this split into multiple pages at some point? Or is it just one long thumb gallery?

Gizmo5h1t3
08-10-2005, 01:59 PM
same here, rating and filesize arent working on mine....also, usinbg the microstats hack, im getting a display of uncached templates at the base of the page...

Uncached templates: forumdisplay_gallery (1)
Uncached templates: latestgallery (5)
Uncached templates: threadbit_gallery (11)

Joe Gronlund
08-10-2005, 02:07 PM
Is there any way to get this hack to work with the seperate stickies from normal threads hack? When the gallery is turned on, all the sticky threads go back to being unseperated...

Thanks for any help you can give...

Harald_T
08-10-2005, 04:39 PM
@Pimp: Rating - Atm it uses the normal rating system of vB. I'm planing of adding more rating points.

Only upload: That's a problem at the moment, as Jelsoft changed the way to build up the postbit. I'm trying to find out how the new function works.

The page breaks after a couple of postings (in my forum it's set to 20). Check out your normal vBulletin-Options, there you can set it.

@Gizmo: Yup, you're right. I think i'll make another plugin for this.

@Joe: Can you show me an example for this?

Joe Gronlund
08-10-2005, 04:54 PM
@Joe: Can you show me an example for this?

Sure

Here is a screenshot with the stickies thread hack, without the gallery XML uploaded..

http://www.jadedsouls.net/joe/gallery_prob_1.jpg

Here is a screenshot with the stickies thread hack, with the gallery XML uploaded.. Note the threads are all together...

http://www.jadedsouls.net/joe/gallery_prob_2.jpg

-Forums are ver 3.5.0 RC2-


Thanks for any help you can provide...

Joe

Harald_T
08-10-2005, 09:01 PM
I think it must be a problem of the threadbit. I'll have a look after it.

ThePimp
08-11-2005, 12:50 PM
@Pimp: Rating - Atm it uses the normal rating system of vB. I'm planing of adding more rating points.

Only upload: That's a problem at the moment, as Jelsoft changed the way to build up the postbit. I'm trying to find out how the new function works.

The page breaks after a couple of postings (in my forum it's set to 20). Check out your normal vBulletin-Options, there you can set it.

@Gizmo: Yup, you're right. I think i'll make another plugin for this.

@Joe: Can you show me an example for this?

I'm not sure if I caught the answer to this...
Is there a way to add this to the ForumDisplay?

Also, I checked my vbOptions... And have all of my page splits set to 50. My current gallery is displaying 120 (approx) with no split yet.

Any ideas?

Harald_T
08-11-2005, 03:30 PM
That's strange. I've checked it twice, and it works fine. Check out my gallery for it:

http://www.scifi-fan.net/forumdisplay.php?f=60

Otherwise, is it possible to have a look inside your forum? Or is it a local installation?

ThePimp
08-12-2005, 12:55 AM
I'll dig around and see if I can figure out what's going on with the pages.

*Also.....
My Unregistered / Not Logged in users see RedXs, as I don't want to allow them to view attachments. Is there a way to show them a default graphic instead, that tells them to register to view the images?

Harald_T
08-12-2005, 03:39 PM
I think there is a way to do this, yes.

My Todo-List is getting bigger. Thanks god i have a free week next week... :D

ThePimp
08-13-2005, 02:55 AM
I think there is a way to do this, yes.

My Todo-List is getting bigger. Thanks god i have a free week next week... :D

YAY! LOL... I'll look foward to it. I think the Unregistered thing has something to do with the permissions, but I just don't know which variable to pull from, otherwise, I'd do it myself.

Harald_T
08-13-2005, 10:39 AM
Did you thought on something like this (see attachment)?

Then you have to change the template "threadbit_gallery" to the following:


$ids[forumids]
<if condition="$rows">
<if condition="$rows == 1">
</tr><tr>
</if>
<td class="alt1Active" id="t$thread[threadid]" title="$thread[preview]" align="center" width="170" height="170">
<table>
<tr>
<if condition="$show['member']">
<td width="170" height="170" align="center">
<if condition="$displaythumbs">
<a HREF="attachment.php?attachmentid=$thread[attachmentid]">
<img src="attachment.php?attachmentid=$thread[attachmentid]&stc=1&thumb=1" border=0 align="center">
</a><br>
<else />
<img src="$stylevar[imgdir_misc]/nothumb.gif" width=75 height=56 border="0">
</if>
<br />
</td>
</tr>
<tr>
<td class="tborder">
<table width="100%" cellpadding="3" cellspacing="0">
<tr class="tcat">
<td colspan='2' align="center">
<div class="smallfont" align="center">
$thread[movedprefix]
$thread[typeprefix]

<a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]">
$thread[threadtitle]
</a>
</div>
</td>
</tr>
<tr class="thead">
<td class="smallfont" align="left">
Benutzer:
</div>
</td>
<td>
<div class="smallfont">
<if condition="$show['guestuser']">
$thread[postusername]
<else />
<span style="cursor:pointer" onclick="window.open('member.php?$session[sessionurl]u=$thread[postuserid]')">$thread[postusername]</span>
</if>
</div>
</td>
</tr>
<tr class="alt1">
<td class="smallfont">$vbphrase[gallery_comments]</td>
<td class="smallfont">$thread[replycount]</td>
</tr>
<tr class="alt1">
<td class="smallfont">$vbphrase[gallery_views]</td>
<td class="smallfont">$thread[views]</td>
</tr>
<tr class="alt2">
<td>
<div class="smallfont">
Bewertung:
</div>
</td>
<td>
<if condition="$show['threadratings'] AND $show['threadrating']">
<span style="float:$stylevar[right]">
<img class="inlineimg" src="$stylevar[imgdir_rating]/rating_$thread[rating].gif" border="0" alt="<phrase 1="$thread[votenum]" 2="$thread[voteavg]">$vbphrase[thread_rating_x_votes_y_average]</phrase>" />
</span>
</if>
</td>
</tr>
<tr class="alt2">
<td>
<div class="smallfont">
Filesize: $attachment[filesize]
</div>
</td>
<td>
&nbsp;
</td>
</tr>
</table>
</td>
<else />
<td>
<img src="images/misc/register.jpg">
</td>
</if>
</tr>
</table>
</td>
</if>


and for the review on forumhome you have to change the template "latestgallery" to:


<td class="thead" align="center">
<table align="center">
<tr>
<if condition="$show['member']">
<td align="center">
<a HREF="attachment.php?attachmentid=$gallery[attachmentid]">
<img src="attachment.php?attachmentid=$gallery[attachmentid]&stc=1&thumb=1" border=0 align="center"></a>
</td>
</tr>
<tr>
<td align="center">
<br />
<a href="showthread.php?t=$gallery[threadid]">
$gallery[title]
</a>
</td>
<else />
<td>
<img src="images/misc/register.jpg">
</td>
</if>
</tr>
</table>
</td>


be sure to upload picture called "register.jpg" to /images/misc/.

Harald_T
08-14-2005, 09:10 AM
@Joe:

To remove the sticky-problem change the code for the gallery-plugin: hook->threadbit_gallery (it should be the last one in the plugin-list)


//####################Gallery-Modification######################
$pics_per_row=$foruminfo[gallery_rows];
//####################End Gallery-Modification##################


if ($thread['sticky'])
{
$threadbit =& $threadbits_sticky;
}
else if ($displaythumbs == true)
{
$threadbit = &$threadbit_gallery;
}
else
{
$threadbit = &$threadbits;
}


if ($rows>=$pics_per_row)
{
$rows=0;
}
$rows=$rows+1;


Now it should work fine again.

Vizionz
08-15-2005, 11:51 AM
if i missed something sorry but how can i change the thumbnails shown on forum and how to make that a closeable table. *note i guess i found out how just editing the rows :( thought that was for the main gallery page and how many rows down it goes ..

okay now with that how many pictures will actually go in there will it just keep going and going and going. or is this script have pages so like 20 to 40 pictures per page ? if not should be next addition

jesus likes pie
08-15-2005, 08:37 PM
I'm quite confused...

So I've done everything but the part that isnt working too hot is making the forums...

I did this:

MADE new forum and made it a category, with display order 0 and is "acting as gallery" I then made a child forum (parent is the category that I had made) and left it as display order 1 (still cant be seen cause parent is 0), acts as gallery, and has 4 rows.

When I click on the link to go there it says "Sorry! This forum is not accepting new posts."

Whats going on?

shardex
08-16-2005, 01:48 AM
I am trying to convert the original hack to 3.5 and am having trouble with this code in the forumdisplay.php:

$sql_threads = "SELECT $votequery $previewfield thread.threadid, thread.title AS threadtitle, ".
"thread.forumid, pollid, open, replycount, postusername, postuserid, ".
"thread.iconid AS threadiconid, $lastpost_info, thread.dateline, ".
"IF(views<=replycount, replycount+1, views) AS views, notes, thread.visible, ".
"sticky, votetotal, thread.attach, hiddencount ".
iif($displaythumbs == true, ", MIN(attachment.attachmentid) AS attachmentid ").
iif($vbulletin->options['threadsubscribed'] AND $vbulletin->userinfo['userid'], ", NOT ISNULL(subscribethread.subscribethreadid) AS issubscribed").
iif($deljoin, ", deletionlog.userid AS del_userid, deletionlog.username AS del_username, deletionlog.reason AS del_reason").
iif($vbulletin->options['threadmarking'] AND $vbulletin->userinfo['userid'], ', threadread.readtime AS threadread').
"$hook_query_fields ".
"FROM " . TABLE_PREFIX . "thread AS thread ".
"$deljoin ".
iif($vbulletin->options['threadsubscribed'] AND $vbulletin->userinfo['userid'], " LEFT JOIN " . TABLE_PREFIX . "subscribethread AS subscribethread ON(subscribethread.threadid = thread.threadid AND subscribethread.userid = " . $vbulletin->userinfo['userid'] . ")").
iif($vbulletin->options['threadmarking'] AND $vbulletin->userinfo['userid'], " LEFT JOIN " . TABLE_PREFIX . "threadread AS threadread ON (threadread.threadid = thread.threadid AND threadread.userid = " . $vbulletin->userinfo['userid'] . ")").
"$previewjoin ".
"$tachyjoin ".
"$hook_query_joins ".
iif($displaythumbs == true, "LEFT JOIN ".TABLE_PREFIX."attachment as attachment ON(attachment.postid = thread.firstpostid) ").
"WHERE thread.threadid IN (0$ids) $hook_query_where ".
"ORDER BY sticky DESC, $sqlsortfield $sqlsortorder ";
$threads = $db->query_read($sql_threads);
unset($limitothers, $delthreadlimit, $deljoin,$datecut, $votequery, $sqlsortfield, $sqlsortorder, $threadids);

I am basically trying to follow the original format but adapt it for 3.5 since there is a bit if a difference in the $sql_threads variable. I figure you have overcome this and so I was wondering if you could help me out?

Cheers,

Harald_T
08-16-2005, 07:15 AM
I'm quite confused...

So I've done everything but the part that isnt working too hot is making the forums...

I did this:

MADE new forum and made it a category, with display order 0 and is "acting as gallery" I then made a child forum (parent is the category that I had made) and left it as display order 1 (still cant be seen cause parent is 0), acts as gallery, and has 4 rows.

When I click on the link to go there it says "Sorry! This forum is not accepting new posts."


Whats going on?

You don't need to set "Act as gallery" for the category. It isn't neccessary.
Your error sounds like you set the forum closed or something like this.

@Shardex: Do you try to convert my old gallery-hack or the thumbnail-hack? The code looks like the one for the thumbnail-hack from Delphy (i've made also an conversion for the thumbnail-on-forum-display-hack to 3.5).

Vizionz
08-16-2005, 08:57 AM
how do i change it to show only 4 thumbnails instead of 5

Harald_T
08-16-2005, 10:21 AM
I assume you mean on the Forumhome-Page?

Change the code for the plugin "latest_gallery_images" Hook->forumhome_complete to:


// #################### Latest Gallery-Additions #######################
// fetch the permissions for each forum
global $vbulletin;


$thumbs = $db->query_read("SELECT gallery, threadid, firstpostid, ". TABLE_PREFIX . "thread.title, attachmentid, ". TABLE_PREFIX . "attachment.dateline FROM ". TABLE_PREFIX . "attachment, ". TABLE_PREFIX . "thread, ". TABLE_PREFIX . "forum
WHERE gallery='1' AND ". TABLE_PREFIX . "thread.forumid=". TABLE_PREFIX . "forum.forumid AND ". TABLE_PREFIX . "thread.firstpostid = ". TABLE_PREFIX . "attachment.postid AND ". TABLE_PREFIX . "attachment.dateline < " . TIME() ." ORDER BY ". TABLE_PREFIX . "attachment.dateline DESC LIMIT 4");

while ($gallery = $db->fetch_array($thumbs))
{
eval('$latestgallery .= "' . fetch_template('latestgallery') . '";');
}


That's it.

Harald_T
08-16-2005, 10:29 AM
if i missed something sorry but how can i change the thumbnails shown on forum and how to make that a closeable table. *note i guess i found out how just editing the rows :( thought that was for the main gallery page and how many rows down it goes ..

okay now with that how many pictures will actually go in there will it just keep going and going and going. or is this script have pages so like 20 to 40 pictures per page ? if not should be next addition

How many Thumbs are shown on one page is depending on how many threads are displayed on one page. You find this option in the vBulletin-Options under "Forum-Display-Options"->Maximum Displayed Threads Before Page Split. If you set it by 10 then only 10 thumbs per page will be shown (but only 10 threads also). I'm thinking of making this separate for the gallery.

Vizionz
08-16-2005, 11:40 AM
thats horrible then :( so that means no matter what it will keep showing thumbs ?
so your page is gonna scroll all crazy. or you will have to have like 950 pages of posts for a big topic this should be a main concern to make this hack worth anything

Harald_T
08-16-2005, 11:46 AM
It's not meant for the posts of a thread, but for the amount on threads displayed on your forumdisplay.

For example: If you set "Maximum Displayed Threads Before Page Split" to 100, then in your normal forums will be 100 threads shown, before page breaks. In the gallery there will be shown 100 thumbs. Depending on the number of rows, you've set in the gallery-options, the page won't be so long. If you set it to e. g. 5 rows, there will be 20 coloumns on the page.

But as i said, i'm thinking of making this independend from the forum.

jesus likes pie
08-16-2005, 11:53 AM
But as i said, i'm thinking of making this independend from the forum.

That would be very good.


As for Vizionz, you may notice that each forum (not thread) has pages (if well, its an active forum). So a forum looks like a thread, except that instead of posts, you get threads. And after X amount of threads, a new page is made.

Harald_T
08-16-2005, 11:57 AM
@jesus: Did you check your settings for your category? I've looked at your forum, and it could be one of the other hacks that ist "shooting" between.

Vizionz
08-16-2005, 12:17 PM
i set threads before page split to 1 and it still showed 5 thumbnails

and rows in galllery 4

so i dont undertsnad it i just know this wont work for me if theres no way to control that so i can have 4 thumbnails instead of 5 or more unless i can marquee that forum home table or something :(

Harald_T
08-16-2005, 02:28 PM
WHERE did it show 5 thumbnails? On forumhome or on the forumdisplay-page?

Is it a local forum for testing or can i have a look inside it?

Vizionz
08-16-2005, 02:43 PM
its public and the forum home page where it shows the last gallery images

Wayne Luke
08-16-2005, 02:46 PM
What is the issue if there is more than one image per thread? I have threads with many attachments with up to 5 per post. I am increasing the per post limit to 10 images.

Vizionz
08-16-2005, 02:56 PM
its not a issue with vbulletin you guys are doing it right hehe ..

its a issue of the hack not being able to grab the 5 attachments and putting it in the gallery

this hack is great but needs some work..

1.ya need to be able to control the forum latest gallery so you can have 12 thumbnails or 50 or 4 if ya want..

2. multi attachments should be supported or give the actual gallery hack its own settings so that gallery forum only accepts 1 attachment while all the other forums are left alone...

3. need a definition of what the numbers are under the thumbnails in the gallery...

besides that its a great start i like the gallery i just trying to point out how to better it

jesus likes pie
08-16-2005, 03:13 PM
Mine is working fine now. I was just stupid and made the gallery navbar link, link to the wrong forum......

doh!

If you upload more than one it makes seperate images on the gallery, put they are still on the same "thread"....which i like.

Vizionz
08-16-2005, 03:19 PM
does it ? so if i attach 5 images it will ad them 5 images ? i thought it wouldnt!
i like the gallery i just dont like that its putting up 5 thumbnails and scrolling my forum. if it would only put up 4 then when a new one is added the oldest is not show anymore i would love this hack

Wayne Luke
08-16-2005, 03:43 PM
its not a issue with vbulletin you guys are doing it right hehe ..

its a issue of the hack not being able to grab the 5 attachments and putting it in the gallery


I meant in regards to the addon. I absolutely need something that can pull a 100 or more attachments out of a single thread. The site is for a very fast paced MMORPG and if you take screenshots during a combat sequence you can easily get a dozen or more. I mean an 8 man team in the game can easily be facing 50 or more bad guys at a time.

Would be nice if you could pull AVIs into the gallery as well. I know you can't view them (or maybe you could) but our game also allows us to record it for as long as we want and these recordings can be changed into AVIs really easy.

Harald_T
08-16-2005, 03:52 PM
@Wayne: That shouldn't be a Problem, you should be able to upload AVI's as any normal attachment, or not? The only issue is, that the gallery wouldn't display a thumbnail, i think. Or does vB produce thumbs for avi's?

Oh, Wayne, is there some documentation or something like this, where i can find out, how the new postbit-functions are working? There are some changes, so i can't switch to my own postbit anymore. With 3.03 it was working (this was my last version before upgrading).

Btw, what is the version nr. of your vB? 4.6 Beta 2? Back to the future, or what? ;)

@Vizionz: Thanks for your critics, i know that the gallery HAS lacks, but remember two things:

a - i'm not an professionell programmer, so it all takes a bit time to find out for me
b - i have a family which also wants their time to share with me.

So please, just wait.

jesus likes pie
08-16-2005, 04:13 PM
is there any way harald, that instead of getting the newest additions to the gallery and show them on forumhome, it can grab random images?

I would like that...could you tell me how it can be done?

:)

Vizionz
08-16-2005, 04:19 PM
i gave u access to the board harold so just check it out u will see the scro0ll right away and how its not good for me

Harald_T
08-16-2005, 04:34 PM
is there any way harald, that instead of getting the newest additions to the gallery and show them on forumhome, it can grab random images?

I would like that...could you tell me how it can be done?

:)

There should be a way, yes. I'll check the code for it tonight, o.k.?

Harald_T
08-16-2005, 04:46 PM
i gave u access to the board harold so just check it out u will see the scro0ll right away and how its not good for me

Check the attachment. Is it the problem i marked?

Vizionz
08-16-2005, 04:49 PM
exactly

i removed a wallpaper to stop that scrolling right now. but if i can have it how it looks now if u refresh the board there this will be perfect for me and i am completely happy with the hack

Harald_T
08-16-2005, 04:58 PM
I didn't found out the problem at first, cause if your using firefox, the problem isn't there. To avoid the problem you could:

- set the number of latest images displayed on forumhome to 4 or
- change the width of your forum a bit.
- decrease the width-settings of your thumbs

Vizionz
08-16-2005, 05:02 PM
how do i set the latest images on forum to 4 ?

Harald_T
08-16-2005, 05:04 PM
See here:

https://vborg.vbsupport.ru/showpost.php?p=757226&postcount=105

Vizionz
08-16-2005, 05:08 PM
i cant believe i missed that :( sorry for all this time wasted man now your hack is awesome to me :) thanks for the help

clicked install :) works perfect now

Harald_T
08-16-2005, 05:09 PM
No problem, that's why i'm here for.... :D

Harald_T
08-16-2005, 06:52 PM
Oh, btw., the numbers under the thumbs are for:

- Comments
- Views

I've to fix this.

Wayne Luke
08-16-2005, 07:00 PM
No problem, that's why i'm here for.... :D

Think you can answer my question?

https://vborg.vbsupport.ru/showpost.php?p=757363&postcount=115
https://vborg.vbsupport.ru/showpost.php?p=757396&postcount=119

mvigod
08-16-2005, 08:19 PM
A nice addition would be a filter of some kind to optionally show all images in a particular thread.

Harald_T
08-16-2005, 08:45 PM
@Wayne:
The problem is, it shows only the attachments of the first post. All other posts of the thread will be ignored. To change this, i think, the query has to be changed.

Regarding AVI's: Of course it's possible to create a new attachment-type for .avi but no thumb will be generated.

Harald_T
08-16-2005, 08:49 PM
A nice addition would be a filter of some kind to optionally show all images in a particular thread.

What do mean exactly? Could you be so kind and explain it a bit more?

Joe Gronlund
08-16-2005, 10:03 PM
@Joe:

To remove the sticky-problem change the code for the gallery-plugin: hook.

Yes that fixed it,,

thanks :)

jesus likes pie
08-16-2005, 10:43 PM
Harald if you do find otu how to make the "newest 4 additions" to just random 4, could you send me a PM with the post number?

I might miss it...and i dont want to :P

Harald_T
08-16-2005, 10:55 PM
Ok. i will

jesus likes pie
08-16-2005, 11:06 PM
thanks.

Harald_T
08-17-2005, 03:49 PM
Change the code for the plugin: latest_gallery_images ->hook:forumhome_complete to:


// #################### Latest Gallery-Additions #######################
// fetch the permissions for each forum
global $vbulletin;

$thumbs = $db->query_read("SELECT gallery, threadid, firstpostid, ". TABLE_PREFIX . "thread.title, attachmentid, ". TABLE_PREFIX . "attachment.dateline FROM ". TABLE_PREFIX . "attachment, ". TABLE_PREFIX . "thread, ". TABLE_PREFIX . "forum
WHERE gallery='1' AND ". TABLE_PREFIX . "thread.forumid=". TABLE_PREFIX . "forum.forumid AND ". TABLE_PREFIX . "thread.firstpostid = ". TABLE_PREFIX . "attachment.postid AND ". TABLE_PREFIX . "attachment.dateline < " . TIME() ." ORDER BY RAND() LIMIT 4");

while ($gallery = $db->fetch_array($thumbs))
{
eval('$latestgallery .= "' . fetch_template('latestgallery') . '";');


This should do it.

Wayne Luke
08-17-2005, 07:10 PM
@Wayne:
The problem is, it shows only the attachments of the first post. All other posts of the thread will be ignored. To change this, i think, the query has to be changed.

Hmm okay... looks nice, just won't suit my purposes.

mvigod
08-17-2005, 08:49 PM
What do mean exactly? Could you be so kind and explain it a bit more?


Yes, let me try. The gallery as I understand it currently shows all images. What if there is a long thread of say 1000 posts and a user wants to view a gallery of all images that appear ONLY in that particular thread. This is what I meant by a filter or per thread "option". This probably would require just a modification of the current query to include only images from attachments that match the threadid.

Harald_T
08-17-2005, 09:11 PM
This is, what Wayne wanted, i think. I'll give it a try and see, if i can change the query.

mooj
08-20-2005, 08:13 AM
dear Harald_T,

i'm facing a prob .. could you kindly provide ur help .. :ermm:

i'm running RC2 but the board not generating the thumbs Automaticly .. i have to do ( Rebuild Attachment Thumbnails ) after adding a new post in order to display the thumbs ????
:surprised:

what could be the prob ?

Wordplay
08-20-2005, 08:39 AM
you guys who have tried out the gallery for vbulletin 3.5 can you please let me know how good it is in this thread:
https://vborg.vbsupport.ru/showthread.php?t=94146

Harald_T
08-20-2005, 09:15 AM
dear Harald_T,

i'm facing a prob .. could you kindly provide ur help .. :ermm:

i'm running RC2 but the board not generating the thumbs Automaticly .. i have to do ( Rebuild Attachment Thumbnails ) after adding a new post in order to display the thumbs ????
:surprised:

what could be the prob ?

Do you have Image Magick or similar installed? Check your Image-Options in your vB-Options.

lairnoc
08-20-2005, 11:41 AM
anyone here to helpe me i get this error

Warning: move_uploaded_file(/tmp/85b5492df69b3f59a90be3f3890d138e): failed to open stream: No such file or directory in \includes\class_upload.php on line 519

Warning: move_uploaded_file(): Unable to move 'C:\PHP\uploadtemp\php322D.tmp' to '/tmp/85b5492df69b3f59a90be3f3890d138e' in \includes\class_upload.php on line 519

Warning: getimagesize(/tmp/85b5492df69b3f59a90be3f3890d138e): failed to open stream: No such file or directory in \includes\class_image.php on line 1545

Warning: getimagesize(/tmp/85b5492df69b3f59a90be3f3890d138e): failed to open stream: No such file or directory in \includes\class_image.php on line 1545

Fatal error: Unable to proceed with save while $errors array is not empty in class vb_datamanager_attachment_database in \includes\class_dm.php on line 758

Harald_T
08-20-2005, 01:41 PM
It sounds your SAFE_MODE is enabled.

lairnoc
08-20-2005, 03:45 PM
yep fixed now thnx

small question how can i get more then 5 thumbs on the page?

Harald_T
08-20-2005, 04:22 PM
On the thread itself? I think that 5 thumbs are maximum.

Or do you mean those on the forumhome-page?

lairnoc
08-21-2005, 05:32 AM
forum home page

Harald_T
08-21-2005, 08:39 AM
Change the code for the plugin "latest_gallery_images" Hook->forumhome_complete to:


// #################### Latest Gallery-Additions #######################
// fetch the permissions for each forum
global $vbulletin;


$thumbs = $db->query_read("SELECT gallery, threadid, firstpostid, ". TABLE_PREFIX . "thread.title, attachmentid, ". TABLE_PREFIX . "attachment.dateline FROM ". TABLE_PREFIX . "attachment, ". TABLE_PREFIX . "thread, ". TABLE_PREFIX . "forum
WHERE gallery='1' AND ". TABLE_PREFIX . "thread.forumid=". TABLE_PREFIX . "forum.forumid AND ". TABLE_PREFIX . "thread.firstpostid = ". TABLE_PREFIX . "attachment.postid AND ". TABLE_PREFIX . "attachment.dateline < " . TIME() ." ORDER BY ". TABLE_PREFIX . "attachment.dateline DESC LIMIT X");

while ($gallery = $db->fetch_array($thumbs))
{
eval('$latestgallery .= "' . fetch_template('latestgallery') . '";');
}


Replace 'X' with the amount of thumbs you wish.

That's it.

NuclioN
08-21-2005, 10:28 AM
Does this work with SAFE MODE enabled?

Harald_T
08-21-2005, 02:30 PM
Normaly: YES, because it's based on the normal Attachment-System of vBulletin. But myself i occured some strange errors after upgrading vB to 3.5.0. And i found out, that it was the SAFE-Mode. So i had to temporarily disable it.

Wordplay
08-21-2005, 09:55 PM
i heard it's possible to export 4images images including the the comments, hits, ratings and all the other infos to vbgallery, if so how do i do that?

lairnoc
08-22-2005, 06:52 AM
Change the code for the plugin "latest_gallery_images" Hook->forumhome_complete to:


// #################### Latest Gallery-Additions #######################
// fetch the permissions for each forum
global $vbulletin;


$thumbs = $db->query_read("SELECT gallery, threadid, firstpostid, ". TABLE_PREFIX . "thread.title, attachmentid, ". TABLE_PREFIX . "attachment.dateline FROM ". TABLE_PREFIX . "attachment, ". TABLE_PREFIX . "thread, ". TABLE_PREFIX . "forum
WHERE gallery='1' AND ". TABLE_PREFIX . "thread.forumid=". TABLE_PREFIX . "forum.forumid AND ". TABLE_PREFIX . "thread.firstpostid = ". TABLE_PREFIX . "attachment.postid AND ". TABLE_PREFIX . "attachment.dateline < " . TIME() ." ORDER BY ". TABLE_PREFIX . "attachment.dateline DESC LIMIT X");

while ($gallery = $db->fetch_array($thumbs))
{
eval('$latestgallery .= "' . fetch_template('latestgallery') . '";');
}


Replace 'X' with the amount of thumbs you wish.

That's it.


Thnx a lot Harald_T it did the job suberb

Wordplay
08-22-2005, 12:24 PM
i heard it's possible to export 4images images including the the comments, hits, ratings and all the other infos to vbgallery, if so how do i do that?anybody seen that question?

Harald_T
08-22-2005, 08:09 PM
@Wordplay: This hack isn't vBGallery. I'm not sure, if it's possible, to convert the images. Because you need to convert them to normal attachment files, if you want to use the with this gallery-hack.

Nutz
09-02-2005, 04:12 PM
Any chance at all that this could be changed to run on vB3.0.8 ?

Many Thanks
Mat

Harald_T
09-03-2005, 12:44 PM
I would have to change the code, but yes, this is possible. I'll look after it next week.

Forumi Shqiptar
09-03-2005, 04:46 PM
Followed all of the steps acordingly to the instructions uploaded and its giving me the message underneath any help will be appreciated:

Many thanks for ur replies
--------------------------------------------------------------------------------
Database error in vBulletin 3.5.0 Release Candidate 2:

Invalid SQL:
INSERT INTO vb3_forum
(title_clean, title, description_clean, description, link, displayorder, daysprune, parentid, newpostemail, newthreademail, options, styleid, password, minuserage, gallery, gallery_rows)
VALUES
('Prova Mbi Forumin', 'Prova Mbi Forumin', '', '', '', 0, -1, -1, '', '', 89799, 0, '', 0, '1', '5');

MySQL Error : Unknown column 'gallery' in 'field list'
Error Number : 1054
Date : Saturday, September 3rd 2005 @ 08:41:12 PM
Script : http://www.humori.net/*******/forum.php
Referrer : http://www.humori.net/******/forum.php?do=add
IP Address : *********
Username : [Elisi]
Classname : vb_database

Harald_T
09-04-2005, 04:47 PM
It seems you've forgot to run the query. Check, if you have the permission (first two instructions in the installation-manual).

Forumi Shqiptar
09-05-2005, 12:30 AM
ok done it added the tables and runned the querie now i got a problem that the forum its added but when u click on it all the page its like a forum there are no options where to add photos or how to add them.

Also get this problem when i try to access any sub-forums or to post on them Unable to add cookies, header already sent.
File: /home/www/humori.net/forumdisplay.php(799) : eval()'d code
Line: 12 :surprised:

Harald_T
09-06-2005, 04:27 PM
Please check if you run all the instructions right. It should work. The error sounds strange.

Oh, if you go to the category, there isn't a gallery, that's right. You have to make some subforums, and mark them as gallery. There you should find the possibility to upload pictures.

ReadOrDie
09-10-2005, 05:37 PM
The gallery is installed but in the instructions it said nothing about the "upload" picture. Where do I put that?

Harald_T
09-10-2005, 05:42 PM
Oh, sorry. Just put in the folder "images/buttons".

ReadOrDie
09-10-2005, 05:50 PM
Thank you but I have one more question why is the thing in german?

http://img35.imageshack.us/img35/1870/untitled1co.th.png (http://img35.imageshack.us/my.php?image=untitled1co.png)

ReadOrDie
09-10-2005, 06:25 PM
Delete Post I fixed it. German problem is still not fixed though.

Harald_T
09-10-2005, 07:11 PM
Oh, that's because i'm german? Anyway, replace "Neueste Galerie-Einträge" with "Latest Gallery-Additions" or something like this.

ReadOrDie
09-10-2005, 08:03 PM
Thanks.!!!

Forumi Shqiptar
09-12-2005, 09:05 AM
Unable to add cookies, header already sent.
File: /home/www/humori.net/forumdisplay.php(799) : eval()'d code
Line: 12


i followed every single step correctly as far as im aware the only thing i changed it was the queries from

ALTER TABLE `forum` ADD `gallery` TINYINT( 4 ) NOT NULL

ALTER TABLE `forum` ADD `gallery_rows` VARCHAR( 4 ) NOT NULL


to
ALTER TABLE `vb3_forum` ADD `vb3_gallery` TINYINT( 4 ) NOT NULL

ALTER TABLE `vb3_forum` ADD `vb3_gallery_rows` VARCHAR( 4 ) NOT NULL


and after i have finished installing the hack when i try to access my forum or the threads that are opened in any of the sub-forums that are inside my forum it gives me that message Unable to add cookies, header already sent.
File: /home/www/humori.net/forumdisplay.php(799) : eval()'d code
Line: 12

is there any help given on this or not? as i got more than 3 weeks trying to make it work and it wont could someone help me please or not so that i know and if not please do say so so i dont have to loose my time and yours too guys!

Many thanks for anyone who replies

Harald_T
09-12-2005, 08:35 PM
The way you've changed the queries could be the problem. Change it to:

ALTER TABLE `vb3_forum` ADD `gallery` TINYINT( 4 ) NOT NULL

ALTER TABLE `vb3_forum` ADD `gallery_rows` VARCHAR( 4 ) NOT NULL

The prefix isn't needed for those additions, as they are part of a table.

Maybe this will help.

Forumi Shqiptar
09-18-2005, 09:41 PM
sorry for my late reply as i aint been well i tried ur idea Harald_T too but it aint working dont know why its giving the same message again.

anyone has any clue how to get this one working? or no-one has encountered this problem? many thanks in andvance

Harald_T
09-19-2005, 08:17 PM
Oh, wait. This problem only get displayed with forumdisplay.php.

Disable all Plugins which belongs to forumdisplay for the gallery and then enable them one by one. Could you post the code of the one, which produces the error-message?

Andreas
09-20-2005, 04:33 PM
@Harald T
You are using the following Code on Hook forumdisplay_complete

//############################Gallery-Modification###########################
if ($displaythumbs == true)
{
eval('print_output("' . fetch_template('forumdisplay_gallery') . '");');
}
else
{
eval('print_output("' . fetch_template('FORUMDISPLAY') . '");');
}
//############################End Gallery-Modification########################


print_output() causes halt of Script execution, which means that all other Plugins using the same Hook will not be executed, if they would be executed after your Code.
Please change that in order to keep compatibility with other Hacks.

Harald_T
09-20-2005, 05:40 PM
Sorry, i didn't knew that. Hmh, i've to see, if i can change it. Any suggestions?

Wordplay
09-29-2005, 06:52 AM
this looks exactly like vbadvanced, which one is better?

Harald_T
09-29-2005, 05:57 PM
To be honest: I don't know.

This gallery fits for my personal needs,and that's all i want for it.

There are some couple of things i have to do on it, but i'm still learning the new features of vB 3.5

dreck
09-29-2005, 10:11 PM
this still working for gold?

Harald_T
10-01-2005, 08:31 AM
I would think so. I haven't had the time to install gold, so i'll try it this weekend.

trancetopia
10-01-2005, 08:53 AM
I have this gallery installed and it works great but i've had to temporarily hide the gallery forums due to a problem.

I'm not sure if i've missed something somewhere, but how do you limit the amount of images shown when viewing the gallery. I have a forum that has 300+ images in it but when viewing this forum/gallery it displays all 300 thumbnails instead of viewing the first 25 etc and giving the option to go the next page etc. 300+ images on one page takes a long time to build and looks a little messy.

Is there any way to page the gallery view?

Thanks

Harald_T
10-01-2005, 09:20 AM
Let me first install 3.5 Gold. Then i'll have a look after this bug.

How many threads to display are set in you UserCP?

trancetopia
10-01-2005, 09:41 AM
I have 20 threads specified.

You can see one of the forum gallaries here:

http://www.littlewales.com/forumdisplay.php?f=163

Harald_T
10-01-2005, 12:51 PM
O.k., this looks weird.

I'll check it this weekend.

trancetopia
10-01-2005, 12:57 PM
Cheers Harald_T

dreck
10-01-2005, 04:12 PM
I'll check it this weekend.cool, thanks!

Willy-K
10-01-2005, 05:04 PM
this still working for gold?

Yes it works!

Harald_T
10-02-2005, 08:57 AM
Thanks Willy, you were faster.... :D

dreck
10-02-2005, 03:02 PM
Cool, maybe i can install this later today.

Thanks, dreck

ThePimp
10-04-2005, 04:57 PM
Is there a way to set a default thumbnail? For example, most users aren't the brightest bulb in the bunch, and I frequently get people posting incorrectly, or posting topics in the gallery forums... and what happens is that a broken "Red X" image is displayed in those posts on the gallery as well as on the ForumHome page. I'm wondering if there's a way to detect improperly posted / no image topics and replace the thumbnail with a default graphic?

Allan
10-04-2005, 05:25 PM
Harald_T, no update for vB 3.5 Gold ?

Harald_T
10-04-2005, 07:31 PM
I'll do soon. ATM i don't have much time (too much work over the day). So don't expect an update for the weekend. Please be patient.

danbc
10-05-2005, 07:17 AM
Hmmm noob question here :D


Also, had some probs with attachments, so in the gallery page I now have 4 "posts" with red X?es, how do I delete those, since I only have one option button called "upload" ?

xtreme-mobile
10-05-2005, 08:32 AM
at the preview box at the top of forum it says

Neueste Galerie-Einträge how do i change this to english?

regards

dean

Harald_T
10-05-2005, 03:58 PM
Sorry, i'll answer your questions. But please be patient. It will be at the coming weekend.

sherykah
10-08-2005, 07:44 AM
If anyone is looking for a photo gallery, look no further. This is excellent.

Harald_T
10-08-2005, 08:35 AM
Thanks a lot! :)

I've downloaded vB 3.5.0 Gold and will testing it this weekend.

xtreme-mobile
10-11-2005, 07:34 PM
this hack is warping my forum

it is making the alignment of the top abnner of my forum become unaligned :(

gonna have to remove this hack :(

xtreme-mobile
10-11-2005, 07:36 PM
how do i uninstall this?

regards

dean

Harald_T
10-11-2005, 09:23 PM
Hy Dean.

How do you mean "the top banner becomes unaligned"? I had a look at your page, and the page itself looked fine?

Otherwise, to remove the hack, you have to remove the file-editing, and uninstall the plugin.

tuanluu
10-12-2005, 08:27 AM
work fine on my thanks for the hack, there are one problem I just notice that... It does not show the filesize, the phrase for reply and view. Did i do some wrong... Or it should be like this ---> look at the attachment to see what I mean

GrabAssGirl
10-12-2005, 12:47 PM
Thanks a lot! :)

I've downloaded vB 3.5.0 Gold and will testing it this weekend.

Did it work?

xtreme-mobile
10-12-2005, 01:43 PM
ive changed it harold i had to deleete the pictures fromnthe gallery as i think becaus eof the width of them it was pushing them out :(

im changing it to a staff board now so staff can posta pic and a bit about them selves ill let you know if i run into any more probs

Harald_T
10-14-2005, 07:28 AM
@xtreme: if it was pushing the width, why didn't you decreased the amount of pictures shown in one row?

@tuanluu: You're right, there are two phrases missing.

Create one phrase: gallery_views with the text "Views" and one phrase called gallery_comments with the text "Comments".

The filesize isn't still working yet, i'm working at this.

@GrabassGirl: It worked without any problems.

Allan
10-14-2005, 10:09 AM
so, work with 3.5, no update Harald ?

Harald_T
10-14-2005, 10:16 AM
No, it's no update needed for working with 3.5.0.

krvaricp
10-14-2005, 10:22 AM
Can I use this hack for vBulletin 3.5.0 Gold ?

Allan
10-14-2005, 11:28 AM
No, it's no update needed for working with 3.5.0.

Thanks Harald ;)

mwhoob
10-14-2005, 11:52 AM
if uploud file attach
its see
upload.gif:
Unable to move/copy file ????????????????

can help me please

Harald_T
10-14-2005, 12:43 PM
It could be, that you have SAFE_MODE enabled. If so, you have to change the settings in the vbulletin-options.

Gizmo5h1t3
10-14-2005, 12:55 PM
harald, are there any updates so it shows the filesize yet??

in your preview screens, it doesnt either....

just wondering m8

Harald_T
10-14-2005, 02:06 PM
I'm looking at it, at the moment. I will post an update, as soon as i found out.

krvaricp
10-14-2005, 11:25 PM
I installed on my forum and I got this problem.
The links of the attachments are ok, but the pictures don't show in the gallery, only in the post. :ermm:

hbalagh1
10-15-2005, 02:29 AM
this is a pretty good subsitue for vbgallery (when you don't have the $60.00 to shell out) good job

krvaricp
10-15-2005, 09:54 AM
I think if people use old version style, in the threadbit_gallery templates, they need to change :

<img src="attachment.php?attachmentid=$thread[attachmentid]&stc=1&thumb=1" border=0 align="center">

to

<img src="attachment.php?attachmentid=$thread[attachmentid]&stc=1&thumb=1&d=1" border=0 align="center">

For thumbnail the Images in Gallery.

Harald_T
10-15-2005, 10:42 AM
@kvaripc: What do you mean for an "old version style"? Could you explain it?

krvaricp
10-15-2005, 10:53 AM
I mean that " the board is version 3.5, but the styles don't "

Allan
10-15-2005, 07:31 PM
2 phrases are missing in "threadbit_gallery" template:

"gallery_views" (View) and "gallery_comments" (comments)

for info ;)

SpaceStar
10-15-2005, 09:47 PM
I installed on my forum and I got this problem.
The links of the attachments are ok, but the pictures don't show in the gallery, only in the post. :ermm:

I am facing exactly the same problem :( did you resolved yours???

SpaceStar
10-15-2005, 09:59 PM
maybe I should put this on as well that all attachments are currently being stored in the filesystem and not in the database

Harald_T
10-16-2005, 12:49 AM
@Spacestar: The problem you are facing, i think it is, what Krvaricp had fixed (see his posts before).

I think, the problem is: The way, that a thumbnail is called up, has been changed since 3.5.0 RC2 and 3.5.0 Gold.

SpaceStar
10-16-2005, 12:59 AM
Ya I had seen his suggestion and tried it out straight away - but no difference it made :(.

Harald_T
10-16-2005, 09:24 AM
Are you using any other hacks? If so, which are they?

@Spacestar: I had a look at your page. Could it be, that there are some rights missing, so that Users can't view the attachments? That could be also the explanation for this behaviour.

SpaceStar
10-16-2005, 10:34 AM
Haral T about the hacks I am using "user who has visited"; "Top X Statistics"; "DFHA Annoucements" and yours "Gallery" - Every other template has been reverted before I installed these hacks.

About the permissions: Yeah a guest cannot download attachements - but the members are facing the same problems...

SpaceStar
10-16-2005, 12:07 PM
:) I did solved that problem by regenerating thumbnails :D - thnks

SpaceStar
10-16-2005, 01:56 PM
Hello Harald

It's a wonderful hack many thanks...

My problem is solved buttttt each time a member upload a picture I have to go to the Maintenance in ADMINCP and Rebuild Attachment Thumbnails for the thumbnails to be shown in the Gallery. Now I've thousands of images in my forum. Isn't there any way of Rebuilding these attachment thumbnails all the way or as a member post a picture, it just rebuild attachment thumbnails???

Thanks in advance :)

Harald_T
10-16-2005, 02:54 PM
Thats strange. The problem is: You shouldn't face this problem, as the gallery is using the normal attachments of vB. The gallery itself isn't any other than a normal forum, wich is displayed in another way. That's all.

Did you check the settings, if they are right?

tuanluu
10-17-2005, 06:19 AM
have you enable GD or Imagestick .... and need to AdminCP....rebuild all your attachment thumbnails hope this help

SpaceStar
10-17-2005, 05:56 PM
Thanks for your concernings... I am happy if this can workout, because this Gallery is the most wanted thing I'd like to add to my Forum...

Here are some of the settings regarding thumbnails:

IMAGE SETTINGS:
Allow Image Size Checking Failure=NO
Image Processing Library=GD
Image Verification Library=GD
Image Verification Font=NONE (empty)
GD Version=GD 2+
ImageMagick Binary Path=(empty)
Generate PNG Thumbnails=YES

SERVER SETTINGS AND OPTIMIZATION:
Update Attachment Views Immediately=YES

MESSAGE ATTACHEMENT OPTIONS:
View Attached Images Inline=YES
Enable Thumbnails=NO

With these settings I can get it working whenever a new picture is uploaded and I make a rebuilding of attachments... :( but it's awkward...

Harald_T
10-17-2005, 06:32 PM
What for settings do you have for your attachments themself?

Did you try also not to generate PNG Thumbnails?

trancetopia
10-17-2005, 06:51 PM
I have 20 threads specified.

You can see one of the forum gallaries here:

http://www.littlewales.com/forumdisplay.php?f=163

I'm still having the problem with the paging function not working. I'm eager to let the gallery go live but can't at the moment.

Can this be fixed?

Thanks

LoOnEyToOnZ
10-18-2005, 04:09 AM
How would you guys compare this with the new 4images integration with vb3.5? Which is a better solution ?

Harald_T
10-18-2005, 03:58 PM
I'm still having the problem with the paging function not working. I'm eager to let the gallery go live but can't at the moment.

Can this be fixed?

Thanks

I don't get it. It's working fine for me. I'm still guessing, that there is a setting wrong. Could you contact me by email?

sherykah
10-20-2005, 02:06 PM
Hello Harold T,

I and my members are loving the gallery hack. I want to know is there any way we can get a random or last image hack for the vBadvanced portal. A small script I can enclose in a module would be great. OR do you know of one posted somewhere that you can point us to.

lexx27
10-20-2005, 02:55 PM
Yes great hack, i want it as a vbulletin module too!!!

Flow Fusion
10-20-2005, 10:41 PM
Is it possible to link pics from other places and show them in the gallery? I don't allow uploads on my forum. Like to have the code resize the image...

example

<img src="http://www.conmicro.cx/~kturtle/cartoons/2001/set-it-on-the-floor-stupid.gif" width="533" height="800">

Or

[img="http://www.conmicro.cx/~kturtle/cartoons/2001/set-it-on-the-floor-stupid.gif" width="22" height=
54"[/img]

Harald_T
10-21-2005, 12:38 PM
@Random Images: It should be possible, yes. It only need a change of the "latest_gallery_image"-code. I think, it shouldn't be a great work. Same for a module for vBadvanced Portal (i don't have it installed at the moment).

@linked images: As the gallery works only with attachments, it's not possible atm. But i can look after the code, if it's possible to work.

Flow Fusion
10-21-2005, 12:50 PM
Thanks. I look forward to that.

lexx27
10-23-2005, 10:07 PM
@Random Images: It should be possible, yes. It only need a change of the "latest_gallery_image"-code. I think, it shouldn't be a great work. Same for a module for vBadvanced Portal (i don't have it installed at the moment).


Any progress with these??

Harald_T
10-24-2005, 08:42 PM
I haven't done yet. As i said, it shouldn't be much work. It's mostly template-work (normaly you only have to copy most of the code into the template-code of those boxes of vBadvanced). I will install vBadvanced on Wednesday and fix the problem.

lexx27
10-24-2005, 09:54 PM
Well, i tried to copy the code inside a template but I couldn't get it work. I'll be waiting.
By the way, I will tell you again that this is a great hack. I love it.
But I want to see in a future update these things: Random Image, More options to Customise the gallery area, Size...
Thank you very much!

dreck
10-27-2005, 06:57 PM
I love this, great hack.

Thanks Harald_T

* dreck install

I do wonder why under the picture I have 2 stats that the titles don't show up?

Harald_T
10-27-2005, 07:01 PM
There are two phrases missing, i wrote it before. Look at page 15.

dreck
10-27-2005, 09:34 PM
There are two phrases missing, i wrote it before. Look at page 15.k... Sorry I only made it to page 13 :(

Thanks, dreck

Aaron RV
10-28-2005, 10:00 AM
:nervous: work on vb 3.5 gold?

Allan
10-28-2005, 11:02 AM
:nervous: work on vb 3.5 gold?

yes, perfectly ;)

ThePimp
10-28-2005, 11:42 AM
Is there a way to set a default thumbnail? For example, most users aren't the brightest bulb in the bunch, and I frequently get people posting incorrectly, or posting topics in the gallery forums... and what happens is that a broken "Red X" image is displayed in those posts on the gallery as well as on the ForumHome page. I'm wondering if there's a way to detect improperly posted / no image topics and replace the thumbnail with a default graphic?


Bueller... Bueller

ScottC20
10-29-2005, 09:08 AM
Bueller... Bueller

Harald, is there a way so as each new pic upload isn't displayed in the New Posts section??

Also, my picture boxes don't look anything like yours, looks like something went wrong somewhere?? http://www.bushcraftliving.com/forums/forumdisplay.php?f=41

Harald_T
10-29-2005, 11:05 AM
The phrases are missing, that is all i can see at the moment. And can it bee, that the pictures can only be seen by members?

ScottC20
10-29-2005, 12:03 PM
The pictures used to only be seen by members, but I just edited the forums permissions so guests can see it, should I have done that??

What phrases are missing?

ScottC20
10-29-2005, 12:19 PM
I see the phrases on page 15, but where/how do I insert them?