View Full Version : Gallery for vBulletin 3.5.X
wezoo
05-30-2006, 09:00 PM
i know :)
can you display random images and latest images, in the same way as the featured ?
for example, no border, no name, no info, just an image that links to the thread
:)
ohhh Harald, dunno if you know but on my profile, latest images are actualy thumbnails rather than images ???
Harald_T
05-30-2006, 09:34 PM
@Wez: Oh, this is a little bug. Change the code of the template "gallery_memberpictures" to:
<if condition="$gallery[filename]!=$vboptions[gal_feat_name]">
<td align="center">
<table class="tborder" align="center">
<tr>
<td class="thead" height="100" width="120" 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 valign="center" align="center" width="120" height="40">
<br />
<a href="showthread.php?t=$gallery[threadid]">
$gallery[title]
</a>
</td>
</tr>
</table>
</td>
</if>
Change the code of the plugin "gallery_memberprofile_images" to:
// #################### Latest Gallery-Additions #######################
// fetch the permissions for each forum
// global $vbulletin;
$gal_member_num_rows = $vbulletin->options['gal_member_num_rows'];
$thumbs = $db->query_read("SELECT gallery, userid, threadid, filename, firstpostid, ". TABLE_PREFIX . "thread.title, attachmentid, ". TABLE_PREFIX . "attachment.dateline FROM ". TABLE_PREFIX . "attachment, ". TABLE_PREFIX . "thread, ". TABLE_PREFIX . "forum
WHERE gallery='1' AND userid=$userinfo[userid]
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_member_num_rows");
while ($gallery = $db->fetch_array($thumbs))
{
eval('$memberpictures .= "' . fetch_template('gallery_memberpictures') . '";');
}
wezoo
05-30-2006, 09:42 PM
Harald, doesnt seem to have done anything ?
check out my homepage, also getting thumbs in the random images
Harald_T
05-31-2006, 05:16 PM
O.k., removed the problem.
wezoo
05-31-2006, 06:12 PM
Thanks Harald
still there on the home page when i turn on random images...?
ive left them on so you can see
Bernd
05-31-2006, 06:54 PM
O.k., removed the problem.
Please do post fixes for other people to see. Thank you.
Harald_T
05-31-2006, 09:24 PM
@Bernd: I edited my post. See there for the neccessary changes.
DucatiJeff
05-31-2006, 11:32 PM
Wow - I worked for 4 days on this and could not get it to work properly. I think very specific installation instructions are needed. When I went to uninstall the gallery1.23.xml file then decided to reinstall it - I shut down my entire site and received the following warning via Email:
Database error in vBulletin 3.5.4:
Invalid SQL:
SELECT thread.featured, threadid, firstpostid, thread.title, MAX(attachment.attachmentid)AS attachmentid, attachment.dateline FROM attachment, thread, forum
WHERE thread.featured='1' AND thread.forumid=forum.forumid AND thread.firstpostid = attachment.postid AND attachment.dateline < 1149121375
GROUP BY thread.threadid
ORDER BY attachment.attachmentid DESC LIMIT;
MySQL Error : You have an error in your SQL syntax near '' at line 4
Error Number : 1064
Date : Wednesday, May 31st 2006 @ 08:22:55 PM
Obviously I felt a sudden rush of panic. I uninstalled the product and my forums returned to normal. I guess I will purchase a product rather than risk all of the work I have put into my forums.
:confused: :cross-eyed: :confused:
skooby
06-01-2006, 01:02 AM
When you say
1. First of all, create a category and call it "Gallery" (or anything else, if you like). Please remember the ID of this category, it's needed.
Where exactly do I go to create the new category? Sorry but this is a 68 page thread, so I'm sure the answer is in here somewhere but I couldn't find it.
cheesegrits
06-01-2006, 04:09 AM
I've scanned all 67 pages of this thread and read the available documentation, but I still need to ask an obvious question ...
Can Gallery forums be moderated, such that all uploaded images need to be approved before they get displayed? I run an ISP in Alabama, and obviously I need to maintain tight control over the images that get uploaded!
TIA for any answers,
-- hugh
when i have this option set to YES
Gallery-Category? Yes No
this is the error i get when clicking on the forum/gallery
any ideas?
GuaRRand
06-01-2006, 01:31 PM
Can you make it so its also compatible with VBadvanced?
Harald_T
06-01-2006, 04:10 PM
@skooby: To create a category, just make a new forum, and set the option "Act as a forum" to "No". That's all.
@Cheesegrits: Normally it should work with moderated pictures as well, as it's using the normal attachment-system of vB. I'm not 100% sure, as i never tested, to be honest.
@aky: Which error?
@GuaRRand: I made a solution for it. Search this thread, it's posted somewhere. I don't support vBadvanced directly, cause i'm not a fan of this product so much.
@DucatiJeff: You needed four days and don't get it to run? Why you didn't contacted me? I'm sure, i could have help you out your probs. So if you want to give it another try, contact me via pm.
GuaRRand
06-01-2006, 04:14 PM
Ok, another question :D
(maybe somewhere in the 68 pages, but havent found it yet...)
1. Can you make it so that the "topics" you make when uploading an image, doesnt show up on "new posts" (or recent/active topics).
As it is now, i upload 10 images and it pushes al my regular recent topics to the bottom of the list.
Oh, and it doesnt seem to register the images in the membersprofile (and i looked over the coding twice...i dont think i put it in wrong)
Mastar
06-01-2006, 04:27 PM
I uploaded the button and it doesn't show like here
https://vborg.vbsupport.ru/attachment.php?attachmentid=32398&d=1122323356
How/Where do I add comments?
And in the member profile I see the table:
"Latest gallery-submission of:: Happy"
But no picture.
GuaRRand
06-01-2006, 04:33 PM
Ok, another question :D
(maybe somewhere in the 68 pages, but havent found it yet...)
1. Can you make it so that the "topics" you make when uploading an image, doesnt show up on "new posts" (or recent/active topics).
As it is now, i upload 10 images and it pushes al my regular recent topics to the bottom of the list.
Oh, and it doesnt seem to register the images in the membersprofile (and i looked over the coding twice...i dont think i put it in wrong)
Nvm the member profile thing i had. found ur updated XML already ;)
SO that leaves question #1. how to get the gallery "topics" to NOT show on the recent threads view
[edit]: i also noticed that, if i create a SECURE gallery forum (only for logged in users or some other specific usergroup), it'll still show those pics on the forumhome...
Can it be made so that the forum home also follows the usergroup permissions???
Harald_T
06-01-2006, 05:06 PM
@Mastar: This is only the Lastest-Gallery-Addition-Box for your Forumhome. If you go to the gallery, you should find the button.
@GuaRRand: This is a good point. I'll see, if i can find a solution for it.
gamelandz
06-01-2006, 06:18 PM
i have done everything but when i click on the upload button...it just looks like the regular thread form???
Bernd
06-01-2006, 06:20 PM
edit..never mind :) my mistake.
Harald_T
06-01-2006, 08:43 PM
i have done everything but when i click on the upload button...it just looks like the regular thread form???
That ist normal, yes. I haven't figured out yet, how to change that form into a new one only for the gallery. It's on my list, but not yet.
GuaRRand
06-01-2006, 09:04 PM
BTW: Great job though!
Previously i had Menalto's Gallery 2.1 installed/integrated into VB.
And altough i luv that Gallery on its own, it sucked in combination with VB.
Your gallery is just what i needed.
Userfriendly, easily installed and ur also trying to keep up with demand(s)/wishes.
Keep it up!! :D
Bernd
06-02-2006, 07:42 AM
I'm trying to hook one of the queries below into postbit_display_start in a new plugin.
// #################### Latest Gallery-Additions #######################
// fetch the permissions for each forum
// global $vbulletin;
$gal_num_rows = $vbulletin->options['gal_num_rows'];
$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() ."
GROUP BY ".TABLE_PREFIX ."thread.threadid
ORDER BY ". TABLE_PREFIX . "attachment.attachmentid DESC LIMIT $gal_num_rows");
while ($gallery = $db->fetch_array($thumbs))
{
eval('$latestgallery .= "' . fetch_template('gallery_latestpictures') . '";');
}
// #################### Random Gallery-Additions #######################
// fetch the permissions for each forum
$random_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.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() ." ORDER BY RAND() LIMIT $gal_num_rows");
while ($rand_gallery = $db->fetch_array($random_thumbs))
{
eval('$random_gallery .= "' . fetch_template('gallery_randompictures') . '";');
}
$top5 = $db->query_read("SELECT gallery,". TABLE_PREFIX . "thread.featured, threadid, firstpostid, ". TABLE_PREFIX . "thread.title, attachmentid, ". TABLE_PREFIX . "attachment.dateline, ". TABLE_PREFIX . "thread.views FROM ". TABLE_PREFIX . "attachment, ". TABLE_PREFIX . "thread, ". TABLE_PREFIX . "forum
WHERE gallery='1' AND ". TABLE_PREFIX . "thread.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() ." ORDER BY ". TABLE_PREFIX . "thread.views DESC LIMIT $gal_num_rows");
while ($top_gallery = $db->fetch_array($top5))
{
eval('$top5_gallery .= "' . fetch_template('gallery_top5') . '";');
}
// featured forum
$feat_rows=$gal_feat_rows;
$featured_thumbs = $db->query_read("SELECT ". TABLE_PREFIX . "thread.featured, threadid, firstpostid, ". TABLE_PREFIX . "thread.title, MAX(". TABLE_PREFIX . "attachment.attachmentid)AS attachmentid, ". TABLE_PREFIX . "attachment.dateline FROM ". TABLE_PREFIX . "attachment, ". TABLE_PREFIX . "thread, ". TABLE_PREFIX . "forum
WHERE ". TABLE_PREFIX . "thread.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.attachmentid DESC LIMIT $feat_rows");
while ($featured = $db->fetch_array($featured_thumbs))
{
eval('$featured_gallery .= "' . fetch_template('gallery_featured') . '";');
}
This returns a blank page on thread view without an error message. Basically I want to add some additional information to the user postbit information, such as a link to the user's profile if he\she has uploaded gallery images. Why does this return a blank page upon thread view? Any help would be appreciated.
So far I have changed the names of the variables, which doesn't matter. Removed num-row etc. All that is needed is to check if a user has uploaded a gallery image.
Harald_T
06-02-2006, 03:09 PM
@Bernd: The query is completly wrong for this case. You would have to check, if the user has posted in the gallery-forum and had uploaded there an attachment. So, something like (just an example, no reals SQL-Instruction):
If attachment.userid=post.userid and attachment.gallery="1" then...
I can have a look at this, as this is something, i wanted to release, either.
Bernd
06-02-2006, 03:41 PM
IC. Darn, thought i could get away with the existing queries.
Might as well list the other ideas I had. Will post any progress I make myself.
Extend the gallery under members info with next\previous page (that way u have ur own personally gallery, which doesn't just list the last couple of images).
Featured artist link in postbit userinfo, which links to the last uploaded featured image of an artist.
Gallery link in postbit userinfo, which links to memberinfo.
That's about all I can think of.
imported_magjr
06-03-2006, 05:25 AM
Is it tomorrow yet?
You said on the 29th you;d look at my issue tomorrow. It's now the third of june. I really don't want to uninstall this cause its great, but if its not going to work, it's not going to work.
camuca
06-03-2006, 07:25 AM
Go and configure Usergroup permissions via the UserCP for usergroups => What needs to be configured?
Thanks
TwinHawksClub
06-03-2006, 07:04 PM
The hack isn't working for me. I got to making the forum, and it didn't have the extra options below "Save". Are you supposed to upload forumdisplay.php via Binary or ASCII? I did both, and there were no extra options under "Save" both times.
Harald_T, if I change some of the instructions and elaborate more, will you change the install instructions in the zip file? I don't want any credit.
TwinHawksClub
06-03-2006, 08:20 PM
The hack isn't working for me. I got to making the forum, and it didn't have the extra options below "Save". Are you supposed to upload forumdisplay.php via Binary or ASCII? I did both, and there were no extra options under "Save" both times.
Harald_T, if I change some of the instructions and elaborate more, will you change the install instructions in the zip file? I don't want any credit.
Here's a link to the Gallery: http://www.twinhawksclub.com/forums/forumdisplay.php?f=
I just don't know what I didn't do correct.
Harald_T
06-03-2006, 09:41 PM
You didn't set the id of your gallery in the gallery-options, IMHO.
TwinHawksClub
06-03-2006, 10:43 PM
You didn't set the id of your gallery in the gallery-options, IMHO.
There are no gallery options. The only proof that I have that I am installing the hack, is that it has a link in the navbar.
Bernd
06-03-2006, 11:12 PM
The gallery options are under vbulletin options in your admin control panel. You can specify one forum id there for the navbar button\hyperlink.
TwinHawksClub
06-03-2006, 11:18 PM
The gallery options are under vbulletin options in your admin control panel. You can specify one forum id there for the navbar button\hyperlink.
They aren't, that's what i'm saying. If you were in the Admin CP, you'd have no idea that a Gallery has been installed unless you looked at the Plug-in Manager.
imported_magjr
06-03-2006, 11:33 PM
The gallery edit options are in the Vbul options
TwinHawksClub
06-03-2006, 11:48 PM
The gallery edit options are in the Vbul options
...lol...
not here...
http://i2.photobucket.com/albums/y47/nis350ztt/admincp.jpg
and not here..
http://i2.photobucket.com/albums/y47/nis350ztt/admin_cp.jpg
TwinHawksClub
06-03-2006, 11:53 PM
I will send the forumdisplay.php file to someone if they will check it and see if anything is wrong.
Harald_T
06-04-2006, 12:05 AM
Did you import the plugin?
TwinHawksClub
06-04-2006, 12:20 AM
Did you import the plugin?
You gotta be kidding me.
I apologize if I was harsh in tone in any of my posts.
I selected it to upload, and then filled in the fields in the box below, and hit "Save". :doh:
That would be my problem, it didn't upload the XML file, but it showed the 'product'.
I now see the settings for it on the vBulletin options.
TwinHawksClub
06-04-2006, 12:30 AM
You gotta be kidding me.
I apologize if I was harsh in tone in any of my posts.
I selected it to upload, and then filled in the fields in the box below, and hit "Save". :doh:
That would be my problem, it didn't upload the XML file, but it showed the 'product'.
I now see the settings for it on the vBulletin options.
One last thing. It is still saying this... http://www.twinhawksclub.com/forums/forumdisplay.php?f=Gallery
Harald_T
06-04-2006, 12:42 AM
Did you fill in th number of the category in the option?
TwinHawksClub
06-04-2006, 12:50 AM
Did you fill in th number of the category in the option?
Nope, check it now though.
It doesn't matter whether I put 70 or 71, it still takes you to 70. (which won't load)
I changed 70's settings to act as forum, and still no luck. I've tried setting them opposite each other and with different combinations (act as gallery, gallery-category), and changed the ID field in the Gallery settings, but still not luck.
Harald_T
06-04-2006, 08:28 AM
I've checked your site. It seems, the template is completly missing.
Would be the best to deinstall the whole product and then reinstall it again.
Oh, and check the edit on forumdisplay.php either.
If it all doesn't help, contact me via PM.
wezoo
06-04-2006, 08:46 AM
Hi Harald
do you know of anyway i can get the featured images across the top on the forum home only ?
i can put them up there no problem so they go across the top, only problem is theyre there all of the time no matter which thread i visit.
im sure its probably easy to you guys, but take into consideration im a dumb artist ;)
Did you manage to figure out why it was showing links to thumbnails in the latest pictures ?
many thanks ( again )
wez
TwinHawksClub
06-04-2006, 02:24 PM
I've checked your site. It seems, the template is completly missing.
Would be the best to deinstall the whole product and then reinstall it again.
Oh, and check the edit on forumdisplay.php either.
If it all doesn't help, contact me via PM.
I changed the ID to 71, and for some reason it is working now. I guess I finally selected the right options on each one.
Great mod! :)
Harald_T
06-04-2006, 02:46 PM
Hi Harald
do you know of anyway i can get the featured images across the top on the forum home only ?
i can put them up there no problem so they go across the top, only problem is theyre there all of the time no matter which thread i visit.
im sure its probably easy to you guys, but take into consideration im a dumb artist ;)
Did you manage to figure out why it was showing links to thumbnails in the latest pictures ?
many thanks ( again )
wez
Hy Wez,
the problem is, that your using vbadvanced-portal, as far, as i remember. It's changing the use of forumhome, i think. Therefore, the code for the featured header have to be built into the main portal-template.
I found out, why it showed links to the thumbnails. It was the same problem as in the memberprofile. The code for the template have to be changed.
If you wish, i can have a look after this problems in your forum tonight.
@Twin: Fine it's running now.
wezoo
06-04-2006, 04:09 PM
Hi Harald
No problem, its all yours,
you still have full access help yourself :)
wez
Bernd
06-04-2006, 04:22 PM
Noticed that if you switch thread view mode, the images will be visible regardless of that registered username check you have used.
It's best to simply leave it out and use the attachment permissions instead?
Just a suggestion.
Harald_T
06-04-2006, 04:39 PM
@Bernd: Yes, i will remove it completly. It should normally be in that way, that you only have the standard-view.
About the permissions: Things will change with vB 3.60. I'm interested, how exactly it will work. Also we now have the informations about height and size of the picture. This could be fine for displaying them right (no more blown-up pictures).
Bernd
06-04-2006, 05:28 PM
Yeah, noticed that. Haven't seen anything about user permissions though.
The only issue with resizing attachments is that it will decrease the size dramatically if you have a fixed size board of only 800 width. When opening the image in full size, you could allow it to be much larger compared to the image that is shown in thread view. Still think a separate gallery image gd script is the way to go.
Harald_T
06-04-2006, 05:55 PM
@Bernd: Not resizing. I meant those pictures, smaller than the standard-size. So i can make a condition-check, to see, if the picture fits and view it in its original-size, if it is smaller.
DrewM
06-04-2006, 08:24 PM
Sounds like every one is liking 3.6
Harald_T
06-04-2006, 08:59 PM
@Larrysw: You don't? ;)
DrewM
06-05-2006, 09:04 AM
@Harald_T oh, I do but I thought at first I couldn't run it.
Bernd
06-05-2006, 09:33 AM
so u guys can already download it? Not fair :P
GuaRRand
06-05-2006, 10:06 AM
have you gotten around to see if you can implement my requests??
#1. how to get the gallery "topics" to NOT show on the recent threads view
#2. when i create a SECURE gallery forum (only for logged in users or some other specific usergroup), it'll still show those pics on the forumhome...
Can it be made so that the forum home also follows the usergroup permissions???
Harald_T
06-05-2006, 12:46 PM
@GuaRRand: No, not yet. Have taken a free time the last days. I was busy with my familiy and friends.
GuaRRand
06-05-2006, 03:20 PM
Hehe.. np.. no hurry ;)
landry
06-07-2006, 10:15 AM
I installed, but when I attach file then have "upload error"
Can you help me, please!
Thanks,
DrewM
06-07-2006, 08:07 PM
this isn't caused by this hack I don't think. Try disabling the product then tell me if you still get the error.
Harald_T
06-07-2006, 09:27 PM
This error is caused because of the wrong or no graphics-library. Check the graphic-settings of your vb.
landry
06-08-2006, 09:04 AM
- I had disable the product, but still get the error
- Where can I check the graphic-settings? Is this image?
Thanks,
DrewM
06-08-2006, 09:08 AM
Ok enable the product go to admincp collaspe the "vBulletin Options" Group. Then click "vBulletin Options" in the menu. You will see a drop down menulick this and find: Image Settings. In there replace all the information with yours.
landry
06-08-2006, 11:03 AM
I done, but still get the error
I think maybe I missing image processing library? How can I do?
Thanks,
Treasure Quest
06-08-2006, 06:07 PM
Hello,
Love your gallery mod Harald.
I have a small problem. I featured one of my gallery items and now have a great big picture at the top of my forum.
http://www.treasurequestxlt.com/community/
How can I unfeature this or remove the picture?
Greg
Harald_T
06-08-2006, 06:19 PM
@Treasure: You have to edit the first post and upload an picture with the name you filled in your Gallery-options (e.g. header.jpg). Define it for example with the size of 120x120 pixel. It will not be shown in the post, but it will be shown on the header of the page.
Harald_T
06-08-2006, 06:20 PM
@all: I've tested it with vB 3.6.1 Beta. It works, although the file-edit has been changed in a little maner. Update will follow.
wezoo
06-09-2006, 04:27 PM
Hi Herald !!!
would you do me a favour an look at this
http://www.cgempire.com/forumdisplay.php?f=71
i may have broken it but im not sure, i cant remeber touching it ???
its showinga list of uploads but it used to be images ?
thanks
wezoo
06-09-2006, 07:27 PM
Hy Wez,
the problem is, that your using vbadvanced-portal, as far, as i remember. It's changing the use of forumhome, i think. Therefore, the code for the featured header have to be built into the main portal-template.
I found out, why it showed links to the thumbnails. It was the same problem as in the memberprofile. The code for the template have to be changed.
If you wish, i can have a look after this problems in your forum tonight.
any chance if your not too busy ;) world cup and all that, to look at this too harald :)
just the forum is starting to get more users now and images are finaly starting to be posted....
Harald_T
06-09-2006, 07:48 PM
any chance if your not too busy ;) world cup and all that, to look at this too harald :)
just the forum is starting to get more users now and images are finaly starting to be posted....
I will look at it all at sunday.
Harald_T
06-09-2006, 07:50 PM
Hi Herald !!!
would you do me a favour an look at this
http://www.cgempire.com/forumdisplay.php?f=71
i may have broken it but im not sure, i cant remeber touching it ???
its showinga list of uploads but it used to be images ?
thanks
Did you do an update? Seems the file-edit on vb 3.5.4 is missing.
wezoo
06-09-2006, 08:07 PM
yeah i tried re installing your file as i thought i had corrupted something with the gallery not showing properly !!!
sorry !!!
Everything installed fine i thought them went to display gallery and ot this eeror.
Looked through thread cant see fix
Warning: Division by zero in /includes/functions.php(4358) : eval()'d code on line 10
This is error i recieve.
thanks
Kev
Harald_T
06-10-2006, 10:39 AM
Everything installed fine i thought them went to display gallery and ot this eeror.
Looked through thread cant see fix
Warning: Division by zero in /includes/functions.php(4358) : eval()'d code on line 10
This is error i recieve.
thanks
Kev
Did you have any other plugins installed? If so, which ones?
Here is what i have installed
Invites System
Top 'X' Stats
VB Statistics
vbBux / vbPlaza
vBI-Gallery
Visitors in Last X Hours
Does this conflict with any as to me i feel as if i am adding it to forum display wrong but then i have done it around 8 times.
All help is appreciated
Thanks
Kev
kofoid
06-10-2006, 02:01 PM
Has anyone gotten this?
Fatal error: Field gallery is not defined in $validfields in class vb_datamanager_forum in /includes/class_dm.php on line 485
Did you have any other plugins installed? If so, which ones?
Any solutions m8
DrewM
06-10-2006, 05:14 PM
Has anyone gotten this?
That isn't from this do yuo have thread prefixs installed?
kofoid
06-10-2006, 05:31 PM
Quote:
Originally Posted by kofoid
Has anyone gotten this?
That isn't from this do yuo have thread prefixs installed?
Nope - should I?
By that do you mean the file edits yes
kofoid
06-10-2006, 09:50 PM
No by that I mean should I install the hack "Thread prefixes"
DrewM
06-11-2006, 10:30 AM
no, I didn't look at the whole error try uninstalling this then reinstalling.
Bernd
06-11-2006, 12:45 PM
Has anyone gotten this?
Seems to be a faulty installation to me. There is actually a gallery plugin that is needed to validate gallery database fields. It might be missing.
kofoid
06-11-2006, 05:22 PM
He Bernd - thanks for your input..... I reinstalled everything and I am still getting:
Fatal error: Field gallery is not defined in $validfields in class vb_datamanager_forum in /includes/class_dm.php on line 485
Is the gallery plugin you are talking about included in the package included here?
***Edited: this is only when I try to create a gallery category or galley forum
wezoo
06-11-2006, 05:27 PM
Hi Harald
I noticed you been online ?
Did you manage to spot the problem ?
Harald_T
06-11-2006, 06:17 PM
Hi Harald
I noticed you been online ?
Did you manage to spot the problem ?
To me, it seems, the file-edit on forumdisplay.php is completly missing.
Bernd
06-12-2006, 03:16 PM
Harald, how did you differentiate between the first attachment and the last attachment in your queries?
My current members profile gallery query displays the last attachment of a gallery post, so it links to the featured thumbnails if an image is featured. I want to prevent that from happening by altering the query to select the first attachments only.
Harald_T
06-12-2006, 03:56 PM
You can prevent this, if you make a condition in your "gallery_memberprofile"-template. You have to check, if the name of the picture is unequal to the name of the featured thumbnail. If so, display the picture as normal.
I did it this way:
<if condition="$gallery[filename]!=$vboptions[gal_feat_name]">
<td align="center">
<table class="tborder" align="center">
<tr>
<td class="thead" height="100" width="120" 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 valign="center" align="center" width="120" height="40">
<br />
<a href="showthread.php?t=$gallery[threadid]">
$gallery[title]
</a>
</td>
</tr>
</table>
</td>
</if>
Bernd
06-12-2006, 04:01 PM
Doesn't that simply skip the image entirely, without checking if it can display the first attachment instead?
EDIT: it seems that the if statement is in place, but it still selects the darn featured thumbnail.
Harald_T
06-12-2006, 04:10 PM
Hmh, strange, it works fine for me. But i will check it.
Bernd
06-12-2006, 04:26 PM
The strange thing is that it works for certain gallery images, while it doesn't for others. I have listed over 5 images in my gallery, three of them are featured. Two of them work, one doesn't. All featured images are named the same and that name is set in gallery options.
The gallery images are pulled from two different forums.
Harald_T
06-12-2006, 05:04 PM
This is really strange, as the routine works fine at my page. Could you grant me access to your page? I'll check.
Bernd
06-12-2006, 08:41 PM
Editing the images and reuploading the featured thumb didn't help. I have removed the offending gallery posts and reposted them. They do show up fine now for some reason. If it happens again, I will grant you access to my website.
<if condition="$show['br']">.
Could you explain what the above code tries to do? It's located in gallery_attachment. It seems to me like you tried to separate images with brakes when more than one has been uploaded, which doesn't appear to be working if that's the case.
kofoid
06-14-2006, 02:24 PM
Regarding my issues above - the template compressor was messing things up
tienkhom
06-17-2006, 08:57 PM
yeah, same here, after installing gallery, my shout box and top 10 statistics display dublicate on my forum home page, I dont know why
*also i have instlled hellcat realtime compressor and template cache system before
SIN77
06-18-2006, 01:47 AM
after i create the gallery template, what code am i supposed to add to it?
tienkhom
06-18-2006, 03:33 AM
How can I disable totaly the lastest 5 pictures on forumhome, because something conflict with other hack like shout box, I want only to use option act as gallery for my child forum, it is really good
Thanks
Amaranth
06-18-2006, 08:36 AM
Thanks for this awesome hack, I love it! and it's freee - huzzah! :)
I've posted a feature request that involves this hack in the forum, if you're interested:
Wouldn't it just be awesome fun to be able to Photocast from Flickr, iPhoto or Picasa to a vBulletin Gallery? I've been playing around with 3.6.0 Beta2's RSS functionality, and coupling that with something like Gallery for vBulletin 3.5.X by Harald_T , could yield some very interesting results.
I guess the functionality needed is to look for images in post, instead of only attachments.
Is this something you would be interested in doing? Is it difficult?
Harald_T
06-18-2006, 08:46 AM
How can I disable totaly the lastest 5 pictures on forumhome, because something conflict with other hack like shout box, I want only to use option act as gallery for my child forum, it is really good
Thanks
You could do:
- Set it to disable in your gallery-options,
or, if this doesn't help:
-Remove the code for the latest pictures in the plugin "gallery_images_forumhome". Or disable the plugin.
Amaranth
06-18-2006, 01:48 PM
Another question, Is there an easy way to show a thumbnail of the latest uploaded picture as the "new post" status icon on forum home for the gallery forum?
kewl1uk
06-18-2006, 02:39 PM
Just downloaded and installed. *clicks Install*. Thank you for this.
Just one issue. Latest pics are not displayed in member profiles. All I get is
Latest gallery-submission of: kewl1uk
Any ideas on how to fix this. Thank you.
Harald_T
06-18-2006, 02:43 PM
Just look two or three pages before. I've posted there another XML-File, which removes this nasty bug.
Harald_T
06-18-2006, 02:44 PM
@Amaranth: This is one of the things, i want to do next. I'm looking after these things, atm.
hey..very nice hack...one questions...I currently have coopermine gallery installed somewhere in a subdomain and have like 2000 pics in it...is there a way to import all those pics and cats and subfolders into the vb gallery? or how would I go about it doing that?
best regards
kewl1uk
06-18-2006, 03:08 PM
Just look two or three pages before. I've posted there another XML-File, which removes this nasty bug.
The only one I could find is a long way back and is product-101.xml. Is that the one?
Amaranth
06-18-2006, 07:34 PM
Cool, if you can make this gallery integrate smoothly with photocasting - well, that would simply rock hard! And seeing the latest photo as a status-icon on forumhome would be really sleek.
Being able to define photocasts, podcasts from flickr, iphoto or the next picasa release, people should be ecstastic! It would just make populating the gallery such a breeze.
daystorm
06-22-2006, 12:26 AM
Hello,
I have questions that may have been answered here, but after looking through 20 pages, I figured it was smarter to just ask.
First you said in one of your ealier replies to a post to make a new template. what would that template be for?
Second, my pics are showing up in a column format and I would like them to go across the screen and to display the info I want like your screen shots. What file do I edit?
Third, is it possible to pull the featured over to the index page?
Thank you,
Ella
ntock
06-22-2006, 04:30 AM
Very cool, but I won't be able to use unless there is an approval function for mods/admins (this way people don't upload porn etc.). Are you planning on this? Many many thanks :)
Harald_T
06-23-2006, 04:00 PM
Very cool, but I won't be able to use unless there is an approval function for mods/admins (this way people don't upload porn etc.). Are you planning on this? Many many thanks :)
Use your vbulletin-settings for this.
@all: i have three weeks holidays now, so i have a plenty more time to work on the gallery. So, expect more soon.
Allan
06-23-2006, 04:12 PM
Hey Harald :)
you will upgrade this hack for vB3.6 ?
Harald_T
06-23-2006, 04:20 PM
@Alan: Yes, i will. I run vBi-Gallery already on Beta 3.6.2 and having no problems.
I just hadn't to much time in the last weeks, that's all.
Harald_T
06-24-2006, 09:44 AM
Just an info: I've started making a kind of member gallery. So you can click on a link in the postbit or in the memberprofile and a new page will open and show the pictures, which has been posted by the user (as a link, so you can directly jump to the post).
For live-demo: http://www.sf-galerie.de
Bernd
06-24-2006, 10:39 AM
A suggestion u might be able to use.
Use and update a custom profile field with zero\one depending on if a user has a gallery (field has to update upon attachment upload or something). That way, you can choose to search for members with a gallery through the members list.
The gallery admin sections needs a field where you can input the custom profile field number. Otherwise, the query would need a fixed profile field number, which might not be the same for all members.
Bernd
06-24-2006, 04:09 PM
Another suggestion. Prevent people from using external image links, or make an image attachment a requirement (checked upon posting). I've had several people submit a gallery image from an external site.
edeline
06-24-2006, 05:11 PM
hi
i've just installed the gallery in my forum.
i have 2 question or problem :
1. latest gallery submission not showing in user profile
2. can user make a comment at the gallery ??
thank you :)
Gehanna
06-28-2006, 12:52 PM
How do I get rid of the black space that shows up where the thumbnail images are?
please refer to this link for an example:
http://www.currentday.com/forums/forumdisplay.php?f=87
**Disregard the first image called My Best Friend. That image is not showing up there because the image was not uploaded via the attachment function.
Is this something that can not be changed? If not then is there a way for me to change the color of the black space so that it matches the light blue background which would then give the appearance of not having any extra space around the thumbnail?
I have looked through all the templates but I am unable to figure this out on my own.
Your help would be greatly appreciated.
Sincerely,
Gehanna
Harald_T
06-28-2006, 01:29 PM
This can be removed by changing the CSS-tags.
I'm a little bit out of time today, i'll check back later and help you out of this.
Gehanna
06-28-2006, 01:45 PM
Sounds great! Thanks Harald_T :D
Harald_T
06-28-2006, 02:34 PM
Oh, just a little preview, of what coming next:
http://www.sf-galerie.de/member_gallery.php?u=1
Have fun!
Amaranth
06-29-2006, 03:13 PM
I like what I see! (Especially the Angelina Jolie pic ;))
Can you tell me what I am looking at here? It seems like a gallery without any text beneath the thumbnails, anything spectacular that I'm missing?
DrewM
06-29-2006, 03:58 PM
I like what I see! (Especially the Angelina Jolie pic ;))
Can you tell me what I am looking at here? It seems like a gallery without any text beneath the thumbnails, anything spectacular that I'm missing?
it's that members gallary see how it has "u=" in the url?
Harald_T
06-29-2006, 05:16 PM
@Larrysw: You're right. This is the first version i made of this. There are a couple of problems to solve (how to make a page break, and such things), but it is a start.
It shows all pictures the user has posted. But it will take a while till it's finished.
Necrosaro420
06-29-2006, 09:58 PM
Just to add one important thing:
This hack is based on the "Thumbnail on Forumdisplay"-Hack, which was original written by Dechevious, so credits go also out to him.
Can user's submit there own pics?
Harald_T
06-30-2006, 07:03 AM
Yes, they can. The only thing, the admin needs, is to setup a forum for the user and create a gallery out of it.
ltaylor
06-30-2006, 12:00 PM
*clicked installed*! I'll be back with a review once installed.
Thanks for creating and sharing!!
kofoid
06-30-2006, 09:40 PM
Help!
godaddy shut my site down due to this mod :(:(:( and it's so so awesome! It seems that the following queries caused Go Daddy's CPU utilization soar to over 80% and almost brought down the entire shared server:
SELECT gallery, threadid, firstpostid, Yadathread.title, attachmentid, Yadaattachment.dateline FROM Yadaattachment, Yadathread, Yadaforum
WHERE gallery='1' AND Yadathread.featured!='1' AND Yadathread.forumid=Yadaforum.forumid AND Yadathread.firstpostid = Yadaattachment.postid AND Yadaattachment.dateline < 1151690651
GROUP BY Yadathread.threadid
ORDER BY Yadaattachment.attachmentid DESC LIMIT 5 |
SELECT gallery, threadid, firstpostid, Yadathread.title, attachmentid, Yadaattachment.dateline FROM Yadaattachment, Yadathread, Yadaforum
WHERE gallery='1'AND Yadathread.featured!='1' AND Yadathread.forumid=Yadaforum.forumid AND Yadathread.firstpostid = Yadaattachment.postid AND Yadaattachment.dateline < 1151690653 ORDER BY RAND() LIMIT 5 |
SELECT gallery, threadid, firstpostid, Yadathread.title, attachmentid, Yadaattachment.dateline FROM Yadaattachment, Yadathread, Yadaforum
WHERE gallery='1' AND Yadathread.featured!='1' AND Yadathread.forumid=Yadaforum.forumid AND Yadathread.firstpostid = Yadaattachment.postid AND Yadaattachment.dateline < 1151690653
Can anyone let me know what I can do in order to KEEP this mod on my site? It seems that the above queries are the forumhome ones for the display 5 random images option.... is that right? If so, is there ANY way I can get this to work without as many queries?
Harald_T
06-30-2006, 10:15 PM
@Kofoid: I'm aware of this problem, also it should only add some queries to the page, but not that much, that the site breaks down. I'm thinking over this, if i can reduce the amount of queries used in these routines.
kofoid
07-01-2006, 01:38 PM
Thanks Harald!! You rock! :)
ltaylor
07-01-2006, 04:00 PM
Hi Harold & Everyone,
First, the hack is awesome. I installed it last night. I have a few changes to make to imput link on navbar as I've also just recently installed a custom skin..(need to work with the coding).
Anyways, one problem I'm having is showing the latest gallery additions in the user cp. I am in the midst of searching all the posts in this thread to find the answer, but in the event someone knows..it would be great if you could direct me.
Thankyou!
Necrosaro420
07-02-2006, 12:19 AM
Yes, they can. The only thing, the admin needs, is to setup a forum for the user and create a gallery out of it.
Is there an option so that I do not have to set it up for a specific user? I run a video gaming site, and I want to allow user's to post the pictures of the collections that they have, but I dont want to have to baby it and set each individual one up.
Thanks!
Harald_T
07-02-2006, 08:52 AM
@Necrosaro: That would mean, that your users would be able to open up a gallery for themself. I have to check this, can't say atm.
Harald_T
07-02-2006, 08:22 PM
@Kofoid: Try this code for the plugin: gallery_images_forumhome
// #################### Latest Gallery-Additions #######################
// fetch the permissions for each forum
// global $vbulletin;
if ($vbulletin->options['show_latest']) {
$gal_num_rows = $vbulletin->options['gal_num_rows'];
$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() ."
GROUP BY ".TABLE_PREFIX ."thread.threadid
ORDER BY ". TABLE_PREFIX . "attachment.attachmentid DESC LIMIT $gal_num_rows");
while ($gallery = $db->fetch_array($thumbs))
{
eval('$latestgallery .= "' . fetch_template('gallery_latestpictures') . '";');
}
}
// #################### Random Gallery-Additions #######################
// fetch the permissions for each forum
if ($vbulletin->options['show_random']) {
$random_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.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() ." ORDER BY RAND() LIMIT $gal_num_rows");
while ($rand_gallery = $db->fetch_array($random_thumbs))
{
eval('$random_gallery .= "' . fetch_template('gallery_randompictures') . '";');
}
}
$top5 = $db->query_read("SELECT gallery,". TABLE_PREFIX . "thread.featured, threadid, firstpostid, ". TABLE_PREFIX . "thread.title, attachmentid, ". TABLE_PREFIX . "attachment.dateline, ". TABLE_PREFIX . "thread.views FROM ". TABLE_PREFIX . "attachment, ". TABLE_PREFIX . "thread, ". TABLE_PREFIX . "forum
WHERE gallery='1' AND ". TABLE_PREFIX . "thread.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() ." ORDER BY ". TABLE_PREFIX . "thread.views DESC LIMIT $gal_num_rows");
while ($top_gallery = $db->fetch_array($top5))
{
eval('$top5_gallery .= "' . fetch_template('gallery_top5') . '";');
}
// featured forum
$feat_rows=$gal_feat_rows;
$featured_thumbs = $db->query_read("SELECT ". TABLE_PREFIX . "thread.featured, threadid, firstpostid, ". TABLE_PREFIX . "thread.title, MAX(". TABLE_PREFIX . "attachment.attachmentid)AS attachmentid, ". TABLE_PREFIX . "attachment.dateline FROM ". TABLE_PREFIX . "attachment, ". TABLE_PREFIX . "thread, ". TABLE_PREFIX . "forum
WHERE ". TABLE_PREFIX . "thread.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.attachmentid DESC LIMIT $feat_rows");
while ($featured = $db->fetch_array($featured_thumbs))
{
eval('$featured_gallery .= "' . fetch_template('gallery_featured') . '";');
}
This will remove two queries, if those gallery-options are not used. Tell me, if it works, and i'll build up the whole plugin this way. This is just a workaround, no final solution for this problem. But it may help a bit.
Tanya123
07-02-2006, 08:24 PM
No problem
What I did was went to the VBA CMPS => Add module => Module Type [Template]
Module Title - Gallery (Or whatever you want)
Column [Center Column]
Display Order 20 (whatever you want here)
Active Yes
Template to Include: adv_portal_gallery
Template Content:
<if condition="$vboptions['show_latest']==1">
<tr>
<td colspan=$gal_num_rows align="center">Latest pictures in the gallery:
</tr>
<tr>$latestgallery
</if>
<if condition="$vboptions['show_random']==1">
<tr>
<td colspan=$gal_num_rows align="center">Random pictures from the gallery:
</tr>
<tr>
$random_gallery
</tr>
</if>
Use Module Shell Template - Yes
Module Link: (I used this and put it directly to my gallery (same as the link for the navbar - remember your forum ID)
Permissions are up to you - I disallow unregistered and banned users to save bandwidth
I did this and it worked out somewhat. Take a look at my homepage ... I see red x's. I searched this thread and came up with nothing. Help! It shows correctly on my forums page.
Harald_T
07-02-2006, 10:12 PM
Red X: It's possible, that your attachment-settings are not right. Please check under the Attachment-Manager, if your vB creates Thumbsnails for your attachments. See the rest in my PM.
Gehanna
07-03-2006, 01:10 PM
Hello Harald_T,
Would you still be willing to help me figure out how to correct the issue with the black space showing up with the thumbnail images? You made mention that it could possibly be corrected via. css tags or something like that.
Also, I just noticed that for some reason, the gallery submissions aren't showing up in member profiles.
Click here for what I mean: Gehanna's Profile (http://www.currentday.com/forums/member.php?u=2)
Gehanna
imported_magjr
07-03-2006, 01:13 PM
Use your vbulletin-settings for this.
@all: i have three weeks holidays now, so i have a plenty more time to work on the gallery. So, expect more soon.
Does this mean you'll be able to reply to my pm that's been sitting in your inbox for two months now?
calgdsm
07-03-2006, 02:03 PM
Harold,
1. THANK YOU!!
2. HELP!!!!
Everthing went pretty smooth so far untill i got the point where i needed to edit the template FORUMDISPLAY. In the install guide it says to edit this
$thread['hiddencount']++;
}
eval('$threadbit .= "' . fetch_template('threadbit') . '";');
}
I cant find that ANYWHERE! Am i using the correct vb version? im not sure what to do. below is the closest i can find.
</if>
</tr>
</if>
<if condition="$show['threads']">
<!-- show threads -->
<if condition="$show['stickies']">
$threadbits_sticky
</if>
$threadbits
<!-- end show threads -->
<else /> <!-- show no threads message -->
<tr>
<td class="alt1" colspan="$foruminfo[bottomcolspan]" align="center">
<div style="padding: 16px">
<if condition="$show
calgdsm
07-03-2006, 02:06 PM
I think i just solved it, It says open the FILE not template. sorry
calgdsm
07-03-2006, 03:46 PM
Working!!
But still a few problems.
1. Some of the titles are in German! Can i fix this?
2. the link to the gallery is not working. the text is there but the link does not go to the gallery.
Other than that this kicks Ass!!! Great Job!
Can this handle video files aswell?
calgdsm
07-04-2006, 02:44 AM
Bump! Fixed the nav link.
Is there anyway to make everything english i have like 0 german speaking vistors. (That i would like to change, If theres any German DSM Owners drop by the site)
Great Job BTW!!!!
Heres a good idea for an add on to this, how about make it possible to have a highest rated, most viewed ect option can you do this?? that would be great.
squall leonhart
07-04-2006, 10:11 AM
I hv just downloaded vbgallery_123.zip and set up to my forum, do whole step in guide file.
1. It works well at Gallery Latest Pictures in the gallery: but the pic is too big, it's not auto resize to fit to home page.
2. It presents in forum is different with the introduce of this mod.
3. i try do do follow anything 3rd time but still can't make Category like intro
Could you please write the full guide agian for everybody, ths a lot
Charles_1
07-04-2006, 03:16 PM
Hi Harald_T
At first I would like to thank you for your support for this hack. I installed it (version 1.23) yesterday, but it did'nt work completely so far :-(. I read whole this discussion, but without luck - no solution to my issues.
Look at: http://www.svethardware.cz/forum and click "Gallery" in the navbar. Just blank page.
I installed it correctly (last version) via Admincp -> Plugin System -> Manage Products -> Add/Import Product. Then I followed instructions provided by you at install_vbi_gallery_123.html file and done necessary editing of templates and php file, exactly as instructions said.
Then I created new category (named as Gallery), which has no Parent Forum and I set Display Order to 0 (so it's not visible). Option "Act as Forum" is set to "No". There are two forum settings relating to this hack: "Act as a gallery?" and "Gallery-Category?". In this case I set only "Gallery-Category?" to "Yes" (so "Act as gallery?" is set to "No"). ID of this category is 39 so I set this number at Admincp -> vBulletin Options -> Gallery -> Category-Id.
After this I created in this category (named Gallery) sub-forum named "Test", "Act as forum" is set to "Yes", "Act as Gallery?" is set to "Yes" and "Gallery-Category?" is set to "No". So far, so good.
But when I click on link in navbar (which points to this: http://www.svethardware.cz/forum/forumdisplay.php?f=39), that just only blank page appears, nothing else - just blank white page - end :-(
I also tried uninstall it and import XML file, which you attached to your post #960, but no effect to this.
Could you please look at my problem and help me find solution? I need gallery to improve functionality of our forum and I am stuck right now :-( I set permissions to "all yes" for "Gallery" also for unregistered users for testing purposes.
squall leonhart
07-04-2006, 04:12 PM
1. Yup, i did do exactly like ur and i could not create the catergory too, it is only present the blank like ur situation. you can see it http://www.jovp.org
2. And one more problem is i can not post a new thread, it also present blank. I dun know why?can you help me to fix this error
3. Could you please to help me one more thing? My attached thumbnail present the pic so big like the original size before upload, i dun know how to fix it. http://jovp.org/forum/showthread.php?p=115&posted=1#post115 I want it present like this forum small one.
4. And how come if i dun want guest see the Galerie Latest Pictures in the gallery. Only mem can see it? In fact, i dun want it present "x" with the guest it will make the forum looks so stupid.
hello, I just installed vBgallery and received an SQL error. I was wondering if there was any way of removing this since i cannot access anything except for phpmyadmin??
thanks in advance
Error:
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.featured!='1' AND thread.forumid=forum.forumid AND thread.firstpostid = attachment.postid AND attachment.dateline < 1152142157
GROUP BY thread.threadid
ORDER BY attachment.attachmentid DESC LIMIT 5;
MySQL Error : Can't open file: 'attachment.MYI' (errno: 144)
Error Number : 1016
Date : Wednesday, July 5th 2006 @ 04:29:17 PM
Script : http://....................../
Referrer :
IP Address : .......................
Username : ......
Classname : vb_database
Harald_T
07-05-2006, 11:45 PM
@Charles: Unset the "Gallery-Category"-Option. It's not needed. Atm this option creates an error, so just leave it set to NO.
Harald_T
07-05-2006, 11:47 PM
@Squall: Could you contact me via PM?
@Zyad: In your phpadmin look for the vb-options. There is one option that enables/disables the plugins. Set it to 0, so the plugins won't work any longer. After this, you can remove the plugin or deactivate it.
Hey Herald_T, thanks for your help!!!
I was taking a look at that table and this is what i found under it (is vb-options the plugin table in the db??):
itemid
active
displayorder
cost
tax
refilldateline
defquantity
quantity
sold
allowedgroups
deniedgroups
name
imagelocation
description
tablename
wherename
wherevalue
setname
settype
setvalue
scriptlocation
inputfields
expirydate
loghistory
category
showinstore
changealways
overridepermissions
optionsettings
floodcheck
autobuildcost
Thanks again!!
Charles_1
07-06-2006, 11:19 AM
@Charles: Unset the "Gallery-Category"-Option. It's not needed. Atm this option creates an error, so just leave it set to NO.
Thank you for you reply. I tried different combinations, and that one were one of them too. But no luck.
When I set option "Gallery-Category" of category named "Gallery" with ID 39 to "No", then link in the navbar works fine. But when I go to sub-forum named "Test", I can see two images with descriptions (that means two threads with one attached image to first post), so it looks OK, but when I click the button "Upload" or New thread (in our language it is "Nov? t?ma"), then only thing I get is already mentioned blank page :-(. Those two threads with attached images I created for testing purposes in situation, when the option "Act as gallery" of sub-forum named "Test" with ID 40 was set to "No" -> they were normal threads.
Harald_T
07-06-2006, 01:06 PM
@Charles_1: Can you contact me via pm?
Tyegurl
07-06-2006, 05:04 PM
did you find a way for users to create their own gallery?
that would be great if you did...
Harald_T
07-06-2006, 05:22 PM
Not yet. To be honest, it's to warm here to work.
Tyegurl
07-06-2006, 05:25 PM
Not yet. To be honest, it's to warm here to work.
okay lol i am in no hurry....yet.....
only working on a test board. i have no gallery installed yet as i am waiting for you to figure out the user gallery part...i have no coding know how or i would do it.
calgdsm
07-07-2006, 01:07 AM
Working!!
But still a few problems.
1. Some of the titles are in German! Can i fix this?
Can i fix this the file size is in german i think i cant read it. can you tell me how to fix it.
I love the HACK great job!!
Harald_T
07-07-2006, 09:10 AM
Dateigröße = Filesize. You find it in the template "gallery_threadbit". It's twice there, as much as i remember.
seany1
07-07-2006, 09:31 AM
Thanks Harald worked first time, very much appriciated :)
is there any way to show submissions on the postbit, if not then not to worry.
again thanks for a great gallery
Seany
Charles_1
07-07-2006, 11:43 AM
@Charles_1: Can you contact me via pm?
Yes, of course. I did it already (sent PM yesterday).
kofoid
07-08-2006, 11:40 PM
@Kofoid: Try this code for the plugin: gallery_images_forumhome
// #################### Latest Gallery-Additions #######################
// fetch the permissions for each forum
// global $vbulletin;
if ($vbulletin->options['show_latest']) {
$gal_num_rows = $vbulletin->options['gal_num_rows'];
$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() ."
GROUP BY ".TABLE_PREFIX ."thread.threadid
ORDER BY ". TABLE_PREFIX . "attachment.attachmentid DESC LIMIT $gal_num_rows");
while ($gallery = $db->fetch_array($thumbs))
{
eval('$latestgallery .= "' . fetch_template('gallery_latestpictures') . '";');
}
}
// #################### Random Gallery-Additions #######################
// fetch the permissions for each forum
if ($vbulletin->options['show_random']) {
$random_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.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() ." ORDER BY RAND() LIMIT $gal_num_rows");
while ($rand_gallery = $db->fetch_array($random_thumbs))
{
eval('$random_gallery .= "' . fetch_template('gallery_randompictures') . '";');
}
}
$top5 = $db->query_read("SELECT gallery,". TABLE_PREFIX . "thread.featured, threadid, firstpostid, ". TABLE_PREFIX . "thread.title, attachmentid, ". TABLE_PREFIX . "attachment.dateline, ". TABLE_PREFIX . "thread.views FROM ". TABLE_PREFIX . "attachment, ". TABLE_PREFIX . "thread, ". TABLE_PREFIX . "forum
WHERE gallery='1' AND ". TABLE_PREFIX . "thread.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() ." ORDER BY ". TABLE_PREFIX . "thread.views DESC LIMIT $gal_num_rows");
while ($top_gallery = $db->fetch_array($top5))
{
eval('$top5_gallery .= "' . fetch_template('gallery_top5') . '";');
}
// featured forum
$feat_rows=$gal_feat_rows;
$featured_thumbs = $db->query_read("SELECT ". TABLE_PREFIX . "thread.featured, threadid, firstpostid, ". TABLE_PREFIX . "thread.title, MAX(". TABLE_PREFIX . "attachment.attachmentid)AS attachmentid, ". TABLE_PREFIX . "attachment.dateline FROM ". TABLE_PREFIX . "attachment, ". TABLE_PREFIX . "thread, ". TABLE_PREFIX . "forum
WHERE ". TABLE_PREFIX . "thread.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.attachmentid DESC LIMIT $feat_rows");
while ($featured = $db->fetch_array($featured_thumbs))
{
eval('$featured_gallery .= "' . fetch_template('gallery_featured') . '";');
}
This will remove two queries, if those gallery-options are not used. Tell me, if it works, and i'll build up the whole plugin this way. This is just a workaround, no final solution for this problem. But it may help a bit.
Hi there - I tried this and it adds 4 queries to my forumhome - does that sound right?
Harald_T
07-09-2006, 10:49 AM
O.k., if it does so, it should be right. I'll post another code later, which will only do the queries, which are really used.
I'm working on this routine, so it will only use one query. But atm it doesn't work right.
Harald_T
07-09-2006, 02:25 PM
I would suggest, if you don't need the featured-option, use this code:
// #################### Latest Gallery-Additions #######################
// fetch the permissions for each forum
// global $vbulletin;
if ($vbulletin->options['show_latest']) {
$gal_num_rows = $vbulletin->options['gal_num_rows'];
$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() ."
GROUP BY ".TABLE_PREFIX ."thread.threadid
ORDER BY ". TABLE_PREFIX . "attachment.attachmentid DESC LIMIT $gal_num_rows");
while ($gallery = $db->fetch_array($thumbs))
{
eval('$latestgallery .= "' . fetch_template('gallery_latestpictures') . '";');
}
}
// #################### Random Gallery-Additions #######################
// fetch the permissions for each forum
if ($vbulletin->options['show_random']) {
$random_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.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() ." ORDER BY RAND() LIMIT $gal_num_rows");
while ($rand_gallery = $db->fetch_array($random_thumbs))
{
eval('$random_gallery .= "' . fetch_template('gallery_randompictures') . '";');
}
}
This is only a temporarily solution, as i said, i'm writing a new code for this.
Tanya123
07-09-2006, 03:02 PM
My Admins and my Super Mods can see the gallery but my Mods and registered members and custom groups cannot see them. They get red X's. I setup the permission for them to see but still nothing. :(
Harald_T
07-09-2006, 03:50 PM
@Tanya: Can your users download attachments? Could be this.
whoopass
07-09-2006, 05:25 PM
Is it possible to show the gallery on the vbportal page?
EthanHunt
07-09-2006, 05:38 PM
Hello Harald,
i've got 2 Problems.
Bad-English Version:
1.) I want to resize all thumbs to the same size.
2.) How can i remove this border ?
German Version:
1.) Wie stell ich es an das alle Thumbs die gleiche Größe haben.
2.) Wie kann ich diesen Rahmen entfernen bzw. einfarbig machen?
Tanya123
07-09-2006, 06:25 PM
@Tanya: Can your users download attachments? Could be this.
Yes, they are all set to download but they cannot upload. Does that make a difference?
Harald_T
07-09-2006, 10:36 PM
No, normaly not. It's only neccassary that they download them. It must be a permission-setting, otherwise the admins and super-mods would see "Red X" also.
imported_magjr
07-10-2006, 06:27 PM
is there a code I can run in my mysql that will delete this from my database? When I uninstall it, it still leaves fragments in the vbpanel
Harald_T
07-10-2006, 07:37 PM
What for a vbpanel? The uninstall-routine normaly desinstall all.
imported_magjr
07-10-2006, 07:39 PM
How to uninstall this from my mysql.
When I try to delete it, it's still there. I've grown tired of waiting for your pm reply to me, so I want to delete it from my board all together.
Harald_T
07-10-2006, 07:50 PM
Hello Harald,
i've got 2 Problems.
Bad-English Version:
1.) I want to resize all thumbs to the same size.
2.) How can i remove this border ?
German Version:
1.) Wie stell ich es an das alle Thumbs die gleiche Gr??e haben.
2.) Wie kann ich diesen Rahmen entfernen bzw. einfarbig machen?
Ich beantworte es mal eben in Deutsch, geht schneller:
1. Das alle Thumbs die gleiche Gr??e haben, definierst Du normalerweise durch die Attachment-Einstellungen in den vB-Optionen. Du k?nntest jedoch im Template "gallery_latestpictures" ein width- und height-Tag mit Angabe der Wunschgr??e angeben, dann wird das Thumb entsprechend verg??ert/verkleinert.
2. Im gleichen Template musst Du die beiden class-Angaben "tborder" und "thead" entfernen, dann hast Du den Rand nicht mehr.
Harald_T
07-10-2006, 08:41 PM
@imported: which pm? I checked it, but i didn't received a pm in the last month or so from you.
It should be completly removed, except you would still use an old version of this hack. In this case there will be templates and phrases left. But the latest version normaly deinstalls it completly.
And what do you mean with this "vbpanel"? Do you mean the navbar?
imported_magjr
07-10-2006, 08:44 PM
I sent a pm 27. May 2006, 16:37
It's an older version of your hack and when I revert templates, I look in the plugin area and fragments are still there.
When I say vbpanel, I mean admincp
Harald_T
07-10-2006, 08:50 PM
Strange, i don't any pm between January and Juni... That's really weired.
What was the problem with the hack?
Draygonia
07-11-2006, 04:53 PM
A few questions if you could please answer!
1) I have the gallery, but how do I upload pictures so they display in the gallery? I tried to create a new thread and upload an attachment and have it display like that, but it doesnt display the image at all.
2) How do I mass upload pictures? Like upload them to a folder on the website and the file name would = the picture name and they would automatically display in the forum.
imported_magjr
07-11-2006, 04:54 PM
Strange, i don't any pm between January and Juni... That's really weired.
What was the problem with the hack?
When I install it, it completely hoses my server. I.e. I have to restart my server. I follow the directions step by step. I've since upgraded my board to 3.6 rc1 and just tried to install it, this is the error message the plugin gave me:
Database error in vBulletin 3.6.0 Release Candidate 1:
Invalid SQL:
SELECT gallery, threadid, firstpostid, thread.title, attachmentid, attachment.dateline FROM attachment, thread, forum
WHERE gallery='1'AND thread.featured!='1' AND thread.forumid=forum.forumid AND thread.firstpostid = attachment.postid AND attachment.dateline < 1152640178 ORDER BY RAND() LIMIT 5;
MySQL Error : Unknown column 'gallery' in 'field list'
Error Number : 1054
Date : Tuesday, July 11th 2006 @ 11:49:47 AM
Script : http://forum.mysite.com/
Referrer :
IP Address : xx.xxx.xxx.xxx.
Username : me
Classname : vb_database
mustangcanada
07-11-2006, 07:22 PM
hello, was wondering why i'm seeing both the German and the English versions under my navbar for recent gallery images?
I just want the english one there.
mustangcanada
07-11-2006, 08:17 PM
never mind, just had to remove that bit of code out of forumhome
Harald_T
07-11-2006, 09:36 PM
When I install it, it completely hoses my server. I.e. I have to restart my server. I follow the directions step by step. I've since upgraded my board to 3.6 rc1 and just tried to install it, this is the error message the plugin gave me:
Database error in vBulletin 3.6.0 Release Candidate 1:
Invalid SQL:
SELECT gallery, threadid, firstpostid, thread.title, attachmentid, attachment.dateline FROM attachment, thread, forum
WHERE gallery='1'AND thread.featured!='1' AND thread.forumid=forum.forumid AND thread.firstpostid = attachment.postid AND attachment.dateline < 1152640178 ORDER BY RAND() LIMIT 5;
MySQL Error : Unknown column 'gallery' in 'field list'
Error Number : 1054
Date : Tuesday, July 11th 2006 @ 11:49:47 AM
Script : http://forum.mysite.com/
Referrer :
IP Address : xx.xxx.xxx.xxx.
Username : me
Classname : vb_database
Are you using prefixes in your SQL-Database?
Otherwise it looks like the gallery has not be installed. Are you using the latest version of it now?
ltaylor
07-12-2006, 05:36 AM
Hi Harold, First I'm enjoying your hack.
My question is: Am I able to post the display (last # pictures) inbetween my choice of the forums as apposed to just under the navbar?
Thnx for your reply
EthanHunt
07-12-2006, 02:54 PM
Ich beantworte es mal eben in Deutsch, geht schneller:
1. Das alle Thumbs die gleiche Gr??e haben, definierst Du normalerweise durch die Attachment-Einstellungen in den vB-Optionen. Du k?nntest jedoch im Template "gallery_latestpictures" ein width- und height-Tag mit Angabe der Wunschgr??e angeben, dann wird das Thumb entsprechend verg??ert/verkleinert.
2. Im gleichen Template musst Du die beiden class-Angaben "tborder" und "thead" entfernen, dann hast Du den Rand nicht mehr.
THX for your quick answer !!!
Edited and everything will run perfect.
Nice Tool.......run for click.
imported_magjr
07-12-2006, 08:54 PM
Are you using prefixes in your SQL-Database?
Otherwise it looks like the gallery has not be installed. Are you using the latest version of it now?
Not sure if i'm using prefixes in my database. It's just the standard database.
I got that error message when I tried installing the .xml file you have. It's step #1 from your write up.
Harald_T
07-12-2006, 09:22 PM
Just look inside your phpadmin: In the table "forum", there should not be a row namend "Gallery", if the gallery isn't installed. Otherwise, if so, delete this row.
Afterwards, import the XML-File again.
imported_magjr
07-12-2006, 09:51 PM
Just look inside your phpadmin: In the table "forum", there should not be a row namend "Gallery", if the gallery isn't installed. Otherwise, if so, delete this row.
Afterwards, import the XML-File again.
Got a "gallery_rows" colum but other then that, nothing.
dodjer42
07-13-2006, 03:11 AM
I wish I saw this hack last week before I purchased photopost for over $100 :)
This looks actually better than photopost. Harald, can you confirm whether new image posts actually modify the 'last post' details on the main forum where the gallery link is found (something that photopost does not do)?
:banana:
Harald_T
07-13-2006, 09:29 AM
@Dodjer42: You mean, if you post a new picture, or reply to a post, that you've got this "forum_new.gif" which indicates that the forum contains new posts? If you mean this, yes.
dodjer42
07-14-2006, 12:39 AM
Thanks Harald, yes exactly that. Also on the right column 'last post' which has the date of the last post, time and user who posted.
Regards,
D
brvheart
07-14-2006, 03:53 PM
Hello great hack! I have a small issue, in the member profiles, the pics are not showing up, I searched through and saw that you posted a xml to fix this, but did you update the one in the zip file?
kofoid
07-14-2006, 08:59 PM
I am getting so discouraged :( for some reason, the ability to post new photos, so I re-installed the plugin it completely hosed my board :( I have had to completely disable the entire gallery. :(:(:(
Harald_T
07-14-2006, 10:19 PM
This is strange, yes. As normaly the hack shouldn't mix up the board. Maybe another plugin, which is interfering with the hack.
brvheart
07-14-2006, 11:16 PM
I uploaded the xml from page 33 I think, it was marked xml 101 or something, and that fixed my board with no issues. I did have to make the original forum/catagory to act as a forum, then I was able to see the "upload" button and everything worked great after that :) thank harold :)
Dj. Gargamel
07-16-2006, 07:06 PM
A few questions if you could please answer!
1) I have the gallery, but how do I upload pictures so they display in the gallery? I tried to create a new thread and upload an attachment and have it display like that, but it doesnt display the image at all.
2) How do I mass upload pictures? Like upload them to a folder on the website and the file name would = the picture name and they would automatically display in the forum.
I am having the same trouble:surprised:
mdavis1984
07-16-2006, 09:02 PM
I just installed this hack and was wondering if there was a way to stop the newly added section on the main page to NOT show any pictures from a certain gallery.
mdavis1984
07-16-2006, 09:04 PM
I am having the same trouble:surprised:
Do you have your VB options set to show thumbnails in post? You can also set how many attachments to allow for each post.
Derekclarke
07-16-2006, 09:12 PM
has anyone tested this on 3.6?
Harald_T
07-16-2006, 09:25 PM
Just set it in the Gallery-Options, there you can disable Random Pictures.
mdavis1984
07-16-2006, 09:35 PM
well i want them to be shown just not from a private thread. which it shows.
Harald_T
07-17-2006, 04:03 PM
Oh, therefore it's only neccassary to change the template a bit. I'll check it this evening.
AzianStang
07-17-2006, 04:21 PM
Harald, for some reason my gallery is only uploading 20-30% of an attached image?
The forum acts as if it has fully uploaded the image, but when viewing as a thread, only part of the image was uploaded, and IE shows there's an error on the page.
whoopass
07-18-2006, 01:20 AM
After installing VBiGallery, my format options have become disabled or non-functional and i'm not able to manage attachments(button is missing).
Nothing works, smilies, format options, links.
Any help would be appreciated.
Marty
whoopass
07-18-2006, 02:17 PM
After installing vbigallery and having to uninstall it because it didn't work, I am now faced with an issue with my format options not working or being disabled. I could use some assistance with this issue.
Database error in vBulletin 3.5.4:
Invalid SQL:
MySQL Error : You have an error in your SQL syntax near '' at line 4
Error Number : 1064
Date : Monday, July 17th 2006 @ 07:30:38 PM
Edited
My apologies, after creating a new default style, I deleted the old styles and simply made the necessary changes to the template files and it now works again.
Not sure why it disabled my format options but everything works now and all is good.
whoopass
07-18-2006, 07:58 PM
How do i change or remove the foreign wording for filesize when an image is viewed?
Where is this text found?
Harald_T
07-19-2006, 04:20 PM
template "gallery_postbit" it should be.
whoopass
07-19-2006, 04:29 PM
It was actually in gallery_threadbit
Thanks.
Allan
07-19-2006, 07:07 PM
Hey Harald :)
How are you ?
Your hack work with vB 3.6 RC2 ?
Upgrade soon ?
egyptsons
07-19-2006, 07:58 PM
ok it's good
m3site
07-21-2006, 12:09 AM
Show thread is comes up blank.
http://www.nextelusers.net/showthread.php?t=6779
do you know why or is this normal?
Harald_T
07-22-2006, 08:43 AM
Hey Harald :)
How are you ?
Your hack work with vB 3.6 RC2 ?
Upgrade soon ?
Besides the hot temperatures i'm fine.:confused: :D
My hack does'nt work with vB 3.6 RC2 without changing the file-edit a bit.
I will support 3.6 as soon as it is GOLD, so i think it won't take long.
jstep
07-22-2006, 02:22 PM
How do we need to change the file-edit? or are you unsure as of right now
Nice hack, Your help is appreciated
Harald_T
07-22-2006, 02:25 PM
I made it already on my RC2, it wasn't to hard. But i won't post it before GOLD, because i will be sure, nothings changing anymore. So, just wait till GOLD.
Mr. Brian
07-22-2006, 03:08 PM
Hey Harald :)
How are you ?
Your hack work with vB 3.6 RC2 ?
Upgrade soon ?
Don't think it work on 3.6 RC
tgralex
07-22-2006, 11:59 PM
Installation was a piece of cake! Well done!
The only question I have is how to load images so they show up correctly?
when I press on "Gallery" link in menu it brings me to the list of threads created in the gallery and I think it should be showing a small picture on there...
I tried adding images as attachment, as image using [IMG]-tag - the same result...
I guess that is the reason when I lookup for a member who submitted a picture in the gallery it doesn't show in the bottom...
I feel I am a step away from using a great addin :)
Please help.
Harald_T
07-23-2006, 02:22 PM
Use attachments for the gallery, not [IMG]-Tags.
@Mr. Brian: Why don't you think so?
Mr. Brian
07-23-2006, 02:31 PM
Use attachments for the gallery, not [IMG]-Tags.
@Mr. Brian: Why don't you think so?
Course I'm running RC 2
Harald_T
07-23-2006, 02:32 PM
I bet you didn't found the code for the file-edit?
As i said before: I'll release it when GOLD is out.
Mr. Brian
07-23-2006, 02:55 PM
No. I know where the code is but as what I said it just won't work.
Harald_T
07-23-2006, 03:11 PM
I'll check this tonight.
Tork64
07-24-2006, 04:37 AM
Okay, I tried installing this on VB 3.6 RC2, just to try it out, if it worked i would have left it but if it didnt i would have uninstalled it. Anyways, everything worked fine, however the drop down for search did not work, nothing in the navbar that had a drop down menu would go down, you would click on it and nothing would fall. Did I install it wrong or should I just wait for a working rls for VB 3.6 ? Thanks
I tried to install it, but I think I'm missing something.
The zip just gives me a few buttons (gif's instead of jpg), the xml and one page of installation guide.
The installation guide doesn't say anything about creating a template, nor the necessary name, nor any code to put in there.
Some posts further I see that the template is supposed to be called threadbit_gallery instead of template_gallery, so now I have two clue's that are never mentioned before:
1 I need to create a template
2 it's name is to be threadbit_gallery
That second post also tells me to create a new phrase in "Forum_related". I'm not exactly sure what you mean by forum_related. Perhaps I will know what you mean if you say that in German, then I can find it in my English version.
I have 3.5.4, and just like Grendel had before: all I have is an extra forum.
I can't even switch it off, because the switch doesn't work.
My database is correct though: fields gallery and gallery_cat are there, and properly showing the 1's and 0's at the right records.
I hope you can help me!
@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.
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?"
dodjer42
07-25-2006, 02:06 AM
@Dodjer42: You mean, if you post a new picture, or reply to a post, that you've got this "forum_new.gif" which indicates that the forum contains new posts? If you mean this, yes.
Harald, I am looking to replace photopost on my production box. Where abouts in the XML file does it do the 'Last Post' update for forum_new.gif and the last post details?
Thanks for this awesome hack!
dubsbhoy
07-26-2006, 08:34 PM
will this work on 3.5.1
Harald_T
07-27-2006, 03:23 PM
@Dubsbhoy: Yes, of course, it works with 3.5.1 also.
camdude
07-28-2006, 12:08 PM
I installed this gallery and it works great. But when guests come to the site the images are broken, displayed with an X. When you login you can see the pictures. What parameter am I missing here ?
I have been reading the thread, couldnt find anything. But the thread is sooo long i might have overlooked the solution
Blindchild02
07-28-2006, 04:08 PM
Any way to make a watermark for uploaded images?
Harald, could you help me please?
I found I need to add a new template called threadbit_gallery
What is supposed to be in threadbit_gallery?
I'm running 3.5.4
Harald_T
07-29-2006, 12:01 PM
You don't need to do such a template. All templates used by the hack are installed by the XML-File. You all find it under the gallery-templates.
Blindchild02
07-29-2006, 04:15 PM
Any way to make a watermark for uploaded images?
hmm hmm??
mikeylikesitz
07-30-2006, 11:07 PM
so this will be updated for 3.6 when it goes gold?
DrewM
07-31-2006, 12:10 PM
yeah.
karavarus
08-02-2006, 01:05 AM
I got stuck here..
Editing the PHP-File "forumdisplay.php":
Where do I find the PHP-File "forumdisplay.php" ????
PLEASE HELP!
DrewM
08-02-2006, 10:51 AM
it's in the main directery in yoyr forum.
imported_magjr
08-03-2006, 08:19 PM
so this will be updated for 3.6 when it goes gold?
My fingers are crossed!
adiboy.net
08-04-2006, 05:19 AM
Hi can someone help me...
I got this instead:
http://kallangroar.com/forumdisplay.php?f=28
And the thumbnail it the homepage are not working:
http://kallangroar.com/index.php
Ticinofelino
08-06-2006, 08:35 AM
I'm sorry I tried everything but I really don't understand what I've done wrong! Can anyone tell me why my "gallery" behaves like a normal forum.
I created the category - to behave like a gallery category
then the forum - to behave like a gallery
I see the upload button but it works like a "new post" button.
I put the id of the category for the navbar, I said yes to use other layouts...
I don't know what else I should do...
Here's the link to the site I'm building:
http://www.ticinofelino.com (http://www.ticinofelino.com/forums/main_index.php)
Thanks for your help... :surprised:
Edit: it works now thanks!
click install
StevanMD
08-06-2006, 05:55 PM
@ wezoo
Tell me please, did you use vBAdvanced CMPS to load Google ads on your page?
Thanks
StevanMD
08-06-2006, 06:00 PM
I'm sorry I tried everything but I really don't understand what I've done wrong! Can anyone tell me why my "gallery" behaves like a normal forum.
I created the category - to behave like a gallery category
then the forum - to behave like a gallery
I see the upload button but it works like a "new post" button.
I put the id of the category for the navbar, I said yes to use other layouts...
I don't know what else I should do...
Here's the link to the site I'm building:
http://www.ticinofelino.com (http://www.ticinofelino.com/forums/main_index.php)
Thanks for your help... :surprised:
Edit: it works now thanks!
click install
Can you please tell me what changes you made to integrate the Gallery on the main page of VBAdvanced?
Thanks
Ticinofelino
08-06-2006, 06:14 PM
Can you please tell me what changes you made to integrate the Gallery on the main page of VBAdvanced?
Thanks
It's very easy, I followed the instructions from Christianb that he posted some time ago, I quote them here for you.
Now, I would like to eliminate the title upon the pics (Album foto) but I still haven't discoverd how... ;)
No problem
What I did was went to the VBA CMPS => Add module => Module Type [Template]
Module Title - Gallery (Or whatever you want)
Column [Center Column]
Display Order 20 (whatever you want here)
Active Yes
Template to Include: adv_portal_gallery
Template Content:
<if condition="$vboptions['show_latest']==1">
<tr>
<td colspan=$gal_num_rows align="center">Latest pictures in the gallery:
</tr>
<tr>$latestgallery
</if>
<if condition="$vboptions['show_random']==1">
<tr>
<td colspan=$gal_num_rows align="center">Random pictures from the gallery:
</tr>
<tr>
$random_gallery
</tr>
</if>
Use Module Shell Template - Yes
Module Link: (I used this and put it directly to my gallery (same as the link for the navbar - remember your forum ID)
Permissions are up to you - I disallow unregistered and banned users to save bandwidth
StevanMD
08-06-2006, 06:23 PM
Simple as that. Thanks.
It still doesn't show up the actual thumbnails there though (it does when I include the Gallery on the Forum main page), but I guess I will working around that.
In the process I'll see where to change the title you need and let you know.
StevanMD
08-06-2006, 10:36 PM
Now, I would like to eliminate the title upon the pics (Album foto) but I still haven't discoverd how... ;)
Now, from what I've seen (btw, I've spent the last two hours going through every bit of everything - beyond just Gallery thing - to see why the pop up shows for each picture the page loads, and in the end none load at all, and just as I was about to reinstall everything (as if that would bring real change), I figured I should check the server settings, and lo and behold, all image folders were locked by default. Awesome hosting providers these days, awesome).
As for your problem, just change the Module Title
What I did was went to the VBA CMPS => Add module => Module Type [Template]
Module Title - Gallery (Or whatever you want)
Column [Center Column]
Display Order 20 (whatever you want here)
Active Yes
Template to Include: adv_portal_gallery
Template Content:
Ticinofelino
08-07-2006, 09:52 AM
Thanks a lot Stevan but what I meant, was to ELIMINATE that blue line with the title... I'll find a solution sooner or later :)
StevanMD
08-07-2006, 10:31 AM
Thanks a lot Stevan but what I meant, was to ELIMINATE that blue line with the title... I'll find a solution sooner or later :)
I think you need to use this code:
<if condition="$vboptions['show_latest']==1">
<table class="tborder" cellpadding="6" cellspacing="1" border="0" width="99%">
<tr>
<td class="tcat" colspan=$gal_num_rows>
Galerie
<div class="smallfont">Latest Pictures in the gallery:</div>
</td>
</tr>
<tr>
$latestgallery
</tr>
</table>
<br />
<br />
</if>
<if condition="$vboptions['show_random']==1">
<table class="tborder" cellpadding="6" cellspacing="1" border="0" width="99%">
<tr>
<td class="tcat" colspan=$gal_num_rows>
Gallery
<div class="smallfont">Latest Pictures in the gallery:</div>
</td>
</tr>
<tr>
$random_gallery
</tr>
</table>
<br />
<br />
</if>
<!--Gallery-Addition-->
instead of this:
<if condition="$vboptions['show_latest']==1">
<tr>
<td colspan=$gal_num_rows align="center">Latest pictures in the gallery:
</tr>
<tr>$latestgallery
</if>
<if condition="$vboptions['show_random']==1">
<tr>
<td colspan=$gal_num_rows align="center">Random pictures from the gallery:
</tr>
<tr>
$random_gallery
</tr>
</if>
when creating the Gallery module. The longer one defines the class of the td element (that definition for class tcat in this case, holds the properties of the layout of all those blue lines across modules).
So you need to change its from class="tcat" to say class="tcatgallery"
and from there on create the tcatgallery in css and define its properties (if you want background completely gone, delete all mention of the background, but then it will be transparent and will have the table background as its own, or define any new bacground - either color or gradient picture for example).
I am not sure where to find the css definition of tcat, but I believe if you search for tcat in AdminCP> Styles & Templates > Search in Templates, you should locate it.
Ignicoccus
08-14-2006, 01:30 PM
Hi there,
I tried to install this MOD and everything went fine. Only this part here :
2. Find:
$thread['hiddencount']++;
}
eval('$threadbit .= "' . fetch_template('threadbit') . '";');
}
looks different for me. My forumdisplay.php looks like this :
$thread['hiddencount']++;
}
$show['moderated'] = ($thread['hiddencount'] > 0 AND can_moderate($forumid, 'canmoderateposts')) ? true : false;
$show['deletedthread'] = ($thread['deletedcount'] > 0 AND $canseedelnotice) ? true : false;
}
eval('$threadbit .= "' . fetch_template('threadbit') . '";');
}
So I changed it to :
$thread['hiddencount']++;
}
$show['moderated'] = ($thread['hiddencount'] > 0 AND can_moderate($forumid, 'canmoderateposts')) ? true : false;
$show['deletedthread'] = ($thread['deletedcount'] > 0 AND $canseedelnotice) ? true : false;
//############################Gallery-Modification###########################
if ($gallery == true)
{
eval('$threadbit .= "' . fetch_template('gallery_threadbit') . '";');
}
else
{
eval('$threadbit .= "' . fetch_template('threadbit') . '";');
}
//############################End Gallery-Modification########################
}
// eval('$threadbit .= "' . fetch_template('threadbit') . '";');
}
The Gallery appears in my forum, the link in the nav bar works like it should but when I try to post a picture, I only see the standard comment field, like in a normal forum.
Any Idea ? BTW: I am running vB 3.6
Harald_T
08-14-2006, 05:13 PM
This is because you're running vb 3.6 This hack isn't released yet for 3.6. It will follow the next days.
Ignicoccus
08-14-2006, 05:18 PM
Thanks for your quick reply !
wezoo
08-18-2006, 11:29 AM
StevanMD
@ wezoo
Tell me please, did you use vBAdvanced CMPS to load Google ads on your page?
Thanks
yes i did !! :)
mototips
08-20-2006, 09:45 AM
Ok i want to load google ads under the pictures in my gallery. Here is what it is now http://www.mototips.com/forums.php
How would i put a leader board underneath the pictures but still in the same table as the gallery?
dreck
08-22-2006, 03:00 PM
This is because you're running vb 3.6 This hack isn't released yet for 3.6. It will follow the next days.nice, I look forward to it.
*/me clicks install again*
Thanks, dreck
Muellmann
08-25-2006, 09:39 PM
it's a great Hack and i would like to install it on my new Board as well :)
So i would be very glad if you port it to 3.60!
Harald_T
08-26-2006, 01:52 PM
If i get the time, i'll post an update for 3.60 tomorrow evening.
There is no way I can get it to work:confused:
I either get it to act like a normal forum, or it just gives a blank page and nothing happens.
I have been struggling for weeks now.
This is on 3.5.4
Any good ideas?
DrewM
08-27-2006, 08:21 PM
try uninstalling the product then re-installing.
I already completely uninstalled and reinstalled it.
Also tried to change my settings:
I want a gallery-category, split up into gallery subcategories with photo's. I tried to leave the subcategories out and put the gallery directly under the main gallery category. Made no difference.
DB changes are there, main category number is parsed correctly.
DrewM
08-29-2006, 11:07 AM
Well the gallery-categorys don't work so the forums you want to be gallery put the forum option act as gallery.
OK, I set everything to gallery, also the categories. (But set to "act as a forum = No)
This way I get them displayed, but the galleries still work as normal forum.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.