View Full Version : Gallery for vBulletin 3.5.X
Harald_T
04-17-2006, 06:32 PM
Check if your user (also the guests) can download attachments (see preferences of usergroups). Also check if your system can generate thumbnails.
DrewM
04-17-2006, 07:18 PM
Harald,
Whats the progress on the new verstion?
Harald_T
04-17-2006, 09:02 PM
It's working fine for now.
New to version 1.20:
- Query is done by XML-File now, also included is an uninstaller for this, if needed.
- English phrases. German phrases will be included as an extra language-pack later.
- Edit-Function is included now.
- Preview-Possibility for non-members (see www.sf-galerie.de for it).
- Latest-Gallery-submissions of a user is shown in his Memberprofile (see attached picture for an example).
- In the overview of all galleries a random picture from each gallery is shown. This is still to do, but will be in the next version.
- Alternative Gallery-Layout, which can be choosed by admin. You can choose between the normal layout or the alternative layout which lists the thumbnails and a description next to it. Still to do atm.
Enough? :D
DrewM
04-17-2006, 10:34 PM
thats cool when will it be realeased?
Harald_T
04-18-2006, 04:35 AM
I only have to do the the alternative layout and the random thumb in forum-listing (don't know how to call it right, atm.).
DrewM
04-18-2006, 09:54 AM
Cool so mayby a week also the alternet layout whats this going to look like?
Harald_T
04-18-2006, 10:27 AM
I don't think it will take a week. I think it will be sooner.
What is making big trouble at the moment is the random icon on the forums-list. It may be that this feature will be included in an later update.
The layout will be something like this (i'm still working on the final layout):
DrewM
04-18-2006, 10:33 AM
looks good! Can't wait!
Harald_T
04-18-2006, 12:31 PM
This is the latest progress on it:
DrewM
04-18-2006, 12:38 PM
looks good is it done or do you have more to do?
Also with the random on forum display why not just tke out the where from the profile?
Harald_T
04-18-2006, 12:44 PM
I have to integrate the options for the admin and go on hunting for some possible bugs.
The icon on forums-list will be released later i decided.
So the new release could be already tonight.
DrewM
04-18-2006, 12:47 PM
thats good out of curosity will I be able to upload files now? Without the reapeat?
Harald_T
04-18-2006, 04:46 PM
What do you mean with "repeat"? Could you explain a bit more?
can u maybe do this one in eglish :)
Harald_T
04-18-2006, 04:58 PM
That's what i said:
- English phrases. German phrases will be included as an extra language-pack later.
DrewM
04-18-2006, 07:15 PM
What do you mean with "repeat"? Could you explain a bit more?
I mean if you upload multiple pictures it will just display on and also if you upload files it will not show the missing icon for files
Harald_T
04-18-2006, 07:42 PM
You can now upload more then one picture. That ain't a problem anymore.
The possibility to upload a file is still left. This is the next one to solve. I've taken on my todo-list.
I'm now busy on writing the new install-instruction. So expect the upload in the next hour.
DrewM
04-18-2006, 08:17 PM
Cool unfortunetly I won't be able to update in till tommorow :(
Harald_T
04-18-2006, 08:36 PM
Update is done.
But be aware: It may be that there are still some bugs to find out. Oh, and the install-instruction is hardly "Work In Progress". I will write a new one tomorrow.
SupremeWeapon
04-18-2006, 10:48 PM
how exactly do you upload? O_O Im confused. did as the vague html file said...
mmk I got it... doesnt say anything about how to make the catagory or sub forum. sub needs to Act as a forum also.
DrewM
04-19-2006, 12:35 AM
uhh the no rating image isn't in the zip
DrewM
04-19-2006, 12:40 AM
uh alot of bugs:
the profile doen't show the pics
the alternet vboption does not work
SupremeWeapon
04-19-2006, 01:28 AM
and I think this hack may be causing double titles
Harald_T
04-19-2006, 07:26 AM
@Larrysw: Please check, if your forums-settings for the gallery are set. This may cause the problems.
@SupremeWeapon: What do you mean exactly?
DrewM
04-19-2006, 10:15 AM
one more thing you didn't include the "not rated" image in the zip.
Edit I've checked my settings there fine and the alternet edits teplet whats its name?
Harald_T
04-19-2006, 10:21 AM
The alternative layout is included in the "gallery_threadbit"-template. Did you set the alternative-layout-option in your Gallery-Options to "yes"?
And did you check, if your forums are set to "Act as a gallery"?
I will rework the instruction today and include the missing picture in the zip-file.
DrewM
04-19-2006, 10:25 AM
I got it to work I changed the first line to:
<if condition="$vboptions['gal_alt_layout'] == 0">
intead of:
<if condition="$gal_alt_layout == 0">
Harald_T
04-19-2006, 11:12 AM
That's interesting. Could be vB 3.5.4. Seems to be changed. I'll download the latest version and make an update for sure (i used 3.5.2 for testing).
I also found a bug inside the memberprofile-addition. Removed it already. So i will completly update today.
DrewM
04-19-2006, 11:36 AM
That's interesting. Could be vB 3.5.4. Seems to be changed. I'll download the latest version and make an update for sure (i used 3.5.2 for testing).
I also found a bug inside the memberprofile-addition. Removed it already. So i will completly update today.
k so this was more a "beta" realease.
Harald_T
04-19-2006, 12:03 PM
You could also say that this release was a bit too soon...
Harald_T
04-19-2006, 05:08 PM
Just to let you know:
Install-Instruction is rewritten, now i'm testing with vb 3.5.4.
So new version 1.20.1 will be uploaded tonight.
Soljah
04-19-2006, 07:26 PM
I am using vb 3.4.5 and I have uploaded, and edited. I have followed all instructions, but this still is not working for me. Can anyone help?
SupremeWeapon
04-19-2006, 08:16 PM
nvm.........
soniceffect
04-19-2006, 09:30 PM
Sorry if this has already been asked ... but hey .. 53 pages m8, your a popular kinda fella :) ....
Will there ever be any kinda mass upload feature? I realise this is not an easy task, but I know myself it`s the only thing that ever puts me off these hacks, as I run a trance forum with a night in manchester, and once there`s been a night out, I sometimes have 100 pics to upload :( ..
Harald_T
04-19-2006, 09:30 PM
Update will come tomorrow. I'm too tired for bug-hunting now. Everything is working fine, but, as i said, i'll have to check for bugs.
Harald_T
04-19-2006, 09:32 PM
@soniceffect: At the moment i don't have such a feature planned. I fear that this is not, what the gallery is made for.
Harald_T
04-20-2006, 09:45 AM
I wrote it before, it will be in the update coming today.
Harald_T
04-20-2006, 06:17 PM
So, new update is online!
tuanluu
04-20-2006, 09:47 PM
Great I am will be the first the install the update :) thank very much Harald
Magle
04-20-2006, 09:48 PM
Excellent!! Thanks for doing this mod :)
I have one small problem though, the gallery thumbnails are shown with a I think about 5 pixel wide black border on the right side of the thumb. Any way of removing that?
Magle
04-20-2006, 10:07 PM
One more thing:
It would be really nice if there was an option so clicking on the thumbnail either at "Latest Pictures" (front page or member profile) or the gallery would lead to the thread instead of opening the picture in full size.
I think that would be a more logic action (especially because there may be other pictures in the thread) - and also the way it works now the whole "teaser" function (which I'm glad to see in the update release, thanks!) will lose some value when everybody can view the full size image from the front page or member profiles.
Harald_T
04-20-2006, 10:18 PM
That's no problem, it's only a change on the template "gallery_lastespicture". I'll post the code tomorrow, if you are interested.
Magle
04-20-2006, 10:22 PM
That would be great thanks!
I'm still getting some weird behavior in the gallery forum display though as seen here (http://www.magle.dk/music-forums/pipe-organ-gallery/) for example. Any idea what could be wrong?
Soljah
04-20-2006, 11:47 PM
I am getting this error
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in D:\hshome\grownfol\forum.grownfolkscafe.com\vbport al\forums\index.php(488) : eval()'d code on line 124
Harald_T
04-21-2006, 07:50 AM
@Magle: Looks fine for me. What do you mean exactly?
@Soljah: You are using a portal? Could be this, which is causing the error. If so, which one exactly?
Soljah
04-21-2006, 08:00 AM
I am using a portal, but it appears that the Parse error is fixed. I still cannot seem to get to the point where I can upload photos.
http://forum.grownfolkscafe.com/vbportal/forums/forumdisplay.php?f=48
This is what shows
Harald_T
04-21-2006, 08:36 AM
I just see a "You're not registered"-Message, so i can't check.
Harald_T
04-21-2006, 11:57 AM
O.k., i checked it. You missed the file-edit on forumdisplay.php and the settings for the attachments were wrong. Please ensure, that "Display thumbnail for this type?" are set to yes.
Soljah
04-21-2006, 02:16 PM
Where would I find "Display thumbnail for this type"?
Harald_T
04-21-2006, 10:31 PM
In your attachment-settings.
SupremeWeapon
04-22-2006, 04:27 PM
wat about deletion. theres no field to delete images. just the normal delete selected fields that appear in forums. but images dont have the selection boxes.
Harald_T
04-22-2006, 05:55 PM
You can edit the post and use the normal attachment-managment, to delete pictures.
Harald_T
04-24-2006, 05:53 PM
It's no problem. Just go to the Attachment-Manager of your vB and tell him to save the files on the server. There is a function for this.
Harald_T
04-24-2006, 08:58 PM
Ach Du kommst ja aus Köln, sehe ich gerade.
Im Attachment-Manager hast Du eine Option "Speicherart". Diese anwählen und dem vBulletin dann den Speicherort mitteilen. Achte aber darauf, das das ausgewählte Verzeichnis beschreibbar ist.
Harald_T
04-25-2006, 04:55 PM
@Mike-D: Also, es sollte eigentlich funktionieren. Du musst nur aufpassen, das Du auch den kompletten Pfad angibst (also nicht nur z. B. images/uploads oder so etwas). Den kompletten Pfad kannst Du aus der PHP-Info entnehmen. Falls es Probleme gibt, dann sag Bescheid, ich schau es mir gerne mal an.
Es freut mich natürlich, wenn es Dir gefällt. Aber ganz fertig ist es noch nicht, ein paar Sachen möchte ich schon noch realisieren (z. B. die Abmaße des Bildes, usw.).
Harald_T
04-25-2006, 08:19 PM
Normalerweise sollte nur das TEMP-Verzeichnis direkt von Belang sein. Hast Du die Daten schon mal so eingefügt, wie Scott es genannt hat?
Ansonsten PM mich mal an, wenn Du magst, schau ich mir Dein ACP mal an.
Bernd
04-26-2006, 12:41 PM
A couple of things I have noticed:
Bugs,
More than one image can be uploaded. The second image is shown, but it takes the same width as the previous image. If the second image is larger than the first one uploaded, it will be stretched and pixelated as a result.
Still some german phrases left that are not translated (you are not registered, for one).
Feature requests,
Either limit upload in a gallery to one attachment for the first post, or allow more images but with correct thumbnail sizes calculated per image.
Featured images. Admin can appoint specific images to be displayed on the forum home.
Thanks for this great hack btw. Well done ;)
Harald_T
04-26-2006, 03:24 PM
@Bernd: I will think over the last feature. Could be interesting.
Bernd
04-26-2006, 04:37 PM
I've currently created a different featured images addition for this gallery.
You can choose a forum that will be used to pull the featured images from. Forum id of the featured image forum can be changed in the admincp panel as well as the option to either choose to display featured images on forumhome or not.
An admin or mod simply move the images from the general to the featured forum, and they will be automatically posted in the featured forumhome template addition.
Only thing left is that i want to pull down the last uploaded thumbnail of the first post, instead of the first thumbnail.
Is there an easy way to do this? Currently using
$featured_thumbs = $db->query_read("SELECT featured, threadid, firstpostid, ". TABLE_PREFIX . "thread.title, attachmentid, ". TABLE_PREFIX . "attachment.dateline FROM ". TABLE_PREFIX . "attachment, ". TABLE_PREFIX . "thread, ". TABLE_PREFIX . "forum
WHERE featured='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() ."
GROUP BY ".TABLE_PREFIX ."thread.threadid
ORDER BY ".
TABLE_PREFIX . "attachment.dateline DESC LIMIT $gal_num_rows");
while ($gallery = $db->fetch_array($featured_thumbs))
{
eval('$featuredgallery .= "' . fetch_template('gallery_featuredpictures') . '";');
}
Harald_T
04-26-2006, 07:24 PM
Did you try to use :
ORDER BY ".
TABLE_PREFIX . "attachment.dateline ASC LIMIT $gal_num_rows");
SupremeWeapon
04-30-2006, 02:24 AM
erm errors.
after a few weeks? of this being installed it stopped working. when you click upload it goes to
newthread.php?do=newthread&f=13
but that is BLANK.
ideas?
Harald_T
04-30-2006, 09:22 AM
To be honest: No. Did you install anything new on your board? Did you an update or something? Or was anything changed on your server
I run the gallery for over a year already, and hadn't had any problems like this one.
Tyegurl
04-30-2006, 09:53 AM
okay i read earlier in this thread that i get the following error for not running the query...then the updated one runs it in the xml....so...what have i done wrong?
Database error in vBulletin 3.5.4:
Invalid SQL:
INSERT INTO forum
(title_clean, title, description_clean, description, link, displayorder, daysprune, parentid, newpostemail, newthreademail, options, styleid, password, page, showfirstpost, vbbux_perview, vbbux_perthread, vbbux_perreply, vbpforumoptions, vbp_cangetaccesscost, vbp_cangiveaccesscost, vbp_candenyaccesscost, vbp_cangetpasswordcost, accessf_nb, accesst_nb, create_nb, reply_nb, allowupdate, increase_money, gallery)
VALUES
('New Gallery', 'New Gallery', '', '', '', 1, -1, -1, '', '', 229059, 50, '', 0, '0', 1, 15, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'yes', '1');
MySQL Error : Unknown column 'allowupdate' in 'field list'
Error Number : 1054
Tyegurl
04-30-2006, 09:55 AM
maybe if you tell me how to drop the query table and then i reupload the xml with overwrite?
okay so my exact problem is....i can specify a forum to add the gallery...but i can not create a new one....
i need to drop the previous version's table....how would i do that? this was the query ran....
ALTER TABLE `forum` ADD `gallery` TINYINT( 4 ) NOT NULL
SupremeWeapon
04-30-2006, 01:22 PM
I havent done anything but add new posts to the forums.. and if THAT errors the mod.. then it needs some serious debugging...
defcon_420
05-01-2006, 04:58 AM
AWESOME!! "clicks install"
what a great job you have done with this :D i've been looking for something like this for AGES... now if only i can display a random photo in my vbadvanced all would be complete :)
Bernd
05-01-2006, 08:19 AM
Harald, here are the promised images. Still haven't figured out the correct query needed to pull the last uploaded image of the first posts. It's explained in the images too.
DrewM
05-01-2006, 09:09 AM
maybe if you tell me how to drop the query table and then i reupload the xml with overwrite?
okay so my exact problem is....i can specify a forum to add the gallery...but i can not create a new one....
i need to drop the previous version's table....how would i do that? this was the query ran....
ALTER TABLE `forum` ADD `gallery` TINYINT( 4 ) NOT NULL
This isn't the gallery it is another mod I would suggest disabling other hacks one by one, when the error is gone report it to that mods thread.
Harald_T
05-01-2006, 09:15 AM
@Tyegurl: Normally, if you deinstall the product, the database-changes will be removed. So, just try to deinstall an reinstall.
But i'm the same meaning as Larrysw: The displayed error isn't called up through my gallery-hack.
Tyegurl
05-01-2006, 10:50 AM
yes i found that out yesterday.....the allowupdate is developer's send an update pm/email mod... he had 2 products so i installed the other one and woohoo the gallery is working. thanks guys for the help ;)
Harald_T
05-01-2006, 06:17 PM
@Bernd: Got it so far to display the LAST attachment of the first post. I'm now coding the rest, maybe i can update the hack tonight, if i get so far.
Bernd
05-01-2006, 06:49 PM
Thanks for helping me out.
Mind posting the query you used? I'll be able to proceed if I have it.
The rest of modifications shown in the images already work.
Harald_T
05-01-2006, 09:10 PM
If you don't mind i'll integrate this into the gallery, cause it's a good idea.
Bernd
05-01-2006, 09:43 PM
Go right ahead, not that you need my permission ;)
I can't see the picture. http://www.zikihideout.com/forums/showthread.php?p=2523#post2523
DrewM
05-03-2006, 08:43 PM
Disable the code that enables that puts that for the postbit.
Ermm....didn't quite get you
DrewM
05-04-2006, 06:44 PM
In plugin manager disable the plugin under the hook location of Showthread_something it should be easy to find.
Harald_T
05-04-2006, 07:35 PM
The problem is, that the graphics-settings on your board are wrong. Please check, if you have thumbnails enabled for attachment (you can find it in your vbulletin-options). Also read the little FAQ in the install-instruction.
bfitts
05-05-2006, 07:20 PM
When I click upload...
It just takes me to a regular looking post new thread page.
Is it supposed to do something different?
DrewM
05-05-2006, 07:39 PM
When I click upload...
It just takes me to a regular looking post new thread page.
Is it supposed to do something different?
the new thread isn't affected by this mod.
cannabis-world
05-05-2006, 11:49 PM
is it possible to post an upload an attachment that isn't connected to thread, so that it shows up in the members gallery but not in any post
Bubble #5
05-06-2006, 01:34 AM
Featured images. Admin can appoint specific images to be displayed on the forum home.
Was this feature ever added? :surprised:
Bernd
05-06-2006, 07:37 AM
Not yet.
Still waiting for it, or the sql query i requested so I can finish it.
Harald_T
05-06-2006, 08:40 AM
I'm busy on it atm.
Harald_T
05-06-2006, 10:21 AM
@Bernd: It's working now. I'm working on the templates at the moment.
The problem is, that the graphics-settings on your board are wrong. Please check, if you have thumbnails enabled for attachment (you can find it in your vbulletin-options). Also read the little FAQ in the install-instruction.
Thumbnails are enabled.
imported_magjr
05-07-2006, 03:12 AM
I installed this but it slowed my board down to a crawl, to the point to where my server admin had to go in and reset the httpd.
It got so bad I had to upgrade the software and now it doesnt work at all. What is the query uninstall code I can run in the myphp area? my board is totally hosed for the time being.
Harald_T
05-07-2006, 09:19 AM
I never really recognized a slowdown of the board, to be honest. And which software you did have to upgrade?
The uninstall-query is integrated in the XML-File. Just uninstall the product and remove the file-edit on forumdisplay.php, that's all.
Harald can you help me out?
imported_magjr
05-07-2006, 01:16 PM
I never really recognized a slowdown of the board, to be honest. And which software you did have to upgrade?
The uninstall-query is integrated in the XML-File. Just uninstall the product and remove the file-edit on forumdisplay.php, that's all.
I tried upgrading from the old 3.5.0 version and it didn't work. Now, like I said, my whole board is hosed and I can't even get to the control panel! I get the error message
"
There seems to have been a problem with the yoursite.com database.
Please try again by clicking the Refresh button in your web browser.
An E-Mail has been dispatched to our Technical Staff, whom you can also contact if the problem persists.
We apologise for any inconvenience."
When I log into control panel, this is the message I get. WHen I go to my forums, the message I get. Whats the code to run in the sql section so I can uninsall this? anyone? I can't get to my control panel
imported_magjr
05-07-2006, 01:22 PM
here's the exact error message I'm getting:
"Database error in vBulletin 3.5.4:
Invalid SQL:
SELECT gallery, threadid, firstpostid, thread.title, attachmentid,
attachment.dateline FROM attachment, thread, forum
WHERE gallery='1' AND thread.forumid=forum.forumid AND thread.firstpostid =
attachment.postid AND attachment.dateline < 1147011676
GROUP BY thread.threadid
ORDER BY attachment.dateline DESC LIMIT 5;
MySQL Error : Unknown column 'gallery' in 'field list'
Error Number : 1054
Date : Sunday, May 7th 2006 @ 08:21:16 AM
Script : http://www.fubardsite.com/forums/index.php?
Referrer : http://www.fubardsite.com/forums/index.php?
IP Address : xx.xx.xx.xxx
Username : Unregistered
Classname : vb_database
Harald_T
05-07-2006, 03:22 PM
You have to disable temporarily your plugins. You can do this via config.php as far as i remember or via the database. Search here at vb.org for doing this.
After you disabled the plugins you should be able to login again and remove the product.
headshotx
05-07-2006, 07:22 PM
I Have a error whit Thumbails .. look mi attachment .. i use GD sistem for Thumbails .. :surprised:
Harald_T
05-07-2006, 08:35 PM
@headshotx: Check at your attachment-settings, if "Generating Thumbnails" is enabled. You don't find this in your vb-options, but in your attachment-settings (where you can define the filesize for attachments, and so).
headshotx
05-07-2006, 10:21 PM
@headshotx: Check at your attachment-settings, if "Generating Thumbnails" is enabled. You don't find this in your vb-options, but in your attachment-settings (where you can define the filesize for attachments, and so).
Sorry but i don't find this option .. you can post a image whit this option please :surprised:
DrewM
05-08-2006, 09:14 AM
Just go show all settings then hit Ctrl+F and put "attachment" with out the qoutes.
Hi all,
The first reply on the second page (or third,so on...) is shown as a gallery table. Screenshot as below. Kindly advise a solution for me, thanks.
http://img221.imageshack.us/img221/1814/bug0ky.jpg
Please harald can you help me out!
Harald_T
05-08-2006, 04:57 PM
@Ziki-Set: Can you grant me access to your AdminCP? Please contact me via PM.
@dt~: I've checked it. Yupp, you're right. This is definately a bug. I will look after it. Thanks for advice.
Harald_T
05-08-2006, 05:49 PM
Bugfix for displaying the second side incorrect:
Change the code for the plugin "gallery_showthread_postbit" as followed:
if ($foruminfo[gallery] == '1'){
if ($counter == 1 AND $fetchtype == 'post' AND !$changed AND $vbulletin->GPC['pagenumber'] == 1)
{
$fetchtype = 'gallery_postbit';
$changed = true;
}
}
That's it!
headshotx
05-08-2006, 06:22 PM
Harald_T help me whit thumbails please :surprised:
Harald_T
05-08-2006, 06:31 PM
As i said, check in your attachment-manager if your system generates thumbs.
Check your settings:
47146
And for sure look if the marked option is set to YES.
47147
Those pictures are in german, but i think you can find it on your own, where to look.
Oh, and ARE you using attachments? This gallery doesn't work with [IMG]-Code at the moment.
Harald,
attachment tumbs are on yes and thubnamials are enabled and it still doesn't show up!What now?
Harald_T
05-08-2006, 07:27 PM
Do the thumbnails work on the rest of your board?
In your vbulletin-options you have one to define if thumbs are used or not. Please check this also.
Oh, and check the permissions for viewing attachments.
SuperKizer
05-09-2006, 05:42 AM
Do the thumbnails work on the rest of your board?
In your vbulletin-options you have one to define if thumbs are used or not. Please check this also.
Oh, and check the permissions for viewing attachments.
I am having the same issue. Everything but the thumbnails work. I have gone over my user permissions, the attachment permissions and I even rebuilt the thumbnail data under maintainance and the thumbs still wont show. Any other suggestions? Thanks!
The thumgnails work on the rest of teh board.All is set
OK I got it to work.I forgot to rebuild attachment thumbnails ;)
Harald_T
05-09-2006, 04:50 PM
@Superkiezer: Are you using attachments? May sound stupid, but i found out, that some people forget, that this gallery is only working with attachments yet.
Also, if you don't see any attachments: Do you enabled thumbs in your vbulletin-options?
Otherwise let me know the adress of your board.
SuperKizer
05-10-2006, 03:03 AM
@Superkiezer: Are you using attachments? May sound stupid, but i found out, that some people forget, that this gallery is only working with attachments yet.
Also, if you don't see any attachments: Do you enabled thumbs in your vbulletin-options?
Otherwise let me know the adress of your board.
Okay, for some reason after the inital post it seems to work now. Thanks. :)
SuperKizer
05-10-2006, 05:19 AM
Actually, sorry but another quick question.. Do you have a modification to make this work with vbadvance? I'm trying to get it to show up on the index page of the site but for some reason it won't show the pictures. Thanks!
Harald_T
05-10-2006, 04:44 PM
I've one. But i have to check, if it still works with vbadvanced. Wait for the weekend.
Antiblank
05-12-2006, 11:36 AM
Two quick questions that maybe I've overlooked:
1) Is it possible to have it not expand the images that are uploaded if they are under a specific size. Right now the thumbnails look fine but say a user uploads an image that is only 150x150 pixels the image full display shows it horribly distored and blown up.
2) Images under a certain size look fine in the thumbnail display but when I click on the thumbnail to view the full image I get an empty box with nothing I can click on or see where the image should be.
DrewM
05-12-2006, 06:49 PM
Two quick questions that maybe I've overlooked:
1) Is it possible to have it not expand the images that are uploaded if they are under a specific size. Right now the thumbnails look fine but say a user uploads an image that is only 150x150 pixels the image full display shows it horribly distored and blown up.
2) Images under a certain size look fine in the thumbnail display but when I click on the thumbnail to view the full image I get an empty box with nothing I can click on or see where the image should be.
1) In the gallery_attachment templeat replace it with:
<a href="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&d=$attachment[dateline]"<if condition="$show['newwindow']"> target="_blank"</if>>
<img class="thumbnail" src="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&stc=1&thumb=0&d=$attachment[thumbnail_dateline]" border="0" align="center"></a>
<if condition="$show['br']"><br /><br /></if>
jadkar
05-12-2006, 09:06 PM
Does anyone have a English version of this up and running?? Specifically I'm trying to see if this is tied to the members profile, that way from the member's profile there's a link to that persons gallery.
Harald_T
05-13-2006, 10:49 AM
@jadkar: This feature isn't implemented. You only can see a certain kind of pictures which has been posted of the member at last. A member-gallery is on the list, but i haven't started yet on it.
DrewM
05-13-2006, 11:02 AM
Harald_T Couldn't you use the "extension" field in the attachment table to only get images for forum display?
Harald_T
05-13-2006, 01:07 PM
You mean, that only images could be uploaded to the gallery?
DrewM
05-13-2006, 02:11 PM
You mean, that only images could be uploaded to the gallery?
not quite but use it in the forum display query
SuperKizer
05-13-2006, 02:42 PM
Does anyone have a English version of this up and running?? Specifically I'm trying to see if this is tied to the members profile, that way from the member's profile there's a link to that persons gallery.
I have it up and running on mine and it does post from their gallery on the members profile. It's pretty sweet. :)
Gehanna
05-13-2006, 08:40 PM
Hello :cool:
I just installed this and I think it is fantastic however, I have a couple of questions please:
1) Even tho the option to download attachments has been enabled for each user group, I find that I am still getting a red x in place of the image when I am not logged in. How can I resolve this issue?
2) I am using a green colored border and green text on the forums. This creates a problem with being able to see the text under the image in the show last pictures area on the forum home. Is there some alternative I can take to help resolve the issue as opposed to having to change my original border and text colors for the entire forum?
3) I noticed that in some places there seems to be a bit of German text here and there. This text is not found in the template areas or in the phrase manager. Can I open the xml page in a text editor, find the text and make the changes from German to English or will this mess things up?
Here is a quick link to the forums for an example of the issues I am having:
http://www.currentday.com/forums/
Your help in resolving the issues would be greatly appreciated.
Sincerely,
Gehanna
Bernd
05-14-2006, 08:06 AM
Hello :cool:
I just installed this and I think it is fantastic however, I have a couple of questions please:
1) Even tho the option to download attachments has been enabled for each user group, I find that I am still getting a red x in place of the image when I am not logged in. How can I resolve this issue?
2) I am using a green colored border and green text on the forums. This creates a problem with being able to see the text under the image in the show last pictures area on the forum home. Is there some alternative I can take to help resolve the issue as opposed to having to change my original border and text colors for the entire forum?
3) I noticed that in some places there seems to be a bit of German text here and there. This text is not found in the template areas or in the phrase manager. Can I open the xml page in a text editor, find the text and make the changes from German to English or will this mess things up?
Here is a quick link to the forums for an example of the issues I am having:
http://www.currentday.com/forums/
Your help in resolving the issues would be greatly appreciated.
Sincerely,
Gehanna
1) You have to enable attachment download for unregistered members.
2) You can alter the gallery templates in the gallery_threadbit template. The text DateigroBe is located there too. You can replace it with a phrase by replacing it with $vbphrase[size]. Go to the phrase manager and add a phrase with the variable size, global, vbigallery.
3) That should work, or you can find the phrase manager in the languages & phrase manager and give an alternative translation there.
Gehanna
05-14-2006, 11:35 AM
Hello Bernd,
Thank You for your reply. I will give suggestion #2 a try however suggestion #1 remains an issue as the attachment download for unregistered members is and has been enabled.
Sincerely,
Gehanna
Bernd
05-14-2006, 12:58 PM
Are you sure you have enabled it through forum permissions\correct forum?
Something completely different.
This hack doesn't support proper resizing of gallery images yet.
I am wondering if the following code can be used?
http://www.phpbuilder.com/board/showpost.php?p=10526868&postcount=7
I have tried adjusting the gallery_attachment template, but the attached thumbnails are not correctly read.
<IMG SRC="tn_image.php?image=file.jpg">
is the code used to resize the images.
file.jpg has to be replaced with
attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]
It seems attachments are not "read" as images, so it has to be either temporarily stored or something else needs to be done..not sure.
Gehanna
05-14-2006, 01:16 PM
Bernd said:
Are you sure you have enabled it through forum permissions\correct forum?
Ahhhh ... it is fixed :banana:
Thank You Bernd very much for your help!!
I hope someone will respond to the questions you asked above as fast as you did mine.
Sincerely,
Gehanna
Harald_T
05-14-2006, 04:17 PM
@Bernd: As far as i remember, there is a function for this. I'll look after it after the weekend. It's already bothering me too, this problem.
Harald_T
05-14-2006, 05:54 PM
Coming soon (maybe tonight):
- new: featured gallery/forum. With the help of this you can define a special gallery or a forum and show the thread at the top of the page. I've to thank Bernd for this, he had the idea on this to do.
Here's a screenshot of it:
UtahNissans
05-15-2006, 11:52 PM
Does this forum allow you to restrict access to specific usergroups?
imported_magjr
05-15-2006, 11:59 PM
is there a way to get the images that are chosen as for this gallery, to show up on the control panel? I see where images can be submitted, but not where they can be put by admins
imported_magjr
05-16-2006, 12:03 AM
Does this forum allow you to restrict access to specific usergroups?
Yes, you have to work it though the forums permissions as well as user group permissions.
On my board, no one can post to the gallery except the gallery chairman, so I edited user groups and form permissions and it works great.
Bernd
05-16-2006, 07:12 AM
Yes, you have to work it though the forums permissions as well as user group permissions.
On my board, no one can post to the gallery except the gallery chairman, so I edited user groups and form permissions and it works great.
Can View Thread Content option does not seem to work though. Unregistered members can never view the gallery, no matter what permissions are set.
Harald_T
05-16-2006, 03:51 PM
This is a setting in the templates. Normally also guests can view the gallery. At least they should be able to see the thumbnails. See here:
www.sf-galerie.de
Bernd
05-16-2006, 04:07 PM
I've looked at the gallery postbit template, but not sure what has to be removed to allow guests to view the gallery posts themselves.
I'm currently reading up on the permissions system of vbulletin. Would be nice if the gallery pulls all permissions directly from the forum\user permission settings, including being able to view a thread\gallery thread or not.
UtahNissans
05-17-2006, 12:59 AM
Hey I noticed with your install instructions it shows you have to link it in the navbar but what if I want to add it to the bigger gray bar that home and everything else is located in?
Also where is the template forumhome located?
azntfl
05-17-2006, 03:13 AM
I've looked at the gallery postbit template, but not sure what has to be removed to allow guests to view the gallery posts themselves.
I'm currently reading up on the permissions system of vbulletin. Would be nice if the gallery pulls all permissions directly from the forum\user permission settings, including being able to view a thread\gallery thread or not.
Yeh I am having a lot of trouble with this also :(
UtahNissans
05-17-2006, 03:46 AM
Are you both just referring to the fact that guests cant view the gallery? Or are you saying that if someone isnt in the usergroup to use the gallery that they can't view it?
I just want to double check because I want to be able to limit each users ability to upload to the gallery but have all registered users be able to view pics.
napukjon
05-17-2006, 02:21 PM
Just a little problem
Pictures aren't showing up in the Gallery. Not even a red X. Any help would be greatly appreciated!
But the pictures appear on the front page!
Harald_T
05-17-2006, 03:51 PM
Check in your vbulletin-options, if you have set thumbs enabled. It could be, that not the thumbnails, but the attachment as it self will be shown in the post.
The problem for me is: I only have the german-version of the board, and i don't know the english translation for the options.
napukjon
05-17-2006, 04:14 PM
First thing i check and there enabled.
UtahNissans
05-17-2006, 06:26 PM
Are you both just referring to the fact that guests cant view the gallery? Or are you saying that if someone isnt in the usergroup to use the gallery that they can't view it?
I just want to double check because I want to be able to limit each users ability to upload to the gallery but have all registered users be able to view pics.
Anyone....?
UtahNissans
05-17-2006, 10:45 PM
Hey I noticed with your install instructions it shows you have to link it in the navbar but what if I want to add it to the bigger gray bar that home and everything else is located in?
Also where is the template forumhome located?
Anyone? Am I actually looking for .php file or do I go through vbulletin admin panel to edit?
azntfl
05-18-2006, 01:55 AM
I just want it so guess can view the pictures instead of this coming up
"Nur für Mitglieder!"
UtahNissans
05-18-2006, 02:20 AM
Is there not an english version?
azntfl
05-18-2006, 02:47 AM
i dunno, i am thinking of uninstalling this mod and try Photoplog
UtahNissans
05-18-2006, 04:49 AM
I got it installed on my site in english. Only problem is there is no upload button and the gallery looks like a normal forum thread
Bernd
05-18-2006, 05:26 AM
Is there not an english version?
Changing the language,
A few posts back i have explained how to change the text "nur fur mitglieder". All german text is hard coded, but it can be easily replaced with phrases (see one of my previous posts). It only takes a few minutes.
Allow guests to view the gallery,
-Open the template gallery_postbit
-Remove the following lines
<if condition="$show['member']">
and
<br />
<table class="tborder" id="post$post[postid]" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="640" align="center">
<tr>
<td class="thead">
Nur f?r Mitglieder!
</td>
</tr>
<tr>
<td class="alt1">
<img src="images/not_registered.jpg">
</td>
</tr>
</table>
Done! If you remove the above, the gallery will use the forum's permissions fully. So, if you disallow guests to view a thread, the gallery thread will not be displayed etc etc.
Upload permissions,
As for upload permissions, the gallery should still use the forum's upload permissions. Just set the upload permissions for an usergroup and they won't be able to upload, but will still be able to view the gallery.
if your forum thread looks normal, you have probably forgotten to specify that the forum should act as a gallery under forum options.
Buttons,
Most templates come with a psd file. Make your own ;)
p.s. I'm not the one who should be saying this, but have some patience. These hacks are available for free.
napukjon
05-18-2006, 07:28 AM
I got it installed on my site in english. Only problem is there is no upload button and the gallery looks like a normal forum thread
What internet browser do you use?
Harald_T
05-18-2006, 05:14 PM
@Bernd: I know i should be the one, but thanks anyway for your help. I'm just having almost no time atm, so this is, why i don't answer any time.
UtahNissans
05-19-2006, 03:27 AM
What internet browser do you use?
I use firefox.
UtahNissans
05-19-2006, 03:41 AM
So answer me this. THe instructions say to upload the upload.jpg in the folder images/button, now the icon I have in the .zip download is upload.gif. Also is it images/button or forums/images/button or forums/images/buttons?
The reason I ask is because I am getting nothing but "There are no posts in this forum"
Bernd
05-19-2006, 09:07 AM
wrong placement of a button shouldn't get you the return message you are receiving, only a red x.
post the url to your website if you can...it's a bit hard to imagine what is going on without looking at it.
UtahNissans
05-19-2006, 06:51 PM
wrong placement of a button shouldn't get you the return message you are receiving, only a red x.
post the url to your website if you can...it's a bit hard to imagine what is going on without looking at it.
http://utahnissans.com/forumdisplay.php?f=60
Zowners
05-19-2006, 11:04 PM
Ok I have everything working fine I was just wondering can you make the latest gallery pictures section collapsable. And is it possible to insert subforums in a forum in the gallery category. At the moment its created duplicates of the subforums in the gallery category.
Bernd
05-20-2006, 07:03 AM
http://utahnissans.com/forumdisplay.php?f=60
I can't even register on your forum without getting an error, so i doubt it's a gallery related issue ;)
Harald_T
05-20-2006, 03:13 PM
@Zowners: I can make it collapsable, i will include it in the next coming update. A subforum isn't possible atm. But i will look after it.
Bernd
05-20-2006, 05:24 PM
Here is a working thumbnailer for this gallery.
step 1,
edit template gallery_attachment and replace the code with
<if condition="$attachment[filename] == $vboptions[featured_thumbnail]">
<else />
<a href="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&d=$attachment[dateline]"<if condition="$show['newwindow']"> target="_blank"</if>>
<img class="thumbnail" src="tn_image.php?image=$vboptions[bburl]/attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]" border="0" align="center"></a>
<if condition="$show['br']"><br /><br /></if></if>
'/' in '$vboptions/attachment.php' has to be left out if you've set your forum url ending with '/' in forum options.
[B]
Step 2,
Upload tn_image.php to your forum directory and set the following parameters to your specifications
$x = 600; //width
$y = 600; //height
Currently, tn_image.php resizes images that are too small to the paramaters specified. Someone with a bit more php knowledge should be able to fix that easily. The current advantage over the old resizer is that it uses the GD library to create thumbnails, meaning that images will not have the pixelated look that it would otherwise have.
Note that tn_image.php was not written by me. I can't credit the writer since the name was not listed ;)
Harald_T
05-20-2006, 06:01 PM
Thanks for your help Bernd. I will see how i can integrate it completly.
DrewM
05-21-2006, 06:53 PM
why not just use the condition with the extenion field it's alot easier.
Harald_T
05-21-2006, 07:12 PM
@LarrySW: But this one only assures that only a picture will be uploaded. But it doesn't check the size of it.
Bernd
05-21-2006, 07:40 PM
Well, it would solve the issue that currently files are being parsed too.
Would it be possible to create a sql that selects attachments with certain extensions only?
For example $vboptions[galleryextensions] returns the value jpg,bmp,png and adjust the sql to only return attachments with these extensions. It's not exactly a condition, but i guess it might be a bit easier to implement?
Would a plugin hooked into attachment.php which checks for certain extensions in the upload field require less resources than the above?
I guess it's the last thing that would make this gallery fool proof.
Harald_T
05-21-2006, 08:59 PM
I thinked over this possibilty and i'm not quite sure, but i think it's exactly that, what LarrySW is talking about.
DrewM
05-21-2006, 09:06 PM
Well, it would solve the issue that currently files are being parsed too.
Would it be possible to create a sql that selects attachments with certain extensions only?
For example $vboptions[galleryextensions] returns the value jpg,bmp,png and adjust the sql to only return attachments with these extensions. It's not exactly a condition, but i guess it might be a bit easier to implement?
Would a plugin hooked into attachment.php which checks for certain extensions in the upload field require less resources than the above?
I guess it's the last thing that would make this gallery fool proof.
that is exactly what I mean :p
Harald_T
05-21-2006, 09:15 PM
Ok, i will look after it, but, give me some time. I don't have too much freetime.
imported_magjr
05-23-2006, 01:19 AM
I have it running on my board now, however it slows my entire server down. most cases, I have to restart apache. Any ideas?
UtahNissans
05-23-2006, 04:29 AM
I can't even register on your forum without getting an error, so i doubt it's a gallery related issue ;)
Try again, I just resolved this issue with vbulletin support. Let me know what you think I did wrong.
Bernd
05-23-2006, 06:54 AM
check if gallery_postbit template exists. The rest seems to work fine.
Gehanna
05-23-2006, 10:43 AM
Hello Again,
I primarily use the Firefox browser version 1.5.0.3. When I view the gallery using this browser, I noticed that the images are set to the left leaving black space over in the right of the thumbnail. If you use Firefox, please refer to this link for an example of what I mean:
http://www.currentday.com/forums/forumdisplay.php?f=71
Is there anything I can do to fix this so that the thumbnail is centered properly when viewing the image in Firefox?
Sincerely,
Gehanna
LBSources
05-23-2006, 01:04 PM
very well .. but i willl wait fro
Possibility for file-upload, not only pictures.
as you had said maybe it would be included in _this_ release :(
Thanks anyway .. good job :)
UtahNissans
05-23-2006, 03:34 PM
check if gallery_postbit template exists. The rest seems to work fine.
It seems I do have it under "Gallery Templates"
<!-- post #$post[postid] -->
<if condition="$show['member']">
<if condition="$show['spacer']">
$spacer_open
<div id="edit$post[postid]" style="padding:0px 0px $stylevar[cellpadding]px 0px">
<if condition="!$post['islastshown']"><!-- this is not the last post shown on the page --></if>
</if>
<table class="tborder" id="post$post[postid]" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="thead">
<div class="normal">
</div>
</td>
</tr>
</table>
<br />
<table class="tborder" id="post$post[postid]" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="640" align="center">
<tr>
<td class="thead">
</td>
</tr>
<tr>
<td class="alt1" id="td_post_$post[postid]">
<!-- message, attachments, sig -->
<if condition="$show['thumbnailattachment']">
<div style="padding:$stylevar[formspacer]px" align="center">
$gallery_attachment
$post[gallery_attachment]
</div>
</if>
</div>
<!-- / attachments -->
</td>
</tr>
<tr>
<td class="alt2">
$vbphrase[gal_show_pic_size]
</td>
</tr>
</table>
<br /> <br />
<table class="tborder" id="post$post[postid]" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="350" align="center">
<tr>
<td class="tcat" colspan="2">
Informationen
</td>
</tr>
<td class="alt2">
<b>
$vbphrase[gal_posted_by]
</b>
</td>
<td class="alt1" align="right">
$post[musername]
</td>
</tr>
<tr>
<td class="alt2">
<b>
$vbphrase[gal_posted_date]
</b>
</td>
<td class="alt1" align="right">
$post[postdate]
</td>
</tr>
<tr>
<td class="alt2">
<b>
$vbphrase[rating]
</b>
</td>
<td class="alt1" align="right">
<if condition="$thread[rating]">
<img class="inlineimg" src="$stylevar[imgdir_rating]/rating_$thread[rating].gif">
<else />
</if>
</td>
</tr>
<tr>
<td class="alt2" colspan="2">
<b>
$vbphrase[gal_comments]
</b>
</td>
</tr>
<tr>
<td colspan="2" class="alt1">
$post[message]
</td>
</tr>
</table>
<br />
<hr>
<if condition="$post['editlink']">
<a href="$post[editlink]" name="vB::QuickEdit::$post[postid]"><img src="$stylevar[imgdir_button]/edit.gif" alt="$vbphrase[edit_delete_message]" border="0" /></a>
</if>
<if condition="$show['spacer']">
</div>
$spacer_close
</if>
<else />
<if condition="$show['spacer']">
$spacer_open
<div id="edit$post[postid]" style="padding:0px 0px $stylevar[cellpadding]px 0px">
<if condition="!$post['islastshown']"><!-- this is not the last post shown on the page --></if>
</if>
<br /><br />
<table class="tborder" id="post$post[postid]" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="640" align="center">
<tr>
<td class="thead">
Nur f?r Mitglieder!
</td>
</tr>
<tr>
<td class="alt1">
<img src="images/not_registered.jpg">
</td>
</tr>
</table>
<if condition="$show['spacer']">
</div>
$spacer_close
</if>
</if>
<!-- / post #$post[postid] -->
<!-- / post #$post[postid] -->
Harald_T
05-23-2006, 04:43 PM
@UtahNissans: Your problem is, as far as i can see, that your board doesn't show thumbs in posts. Check it in your vb-options. This should normally solve your problems.
UtahNissans
05-23-2006, 06:15 PM
@UtahNissans: Your problem is, as far as i can see, that your board doesn't show thumbs in posts. Check it in your vb-options. This should normally solve your problems.
Are you referring to the PNG Thumbnails option?
DrewM
05-23-2006, 06:47 PM
mayby if it is a PNG, then yes, but I think he means the over all attachment setting.
imported_magjr
05-23-2006, 09:21 PM
I have it running on my board now, however it slows my entire server down. most cases, I have to restart apache. Any ideas?
Hellloooooo?
anyone out there? I don't want to uninstall, but I can't have it around if it's seizing up my board
I'm running 3.5.4
UtahNissans
05-24-2006, 06:50 AM
I searched around and I already have the attachment setting enabled.
AzianStang
05-24-2006, 07:33 AM
Harald, tried installing and followed everything as written, but I can't even seem to get an UPLOAD button. The Gallery navbar link leads directly to a subforum, and to nothing when that is clicked. I've checked everything to make sure thumbnails are enabled in both vb options and in attachment settings.
Could I have maybe messed up the forumdisplay.php rewrite?? I followed your directions to a T.
Help a super noob out! Thanks.
DrewM
05-24-2006, 09:13 AM
AzianStang, what does your gallary_forumdisplat templeat have for contents?
Harald_T
05-24-2006, 11:59 AM
Hellloooooo?
anyone out there? I don't want to uninstall, but I can't have it around if it's seizing up my board
I'm running 3.5.4
Can you define "seizing up your board" a bit more? Why it's getting slower? To much memory usage or something else. Without infos i can't suggest it.
Harald_T
05-24-2006, 01:57 PM
Just to let you know, what's coming next:
Admin-Option: Featured Post (thanks for Bernd and his suggestions for this): Now you can mark a thread as featured. Add a little thumbnail to the first post and it will be shown at the top of forumhome. (Oh, Bernd, you don't need any longer a special forum for it. Now it jumps right to the selected thread). This can be set on/off by the gallery-options. Also you can define a name for the included thumb, so it will not be shown.
AzianStang
05-24-2006, 03:30 PM
Here's my gallery_forumdisplay template:
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<meta name="description" content="$foruminfo[description]" />
<title>$vboptions[bbtitle] - $foruminfo[title]</title>
$headinclude
</head>
<body>
$header
$navbar
<br />
<table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-bottom:3px">
<tr valign="top">
<td class="smallfont"><if condition="$show['newthreadlink']"><a href="newthread.php?$session[sessionurl]do=newthread&f=$foruminfo[forumid]"><img src="$stylevar[imgdir_button]/upload.gif" alt="$vbphrase[post_new_thread]" border="0" /></a><else /> </if></td>
<if condition="$pagenav"><td align="$stylevar[right]">$pagenav</td></if>
</tr>
</table>
<if condition="$show['threadslist']">
<!-- threads list -->
<table cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" class="tborder">
<tr>
<td class="thead"> </td>
</td>
</tr>
<if condition="$show['threads']">
<tr>
<td colspan="6">
<table align="center">
<tr>
$threadbit_gallery
<if condition="$col">
<td colspan=$col class="alt1"> </td>
</if>
</tr>
</table>
</td>
</tr>
<!-- end show threads -->
<else />
<!-- show no threads message -->
<tr>
<td class="alt1" colspan="$foruminfo[bottomcolspan]" align="center">
<div style="padding: 16px">
<if condition="$show['noposts']"><strong>$vbphrase[no_posts_in_this_forum]</strong><else /><strong><phrase 1="$daysprune">$vbphrase[no_posts_last_x_days_forum]</phrase></strong><br />
<span class="smallfont">$vbphrase[try_controls_below_for_older_posts]</span></if>
</div>
</td>
</tr>
<!-- end show no threads message -->
</if>
</table>
<!-- controls below thread list -->
<table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-top:3px">
<tr valign="top">
<td class="smallfont"><if condition="$show['newthreadlink']"><a href="newthread.php?$session[sessionurl]do=newthread&f=$foruminfo[forumid]"><img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]" border="0" /></a><else /> </if></td>
<if condition="$pagenav"><td align="$stylevar[right]">$pagenav</td></if>
</tr>
</table>
<!-- / controls below thread list -->
<br />
<!-- ############## END THREADS LIST ############## -->
</if>
<!-- forum rules & forum jump -->
<table cellpadding="0" cellspacing="0" border="0" width="100%" align="center">
<tr valign="top">
<td align="right" width="100%">
$forumjump
<if condition="!$show['popups'] AND $show['adminoptions']">
<br />
<form action="moderator.php" method="get">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="f" value="$forumid" />
<div class="smallfont"><strong>$vbphrase[admin_tools]</strong>:</div>
<select name="do" onchange="this.form.submit();">
<optgroup label="$vbphrase[admin_tools]">
<option value="modposts" selected="selected">$vbphrase[view_posts_queue]</option>
<option value="modattach">$vbphrase[view_attachment_queue]</option>
<option value="move">$vbphrase[mass_move]</option>
<option value="prune">$vbphrase[mass_prune]</option>
<if condition="$show['addmoderator']">
<option value="addmoderator">$vbphrase[add_moderator]</option>
</if>
</optgroup>
</select>$gobutton
</form>
</if>
</td>
</tr>
</table>
<!-- / forum rules & forum jump -->
$footer
</body>
</html>
Harald_T
05-24-2006, 03:32 PM
@AzianStang: Could you please contact me via pm?
Harald_T
05-24-2006, 05:25 PM
@AzianStang: It's working now. It was only a false setting on the forum "Gallery". It was set to work as a category.
wezoo
05-26-2006, 08:42 PM
Hi first let me say great hack
I have a few questions if thats ok ?
if you got to my site www.cgempire.com
you will notice 4 pictures across the top this is not using your hack....
your hack is further down the page,
1. could it be modified so it was more like the top set of images, with no text and no table borders, just pictures?
2. does the images work in the user profile ? I cant see them in mine ?
3. the random image sometimes shows the same image a few times...
4. and while im on is there a simple way of , if you click on the thumbnail in forum ut will take you to the thread rather than open a new image ?
any help would be very much apreciated
thanks for a wonderful hack
wez
Harald_T
05-26-2006, 10:36 PM
@Wezoo: Yes it can be modified for your needs. You have to change the gallery-threadbit for this. There you find the needed tables you would have to remove.
I'll check the other points tomorrow. Now i got to go to bed.
DrewM
05-26-2006, 11:17 PM
fetured threads does not work on forum home :(.
wezoo
05-27-2006, 12:01 AM
Hi Harald
thanks i look forward to it
goodnight ;)
Harald_T
05-27-2006, 08:12 AM
@Larrysw: What does not work exactly?
Harald_T
05-27-2006, 08:13 AM
@Larrysw: What doesn't work exactly?
DrewM
05-27-2006, 09:45 AM
it doesn't show any thing on forum home :(
Harald_T
05-27-2006, 10:43 AM
Did you also do the changes on forumhome?
DrewM
05-27-2006, 04:24 PM
the templeat? I did that. I have tried a couple of diffrent things I think it has some thing to do with the plugin in 3.5.4
Bernd
05-27-2006, 05:02 PM
Just to let you know, what's coming next:
Admin-Option: Featured Post (thanks for Bernd and his suggestions for this): Now you can mark a thread as featured. Add a little thumbnail to the first post and it will be shown at the top of forumhome. (Oh, Bernd, you don't need any longer a special forum for it. Now it jumps right to the selected thread). This can be set on/off by the gallery-options. Also you can define a name for the included thumb, so it will not be shown.
How then did u distinguish between spotlight images and regular images? Did u use a sql statement that selects the featured thumb name? looking forward to seeing this integrated into future versions..it's a hassle to edit everything upon upgrade each time.
imported_magjr
05-27-2006, 06:26 PM
Can you define "seizing up your board" a bit more? Why it's getting slower? To much memory usage or something else. Without infos i can't suggest it.
When I say seizing up my board, I mean it slows down. I don't know why it's getting slow, however when it's live on my production form, it times out and if I don't catch it quick enough, I'll have to restart apache on my server. The old version worked fine, do you have that one that I can use?
Let me know if you want me to set up an admin pass to my board so you can get in there and look around. Or let me know a time you'll be on and I can turn it on and send you a link so you can see it.
Harald_T
05-27-2006, 09:28 PM
@Bernd: Yes, this is what i did. I made one query for the normal latest gallery-pictures, which filters out those pictures from the threads marked as featured (so the header-thumbnails are not shown). And another query only gets the header-thumbnails from the gallery.
This is already included now in the latest version.
@imported magjr: Would you be so kind and send me the details via PM. I'll check.
wezoo
05-28-2006, 08:56 AM
it seems i am doing this all wrong !!!
would somone please post the process of uploading a picture into the gallery
i did it using the standard upload image then io used the [attatch]
which i have been told is the wrong way ?
so, at the risk of sounding stupid, would somone please tell me how to upload a picture and display it withou the [attatch] ?
also how do you mark something as featured ?
many thanks
wez
Harald_T
05-28-2006, 10:17 AM
@wezoo: I'll upload a picture into the gallery. Normaly you just have to upload a picture, as normal. But you don't need to use [Attach], because this places the picture in the textfield beneath.
You mark a thread as featured with the thread-tools (the popup-menu above the thread).
Harald_T
05-28-2006, 10:20 AM
Marking a thread as featured: Use the thread-tools above the thread.
Weezo, could it be, that you don't use thumbnails in posts? Check you vbulletin-options, if thumbnails a) will be used and b) will be made.
wezoo
05-28-2006, 11:10 AM
Hi Harald
yeah i belive that thumbnails are enabled !!!
still no luck :(
Harald_T
05-28-2006, 02:25 PM
@wezoo:
I'm registered under the name "Zheobitt". Would you be so kind and grant me temporarily access to the AdminCp?
wezoo
05-28-2006, 02:58 PM
there you go harald !!!
will you look into the featured thread too harald ? , it says could not find phrase ?
or is that because the pictures are not showing ?
and how do you unfeature a thread ? :)
many thanks again
wez
wezoo
05-28-2006, 05:43 PM
seems sort of working
if i make an item featured i get
could not find phrase ".
also featured item is realy big in the middle of my page
i also get no pictures in user profile ?
im sure this is something i have done :)
but what im realy after is this
https://vborg.vbsupport.ru/attachment.php?attachmentid=47479&d=1147632863
anyway help as usual , is greatly apreciated :)
thanks
wez
Harald_T
05-28-2006, 06:25 PM
@Wezoo: You're right. The picture for the member-profile are missing. That was a mistake by mine. I have to replace the XML-File. I'll update it tonight.
Also the "unfeature"-button have to be done. Maybe i can do it together.
Oh, send you a PM.
wezoo
05-28-2006, 06:39 PM
thanks harald, ive sent you a PM
whenits done should it look like the pictures on your page ? thats realy nice..?
its just that my featured images are rather large on the from page
should i include a thumbnail or should this be done automaticaly ?
thanks
wez
Harald_T
05-28-2006, 07:30 PM
ATM it isn't created automaticly. You have to include a thumbnail (for example header.jpg) in the first post. The routine always shows the last thumb of the first post.
Got it working now. The option: View Attached Images Inline wasn't set to No. That was all.
Btw., i was so free to remove two bugs i found out in my routines and added the memberprofile-template. Have fun with it.
Bernd
05-28-2006, 07:42 PM
have you added these changes to the zip?
I'm going to install the updated version tomorrow.
Harald_T
05-28-2006, 08:03 PM
@Bernd:
Didn't had the time so far. Use this plugin, it's directly from my forum. Should work, also.
Harald_T
05-28-2006, 08:07 PM
thanks harald, ive sent you a PM
whenits done should it look like the pictures on your page ? thats realy nice..?
its just that my featured images are rather large on the from page
should i include a thumbnail or should this be done automaticaly ?
thanks
wez
Wez,
did you remove the name for the thumbnail in the gallery-settings? Because you can see the thumbnail in the posting now also.
UtahNissans
05-28-2006, 08:08 PM
Harald, tried installing and followed everything as written, but I can't even seem to get an UPLOAD button. The Gallery navbar link leads directly to a subforum, and to nothing when that is clicked. I've checked everything to make sure thumbnails are enabled in both vb options and in attachment settings.
Could I have maybe messed up the forumdisplay.php rewrite?? I followed your directions to a T.
Help a super noob out! Thanks.
Same problem I am having...
wezoo
05-28-2006, 08:14 PM
FANTASTIC :)
thanks Harald your a true star !!!! :) :banana:
at the risk of pushing my luck too far
is there a way of undoing the featured thread ?
but aside from that, this is brill !!!! many many thanks
and do me a favour stay a member and post the odd piccy ;)
wez
wezoo
05-28-2006, 08:17 PM
just so you know, i plan to replace the custom code where my orrigional screenshots go with your gallery code !!!
is there a way (EASY) of getting the images under the nav bar ? so it went across the top ?
I cant stress enough how good this hack is !!!!
wez
UtahNissans
05-28-2006, 08:18 PM
Here is my gallery forumdisplay, can someone please help me identify my problem with the upload button not appearing?
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<meta name="description" content="$foruminfo[description]" />
<title>$vboptions[bbtitle] - $foruminfo[title]</title>
$headinclude
</head>
<body>
$header
$navbar
<br />
<table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-bottom:3px">
<tr valign="top">
<td class="smallfont"><if condition="$show['newthreadlink']"><a href="newthread.php?$session[sessionurl]do=newthread&f=$foruminfo[forumid]"><img src="$stylevar[imgdir_button]/upload.gif" alt="$vbphrase[post_new_thread]" border="0" /></a><else /> </if></td>
<if condition="$pagenav"><td align="$stylevar[right]">$pagenav</td></if>
</tr>
</table>
<if condition="$show['threadslist']">
<!-- threads list -->
<table cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" class="tborder">
<tr>
<td class="thead"> </td>
</td>
</tr>
<if condition="$show['threads']">
<tr>
<td colspan="6">
<table align="center">
<tr>
$threadbit_gallery
<if condition="$col">
<td colspan=$col class="alt1"> </td>
</if>
</tr>
</table>
</td>
</tr>
<!-- end show threads -->
<else />
<!-- show no threads message -->
<tr>
<td class="alt1" colspan="$foruminfo[bottomcolspan]" align="center">
<div style="padding: 16px">
<if condition="$show['noposts']"><strong>$vbphrase[no_posts_in_this_forum]</strong><else /><strong><phrase 1="$daysprune">$vbphrase[no_posts_last_x_days_forum]</phrase></strong><br />
<span class="smallfont">$vbphrase[try_controls_below_for_older_posts]</span></if>
</div>
</td>
</tr>
<!-- end show no threads message -->
</if>
</table>
<!-- controls below thread list -->
<table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-top:3px">
<tr valign="top">
<td class="smallfont"><if condition="$show['newthreadlink']"><a href="newthread.php?$session[sessionurl]do=newthread&f=$foruminfo[forumid]"><img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]" border="0" /></a><else /> </if></td>
<if condition="$pagenav"><td align="$stylevar[right]">$pagenav</td></if>
</tr>
</table>
<!-- / controls below thread list -->
<br />
<!-- ############## END THREADS LIST ############## -->
</if>
<!-- forum rules & forum jump -->
<table cellpadding="0" cellspacing="0" border="0" width="100%" align="center">
<tr valign="top">
<td align="right" width="100%">
$forumjump
<if condition="!$show['popups'] AND $show['adminoptions']">
<br />
<form action="moderator.php" method="get">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="f" value="$forumid" />
<div class="smallfont"><strong>$vbphrase[admin_tools]</strong>:</div>
<select name="do" onchange="this.form.submit();">
<optgroup label="$vbphrase[admin_tools]">
<option value="modposts" selected="selected">$vbphrase[view_posts_queue]</option>
<option value="modattach">$vbphrase[view_attachment_queue]</option>
<option value="move">$vbphrase[mass_move]</option>
<option value="prune">$vbphrase[mass_prune]</option>
<if condition="$show['addmoderator']">
<option value="addmoderator">$vbphrase[add_moderator]</option>
</if>
</optgroup>
</select>$gobutton
</form>
</if>
</td>
</tr>
</table>
<!-- / forum rules & forum jump -->
$footer
</body>
</html>
DrewM
05-29-2006, 03:02 PM
is the image in the buttons folder for all styles? Hwats your website?
wezoo
05-29-2006, 03:54 PM
Larry
the upload appears fine on mine and i did nothing other than what it says to do it... ?
just make sure the icon is in the images/buttons/ folder !!!
did you manage to get rid of the german text ? im getting Nur f?r Mitglieder!
for none registered users, ill see if i can figure it out, im not too clever with this stuff :)
wez
Harald_T
05-29-2006, 03:54 PM
@UtahNissans: I also would suggest, that you check, if the upload.gif-file is uploaded to your images/buttons-folder. Remember also, that it can be style-dependent, where you have to place button-images.
@Wez: No panic. I'll stay member. And the unfeature function will be done tonight.
Bernd
05-29-2006, 04:10 PM
@ Harald
I've noticed that the user profile 'latest gallery submissions' is not included in your last uploaded file.
What plugin has to be added to allow this? (name, code, hook location).
Edit, saw u posted at about the same time. I'll wait for the updated release.
imported_magjr
05-29-2006, 04:19 PM
any luck with mines harald?
wezoo
05-29-2006, 04:33 PM
Bernd
this is now working i beleive !!!! ?
it does on mine anyway, theres a downloadable .XML file on the previous page or two ....
As for me , anyone know how to get rid of this "Nur für Mitglieder"
ive looked in the languages and i cant find it for the life of me
cheers
Harald_T
05-29-2006, 04:58 PM
@Wez: Look into the template "gallery_postbit". There you find it. It's not phrased at the moment.
@all users: If you find some more, please post it here. I'll check them and phrase them out.
imported_magjr
05-29-2006, 05:00 PM
harald,
My issue was once the gallery is enabled, my server seizes up and shuts down forcing me to restart apache. I sent you a pm wiht the link to my board and the admin login
wezoo
05-29-2006, 05:15 PM
the only other bit of german language i can find is
Dateigr??e
not sure where to change this, apart for that its all i can find
Harald, what bit controlls where the featured images are placed, i would like to put it across the top under the nav bar, is this an easy task, sorry for asking i know you got your hands full at the moment ;)
wez
Bernd
05-29-2006, 05:18 PM
I just read the html file of the actual product zip file, and the template modification is listed there.
<!-- gallery-featured header -->
<table cellspacing="0" cellpadding="0" align="center">
<tr>
$featured_gallery
</tr>
</table>
displays the featured gallery bit. Relocate that somewhere in your header.
As for phrase replacement, i have explained a few pages back how to change that yourself.
Harald_T
05-29-2006, 05:25 PM
@Wez: Dateigröße = Filesize
@imported_magjr: I'll a look after it tonight.
wezoo
05-29-2006, 05:38 PM
Brilliant Bernd !!!!
that worked :)
any idea where i remove the origional ?
as i have it twice now :)
Bernd
05-29-2006, 05:43 PM
Just do a template search on $featured_gallery, and it will return the template files which contains that phrase.
wezoo
05-29-2006, 05:48 PM
thanks burnd
sorry for my ignorance, its a big learning curve for me :)
Bernd
05-29-2006, 06:13 PM
lol :P
I didn't know my name had a past tense ;)
Anyways, no problem. I'm a vbulletin noob myself and know how frustrating it can be at times.
wezoo
05-29-2006, 06:39 PM
hehe Sorry Bernd <------ note correct spelling ;)
anyway thats sorted i think, i managed to put it under the nav bar , only problem was it stayed there no matter where you went, i only want it there on the forum home, but hey beggers cant be choosers so ive put it back to where it was for now, but thanks all the same.
heres a problem for you...(Harald) ;)
when you click on the image and it takes you to the thread it shows your image and the thumbnail,
is it possible NOT to display the thumbnail ? it just looks rather messy as the thumbnail is scaled up, id rather not show it at all in the thread.
sorry i keep asking all these questions but i never enjoyed myself hacking my forum this much :)
EDIT : just noticed that if you go to the relevant thread,
The pictures are displayed in the thumbnails section and thumbnails are displayed in pictures !!!
wez
Bernd
05-29-2006, 07:43 PM
That should be prevented if you upload the correct featured thumbnail image name. Check out the gallery options for more details.
wezoo
05-29-2006, 08:23 PM
thanks bernd that sorted it :)
so all the thumbnails for all images have to be called the same ?
or can you use a wild card like thumb*.jpg
Harald_T
05-29-2006, 09:09 PM
@Wez: You can just call each thumbnail for the featured header "test.jpg" for example.
You just have to fill in the name in the vBi-Gallery-Settings. That's all.
But i'm testing out atm, how to avoid this. So you just have to upload a thumbnail, that should it do.
Bernd
05-29-2006, 09:14 PM
Wildcards are currently not supported. I can code something for the general gallery display template, but Harald said that the thumbnail name was filtered through the sql statement itself. I haven't looked into it yet.
A way to check for a wildcard in the template file is using the function STRPOS.
http://nl3.php.net/strpos.
I'll look into it 2morrow.
crashys
05-29-2006, 09:42 PM
I got a problem after finishing all code modifications with this latest mod.
48485
When i click to see the image, the image apears, but there is no thumbnail of it.
At the installation text its is mentioned "Please ensure, that your vbulletin is capable of creating thumbnails for your attachments." But i dont find any option or any place to check this.
Can anyone help me?
Bernd
05-29-2006, 09:56 PM
Vbulletin options -> image settings
vbulletin options -> message attachment options
Attachments -> Extensions & sizes. Enable thumbnail creation for each image type there.
wezoo
05-29-2006, 10:05 PM
guys im realy getting there now :)
thanks for being so patient with me
one last question ( i hope) is it at all possible to display the featured images under the navbar but only on the forum home so its not visible if you visit a thread ?
Harald , will you check to see i have done exactly what you asked on my forum ?
thanks
wezoo
05-29-2006, 11:18 PM
Found a bug ( i think)
on latest gallery submissions it shows the link to the thumbnails rather than the image ?
Treasure Quest
05-29-2006, 11:35 PM
Hello and thanks for this hack!
I just installed and I see 2 gallery boxes under my navbar. How can I remove the top one?
http://www.treasurequestxlt.com/community/
Thanks,
Gregory
wezoo
05-29-2006, 11:47 PM
Hi
in you vboptions - gallery
there you will find a check box for latest images and random images
you must have them both checked, you only need one !!!
Treasure Quest
05-30-2006, 12:14 AM
That worked! Thank you.
crashys
05-30-2006, 07:27 AM
Vbulletin options -> image settings
vbulletin options -> message attachment options
Attachments -> Extensions & sizes. Enable thumbnail creation for each image type there.
I have checked that, and its all ok as mentioned, but still i have no thumbnails... :|
http://www.quadaventuratt.net/forumdisplay.php?f=6
Bernd
05-30-2006, 07:57 AM
if thumbnails were disabled at first, you may have to rebuild them through update counters. Also make sure that guests have permission to view thumbnails in that forum.
Different topic, is it possible to allow the featured item in thread tools to appear in non-gallery threads too? That way an admin can feature any thread anywhere.
wezoo
05-30-2006, 09:16 AM
Yeahhh Bernd thats a real nice idea
Harald_T
05-30-2006, 05:35 PM
I have checked that, and its all ok as mentioned, but still i have no thumbnails... :|
http://www.quadaventuratt.net/forumdisplay.php?f=6
I can't check it, have no permissions. Can you give me a test account?
Harald_T
05-30-2006, 05:37 PM
@Bernd: This is possible.
Please find in your showthread_template:
<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:
<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:
if ($_POST['do'] == 'feat')
{
if (!can_moderate($threadinfo['forumid'], 'caneditthreads'))
{
print_no_permission();
}
// check if there is a forum password and if so, ensure the user has it set
verify_forum_password($foruminfo['forumid'], $foruminfo['password']);
$db->query_write("UPDATE " . TABLE_PREFIX . "thread SET featured=1 WHERE threadid ='$threadid'");
$vbulletin->url = 'showthread.php?' . $vbulletin->session->vars['sessionurl'] . "t=$threadid";
eval(print_standard_redirect('',true,true));
}
if ($_POST['do'] == 'unfeat')
{
if (!can_moderate($threadinfo['forumid'], 'caneditthreads'))
{
print_no_permission();
}
// check if there is a forum password and if so, ensure the user has it set
verify_forum_password($foruminfo['forumid'], $foruminfo['password']);
$db->query_write("UPDATE " . TABLE_PREFIX . "thread SET featured=0 WHERE threadid ='$threadid'");
$vbulletin->url = 'showthread.php?' . $vbulletin->session->vars['sessionurl'] . "t=$threadid";
eval(print_standard_redirect('',true,true));
}
That should do it.
Bernd
05-30-2006, 07:09 PM
That would be great.
Looking forward to it.
Harald_T
05-30-2006, 07:09 PM
Edited my last post.
See it for instructions.
crashys
05-30-2006, 08:07 PM
Harald_T: i've just PM you with the login/password to access the forum to check whats wrg. :|
wezoo
05-30-2006, 08:44 PM
seems the unfeature wont work Harald
it appears on an ordinary thread but not in my gallery ?
any ideas ?
Harald_T
05-30-2006, 08:48 PM
@Wez: Edit your gallery_showthread-template.
In the template find:
<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:
<if condition="$show['movethread']">
<div>
<label for="ao_unfeat">
<input type="radio" name="do" id="ao_unfeat" value="unfeat" />Unfeature
</label>
</div>
</if>
This should do it.
Harald_T
05-30-2006, 08:53 PM
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:
Mostrar Miniatura para este Tipo?Isto s? se aplica a arquivos de imagem com extens?es: bmp, gif, jpe, jpg, jpeg, png, psd, tif e tiff. A cria??o de uma miniatura de qualquer tipo de imagem n?o ? garantida.
I've done it with jpg, and now it's working. But not with "Teste2", because in this posting you've used an linked image. This is not working, yet.
wezoo
05-30-2006, 08:57 PM
WEHeeeeeeeeeeeeeyyyyy
pure class !!!!
nice one Harald,
what else can i ask for ???? ;)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.