View Full Version : Forum Display Enhancements - vBi-Gallery for vB 3.6.X
Harald_T
10-07-2006, 10:00 PM
This is the 3.6.X-Version of my vBi-Gallery for vBulletin.
It's an update to this hack:
https://vborg.vbsupport.ru/showthread.php?t=92875
This gallery-system integrates completly into vB, because it's a modification of the forum itself and uses the attachment-system of vb.
Therefore, it's neccessary to be sure, that the attachment-system is working and it's possible to create thumbs. Otherwise, the gallery won't work.
Btw, I want to thank all the people here, which are using this gallery.
Harald_T
10-08-2006, 08:28 PM
This is a placeholder for future-versions, for what have been changed.
Harald_T
10-08-2006, 08:29 PM
F.A.Q.:
Q: Do you have any screenshots or Demo?
A: A live-demo can be seen here: http://www.underworld-kleve.de
Screenshots are included in the ZIP-File or can be seen here:
https://vborg.vbsupport.ru/showthread.php?t=92875
Q: I almost upload smaller image into the gallery. They are all blown up. How can i avoid this?
A: Edit the template "gallery-attachment". Replace the code with this:
<a href="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&d=$attachment[dateline]"<if condition="$show['newwindow']"> target="_blank"</if>>
<if condition="$attachment[filename]!=$vboptions[gal_feat_name]">
<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>
</if>
LittleAndroidMa
10-08-2006, 08:29 PM
Screenshots/Demo?
Harald_T
10-08-2006, 08:32 PM
See FAQ.
ChavMagnet
10-08-2006, 08:40 PM
Is this a free version of photopost or what ?
Harald_T
10-08-2006, 09:02 PM
This is not Photopost, this is just a modification of the forum. This hack is free, but if anyone wants to donate this hack, feel free! ;)
soletrader
10-08-2006, 09:14 PM
Thanks.
Arkidas
10-08-2006, 10:08 PM
This is awesome. Thank you very much!
brvheart
10-09-2006, 01:03 AM
awesome harold thank you very much for this!!
Barakat
10-09-2006, 02:35 AM
owa >>>> thanks ....................
LILMORA4
10-09-2006, 03:41 AM
Where do you find Editing the PHP-File "forumdisplay.php":?
Hornstar
10-09-2006, 09:43 AM
looks impressive. how does this compare to photopost tho?
willisbryan
10-09-2006, 09:55 AM
Million Dollar Question, is there a module to display via vbAdanced? If not is there anyone who would be willing to take a shot at creating one?
Great Mod dude.... Nice Work!
soletrader
10-09-2006, 11:11 AM
How do I make this into english : Dateigr??e
Also is there anyway for the picture size to show up as the original size in the thread instead of a blown up size? You can view the problem here:
http://www.traderslaboratory.com/forums/f12/tape-reading-watching-price-rejection-85.html
Also, is there a way to make all thumbnails the same size? It distorts my template. Thanks
I am using 3.6.0. Thumbs enabled.
But no image above
"Click on the picture, to show it in original-size"
Pls assist.
soletrader
10-09-2006, 03:26 PM
Can someone please help with a problem? I have attached a picture for visual purposes. I need to do some minor changes.
Thank you in advance.
Harald_T
10-09-2006, 04:36 PM
@Soletrader:
Therefore its neccessary to change a template. I'll post a solution later on this evening.
About vbACMPS: I'll release a module for this hack in the next days.
soletrader
10-09-2006, 05:00 PM
Thanks Harald. Great hack by the way. I will be anxiously waiting for the fixes :)
Also, I wanted to know if there was anyway to show the gallery on forumhome but not make a forum a gallery? Instead I want it to take all attachments from a certain forum and display the gallery on the forumhome.
Harald_T
10-09-2006, 05:15 PM
Could explain a bit more?
soletrader
10-09-2006, 05:28 PM
Hello,
Basically I like the display of the gallery on the forumhome (although I may need to do some template fixes as the attachements come all out of shape).
However, I dont want a forum to turn into a gallery. I just want the gallery to list attachments from a certain forum on the forumhome.
So lets say I have a forum called XYZ. Any pictures attached in XYZ would simply be displayed as a gallery in forumhome without making the entire forum into a gallery style.
I hope I made it clearer. Thanks
MikaP
10-09-2006, 05:40 PM
Hay Harald_T,
I have a problem, if i enter my gallery, i don't have a button on the left like upload an so on.
site link:
www.pldsecurity.de/forum
Harald_T
10-09-2006, 06:58 PM
You have to upload the "upload.gif"-file to your /images/buttons-folder on your server.
Harald_T
10-09-2006, 09:13 PM
Can someone please help with a problem? I have attached a picture for visual purposes. I need to do some minor changes.
Thank you in advance.
To change the width of the box, simply edit the template gallery_postbit. Search for:
<table class="tborder" id="post$post[postid]" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="350" align="center">
And replace 350 with 99%. That's all.
The postion of the reply-button is as it is supposed. It's the normal reply-button under the thread. Just insert a test-answer, and you'll see.
g0rdy
10-10-2006, 12:36 AM
I cannot find a working demo of this, yes Harald i see you posted one but cannot find it..
i do not want to register on any sites to view a demo
thanks =)
soletrader
10-10-2006, 12:42 AM
I just noticed the attachments in the forum does not display for firefox. Any solution to this?
Glynn58
10-10-2006, 09:00 AM
Installed and working great Thanks!
Just a couple of little questions
The header cell on the gallery display in forumhome says
Galerie
Latest Pictures in the gallery:
Great we all know what it is but how do I change the word Galerie to Gallery?
Also when viewing a picture the information box, posted by etc the header on this says Informationen. How do I change that to Information.
I have searched for the words in the templates but I can't find them so assume it needs changing somewhere else.
Many thanks for this mod we have been looking for a gallery for some time and this looks & works great.
DrewM
10-10-2006, 09:01 AM
Try searching in the latest pics gallery templeat I think it's there
Snatch
10-10-2006, 10:08 AM
I there a way tu Upload to another Servers ?
FTP ?
silks
10-10-2006, 10:50 AM
logged out users seem to find the gallery link in the nav bar (which leads to a link saying no permissions ) but once logged in the link is gone from the navbar
the picture link (no picture) appears in the forums but only appears when u click on it seems to be a few problems with my cmps
Glynn58
10-10-2006, 11:06 AM
Found it
used the replacement variabled tool in admin cp
just typed in the words and the ones to replace and job done
Thanks
Harald_T
10-10-2006, 03:36 PM
I just noticed the attachments in the forum does not display for firefox. Any solution to this?
I'm using firefox, and it's working fine. Can you show an example?
Another Live-Demo:
www.sf-galerie.net
(It's the version for 3.5.X, but it's the same technique).
MikaP
10-10-2006, 03:53 PM
You have to upload the "upload.gif"-file to your /images/buttons-folder on your server.
it still don't work.:surprised:
Harald_T
10-10-2006, 05:34 PM
Do you have a special style, which images are directly located under root-folder and not in your images-folder?
Glynn58
10-11-2006, 08:34 AM
Just looked at your demo site www.sf-galerie.net
and I see that the gallery sub forums have custom graphics instead of the usual icons.
Am I right in thinking that this is done with the Gallery setting at the bottom of the forum settings?
ie> use gallery thumbnails yes/no
which graphic to use? ............
Is there anything else that needs to be done to do this?
I can not get it to work.
Thanks
Harald_T
10-11-2006, 04:55 PM
You're right, it works with this technique. It isn't implemented complety yet, there are some routines missing (my sf-galerie.net is my testing place...).
This will come in the next version (release on sunday i think).
complete
10-11-2006, 10:11 PM
I've unintalled version 1.23 and reinstalled version 1.30 but the admincp still shows the version as 1.23.
Also, I'm running vBulletin 3.6.2 and before I upgraded to 1.30, I was able to see the pictures in the forumhome but not in the Gallery. Now, it's opposite. I can't see the pictures in the forumhome but the pictures show up in the Gallery.
Any idea?
Harald_T
10-12-2006, 07:42 AM
Did you make the changes on the templates for forumhome? Without them, no pictures can be displayed on forumhome.
complete
10-12-2006, 02:31 PM
Yes, I did make the changes to the forum home. The title shows up (Latest or Random, depending on the option from vBulletin option -> Gallery) just not the pictures.
Hades-1
10-12-2006, 05:52 PM
i hope u can help me
First off this is AWESOME, i been looking for something just like it.
anyway i did the install right, TRUST ME, then i did it again because it just doesn't look right.
http://mmamedia.net/showthread.php?t=99
It works perfectly but whats wrong with the template? its breaking out of my site it looks horrible.
Also, why does it say upload at the top, and new thread at the bottom? it should be upload for both.
and 1 last thing LOL sorry, but why does it display my image 3x the size it really is? its showing that image with the link above at 680 width when the largest i allow is 500 width?
and the original size of the image is far under that!
itorrents
10-13-2006, 07:27 AM
I seem to be missing a few phrases??
https://vborg.vbsupport.ru/
and when I click on the featured...
https://vborg.vbsupport.ru/
Harald_T
10-13-2006, 09:39 AM
i hope u can help me
First off this is AWESOME, i been looking for something just like it.
anyway i did the install right, TRUST ME, then i did it again because it just doesn't look right.
http://mmamedia.net/showthread.php?t=99
It works perfectly but whats wrong with the template? its breaking out of my site it looks horrible.
Also, why does it say upload at the top, and new thread at the bottom? it should be upload for both.
and 1 last thing LOL sorry, but why does it display my image 3x the size it really is? its showing that image with the link above at 680 width when the largest i allow is 500 width?
and the original size of the image is far under that!
About picture-size: This is, because i set a fix width inside the template. It can be removed.
The problem with the template-width can be depending on the fix width, i'm not sure. I will look after this problem tonight.
@itorrents: Ups, you're right. Will look after this tonight, either.
Hades-1
10-13-2006, 10:38 AM
About picture-size: This is, because i set a fix width inside the template. It can be removed.
The problem with the template-width can be depending on the fix width, i'm not sure. I will look after this problem tonight.
@itorrents: Ups, you're right. Will look after this tonight, either.
i really hope u can help with my template issues as thats the main problem, i also have that missing phrase problem too.
Its not the fixed width either just so u know, i have a liquid version of the same style and its messed up too, u can go to my site and switch the style to see for yourself.
About picture-size: This is, because i set a fix width inside the template. It can be removed.
How, where?
Immortal_Shades
10-13-2006, 02:19 PM
I seem to be missing a few phrases??
https://vborg.vbsupport.ru/
and when I click on the featured...
https://vborg.vbsupport.ru/
- I have the same exact Issues as above plus more!
I have the GD Library installed and it works viewing thumbnails in my portal but not in my gallery. I double checked everything but still those RED X's appear.
My User Groups / Permissions have the permissions required to download attachments. Also my GD shows a thumb image in the option/images section, but nothing within forum for the picture within the gallery.
Awesome mod, any help would be greatly appreciated!
Harald_T
10-13-2006, 03:02 PM
@Immortal: Where do you get those Red X's. In the overview of the gallery or in the posting itself?
Immortal_Shades
10-13-2006, 03:32 PM
I get no photos what so ever in the random images on top of the forums as well as when you click to see them in the gallery.
DrewM
10-13-2006, 06:14 PM
First is your attachment settings on?
if it is on then please give a link to your website.
Hades-1
10-13-2006, 09:18 PM
harold, i get the red x's in internet explorer but not FF on my site as well.
Dont know why, the file exists and is there, works on FF too.
What of my other issue's?
BTW the no picture on forumhome seems to be a permissions problem, how do we change?
Un register users cannot see images not on forum home or inthe gallery it self, once logged in you can see fine.
Antiblank
10-14-2006, 01:50 AM
I use to use the 3.5 version of this hack and wanted to upgrade with my boards upgrade.
I imported the new product overwriting my old one. Added the changes listed in the install and now my boards keep getting this error:
Database error in vBulletin 3.6.2:
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 < 1160793408 ORDER BY RAND() LIMIT 5;
MySQL Error : Unknown column 'thread.featured' in 'where clause'
Error Number : 1054
ninjamaster
10-14-2006, 09:44 PM
I've unintalled version 1.23 and reinstalled version 1.30 but the admincp still shows the version as 1.23.
Also, I'm running vBulletin 3.6.2 and before I upgraded to 1.30, I was able to see the pictures in the forumhome but not in the Gallery. Now, it's opposite. I can't see the pictures in the forumhome but the pictures show up in the Gallery.
Any idea?
1. I have the same problem i have tryed diffrent settings still is no go :( only thing i got is went i click on the Gallery button is the Threads in Forum : Main Forum showing in there or sends me back to there :(
can any 1 help me please
ninjamaster
10-14-2006, 09:58 PM
I've unintalled version 1.23 and reinstalled version 1.30 but the admincp still shows the version as 1.23.
Also, I'm running vBulletin 3.6.2 and before I upgraded to 1.30, I was able to see the pictures in the forumhome but not in the Gallery. Now, it's opposite. I can't see the pictures in the forumhome but the pictures show up in the Gallery.
Any idea?
1. I have the same problem i have tryed diffrent settings still is no go :( only thing i got is went i click on the Gallery button is the Threads in Forum : Main Forum showing in there or sends me back to there :(
can any 1 help me please
ninjamaster
10-14-2006, 10:52 PM
Now when i press the Gallery button i get this message
Hemanth
10-15-2006, 08:37 AM
Awsome hack.. Installing now!
kewl1uk
10-15-2006, 09:18 AM
VB version: 3.6.2
Help please. When editing a forum in Admin CP I get:
Database error in vBulletin 3.6.2:
Invalid SQL:
UPDATE vb3_forum SET
title_clean = 'General Discussions',
title = 'General Discussions',
description_clean = 'All discussion topics not covered in other forums.',
description = 'All discussion topics not covered in other forums.',
link = '',
displayorder = 11,
parentid = 1,
daysprune = -1,
defaultsortfield = 'lastpost',
defaultsortorder = 'desc',
showprivate = 0,
newpostemail = '',
newthreademail = '',
### Bitfield: vb3_forum.options ###
options = IF(options & 8, options - 8, options),
options = IF(options & 16, options - 16, options),
options = IF(options & 32, options - 32, options),
options = IF(options & 32768, options - 32768, options),
options = IF(options & 8192, options - 8192, options),
options = IF(options & 4, options, options + 4),
options = IF(options & 1, options, options + 1),
options = IF(options & 2, options, options + 2),
options = IF(options & 16384, options, options + 16384),
options = IF(options & 256, options - 256, options),
options = IF(options & 64, options, options + 64),
options = IF(options & 128, options, options + 128),
options = IF(options & 512, options, options + 512),
options = IF(options & 1024, options, options + 1024),
options = IF(options & 2048, options, options + 2048),
options = IF(options & 4096, options, options + 4096),
options = IF(options & 65536, options, options + 65536),
styleid = 0,
password = '',
vbbux_perview = 1,
vbbux_perthread = 15,
vbbux_perreply = 5,
### Bitfield: vb3_forum.vbpforumoptions ###
vbpforumoptions = IF(vbpforumoptions & 16, vbpforumoptions - 16, vbpforumoptions),
vbpforumoptions = IF(vbpforumoptions & 32, vbpforumoptions - 32, vbpforumoptions),
vbpforumoptions = IF(vbpforumoptions & 64, vbpforumoptions - 64, vbpforumoptions),
vbpforumoptions = IF(vbpforumoptions & 128, vbpforumoptions - 128, vbpforumoptions),
vbpforumoptions = IF(vbpforumoptions & 256, vbpforumoptions - 256, vbpforumoptions),
vbpforumoptions = IF(vbpforumoptions & 512, vbpforumoptions - 512, vbpforumoptions),
vbpforumoptions = IF(vbpforumoptions & 1024, vbpforumoptions - 1024, vbpforumoptions),
vbpforumoptions = IF(vbpforumoptions & 2048, vbpforumoptions - 2048, vbpforumoptions),
vbpforumoptions = IF(vbpforumoptions & 4096, vbpforumoptions - 4096, vbpforumoptions),
vbpforumoptions = IF(vbpforumoptions & 8192, vbpforumoptions - 8192, vbpforumoptions),
vbpforumoptions = IF(vbpforumoptions & 16384, vbpforumoptions - 16384, vbpforumoptions),
vbpforumoptions = IF(vbpforumoptions & 32768, vbpforumoptions - 32768, vbpforumoptions),
vbpforumoptions = IF(vbpforumoptions & 65536, vbpforumoptions - 65536, vbpforumoptions),
vbpforumoptions = IF(vbpforumoptions & 1, vbpforumoptions - 1, vbpforumoptions),
vbpforumoptions = IF(vbpforumoptions & 2, vbpforumoptions - 2, vbpforumoptions),
vbpforumoptions = IF(vbpforumoptions & 4, vbpforumoptions - 4, vbpforumoptions),
vbpforumoptions = IF(vbpforumoptions & 8, vbpforumoptions - 8, vbpforumoptions),
vbp_cangetaccesscost = 0,
vbp_cangiveaccesscost = 0,
vbp_candenyaccesscost = 0,
vbp_cangetpasswordcost = 0,
gallery = '0',
gallery_cat = '0',
gal_thumbs = 0,
gal_statusicon = ''
WHERE forumid = 3;
MySQL Error : Unknown column 'gal_thumbs' in 'field list'
Error Number : 1054
Harald_T
10-15-2006, 03:04 PM
Try reinstalling the hack again. Could help. It seems, that the alterings of the database haven't been done. Do you also have the right to run queries (set in the config.php)?
@Ninjamaster: Looks like the settings for the category and the gallery is wrong. Did you set "Act as a gallery" also for the category? This isn't needed. Only for the the forums, which will be the gallery.
ninjamaster
10-15-2006, 11:22 PM
HELLO Harald T i got it working thanks for the help :)
Antiblank
10-16-2006, 02:47 AM
Harald_T any idea about my issue? :)
Greyshark
10-16-2006, 07:53 AM
Just looked at your demo site www.sf-galerie.net
and I see that the gallery sub forums insteadhave custom graphics of the usual icons.
Am I right in thinking that this is done with the Gallery setting at the bottom of the forum settings?
ie> use gallery thumbnails yes/no
which graphic to use? ............
Great Job this Hack...;
please, how could I integrate a custum pic? Please give a german foolish a little help :up:
Which direction (Pfad?) should I write??
cu Christian
Hades-1
10-16-2006, 01:50 PM
not much support here, my questions keep getting ignored, there seem to be some MAJOR issues still with this hack i dont know if it should even be released, maybe as BETA.
Help.......
Hades-1
10-16-2006, 02:36 PM
and here is the default style.
http://upload.x-six.org/files/1/vbigallery.JPG
Some template problems here.
Harald_T
10-16-2006, 04:10 PM
@Hades: I don't have much freetime, as i have a job and a family also. The problem with the permissions. Give guests the permission to download attachments, this should help.
As soon as i get the time for it, i will update the FAQ on the first page.
If you get messages displaying that there missing columns in the SQL-Database try to reinstall the product (and overwrite the old version). Or check out for sure, that you have the rights to run queries.
Antiblank
10-16-2006, 04:17 PM
Tried overwriting the product again, every other product I have installs/upgrades fine. But as soon as I enable the gallery again the boards totally break and all I get is:
Database error in vBulletin 3.6.2:
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 < 1161018334 ORDER BY RAND() LIMIT 5;
MySQL Error : Unknown column 'thread.featured' in 'where clause'
Error Number : 1054
Antiblank
10-16-2006, 04:20 PM
By the way, the 3.5.4 Version of this Hack lists itself on the post as version 1.23. Where here on this thread you list the version as 1.30 for 3.6.2 vBulletin. But when I upgrade with the download here on this thread the product lists itself in the Product manager section as 1.23:
vBI-Gallery 1.23 A gallery-system integrated in the forum
Hades-1
10-16-2006, 04:46 PM
well can u please tell me how to show the image at original size not 3x to large???
Harald_T
10-16-2006, 05:10 PM
Edit "gallery-attachment"-Template
Replace it with:
<a href="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&d=$attachment[dateline]"<if condition="$show['newwindow']"> target="_blank"</if>>
<if condition="$attachment[filename]!=$vboptions[gal_feat_name]">
<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>
</if>
Harald_T
10-16-2006, 05:21 PM
@Antiblank:
Try this one. Replace the code for random_thumbs in the plugin "gallery_images_forumhome" with this one:
if ($vbulletin->options['show_random']) {
$random_thumbs = $db->query_read("SELECT gallery, threadid, firstpostid, ". TABLE_PREFIX . "thread.title,". TABLE_PREFIX . "thread.featured, 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 5");
while ($rand_gallery = $db->fetch_array($random_thumbs))
{
eval('$random_gallery .= "' . fetch_template('gallery_randompictures') . '";');
}
Antiblank
10-16-2006, 06:35 PM
@Antiblank:
Try this one. Replace the code for random_thumbs in the plugin "gallery_images_forumhome" with this one:
...
Nearly perfect thank you for the help. The only issue now is that on my forum home page, I see a header section at the top for Random Images from the gallery, but no images appear there. But the layout is showing correctly in the gallery forum as well as on the members profile pages. So for those you get my mightest thanks. Glad to be able to turn that much back on again.
Antiblank
10-16-2006, 06:49 PM
Now I'm starting to feel bad about posting but maybe this is related to my other issue. I just went to my forum manager and tried to update the settings on my gallery forum. (I also tried updating any of our forums and the error is along the same lines).
Database error in vBulletin 3.6.2:
Invalid SQL:
UPDATE forum SET
title_clean = 'Refridgerator of Joy',
title = 'Refridgerator of Joy',
description_clean = '',
description = '',
link = '',
displayorder = 1,
parentid = 31,
daysprune = -1,
defaultsortfield = 'lastpost',
defaultsortorder = 'desc',
showprivate = 0,
newpostemail = '',
newthreademail = '',
### Bitfield: forum.options ###
options = IF(options & 8, options - 8, options),
options = IF(options & 16, options - 16, options),
options = IF(options & 32, options - 32, options),
options = IF(options & 32768, options - 32768, options),
options = IF(options & 8192, options, options + 8192),
options = IF(options & 4, options, options + 4),
options = IF(options & 1, options, options + 1),
options = IF(options & 2, options, options + 2),
options = IF(options & 16384, options, options + 16384),
options = IF(options & 256, options - 256, options),
options = IF(options & 64, options, options + 64),
options = IF(options & 128, options, options + 128),
options = IF(options & 512, options, options + 512),
options = IF(options & 1024, options, options + 1024),
options = IF(options & 2048, options, options + 2048),
options = IF(options & 4096, options, options + 4096),
options = IF(options & 65536, options, options + 65536),
styleid = 0,
password = '',
gallery = '1',
gallery_cat = '0',
gal_thumbs = 0,
gal_statusicon = ''
WHERE forumid = 32;
MySQL Error : Unknown column 'gallery_cat' in 'field list'
The bit:
MySQL Error : Unknown column 'gallery_cat' in 'field list'
appears for every forum in the error after I try to save any settings.
Harald_T
10-16-2006, 08:41 PM
The altering on the table "forums" is missing for the gallery_cat. Did you check your config-file if you are able to run a query? Normally this shouldn't, but you never know.
Otherwise run the query in your admin-cp.
ALTER TABLE forum ADD gallery_cat TINYINT( 4 ) NOT NULL
Be sure to set the the prefix for the table forum, if you have so. E.g. vb_forum
Antiblank
10-16-2006, 10:51 PM
The altering on the table "forums" is missing for the gallery_cat. Did you check your config-file if you are able to run a query? Normally this shouldn't, but you never know.
Otherwise run the query in your admin-cp.
ALTER TABLE forum ADD gallery_cat TINYINT( 4 ) NOT NULL
Be sure to set the the prefix for the table forum, if you have so. E.g. vb_forum
I added that in as it was missing and tried again, now it seems I'm missing another. This is leading me to believe that perhaps none of the sql queries were made. Yet I have a gallery set up on my site, it was there and seeming to run fine before this upgrade.
New Error:
Database error in vBulletin 3.6.2:
Invalid SQL:
UPDATE forum SET
title_clean = 'Refridgerator of Joy',
title = 'Refridgerator of Joy',
description_clean = '',
description = '',
link = '',
displayorder = 1,
parentid = 31,
daysprune = -1,
defaultsortfield = 'lastpost',
defaultsortorder = 'desc',
showprivate = 0,
newpostemail = '',
newthreademail = '',
### Bitfield: forum.options ###
options = IF(options & 8, options - 8, options),
options = IF(options & 16, options - 16, options),
options = IF(options & 32, options - 32, options),
options = IF(options & 32768, options - 32768, options),
options = IF(options & 8192, options, options + 8192),
options = IF(options & 4, options, options + 4),
options = IF(options & 1, options, options + 1),
options = IF(options & 2, options, options + 2),
options = IF(options & 16384, options, options + 16384),
options = IF(options & 256, options - 256, options),
options = IF(options & 64, options, options + 64),
options = IF(options & 128, options, options + 128),
options = IF(options & 512, options, options + 512),
options = IF(options & 1024, options, options + 1024),
options = IF(options & 2048, options, options + 2048),
options = IF(options & 4096, options, options + 4096),
options = IF(options & 65536, options, options + 65536),
styleid = 0,
password = '',
gallery = '1',
gallery_cat = '0',
gal_thumbs = 1,
gal_statusicon = ''
WHERE forumid = 32;
MySQL Error : Unknown column 'gal_thumbs' in 'field list'
Antiblank
10-16-2006, 11:04 PM
Ok I looked through the XML product file and found the other sql queries.
I manually ran:
ALTER TABLE forum ADD gal_thumbs SMALLINT( 6 ) DEFAULT '0' NOT NULL , ADD gal_statusicon VARCHAR( 100 )
ALTER TABLE thread ADD featured TINYINT( 4 ) NOT NULL
On my database and now I'm able to save setting in the forum manager for all my forums. No idea how those didn't get run when I installed the new version of the product but that seems to have fixed things.
Hemanth
10-17-2006, 06:16 AM
Hi,
How to convert it into Rig Gallery or Automobile gallery.. ie. I should be able to add custom blocks in the showthread page of a post. eg: http://www.techtalkz.com/rig-gallery/3459-yogis-rig.html
I need a hardware block, software block etc. instead of just 'Informationen' page..
Greyshark
10-17-2006, 08:05 AM
Great Job this Hack...;
please, how could I integrate a custum pic? Please give a german foolish a little help :up:
Which direction (Pfad?) should I write??
cu Christian
Hi there Harald,
in which directory must be the pic installed?
What?s the path I should fill in where??
Sorry about my small written englisch.
the german foolish
Christian
Harald_T
10-17-2006, 04:11 PM
@Greyshark: Dann schreib es doch in unserer Sprache hierein... ;) Komme selber vom Niederrhein.
Die Grafiken m?ssen auf jeden Fall in den Images-Ordner. Die Buttons in den Button-Ordner, alle anderen sollten eigentlich in den Statusicon-Ordner geh?ren.
English: The images have to be in the images-folder. The buttons have to be upload to /images/buttons/ and the rest should be in /images/statusicon
Hades-1
10-17-2006, 04:35 PM
thank harold
how bout that CMS block?
that would be great!
complete
10-17-2006, 05:09 PM
I had to make sure the forum was selected as gallery. It's working well now. Thanks.
trueinnovation
10-18-2006, 04:33 PM
It doesnt work for me. :(
All I get is a Gallery link in the navbar but when I click on it all I see is a blank forum thats not accepting new threads.
Any help appreciated :up:
DrewM
10-18-2006, 06:07 PM
It doesnt work for me. :(
All I get is a Gallery link in the navbar but when I click on it all I see is a blank forum thats not accepting new threads.
Any help appreciated :up:
This hack shouldn't effect that try re-instaling.
trueinnovation
10-18-2006, 07:02 PM
Appreciate your help, but I think youve misunderstood me.
My forum is fine. Ive created a new category called Gallery and a forum called Members Gallery, but theres nothing under that. No 'upload' button or anything. I cant see any Gallery functionality. :disappointed:
LILMORA4
10-18-2006, 07:08 PM
Appreciate your help, but I think youve misunderstood me.
My forum is fine. Ive created a new category called Gallery and a forum called Members Gallery, but theres nothing under that. No 'upload' button or anything. I cant see any Gallery functionality. :disappointed:
Did you set the gallery as active?
If not go to forum manager/ Gallery and set;
Act as a gallery? Yes No
Gallery-Category? Yes No
Use Gallery-Thumbnails? Yes No
make sure u uploaded the images...
LILMORA4
10-18-2006, 07:35 PM
how do I make the gallery show on all the skins?
trueinnovation
10-18-2006, 09:31 PM
Did you set the gallery as active?
If not go to forum manager/ Gallery and set;
Act as a gallery? Yes No
Gallery-Category? Yes No
Use Gallery-Thumbnails? Yes No
make sure u uploaded the images...
Yep all those are yes, and the images are uploaded.
Its a mystery.. Installed fine but I dont see anything (except the 'show last pictures' and 'show random pictures' when I switch those on).
If anyone could help, I could PM my site details :(
LILMORA4
10-19-2006, 01:35 AM
Yep all those are yes, and the images are uploaded.
Its a mystery.. Installed fine but I dont see anything (except the 'show last pictures' and 'show random pictures' when I switch those on).
If anyone could help, I could PM my site details :(
Whats the link to ur forum?
Greyshark
10-19-2006, 11:44 AM
@Greyshark: Dann schreib es doch in unserer Sprache hierein... ;) Komme selber vom Niederrhein.
Die Grafiken m?ssen auf jeden Fall in den Images-Ordner. Die Buttons in den Button-Ordner, alle anderen sollten eigentlich in den Statusicon-Ordner geh?ren.
English: The images have to be in the images-folder. The buttons have to be upload to /images/buttons/ and the rest should be in /images/statusicon
Ich bin zu doof Harald - mit der Bitte um konkrete Anleitung!??!
Dieses Bild http://www.zzzong.de/images/dsc01067ay6.jpg m?chte ich einf?gen auf der Startseite anstelle von http://www.zzzong.de/images/statusicon/forum_old.gif
So sieht das bei mir im ADMIN aus:
Hilfe Gallery
Act as a gallery? Ja Nein
Gallery-Category? Ja Nein
Use Gallery-Thumbnails? Ja Nein
Which Graphic to use? http://www.zzzong.de/images/dsc01067ay6.jpg
Alles gemacht - gespeichert und keine ?nderung. Wo muss ich noch was einf?gen? Besten Dank f?r Deine M?he mit mir Harald!!
cu Christian
Harald_T
10-19-2006, 05:20 PM
Ganz einfach: Die Routinen daf?r sind noch nicht eingebaut... ;) Es ist nur vorbereitet f?rs n?chste Update.
Ach ja, Du solltest ?brigens Gallery-Category mal auf Nein stellen. Diese Einstellung wird zuk?nftig nur die Kategorien n?tig sein, nicht f?r die eigentlichen Galerie-Foren.
trueinnovation
10-19-2006, 06:58 PM
PM sent with url..
Can anyone help? I really want to use this gallery :(
kewl1uk
10-20-2006, 04:24 PM
PM sent with url..
Can anyone help? I really want to use this gallery :(
Happened to me since vb 3.5.5 and again on vb 3.6.2:
Make your gallery forum a category (No Posting). Answer No to Act as a gallery?, No to Gallery-Category? and No to Use Gallery-Thumbnails? Make a forum as a child of the Gallery category, answer Yes to Act as a gallery?, No to Gallery-Category? and Yes to Use Gallery-Thumbnails?
Works for me.
trueinnovation
10-20-2006, 04:28 PM
Thanks for your help :)
Still not showing tho'.
The url is www.cmax.co.uk
Any ideas?
kewl1uk
10-20-2006, 04:31 PM
Ok I looked through the XML product file and found the other sql queries.
I manually ran:
ALTER TABLE forum ADD gal_thumbs SMALLINT( 6 ) DEFAULT '0' NOT NULL , ADD gal_statusicon VARCHAR( 100 )
ALTER TABLE thread ADD featured TINYINT( 4 ) NOT NULL
On my database and now I'm able to save setting in the forum manager for all my forums. No idea how those didn't get run when I installed the new version of the product but that seems to have fixed things.
That's exactly what I had to do. It was ok with the old version on vb 3.5.5 but upgrading to this new version for vb 3.6.2 deletes those two tables!
kewl1uk
10-20-2006, 04:40 PM
Thanks for your help :)
Still not showing tho'.
The url is www.cmax.co.uk
Any ideas?
Strange: The URL of your forums index is http://www.puregt.com/Forum/upload/ and the gallery category and gallery forum are not showing on your forums list. Are the gallery category and forum open?
trueinnovation
10-20-2006, 04:41 PM
Yep. Cmax is my test site...... Cant get the gallery working in test, so its not going to the live site - puregt :)
I restore/backup all the time, so cant be bothered to keep updating the navbar :)
does anyone know how to make the thumbs all the same size and fill the space for random pic's ?
thanks
Necrosaro420
10-20-2006, 09:10 PM
Will this allow you to set it up as a seperate section to itself? Meaning, it isnt on the forum home, and I can just have a link going to it?
Also, can/is it seperated by Users? I run a gaming site, and I would be interested in using this so that my users can post images of there collections. Thanks
murekhalir
10-21-2006, 02:07 AM
my gallery is on my site twice, on the above menu:
how do i take away the 'gallerie'
and save 'gallery'
Thanks.
Harald_T
10-21-2006, 09:17 AM
Edit the additions on the template forumhome. You find the words there. Just change it.
trueinnovation
10-21-2006, 10:34 AM
Harold, do you have any ideas why its not working for me? Any help most appreciated :up:
Bojangles
10-21-2006, 03:30 PM
Installed without a problem.
Great mod :)
trueinnovation
10-21-2006, 03:31 PM
Got it working now :rambo:
The gallery categories dont work properly for me but I can live with that...
Good mod, nice n simple :)
Spinball
10-21-2006, 07:33 PM
Installed the product and before I could edit the templates, got an error:
Database error in vBulletin 3.6.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 < 1161462258
GROUP BY thread.threadid
ORDER BY attachment.attachmentid DESC LIMIT;
MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 4
Error Number : 1064
Date : Saturday, October 21st 2006 @ 09:24:18 PM
Script : http://www.avforums.com/forums/showthread.php?t=367110&highlight=promotion+codes
Referrer :
IP Address : 86.111.162.25
Username : bidermaier
Classname : vb_database
This also took my forums down with over 2,000 'too many connections' errors emailed to me.
[edit: approaching 3,000. Can't disable the plugin cos I can't connect to the database.]
trueinnovation
10-21-2006, 07:34 PM
Ooops. I wondered why I couldnt get on avforums! Good site :) sorry your having problems :(
Spinball
10-21-2006, 08:05 PM
Thanks trueinnovation.
Glad my host is around to sort it out at 10:30pm on a saturday night.
Harald_T - just out of interest, I don't want the home page bits. Is there some code I can remove to avoid any pointless processing/queries?
Is it just a case of disabling the elements in the product manager?
Spinball
10-21-2006, 08:30 PM
Ok your hack has completely crippled my box. We can't run MySQL as the forums crash it immediately.
I have been told I have to manually remove your hack using FTP and SSH.
How do I do this, please?
This is incredibly urgent!
trueinnovation
10-21-2006, 08:36 PM
Ive struggled with this script all weekend (difficult to understand/configure rather than any code problems) and think I know it pretty well now.
Looking at the XML and my DB, it only makes some very minor database updates (adding some extra columns/flags to the main forum table). Hence, I dont really see how this hack could down your mysql.
What error are you getting when you start mysql?
Spinball, PM me if I can help at all.
Harald_T
10-21-2006, 08:49 PM
@Spinball:
Could you pm me or contact me via ICQ 152-958-057 or yahoo-messenger (zheobitt2001@yahoo.de)?
trueinnovation
10-21-2006, 08:51 PM
Harald youre a top bloke :)
Good luck chaps......
Harald_T
10-21-2006, 08:56 PM
I'm a what? (this is too much english for me... ;) )
trueinnovation
10-21-2006, 09:02 PM
You are :up:
or "Guter Mann" ? (I hope google translator hasnt just insulted you!)
:)
Harald_T
10-21-2006, 09:04 PM
Oh, that you mean... Thanks! :)
Spinball
10-21-2006, 09:32 PM
Server recovered after a panic. Thanks Harald. Unfortunately, I've had to uninstall for now :(.
Perhaps it was a conflict with one of the many hacks I already have installed.
Harald_T
10-22-2006, 09:40 AM
Just a little update for you all to know:
I detected, that the featured header-function is missing (ups...). So expect a new version with this feature AND integration of VBA_CMPS random-picture-block. See for example:
www.sf-galerie.net
Jelmertjee
10-22-2006, 10:07 PM
thanks for this great gallery harald, i have a question about it though, it was already asked on page 1 of this thread but you haven't answered or didn't see the questions.
Also, I wanted to know if there was anyway to show the gallery on forumhome but not make a forum a gallery? Instead I want it to take all attachments from a certain forum and display the gallery on the forumhome.
anyway, i would like to use the gallery on forumhome, to show the attachments, but i would like to keep the display of my forum the same, instead of the gallery system, how do i do this, or what code should i adjust to achieve it?
freecodevn
10-23-2006, 10:00 AM
I hacked this mod already, and try to follow all the guides correctly but I cannot see upload picture when I try to post new gallery. It display like I trying to post the normal topic, I try to view the album it's display the album's information as display here
http://www.lhstrungquoc.com/forums/forumdisplay.php?f=165
How can I see the upload picture?
Anyone Please Advise!
Thank you in advance
I hacked this mod already, and try to follow all the guides correctly but I cannot see upload picture when I try to post new gallery. It display like I trying to post the normal topic, I try to view the album it's display the album's information as display here
http://www.lhstrungquoc.com/forums/forumdisplay.php?f=165
How can I see the upload picture?
Anyone Please Advise!
Thank you in advance
do yyou have a test account to use ?
freecodevn
10-23-2006, 07:59 PM
do yyou have a test account to use ?
you can use this account to test
username: thay_le_quoc_ho
pass: 654321
regards
you can use this account to test
username: thay_le_quoc_ho
pass: 654321
regards
not sure.... wouldnt let me upload and looks like yyou didnt attach a picture to your post...
freecodevn
10-24-2006, 12:24 AM
not sure.... wouldnt let me upload and looks like yyou didnt attach a picture to your post...
I've checked again I can upload pictures and docs in our forum, but It can not display in the gallery as you see here in the link after. There would be some picture display instead of these words Click on the picture, to show it in original-size
http://www.lhstrungquoc.com/forums/showthread.php?t=1607
This error caused by our attachmetn-system or by the gallery template files its self, I'm so confused.
Who can help me?
Many thanks
Harald_T
10-24-2006, 08:07 PM
@freecodevn: Please contact me via PM.
rknight111
10-26-2006, 05:18 AM
Great Mod,, I have a couple of questions,
1. Once I posted I could not go back and edit how to fix?
2. And there was some text that is not english.
3. Its difficult to get back to main forum
4. Also How could I get the new pics to show up further on my site, by the photo gallery...
5 Can I make it so you cant click on a picture on the main page, when you click it opens up under the same window and I would prefer if it opened in a different window
6. Can a person only post 5 pics max per post or can you change that.
7. I tried to adjust to 150mb for JPG but it doesnt seem to work, How??
8. Is it possible for the administrator only to load a mpeg or video??
My website is www.snowandmud.com please check to see that I did it correctly.. Thanks, for the good work, sorry to have so many questions. Im new to this..
brvheart
10-26-2006, 04:53 PM
the back ground on the forumhome is black on my one style...all the others it looks as it should...can you have a look and let me know what I did wrong or how to fix it please?
Click here to see it (http://www.mmaworld.org/index.php?styleid=3)
Spinball
10-26-2006, 10:18 PM
Just a little update for you all to know:
I detected, that the featured header-function is missing (ups...). So expect a new version with this feature AND integration of VBA_CMPS random-picture-block. See for example:
www.sf-galerie.net
Do you think this would fix the problem I had?
rknight111
10-26-2006, 11:48 PM
I also noticed that some new users that go on the board, the pics dont show up just an X, how could I make it so the pics will always show up on the gallery header. If not I would like to turven it off for non registered users and once they register the gallery and header all show up??
What should be the setting for jpg, I set it a few times but it goes back to 97kb
freecodevn
11-01-2006, 01:41 AM
I've tried to hack this module and I found out the reason why I 'm not successed as follows:
a, In a successful case:
This forum was hacked successfully, the album display correctly so if you get the direct link of the picture like this
http://mottamlong.com/forum/attachment.php?attachmentid=10&stc=1&thumb=1&d=1162350851 and you paste this link to new IE explore the image display correctly.
b, unsuccessful case:
But the image cannot display if I extract the image link forum my forum like this http://www.lhstrungquoc.com/forums/attachment.php?attachmentid=53&stc=1&thumb=1 and paste it into the new IE explorer.
I suppose that this error caused by my forum attachment system, but I dont know how to solve it.
Any one can help me?
Many thank!
After the mod was installed we noticed that the forum became horribly slow so I changed the 'gallery_images_forumhome' bit to the following:
// #################### Latest Gallery-Additions #######################
// fetch the permissions for each forum
// global $vbulletin;
if (isset($forumid) == false)
{
$gal_num_rows = $vbulletin->options['gal_num_rows'];
if ($vbulletin->options['show_latest']==1)
{
// fetch latest pics
$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 random pics
if ($vbulletin->options['show_random']==1)
{
$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') . '";');
}
}
}
the added bits are 'if (isset($forumid) == false)' so the thumbs aren't attempted to load on other pages than forumhome. (got a big speed-increase on the forums after doing this)
also added 'if ($vbulletin->options['show_random']==1)' and 'if ($vbulletin->options['show_latest']==1)' bits to get rid of redundant sqlqueries.
Hope this is of any use to people :)
Necrosaro420
11-04-2006, 08:25 PM
Can this be set up so each user has their each individual section to upload their own pictures?
Harald_T
11-05-2006, 10:17 AM
After the mod was installed we noticed that the forum became horribly slow so I changed the 'gallery_images_forumhome' bit to the following:
// #################### Latest Gallery-Additions #######################
// fetch the permissions for each forum
// global $vbulletin;
if (isset($forumid) == false)
{
$gal_num_rows = $vbulletin->options['gal_num_rows'];
if ($vbulletin->options['show_latest']==1)
{
// fetch latest pics
$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 random pics
if ($vbulletin->options['show_random']==1)
{
$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') . '";');
}
}
}
the added bits are 'if (isset($forumid) == false)' so the thumbs aren't attempted to load on other pages than forumhome. (got a big speed-increase on the forums after doing this)
also added 'if ($vbulletin->options['show_random']==1)' and 'if ($vbulletin->options['show_latest']==1)' bits to get rid of redundant sqlqueries.
Hope this is of any use to people :)
Thanks. You're right, i forgot to add the options for random and latest thumbs. And thanks for the hint regarding the forumid.
Harald_T
11-05-2006, 10:23 AM
Can this be set up so each user has their each individual section to upload their own pictures?
You could create a forum for each of your users. Depends of course, how many users should have such a section and how many users are on your board.
I was working on a routine, which creates a little gallery in your member-profile. Yet it didn't worked right. I have to rethink the routines...
VBUsers
11-06-2006, 02:41 AM
i have a problem , i want my site to look like this attachment but i get this instead
http://www.talkgfx.com/forumdisplay.php?f=20
VBUsers
11-06-2006, 02:49 AM
edit: i also seem to have a little german in the template
http://www.talkgfx.com/showthread.php?t=24
Nur f?r Mitglieder! = Only for members!
also no forums show for me here
http://www.talkgfx.com/forumdisplay.php?f=19
Harald_T
11-06-2006, 03:50 PM
i have a problem , i want my site to look like this attachment but i get this instead
http://www.talkgfx.com/forumdisplay.php?f=20
In the gallery-options you have one option where you can define the alternative-layout.
VBUsers
11-06-2006, 05:56 PM
In the gallery-options you have one option where you can define the alternative-layout.
but the width isnt right. its not long enough.
see here
http://www.talkgfx.com/forumdisplay.php?f=20
Harald_T
11-06-2006, 06:54 PM
Try this one:
In the template "gallery_threadbit" find:
<if condition="$bbuserinfo['field5'] != 'Ja'">
$ids[forumids]
<if condition="$rows">
<if condition="$rows == 1">
</tr><tr>
</if>
<td class="alt1" width="25%" align="center" valign="middle">
<table cellpadding="0" cellspacing="0" border="0" bgcolor="#000000">
and replace 25% with 100%.
Otherwise, the size depends on the amount of text, that is written.
VBUsers
11-07-2006, 02:51 AM
Try this one:
In the template "gallery_threadbit" find:
<if condition="$bbuserinfo['field5'] != 'Ja'">
$ids[forumids]
<if condition="$rows">
<if condition="$rows == 1">
</tr><tr>
</if>
<td class="alt1" width="25%" align="center" valign="middle">
<table cellpadding="0" cellspacing="0" border="0" bgcolor="#000000">
and replace 25% with 100%.
Otherwise, the size depends on the amount of text, that is written.
that didnt do anything. and i type alot of text and it just creates a new line.
also in the navbar when i click on the gallery link nothing shows up. why is that?
DrewM
11-07-2006, 09:13 AM
that didnt do anything. and i type alot of text and it just creates a new line.
also in the navbar when i click on the gallery link nothing shows up. why is that?
the gallery catagoreys do not work
Axl-Rose
11-07-2006, 06:59 PM
somebody can help me please? i've followed the instructions exactly but if i click on the gallery link this error comes up:
################################################## ## || || # vBulletin 3.6.2 || # ---------------------------------------------------------------- # || || # Copyright ?2000-2006 Jelsoft Enterprises Ltd. All Rights Reserved. || || # This file may not be redistributed in whole or significant part. # || || # ---------------- VBULLETIN IS NOT FREE SOFTWARE ---------------- # || || # http://www.vbulletin.com | http://www.vbulletin.com/license.html # || || ################################################## ################## || \*================================================ ======================*/ // ####################### SET PHP ENVIRONMENT ########################### error_reporting(E_ALL & ~E_NOTICE); // #################### DEFINE IMPORTANT CONSTANTS ####################### define('THIS_SCRIPT', 'forumdisplay'); // ################### PRE-CACHE TEMPLATES AND DATA ###################### // get special phrase groups $phrasegroups = array('forumdisplay', 'inlinemod'); // get special data templates from the datastore $specialtemplates = array( 'iconcache', 'mailqueue' ); // pre-cache templates used by all actions $globaltemplates = array(); // pre-cache templates used by specific actions $actiontemplates = array( 'none' => array( 'FORUMDISPLAY', 'threadbit', 'threadbit_deleted', 'threadbit_announcement', 'forumhome_lastpostby', 'forumhome_forumbit_level1_post', 'forumhome_forumbit_level2_post', 'forumhome_forumbit_level1_nopost', 'forumhome_forumbit_level2_nopost', 'forumhome_subforumbit_nopost', 'forumhome_subforumseparator_nopost', 'forumdisplay_loggedinuser', 'forumhome_moderator', 'forumdisplay_moderator', 'forumdisplay_sortarrow', 'forumhome_subforumbit_post', 'forumhome_subforumseparator_post', 'forumhome_markread_script', 'forumrules', 'threadadmin_imod_menu_thread', ) ); // ####################### PRE-BACK-END ACTIONS ########################## function exec_postvar_call_back() { global $vbulletin; $vbulletin->input->clean_array_gpc('r', array( 'forumid' => TYPE_STR, )); // jump from forumjump switch ($vbulletin->GPC['forumid']) { case 'search': $goto = 'search'; break; case 'pm': $goto = 'private'; break; case 'wol': $goto = 'online'; break; case 'cp': $goto = 'usercp'; break; case 'subs': $goto = 'subscription'; break; case 'home': case '-1': $goto = $vbulletin->options['forumhome']; break; } // intval() forumid since having text in it is not expected anywhere else and it can't be "cleaned" a second time $vbulletin->GPC['forumid'] = intval($vbulletin->GPC['forumid']); if ($goto != '') { if (!empty($vbulletin->session->vars['sessionurl_js'])) { exec_header_redirect("$goto.php?" . $vbulletin->session->vars['sessionurl_js']); } else { exec_header_redirect("$goto.php"); } } // end forumjump redirects } // ######################### REQUIRE BACK-END ############################ require_once('./global.php'); require_once(DIR . '/includes/functions_forumlist.php'); require_once(DIR . '/includes/functions_bigthree.php'); require_once(DIR . '/includes/functions_forumdisplay.php'); // ################################################## ##################### // ######################## START MAIN SCRIPT ############################ // ################################################## ##################### ($hook = vBulletinHook::fetch_hook('forumdisplay_start')) ? eval($hook) : false; // ############################### start mark forums read ############################### if ($_REQUEST['do'] == 'markread') { require_once(DIR . '/includes/functions_misc.php'); $mark_read_result = mark_forums_read($foruminfo['forumid']); $vbulletin->url = $mark_read_result['url']; eval(print_standard_redirect($mark_read_result['phrase'])); } // Don't allow access to anything below if an invalid $forumid was specified if (!$foruminfo['forumid']) { eval(standard_error(fetch_error('invalidid', $vbphrase['forum'], $vbulletin->options['contactuslink']))); } // ############################### start enter password ############################### if ($_REQUEST['do'] == 'doenterpwd') { $vbulletin->input->clean_array_gpc('r', array( 'newforumpwd' => TYPE_STR, 'url' => TYPE_STR, 'postvars' => TYPE_STR, )); if ($foruminfo['password'] == $vbulletin->GPC['newforumpwd']) { // set a temp cookie for guests if (!$vbulletin->userinfo['userid']) { set_bbarray_cookie('forumpwd', $foruminfo['forumid'], md5($vbulletin->userinfo['userid'] . $vbulletin->GPC['newforumpwd'])); } else { set_bbarray_cookie('forumpwd', $foruminfo['forumid'], md5($vbulletin->userinfo['userid'] . $vbulletin->GPC['newforumpwd']), 1); } if ($vbulletin->GPC['url'] == $vbulletin->options['forumhome'] . '.php') { $vbulletin->GPC['url'] = 'forumdisplay.php?' . $vbulletin->session->vars['sessionurl'] . "f=$foruminfo[forumid]"; } else if ($vbulletin->GPC['url'] != '' AND $vbulletin->GPC['url'] != 'forumdisplay.php') { $vbulletin->GPC['url'] = str_replace('"', '', $vbulletin->GPC['url']); } else { $vbulletin->GPC['url'] = 'forumdisplay.php?' . $vbulletin->session->vars['sessionurl'] . "f=$foruminfo[forumid]"; } // Allow POST based redirection... if ($vbulletin->GPC['postvars'] != '') { $temp = unserialize($vbulletin->GPC['postvars']); if ($temp['do'] != 'doenterpwd') { // ...but prevent an infinite loop require_once(DIR . '/includes/functions_misc.php'); $vbulletin->GPC['postvars'] = construct_hidden_var_fields($vbulletin->GPC['postvars']); } else { $vbulletin->GPC['postvars'] = ''; } } // workaround IIS cookie+location header bug $forceredirect = (strpos($_SERVER['SERVER_SOFTWARE'], 'Microsoft-IIS') !== false); eval(print_standard_redirect('forumpasswordcorrect ', true, $forceredirect)); } else { require_once(DIR . '/includes/functions_misc.php'); $vbulletin->GPC['url'] = str_replace('&', '&', $vbulletin->GPC['url']); $postvars = construct_post_vars_html(); eval(standard_error(fetch_error('forumpasswordinco rrect', $vbulletin->session->vars['sessionhash'], htmlspecialchars_uni($vbulletin->GPC['url']), $foruminfo['forumid'], $postvars, $stylevar['cellpadding'], $stylevar['cellspacing'] ))); } } // ###### END SPECIAL PATHS // These $_REQUEST values will get used in the sort template so they are assigned to normal variables $perpage = $vbulletin->input->clean_gpc('r', 'perpage', TYPE_UINT); $pagenumber = $vbulletin->input->clean_gpc('r', 'pagenumber', TYPE_UINT); $daysprune = $vbulletin->input->clean_gpc('r', 'daysprune', TYPE_INT); $sortfield = $vbulletin->input->clean_gpc('r', 'sortfield', TYPE_STR); // get permission to view forum $_permsgetter_ = 'forumdisplay'; $forumperms = fetch_permissions($foruminfo['forumid']); if (!($forumperms & $vbulletin->bf_ugp_forumpermissions['canview'])) { print_no_permission(); } // disable thread preview if we can't view threads if (!($forumperms & $vbulletin->bf_ugp_forumpermissions['canviewthreads'])) { $vbulletin->options['threadpreview'] = 0; } // check if there is a forum password and if so, ensure the user has it set verify_forum_password($foruminfo['forumid'], $foruminfo['password']); $show['newthreadlink'] = iif(!$show['search_engine'] AND $foruminfo['allowposting'], true, false); $show['threadicons'] = iif ($foruminfo['allowicons'], true, false); $show['threadratings'] = iif ($foruminfo['allowratings'], true, false); // get vbulletin->iforumcache - for use by makeforumjump and forums list // fetch the forum even if they are invisible since its needed // for the title but we'll unset that further down cache_ordered_forums(1, 1); if (!$daysprune) { if ($vbulletin->userinfo['daysprune']) { $daysprune = $vbulletin->userinfo['daysprune']; } else { $daysprune = iif($foruminfo['daysprune'], $foruminfo['daysprune'], 30); } } // ### GET FORUMS, PERMISSIONS, MODERATOR iCACHES ######################## cache_moderators(); // draw nav bar $navbits = array(); $parentlist = array_reverse(explode(',', substr($foruminfo['parentlist'], 0, -3))); foreach ($parentlist AS $forumID) { $forumTitle = $vbulletin->forumcache["$forumID"]['title']; $navbits['forumdisplay.php?' . $vbulletin->session->vars['sessionurl'] . "f=$forumID"] = $forumTitle; } // pop the last element off the end of the $nav array so that we can show it without a link array_pop($navbits); $navbits[''] = $foruminfo['title']; $navbits = construct_navbits($navbits); eval('$navbar = "' . fetch_template('navbar') . '";'); $moderatorslist = ''; $listexploded = explode(',', $foruminfo['parentlist']); $showmods = array(); $show['moderators'] = false; $totalmods = 0; foreach ($listexploded AS $parentforumid) { if (!$imodcache["$parentforumid"] OR $parentforumid == -1) { continue; } foreach ($imodcache["$parentforumid"] AS $moderator) { if ($showmods["$moderator[userid]"] === true) { continue; } ($hook = vBulletinHook::fetch_hook('forumdisplay_moderator' )) ? eval($hook) : false; $showmods["$moderator[userid]"] = true; if ($moderatorslist == '') { $show['moderators'] = true; eval('$moderatorslist = "' . fetch_template('forumdisplay_moderator') . '";'); } else { eval('$moderatorslist .= ", ' . fetch_template('forumdisplay_moderator') . '";'); } $totalmods++; } } // ### BUILD FORUMS LIST ################################################# // get an array of child forum ids for this forum $foruminfo['childlist'] = explode(',', $foruminfo['childlist']); $comma = ''; // define max depth for forums display based on $vbulletin->options[forumhomedepth] define('MAXFORUMDEPTH', $vbulletin->options['forumdisplaydepth']); if (($vbulletin->options['showforumusers'] == 1 OR $vbulletin->options['showforumusers'] == 2 OR ($vbulletin->options['showforumusers'] > 2 AND $vbulletin->userinfo['userid'])) AND !$show['search_engine']) { $datecut = TIMENOW - $vbulletin->options['cookietimeout']; $forumusers = $db->query_read_slave(" SELECT user.username, (user.options & " . $vbulletin->bf_misc_useroptions['invisible'] . ") AS invisible, user.usergroupid, session.userid, session.inforum, session.lastactivity, IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid, infractiongroupid FROM " . TABLE_PREFIX . "session AS session LEFT JOIN " . TABLE_PREFIX . "user AS user ON(user.userid = session.userid) WHERE session.lastactivity > $datecut ORDER BY" . iif($vbulletin->options['showforumusers'] == 1 OR $vbulletin->options['showforumusers'] == 3, " username ASC,") . " lastactivity DESC "); $numberregistered = 0; $numberguest = 0; $doneuser = array(); if ($vbulletin->userinfo['userid']) { // fakes the user being in this forum $loggedin = array( 'userid' => $vbulletin->userinfo['userid'], 'username' => $vbulletin->userinfo['username'], 'invisible' => $vbulletin->userinfo['invisible'], 'invisiblemark' => $vbulletin->userinfo['invisiblemark'], 'inforum' => $foruminfo['forumid'], 'lastactivity' => TIMENOW, 'musername' => $vbulletin->userinfo['musername'], ); $numberregistered = 1; fetch_online_status($loggedin); ($hook = vBulletinHook::fetch_hook('forumdisplay_loggedinus er')) ? eval($hook) : false; eval('$activeusers = "' . fetch_template('forumdisplay_loggedinuser') . '";'); $doneuser["{$vbulletin->userinfo['userid']}"] = 1; $comma = ', '; } $inforum = array(); // this require the query to have lastactivity ordered by DESC so that the latest location will be the first encountered. while ($loggedin = $db->fetch_array($forumusers)) { if (empty($doneuser["$loggedin[userid]"])) { if (in_array($loggedin['inforum'], $foruminfo['childlist']) AND $loggedin['inforum'] != -1) { if (!$loggedin['userid']) { // this is a guest $numberguest++; $inforum["$loggedin[inforum]"]++; } else { $numberregistered++; $inforum["$loggedin[inforum]"]++; ($hook = vBulletinHook::fetch_hook('forumdisplay_loggedinus er')) ? eval($hook) : false; if (fetch_online_status($loggedin)) { fetch_musername($loggedin); eval('$activeusers .= "' . $comma . fetch_template('forumdisplay_loggedinuser') . '";'); $comma = ', '; } } } if ($loggedin['userid']) { $doneuser["$loggedin[userid]"] = 1; } } } if (!$vbulletin->userinfo['userid']) { $numberguest = ($numberguest == 0) ? 1 : $numberguest; } $totalonline = $numberregistered + $numberguest; unset($joingroupid, $key, $datecut , $comma, $invisibleuser, $userinfo, $userid, $loggedin, $index, $value, $forumusers, $parentarray ); $show['activeusers'] = true; } else { $show['activeusers'] = false; } // ################################################## ########################### // get read status for this forum and children $unreadchildforums = 0; foreach ($foruminfo['childlist'] AS $val) { if ($val == -1 OR $val == $foruminfo['forumid']) { continue; } if ($vbulletin->options['threadmarking'] AND $vbulletin->userinfo['userid']) { $lastread_child = max($vbulletin->forumcache["$val"]['forumread'], TIMENOW - ($vbulletin->options['markinglimit'] * 86400)); } else { $lastread_child = max(intval(fetch_bbarray_cookie('forum_view', $val)), $vbulletin->userinfo['lastvisit']); } if ($vbulletin->forumcache["$val"]['lastpost'] >= $lastread_child) { $unreadchildforums = 1; break; } } $forumbits = construct_forum_bit($foruminfo['forumid']); // admin tools $show['adminoptions'] = can_moderate($foruminfo['forumid']); $show['post_new_announcement'] = can_moderate($foruminfo['forumid'], 'canannounce'); $show['addmoderator'] = ($permissions['adminpermissions'] & $vbulletin->bf_ugp_adminpermissions['cancontrolpanel']); $curforumid = $foruminfo['forumid']; construct_forum_jump(); ///////////////////////////////// if ($foruminfo['cancontainthreads']) { ///////////////////////////////// if ($vbulletin->options['threadmarking'] AND $vbulletin->userinfo['userid']) { $foruminfo['forumread'] = $vbulletin->forumcache["$foruminfo[forumid]"]['forumread']; $lastread = max($foruminfo['forumread'], TIMENOW - ($vbulletin->options['markinglimit'] * 86400)); } else { $bbforumview = intval(fetch_bbarray_cookie('forum_view', $foruminfo['forumid'])); $lastread = max($bbforumview, $vbulletin->userinfo['lastvisit']); } // Inline Moderation $show['movethread'] = (can_moderate($forumid, 'canmanagethreads')) ? true : false; $show['deletethread'] = (can_moderate($forumid, 'candeleteposts') OR can_moderate($forumid, 'canremoveposts')) ? true : false; $show['approvethread'] = (can_moderate($forumid, 'canmoderateposts')) ? true : false; $show['openthread'] = (can_moderate($forumid, 'canopenclose')) ? true : false; $show['inlinemod'] = ($show['movethread'] OR $show['deletethread'] OR $show['approvethread'] OR $show['openthread']) ? true : false; $url = $show['inlinemod'] ? SCRIPTPATH : ''; // fetch popup menu if ($show['popups'] AND $show['inlinemod']) { eval('$threadadmin_imod_menu_thread = "' . fetch_template('threadadmin_imod_menu_thread') . '";'); } else { $threadadmin_imod_thread_menu = ''; } // get announcements $announcebits = ''; if ($show['threadicons'] AND $show['inlinemod']) { $announcecolspan = 6; } else if (!$show['threadicons'] AND !$show['inlinemod']) { $announcecolspan = 4; } else { $announcecolspan = 5; } $mindate = TIMENOW - 2592000; // 30 days $announcements = $db->query_read_slave(" SELECT announcement.announcementid, startdate, title, announcement.views, user.username, user.userid, user.usertitle, user.customtitle, user.usergroupid, IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid, infractiongroupid " . (($vbulletin->userinfo['userid']) ? ", NOT ISNULL(announcementread.announcementid) AS readannounce" : "") . " FROM " . TABLE_PREFIX . "announcement AS announcement " . (($vbulletin->userinfo['userid']) ? "LEFT JOIN " . TABLE_PREFIX . "announcementread AS announcementread ON (announcementread.announcementid = announcement.announcementid AND announcementread.userid = " . $vbulletin->userinfo['userid'] . ")" : "") . " LEFT JOIN " . TABLE_PREFIX . "user AS user ON(user.userid = announcement.userid) WHERE startdate <= " . TIMENOW . " AND enddate >= " . TIMENOW . " AND " . fetch_forum_clause_sql($foruminfo['forumid'], 'forumid') . " ORDER BY startdate DESC, announcement.announcementid DESC " . iif($vbulletin->options['oneannounce'], "LIMIT 1")); while ($announcement = $db->fetch_array($announcements)) { fetch_musername($announcement); $announcement['postdate'] = vbdate($vbulletin->options['dateformat'], $announcement['startdate']); if ($announcement['readannounce'] OR $announcement['startdate'] <= $mindate) { $announcement['statusicon'] = 'old'; } else { $announcement['statusicon'] = 'new'; } $announcement['views'] = vb_number_format($announcement['views']); $announcementidlink = iif(!$vbulletin->options['oneannounce'] , "&a=$announcement[announcementid]"); ($hook = vBulletinHook::fetch_hook('forumdisplay_announceme nt')) ? eval($hook) : false; eval('$announcebits .= "' . fetch_template('threadbit_announcement') . '";'); } // display threads if (!($forumperms & $vbulletin->bf_ugp_forumpermissions['canviewothers'])) { $limitothers = "AND postuserid = " . $vbulletin->userinfo['userid'] . " AND " . $vbulletin->userinfo['userid'] . " <> 0"; } else { $limitothers = ''; } if (can_moderate($foruminfo['forumid'])) { $redirectjoin = "LEFT JOIN " . TABLE_PREFIX . "threadredirect AS threadredirect ON(thread.open = 10 AND thread.threadid = threadredirect.threadid)"; } else { $redirectjoin = ''; } // filter out deletion notices if can't be seen if ($forumperms & $vbulletin->bf_ugp_forumpermissions['canseedelnotice'] OR can_moderate($foruminfo['forumid'])) { $canseedelnotice = true; $deljoin = "LEFT JOIN " . TABLE_PREFIX . "deletionlog AS deletionlog ON(thread.threadid = deletionlog.primaryid AND deletionlog.type = 'thread')"; } else { $canseedelnotice = false; $deljoin = ''; } // remove threads from users on the global ignore list if user is not a moderator if ($Coventry = fetch_coventry('string') AND !can_moderate($foruminfo['forumid'])) { $globalignore = "AND postuserid NOT IN ($Coventry) "; } else { $globalignore = ''; } // look at thread limiting options $stickyids = ''; $stickycount = 0; if ($daysprune != -1) { if ($vbulletin->userinfo['userid'] AND in_coventry($vbulletin->userinfo['userid'], true)) { $tachyjoin = "LEFT JOIN " . TABLE_PREFIX . "tachythreadpost AS tachythreadpost ON " . "(tachythreadpost.threadid = thread.threadid AND tachythreadpost.userid = " . $vbulletin->userinfo['userid'] . ")"; $datecut = " AND (thread.lastpost >= " . (TIMENOW - ($daysprune * 86400)) . " OR tachythreadpost.lastpost >= " . (TIMENOW - ($daysprune * 86400)) . ")"; } else { $datecut = "AND lastpost >= " . (TIMENOW - ($daysprune * 86400)); $tachyjoin = ""; } $show['noposts'] = false; } else { $tachyjoin = ""; $datecut = ""; $show['noposts'] = true; } // complete form fields on page $daysprunesel = iif($daysprune == -1, 'all', $daysprune); $daysprunesel = array($daysprunesel => 'selected="selected"'); $vbulletin->input->clean_array_gpc('r', array( 'sortorder' => TYPE_NOHTML, )); // default sorting methods if (empty($sortfield)) { $sortfield = $foruminfo['defaultsortfield']; } if (empty($vbulletin->GPC['sortorder'])) { $vbulletin->GPC['sortorder'] = $foruminfo['defaultsortorder']; } // look at sorting options: if ($vbulletin->GPC['sortorder'] != 'asc') { $sqlsortorder = 'DESC'; $order = array('desc' => 'selected="selected"'); $vbulletin->GPC['sortorder'] = 'desc'; } else { $sqlsortorder = ''; $order = array('asc' => 'selected="selected"'); } switch ($sortfield) { case 'title': $sqlsortfield = 'thread.title'; break; case 'lastpost': $sqlsortfield = 'lastpost'; break; case 'replycount': case 'views': case 'postusername': $sqlsortfield = $sortfield; break; case 'voteavg': if ($foruminfo['allowratings']) { $sqlsortfield = 'voteavg'; break; } case 'dateline': $sqlsortfield = 'thread.dateline'; break; // else, use last post default: $handled = false; ($hook = vBulletinHook::fetch_hook('forumdisplay_sort')) ? eval($hook) : false; if (!$handled) { $sqlsortfield = 'lastpost'; $sortfield = 'lastpost'; } } $sort = array($sortfield => 'selected="selected"'); if (!can_moderate($forumid, 'canmoderateposts')) { if (!($forumperms & $vbulletin->bf_ugp_forumpermissions['canseedelnotice'])) { $visiblethreads = " AND visible = 1 "; } else { $visiblethreads = " AND visible IN (1,2)"; } } else { $visiblethreads = " AND visible IN (0,1,2)"; } $hook_query_fields = $hook_query_joins = $hook_query_where = ''; ($hook = vBulletinHook::fetch_hook('forumdisplay_query_thre adscount')) ? eval($hook) : false; # Include visible IN (0,1,2) in order to hit upon the 4 column index $threadscount = $db->query_first_slave(" SELECT COUNT(*) AS threads, SUM(IF(thread.lastpost >= $lastread AND open <> 10, 1, 0)) AS newthread $hook_query_fields FROM " . TABLE_PREFIX . "thread AS thread $tachyjoin $hook_query_joins WHERE forumid = $foruminfo[forumid] AND sticky = 0 $visiblethreads $globalignore $limitothers $datecut $hook_query_where "); $totalthreads = $threadscount['threads']; $newthreads = $threadscount['newthread']; // set defaults sanitize_pageresults($totalthreads, $pagenumber, $perpage, 200, $vbulletin->options['maxthreads']); // get number of sticky threads for the first page // on the first page there will be the sticky threads PLUS the $perpage other normal threads // not quite a bug, but a deliberate feature! if ($pagenumber == 1 OR $vbulletin->options['showstickies']) { $stickies = $db->query_read_slave(" SELECT thread.threadid, lastpost, open FROM " . TABLE_PREFIX . "thread AS thread WHERE forumid = $foruminfo[forumid] AND sticky = 1 $visiblethreads $limitothers $globalignore "); while ($thissticky = $db->fetch_array($stickies)) { $stickycount++; if ($thissticky['lastpost'] >= $lastread AND $thissticky['open'] <> 10) { $newthreads++; } $stickyids .= ",$thissticky[threadid]"; } $db->free_result($stickies); unset($thissticky, $stickies); } $limitlower = ($pagenumber - 1) * $perpage; $limitupper = ($pagenumber) * $perpage; if ($limitupper > $totalthreads) { $limitupper = $totalthreads; if ($limitlower > $totalthreads) { $limitlower = ($totalthreads - $perpage) - 1; } } if ($limitlower < 0) { $limitlower = 0; } if ($foruminfo['allowratings']) { $vbulletin->options['showvotes'] = intval($vbulletin->options['showvotes']); $votequery = " IF(votenum >= " . $vbulletin->options['showvotes'] . ", votenum, 0) AS votenum, IF(votenum >= " . $vbulletin->options['showvotes'] . " AND votenum > 0, votetotal / votenum, 0) AS voteavg, "; } else { $votequery = ''; } if ($vbulletin->options['threadpreview'] > 0) { $previewfield = "post.pagetext AS preview,"; $previewjoin = "LEFT JOIN " . TABLE_PREFIX . "post AS post ON(post.postid = thread.firstpostid)"; } else { $previewfield = ''; $previewjoin = ''; } if ($vbulletin->userinfo['userid'] AND in_coventry($vbulletin->userinfo['userid'], true)) { $lastpost_info1 = ",IF(tachythreadpost.userid IS NULL, thread.lastpost, tachythreadpost.lastpost) AS lastpost"; $lastpost_info2 = "IF(tachythreadpost.userid IS NULL, thread.lastpost, tachythreadpost.lastpost) AS lastpost, " . "IF(tachythreadpost.userid IS NULL, thread.lastposter, tachythreadpost.lastposter) AS lastposter, " . "IF(tachythreadpost.userid IS NULL, thread.lastpostid, tachythreadpost.lastpostid) AS lastpostid"; $tachyjoin = "LEFT JOIN " . TABLE_PREFIX . "tachythreadpost AS tachythreadpost ON " . "(tachythreadpost.threadid = thread.threadid AND tachythreadpost.userid = " . $vbulletin->userinfo['userid'] . ')'; } else { $lastpost_info1 = ""; $lastpost_info2 = "thread.lastpost, thread.lastposter, thread.lastpostid"; $tachyjoin = ""; } $hook_query_fields = $hook_query_joins = $hook_query_where = ''; ($hook = vBulletinHook::fetch_hook('forumdisplay_query_thre adid')) ? eval($hook) : false; $getthreadids = $db->query_read_slave(" SELECT " . iif($sortfield == 'voteavg', $votequery) . " thread.threadid $lastpost_info1 $hook_query_fields FROM " . TABLE_PREFIX . "thread AS thread $tachyjoin $hook_query_joins WHERE forumid = $foruminfo[forumid] AND sticky = 0 $visiblethreads $globalignore $limitothers $datecut $hook_query_where ORDER BY sticky DESC, $sqlsortfield $sqlsortorder LIMIT $limitlower, $perpage "); $ids = ''; while ($thread = $db->fetch_array($getthreadids)) { $ids .= ',' . $thread['threadid']; } $ids .= $stickyids; $db->free_result($getthreadids); unset ($thread, $getthreadids); $hook_query_fields = $hook_query_joins = $hook_query_where = ''; ($hook = vBulletinHook::fetch_hook('forumdisplay_query')) ? eval($hook) : false; $threads = $db->query_read_slave(" SELECT $votequery $previewfield thread.threadid, thread.title AS threadtitle, thread.forumid, pollid, open, replycount, postusername, postuserid, thread.iconid AS threadiconid, $lastpost_info2, thread.dateline, IF(views<=replycount, replycount+1, views) AS views, notes, thread.visible, sticky, votetotal, thread.attach, hiddencount, deletedcount " . (($vbulletin->options['threadsubscribed'] AND $vbulletin->userinfo['userid']) ? ", NOT ISNULL(subscribethread.subscribethreadid) AS issubscribed" : "") . " " . ($deljoin ? ", deletionlog.userid AS del_userid, deletionlog.username AS del_username, deletionlog.reason AS del_reason" : "") . " " . (($vbulletin->options['threadmarking'] AND $vbulletin->userinfo['userid']) ? ", threadread.readtime AS threadread" : "") . " " . ($redirectjoin ? ", threadredirect.expires" : "") . " $hook_query_fields FROM " . TABLE_PREFIX . "thread AS thread $deljoin " . (($vbulletin->options['threadsubscribed'] AND $vbulletin->userinfo['userid']) ? " LEFT JOIN " . TABLE_PREFIX . "subscribethread AS subscribethread ON(subscribethread.threadid = thread.threadid AND subscribethread.userid = " . $vbulletin->userinfo['userid'] . " AND canview = 1)" : "") . " " . (($vbulletin->options['threadmarking'] AND $vbulletin->userinfo['userid']) ? " LEFT JOIN " . TABLE_PREFIX . "threadread AS threadread ON (threadread.threadid = thread.threadid AND threadread.userid = " . $vbulletin->userinfo['userid'] . ")" : "") . " $previewjoin $tachyjoin $redirectjoin $hook_query_joins WHERE thread.threadid IN (0$ids) $hook_query_where ORDER BY sticky DESC, $sqlsortfield $sqlsortorder "); unset($limitothers, $delthreadlimit, $deljoin, $datecut, $votequery, $sqlsortfield, $sqlsortorder, $threadids); // Get Dot Threads $dotthreads = fetch_dot_threads_array($ids); if ($vbulletin->options['showdots'] AND $vbulletin->userinfo['userid']) { $show['dotthreads'] = true; } else { $show['dotthreads'] = false; } unset($ids); // prepare sort things for column header row: $sorturl = 'forumdisplay.php?' . $vbulletin->session->vars['sessionurl'] . "f=$forumid&daysprune=$daysprune"; $oppositesort = iif($vbulletin->GPC['sortorder'] == 'asc', 'desc', 'asc'); if ($totalthreads > 0 OR $stickyids) { if ($totalthreads > 0) { $limitlower++; } // check to see if there are any threads to display. If there are, do so, otherwise, show message if ($vbulletin->options['threadpreview'] > 0) { // Get Buddy List $buddy = array(); if (trim($vbulletin->userinfo['buddylist'])) { $buddylist = preg_split('/( )+/', trim($vbulletin->userinfo['buddylist']), -1, PREG_SPLIT_NO_EMPTY); foreach ($buddylist AS $buddyuserid) { $buddy["$buddyuserid"] = 1; } } DEVDEBUG('buddies: ' . implode(', ', array_keys($buddy))); // Get Ignore Users $ignore = array(); if (trim($vbulletin->userinfo['ignorelist'])) { $ignorelist = preg_split('/( )+/', trim($vbulletin->userinfo['ignorelist']), -1, PREG_SPLIT_NO_EMPTY); foreach ($ignorelist AS $ignoreuserid) { if (!$buddy["$ignoreuserid"]) { $ignore["$ignoreuserid"] = 1; } } } DEVDEBUG('ignored users: ' . implode(', ', array_keys($ignore))); } $show['threads'] = true; $threadbits = ''; $threadbits_sticky = ''; $counter = 0; $toread = 0; while ($thread = $db->fetch_array($threads)) { // AND $counter++ < $perpage) // build thread data $thread = process_thread_array($thread, $lastread, $foruminfo['allowicons']); $realthreadid = $thread['realthreadid']; if ($thread['sticky']) { $threadbit =& $threadbits_sticky; } else { $threadbit =& $threadbits; } ($hook = vBulletinHook::fetch_hook('threadbit_display')) ? eval($hook) : false; // Soft Deleted Thread if ($thread['visible'] == 2) { $thread['deletedcount']++; $show['threadtitle'] = (can_moderate($forumid) OR ($vbulletin->userinfo['userid'] != 0 AND $vbulletin->userinfo['userid'] == $thread['postuserid'])) ? true : false; $show['deletereason'] = (!empty($thread['del_reason'])) ? true : false; $show['viewthread'] = (can_moderate($forumid)) ? true : false; $show['managethread'] = (can_moderate($forumid, 'candeleteposts') OR can_moderate($forumid, 'canremoveposts')) ? true : false; $show['moderated'] = ($thread['hiddencount'] > 0 AND can_moderate($forumid, 'canmoderateposts')) ? true : false; $show['deletedthread'] = $canseedelnotice; eval('$threadbit .= "' . fetch_template('threadbit_deleted') . '";'); } else { if (!$thread['visible']) { $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######################## } } $db->free_result($threads); unset($thread, $counter); $pagenav = construct_page_nav($pagenumber, $perpage, $totalthreads, 'forumdisplay.php?' . $vbulletin->session->vars['sessionurl'] . "f=$forumid", "" . (!empty($vbulletin->GPC['perpage']) ? "&pp=$perpage" : "") . (!empty($vbulletin->GPC['sortfield']) ? "&sort=$sortfield" : "") . (!empty($vbulletin->GPC['sortorder']) ? "&order=" . $vbulletin->GPC['sortorder'] : "") . (!empty($vbulletin->GPC['daysprune']) ? "&daysprune=$daysprune" : "") ); eval('$sortarrow[' . $sortfield . '] = "' . fetch_template('forumdisplay_sortarrow') . '";'); } unset($threads, $dotthreads); // get colspan for bottom bar $foruminfo['bottomcolspan'] = 6; if ($foruminfo['allowicons']) { $foruminfo['bottomcolspan']++; } if ($foruminfo['allowratings']) { $foruminfo['bottomcolspan']++; } $show['threadslist'] = true; ///////////////////////////////// } // end forum can contain threads else { $show['threadslist'] = false; } ///////////////////////////////// if ($newthreads < 1 AND $unreadchildforums < 1) { mark_forum_read($foruminfo, $vbulletin->userinfo['userid'], TIMENOW); } eval('$forumhome_markread_script = "' . fetch_template('forumhome_markread_script') . '";'); construct_forum_rules($foruminfo, $forumperms); $show['forumsearch'] = iif (!$show['search_engine'] AND $forumperms & $vbulletin->bf_ugp_forumpermissions['cansearch'] AND $vbulletin->options['enablesearches'], true, false); $show['forumslist'] = iif ($forumshown, true, false); $show['stickies'] = iif ($threadbits_sticky != '', true, false); ($hook = vBulletinHook::fetch_hook('forumdisplay_complete') ) ? eval($hook) : false; eval('print_output("' . fetch_template('FORUMDISPLAY') . '");'); /*================================================= =====================*\ || ################################################## ################## || # Downloaded: 10.00, Wed Oct 4th 2006 || # CVS: $RCSfile: forumdisplay.php,v $ - $Revision: 1.320 $ || ################################################## ################## \*================================================ ======================*/ ?>
installed vb: 3.6.2
FARMER
11-07-2006, 08:46 PM
i can not view the image in thumbnail
please help me!!!
After the mod was installed we noticed that the forum became horribly slow so I changed the 'gallery_images_forumhome' bit to the following:
// #################### Latest Gallery-Additions #######################
// fetch the permissions for each forum
// global $vbulletin;
if (isset($forumid) == false)
{
$gal_num_rows = $vbulletin->options['gal_num_rows'];
if ($vbulletin->options['show_latest']==1)
{
// fetch latest pics
$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 random pics
if ($vbulletin->options['show_random']==1)
{
$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') . '";');
}
}
}
the added bits are 'if (isset($forumid) == false)' so the thumbs aren't attempted to load on other pages than forumhome. (got a big speed-increase on the forums after doing this)
also added 'if ($vbulletin->options['show_random']==1)' and 'if ($vbulletin->options['show_latest']==1)' bits to get rid of redundant sqlqueries.
Hope this is of any use to people :)
been searching for a couple day and have no idea where this... littl help pointing me there please gallery_images_forumhome
this is not a template so kinda lost :cross-eyed:
the gallery is up and runs fine but slows down my site as well and would like to fix this...
thx
Harald_T
11-08-2006, 07:31 AM
@Axl-Rose: This seems to be an php/apache-problem and shouldn't be a problem of the hack.
@Farmer: Please check, if your vb creates thumbnails for attachments. And be sure, that you didn't used linked pictures.
ahmed-samara
11-08-2006, 10:57 AM
owa >>>> thanks ....................
Thanks. You're right, i forgot to add the options for random and latest thumbs. And thanks for the hint regarding the forumid.
No problems :)
been searching for a couple day and have no idea where this... littl help pointing me there please
this is not a template so kinda lost :cross-eyed:
the gallery is up and runs fine but slows down my site as well and would like to fix this...
thx
I guess I was a bit vague on the location in the original post but here goes:
Open "Plugins & Products" in the left navigation in admincp
Then go to "Plugin manager" and you should find the template there.
The title is "gallery_images_forumhome" and the hook is "global_start", hope that you find your way :)
Kalina
11-11-2006, 07:59 PM
Thanks for the great plugin.
I am having a problem others have had, but it's not been addressed.
The image is missing above this sentence:
"Click on the picture, to show it in original-size"
Anything I can do to fix this?
EDIT: Just discovered it only happens to small images, any way around this?
No problems :)
I guess I was a bit vague on the location in the original post but here goes:
Open "Plugins & Products" in the left navigation in admincp
Then go to "Plugin manager" and you should find the template there.
The title is "gallery_images_forumhome" and the hook is "global_start", hope that you find your way :)
thx worked the charm :D
Kalina
11-13-2006, 05:24 PM
The gallery is full of javascript errors, multi-quote doesn't work, will this be fixed?
DrewM
11-13-2006, 07:06 PM
The gallery is full of javascript errors, multi-quote doesn't work, will this be fixed?
it might, it might not, regard less do what I did disable the plugin that changes that; after all Isn't the reason you downloaded this for the gallery part.
Kalina
11-13-2006, 10:39 PM
it might, it might not, regard less do what I did disable the plugin that changes that; after all Isn't the reason you downloaded this for the gallery part.
I don't understand what you're saying. Anyway, I was letting the creator know incase he didn't already. My members reported it, I will fix it myself but was checking with the creator first incase he has it planned.
Disabling the plugin would disable the gallery, that's not what we want and it's only the gallery affected anyway.
I am allowed to ask for support in here so mind your own business, please.
lolo?
11-14-2006, 08:39 AM
I seem to be missing a few phrases??
http://www.cujosplace.com/phrase1.gif
and when I click on the featured...
http://www.cujosplace.com/phrase2.gif
for this
find in the xml file in line 818 to 823
<if condition="$show['movethread']"><div><label for="ao_mvt"><input type="radio" name="do" id="ao_mvt" value="movethread" />$vbphrase[move_copy_thread]</label></div></if>
<if condition="$show['movethread']">
<div>
<label for="ao_feat">
<input type="radio" name="do" id="ao_feat" value="feat" />Featured
and replace by this
<if condition="$show['movethread']"><div><label for="ao_mvt"><input type="radio" name="do" id="ao_mvt" value="movethread" />$vbphrase[move_thread]</label></div>
<div><label for="ao_cpt"><input type="radio" name="do" id="ao_cpt" value="copythread" />$vbphrase[copy_thread]
after reupload the xm file ;)
Harald_T
11-14-2006, 11:41 AM
@Lolo: Thanks for helping me out of this... ;)
@Kalina: No, i didn't notice, that multiquote wasn't working. About those javascript-errors, could you explain further? I'll look after this, i think those problems are inside of the templates.
thepub
11-14-2006, 04:16 PM
before I install, is everything in English yet? In the thumbnails it's German.
DigitalDesktops
11-15-2006, 03:40 AM
there is very few items that are still in german but they are simple text changes in the template
DigitalDesktops
11-15-2006, 06:39 AM
is there any way to remove the new thread button from the gallery pages??
brvheart
11-16-2006, 02:27 PM
the back ground on the forumhome is black on my one style...all the others it looks as it should...can you have a look and let me know what I did wrong or how to fix it please?
Click here to see it (http://www.mmaworld.org/index.php?styleid=3)
bump please
Pearl
11-16-2006, 02:43 PM
for this
find in the xml file in line 818 to 823
<if condition="$show['movethread']"><div><label for="ao_mvt"><input type="radio" name="do" id="ao_mvt" value="movethread" />$vbphrase[move_copy_thread]</label></div></if>
<if condition="$show['movethread']">
<div>
<label for="ao_feat">
<input type="radio" name="do" id="ao_feat" value="feat" />Featured
and replace by this
<if condition="$show['movethread']"><div><label for="ao_mvt"><input type="radio" name="do" id="ao_mvt" value="movethread" />$vbphrase[move_thread]</label></div>
<div><label for="ao_cpt"><input type="radio" name="do" id="ao_cpt" value="copythread" />$vbphrase[copy_thread]
after reupload the xm file ;)
Doing this removes the featured button.
Pearl
11-16-2006, 03:10 PM
changing "Dateigr??e"
choose your style
edit templates>gallery templates>gallery_threadbit>
search datei
replace with File size
save template
Pearl
11-16-2006, 03:31 PM
Installed and working great Thanks!
Just a couple of little questions
The header cell on the gallery display in forumhome says
Galerie
Latest Pictures in the gallery:
Great we all know what it is but how do I change the word Galerie to Gallery?
Many thanks for this mod we have been looking for a gallery for some time and this looks & works great.
Edit style>forumhome>inside find $navbar
underneath $navbar on line 6
change galerie to gallery.
ThunderBeast
11-18-2006, 03:55 PM
but.....i'm sorry....
this mod is in german.... only german??????????
Invalid ID
11-18-2006, 11:47 PM
Sorry...posted on the wrong thread.
lilfields10
11-19-2006, 02:10 AM
Using 3.6.0, thumbnails don't show
Harald_T
11-19-2006, 10:24 AM
@lilfields10: Did you check the settings for thumbnails? And for attachments?
Oh, and don't forget: This hack doesn't work with linked pictures!
ThunderBeast
11-19-2006, 10:55 AM
sorry....Harald....
can i have this mod in english?
Greyshark
11-19-2006, 04:38 PM
hi there Harald T;
I did the upgrade of vbulletin from 3.62. to 3.6.3.; everything work fine, only the gallery... I got these mistake:
What could I do?
Answer in German would be nice!
Harald_T
11-19-2006, 07:29 PM
@Greyshark: Hast Du auch an die Änderungen an forumdisplay.php durchgeführt?
Greyshark
11-20-2006, 06:32 AM
@Greyshark: Hast Du auch an die ?nderungen an forumdisplay.php durchgef?hrt?
DANKE DIR! Ich hatte ?bersehen, dass wohl die .php neu ist in der version 3.63. Alles arbeitet prima!
cu Christian
MotMann
11-25-2006, 10:08 PM
Harald, warum habe ich das Update erst jetzt gefunden?
Trotzdem sind immer noch alte Probleme vorhanden, wie das "aufbl?hen" von kleinen Bildern.
Wenn ich diesen Code nutze:
<a href="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&d=$attachment[dateline]"<if condition="$show['newwindow']"> target="_blank"</if>>
<if condition="$attachment[filename]!=$vboptions[gal_feat_name]">
<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>
</if>
Werden die Bilder in Originalgr?sse dargestellt, also nicht verkleinert.
Oder tritt der Effekt erst bei neu geladenen Bildern auf? W?re schlecht, weil ich ja ugedatet hatte.
Ebenso besteht das Problem der kleinen Bilder, dass diese nicht angezeigt werden.
Und dan fehlen noch einige Phrasen und manche Feautures von vb 3.6 (wie direkt antworten usw.) werden nicht unterst?tzt.
Passiert da was? Irgendwo stand doch, dass Du das tolle Progamme v?llig umschreiben wolltest ;)
yesfans
11-26-2006, 02:03 AM
What do the directions mean when they say SET UP NEW CATEGORY??
yesfans
11-26-2006, 02:11 AM
I am getting lost at this point!
......
So far, so good. Now it's time to setup the gallery.
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.
2. Create a new forum. Call it, what you like (for example "Pictures of flowers"). Just beneath the "SAVE"-Button you'll find a new option,
called "Act as gallery". Set this to yes. It should now look like this:
Harald_T
11-26-2006, 04:04 PM
@MotMann: Stimmt, ich hänge momentan ziemlich hinten dran, habe aber privat zuviel um die Ohren, um mich dran zu setzen. Ich hoffe, übernächste Woche endlich das Ganze anzugehen, wenn ich Urlaub habe.
Das nächste Update wird wohl als erstes überarbeitete Queries enthalten, so das dann wohl auch die Serverlast reduziert wird.
english: I know, i'm there where no response in the last weeks, but my private time is spent to solve out urgent problems. I hope to start working again on the gallery in the first two december-weeks, in my holidays.
The next update will be hopefully one with better queries, so the server-load will be reduced.
MotMann
11-26-2006, 05:16 PM
That's nice :)
krazycivik
11-26-2006, 11:16 PM
so there is no english version of this ugh.. wish there was.
MotMann
11-27-2006, 06:24 AM
Than you must translate it self ;)
Whe do it also...... i know, it's terrible.
Englisch is not the one language in the world :D
yesfans
11-27-2006, 10:27 AM
I am getting lost at this point!
......
So far, so good. Now it's time to setup the gallery.
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.
2. Create a new forum. Call it, what you like (for example "Pictures of flowers"). Just beneath the "SAVE"-Button you'll find a new option,
called "Act as gallery". Set this to yes. It should now look like this:
What do the directions mean when they say SET UP NEW CATEGORY??
Can anyone make this clearer for me?
buurman
11-27-2006, 11:04 AM
Million Dollar Question, is there a module to display via vbAdanced? If not is there anyone who would be willing to take a shot at creating one?
Great Mod dude.... Nice Work!
First of all, great work!! love this gallery!
Is the CMPS random gallery picture block already made by someone?
Cant seem to find out how its working.
The gallery is installed and working nicely, thx!
Edit: Uhm, guess I found it, had to look in the original version post. sorry :)
buurman
11-27-2006, 11:06 AM
Can anyone make this clearer for me?
Just "add new Forum" and set the setting to "Act as forum" to NO.
You can als set the setting "Forum is active" to NO
Hope this helps.
peacestgt
11-27-2006, 12:33 PM
ive installed this produkt and now i get this error..
whats wrong?
Datenbankfehler in vBulletin 3.6.3:
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 < 1164637904
GROUP BY thread.threadid
ORDER BY attachment.attachmentid DESC LIMIT;
MySQL-Fehler : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 4
Fehler-Nr. : 1064
Datum : Monday, November 27th 2006 @ 03:31:44 PM
Skript : http://..../vb/index.php
Referrer : http://.../vb/forumdisplay.php?f=
IP-Adresse : ...
Benutzername :
Klassenname : vb_database
Regards
Mike
bonzer
11-27-2006, 12:47 PM
I Installed as directed and cannot get to work ?? Help would be kindly taken
Thanks
Harald_T
11-27-2006, 03:49 PM
ive installed this produkt and now i get this error..
whats wrong?
Datenbankfehler in vBulletin 3.6.3:
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 < 1164637904
GROUP BY thread.threadid
ORDER BY attachment.attachmentid DESC LIMIT;
MySQL-Fehler : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 4
Fehler-Nr. : 1064
Datum : Monday, November 27th 2006 @ 03:31:44 PM
Skript : http://..../vb/index.php
Referrer : http://.../vb/forumdisplay.php?f=
IP-Adresse : ...
Benutzername :
Klassenname : vb_database
Regards
Mike
It seems, the settings for the gallery are ignored. Try to check in the gallery-option if there is a number set for the amount of pictures shown on forumhome.
If everything is o.k., try to just reinstall it.
@buurman: I thought, i had already published the modifications for CMPS. Hmh, o.k., i'll look after it tonight.
It's not so hard to to make a random-picture-box and a latest-pictures-box for the CMPS.
@bonzer: Could you explain a bit more? What's not working? Any URL to see it?
bonzer
11-27-2006, 04:01 PM
Thanks But I have removed it for now ....
Kiint
11-29-2006, 11:18 PM
Thanks for the Gallery, it installed fine.
Some Ideas for future version:
Improve the layout on images when you click on a gallery, at the moment they are all placed above each other, it doesn't look that tidy. A blank line between each image would be nice just so that they are spaced out a bit, maybe create thumbnails instead of showing an enlarged image so that we can display several images together in one post and the user can then click on them to get the larger picture.
Fix the blank Thread Tools menu
in gallery_showthread, find:
<if condition="$show['movethread']"><div><label for="ao_mvt"><input type="radio" name="do" id="ao_mvt" value="movethread" />$vbphrase[move_copy_thread]</label></div></if>
replace with:
<if condition="$show['movethread']"><div><label for="ao_mvt"><input type="radio" name="do" id="ao_mvt" value="movethread" />$vbphrase[move_thread]</label></div></if>
That's all I can think of at the moment, Thanks for a great hack
buurman
11-30-2006, 08:35 AM
Is htere a way to make the space between the attachment and Threat smaller?
*edit
Never mind, found it, also deleted the extra space between latest pics block and first forum block, because it was larger than the rest.
Starts looking perfectly, love this addon m8!!!
dreck
12-03-2006, 08:02 PM
Harald_T, great to see you have a 3.6 mod for this hack. ;) I had your 3.5 mod & loved it. Does anyone have this working with 3.6.4?
Thanks, dreck
Harald_T
12-04-2006, 05:22 PM
This should be working with 3.6.4 also, i think.
[Important Update]
Just to let you know:
I've started coding a new version of the gallery, which won't use the attachment system any longer. Instead of it, it uploads the pictures to a directory on the server.
Therefore it was neccessary to write the whole code new. At the moment there is no demo-version or any screen-shots. As soon, as they are, i'll show you.
Any suggestions for this new gallery?
mcontent10
12-04-2006, 06:37 PM
Great little hack, I must say Harald. I'd love the option to have people click on the picture from forumhome and it takes them to the actual picture post, instead of just the picture.
You can see my implementation here-
http://www.jewelryforums.org/
Harald_T
12-04-2006, 07:15 PM
Just change the code in the template "gallery_latest_pictures" for this.
Instead of:
<a HREF="attachment.php?attachmentid=$gallery[attachmentid]">
it should be:
<a href="showthread.php?t=$gallery[threadid]">
That's all.
mcontent10
12-04-2006, 11:30 PM
Harald,
How do I set your script to allow ANYONE, whether registered or unregisterd to see the images or the pictures in the galleries? Right now someone browsing the board will see an 'x' and this message:
Nur für Mitglieder!
Thanks
complete
12-05-2006, 08:03 PM
Anybody have it working with 3.6.4?
The gallery page is not showing any pictures....
MotMann
12-06-2006, 05:27 PM
Hallo Harald.
Ich habe die letzte Version drauf und erhalte nun, wenn ich Foren im ACP ?ndern m?chte, folgende Fehlermeldung:
Invalid SQL:
UPDATE vb_forum SET
title_clean = 'Zur Spielhalle',
title = 'Zur Spielhalle',
description_clean = 'ARCADE Games erwarten Dich. Viel Spa?',
description = 'ARCADE Games erwarten Dich. Viel Spa?',
link = 'http://www.xxxxxx/Forum/arcade.php',
displayorder = 3,
parentid = 63,
daysprune = -1,
defaultsortfield = 'lastpost',
defaultsortorder = 'desc',
showprivate = 0,
newpostemail = '',
newthreademail = '',
### Bitfield: vb_forum.options ###
options = IF(options & 8, options - 8, options),
options = IF(options & 16, options - 16, options),
options = IF(options & 32, options - 32, options),
options = IF(options & 32768, options - 32768, options),
options = IF(options & 8192, options, options + 8192),
options = IF(options & 4, options, options + 4),
options = IF(options & 1, options, options + 1),
options = IF(options & 2, options, options + 2),
options = IF(options & 16384, options, options + 16384),
options = IF(options & 256, options - 256, options),
options = IF(options & 64, options, options + 64),
options = IF(options & 128, options, options + 128),
options = IF(options & 512, options, options + 512),
options = IF(options & 1024, options, options + 1024),
options = IF(options & 2048, options, options + 2048),
options = IF(options & 4096, options, options + 4096),
options = IF(options & 65536, options, options + 65536),
styleid = 0,
password = '',
vbseo_moderatepingbacks = 1,
vbseo_moderatetrackbacks = 1,
vbseo_moderaterefbacks = 1,
gallery = '0',
gallery_cat = '0',
gal_thumbs = 0,
gal_statusicon = ''
WHERE forumid = 151;
MySQL-Fehler : Unknown column 'gal_thumbs' in 'field list'
Fehler-Nr. : 1054
Datum : Wednesday, December 6th 2006 @ 08:20:10 PM
Skript : http://www.xxxxxxxx/Forum/admincp/forum.php?do=update
Referrer : http://www.xxxxxxxxx/Forum/admincp/forum.php?do=edit&f=151&s=
IP-Adresse : xx.xx.xx.xx
Benutzername : xxxxx
Klassenname : vB_Database
Es ist aber v?llig unerheblich, welches Forum die ?nderung betrifft. Die Meldung erscheint bei allen Foren.
Wenn ich das Plug In Deaktiviere, ist alles in Butter :) Das Problem war bei der vorherigen Version nicht....
EDIT: Okey, ich habe es in vorherigen Seiten gefunden. Habe die XML deinstalliert und neu importiert und schon lief die Kiste :)
Harald_T
12-06-2006, 10:20 PM
@Motmann: Scheint, als wenn der Eintrag für die Tabelle nicht mehr korrekt ist. Lade das Plugin nochmal, möglicherweise lag beim Import der XML-Datei ein Fehler vor.
MotMann
12-06-2006, 10:37 PM
Ja, danke. Das schrieb ich aber auch schon, dass ich das im vorherigen Beitrag fand.
jetzt klappts.
krazycivik
12-07-2006, 02:25 AM
i change the forumdisplay and my forums show errors why is this?
krazycivik
12-07-2006, 03:42 AM
yah this dosent work at least for me.. i install it do everything you say (and your pics dont work) for you examples so its kinda hard to follow.. i can see a gallery thing etc but at the top it dosent show any pictures
Don El Greeko
12-07-2006, 08:58 AM
Hi!
I have a short question. Its a genius plugin, but it makes the forum soooo slow. Did I forget some special settings?
Thanks 4 help.
lifesourcerec
12-08-2006, 12:11 PM
Ok.. done with this hack as it crashes my server every time. From the hoster:
Everything is working except your forums, and it's putting a large load on the server. You will need to correct this before we have to suspend the site. At this rate it will crash the server.
250 hobbyins_ localhost forum 15 Query SELECT gallery, threadid, firstpostid, thread.title, attac
235 hobbyins_ localhost forum 29 Query SELECT gallery, threadid, firstpostid, thread.title, attac
230 hobbyins_ localhost forum 35 Query SELECT gallery, threadid, firstpostid, thread.title, attac
222 hobbyins_ localhost forum 47 Query SELECT gallery, threadid, firstpostid, thread.title, attac
221 hobbyins_ localhost forum 48 Query SELECT gallery, threadid, firstpostid, thread.title, attac
205 hobbyins_ localhost forum 58 Query SELECT gallery, threadid, firstpostid, thread.title, attac
202 hobbyins_ localhost forum 62 Query SELECT gallery, threadid, firstpostid, thread.title, attac
197 hobbyins_ localhost forum 66 Query SELECT gallery, threadid, firstpostid, thread.title, attac
193 hobbyins_ localhost forum 71 Query SELECT gallery, threadid, firstpostid, thread.title, attac
166 hobbyins_ localhost forum 89 Query SELECT gallery, threadid, firstpostid, thread.title, attac
152 hobbyins_ localhost forum 93 Query SELECT gallery, threadid, firstpostid, thread.title, attac
140 hobbyins_ localhost forum 98 Query SELECT gallery, threadid, firstpostid, thread.title, attac
136 hobbyins_ localhost forum 101 Query SELECT gallery, threadid, firstpostid, thread.title, attac
125 hobbyins_ localhost forum 107 Query SELECT gallery, threadid, firstpostid, thread.title, attac
98 hobbyins_ localhost forum 121 Query SELECT gallery, threadid, firstpostid, thread.title, attac
87 hobbyins_ localhost forum 126 Query SELECT gallery, threadid, firstpostid, thread.title, attac
37 hobbyins_ localhost forum 147 Query SELECT gallery, threadid, firstpostid, thread.title, attac
30 hobbyins_ localhost forum 151 Query SELECT gallery, threadid, firstpostid, thread.title, attac
28 hobbyins_ localhost forum 152 Query SELECT gallery, threadid, firstpostid, thread.title, attac
22 hobbyins_ localhost forum 156 Query SELECT gallery, threadid, firstpostid, thread.title, attac
16 hobbyins_ localhost forum 159 Query SELECT gallery, threadid, firstpostid, thread.title, attac
17 hobbyins_ localhost forum 159 Query SELECT gallery, threadid, firstpostid, thread.title, attac
lifesourcerec
12-08-2006, 02:25 PM
How do you manually remove this junk?? Locked out of admincp and everything (even with the define('DISABLE_HOOKS', true); ) line in config.php
hotmasala4u
12-08-2006, 08:50 PM
hi, when a image is attched, the picture is not being shown, and atttachement setting is on. Any idea about his?
Harald_T
12-09-2006, 08:42 AM
Check the following:
- Are you logged in?
- In the attachment-manager: Does your vB generates thumbs for the attachment?
- In the vbulletin-options-->attachments: Is "Show Inline Images" set to "YES"?
mcontent10
12-09-2006, 01:51 PM
Hi Harald,
Any ideas about letting anyone see the images, and not just logged in users?
"Harald,
How do I set your script to allow ANYONE, whether registered or unregisterd to see the images or the pictures in the galleries? Right now someone browsing the board will see an 'x' and this message:
Nur für Mitglieder!
Thanks"
buurman
12-11-2006, 05:35 AM
The only thing is....
Images smaller than 100x100 arent displayed in the post, but they are in the forumgallerie... mmhh, if you add a bigger file afterwards, then it does display the small file also.
Cant seem to find the solution.... anyone?
Harald_T
12-11-2006, 07:11 AM
@mcontent10: Just set "Allow download attachments" for Guest to "Yes" this should remove the problem.
@buurman and motmann: Could you contact me via pm?
buurman
12-12-2006, 10:37 AM
Just if someone is bored, I have a question...
Im getting the CMPS portal block for this Gallery to work, but cant get it to work the way I want to.
This is the code for a random block:
<if condition="$vboptions['show_random']==1">
<tr>
$random_gallery
</tr>
</if>
But then the block looks exact the same as the block in the forum.
(like 7 images in a row and same size of attachments)
If I want to have 4 images in a row, on the portal and 7 in the forum, what do I have to do?
Is there a way to make a new "adv_random_gallery" template and make it look in that template, like "$random_gallery2" so I can change the settings in that template.
Or I just wait till Harald finishes his new version of this great addon :) and then worry about it :)
rickyreter
12-13-2006, 01:08 PM
Hi,i installed then uninstalled as i was getting a load off silly stuff now i get this on main page:
Unknown column 'featured' in 'where clause'
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /index.php(63) : eval()'d code on line 81
forumtemplates.com -->
Any ideas
eNtitY~
12-14-2006, 07:17 PM
So is this fully functional? Does it allow you to upload pictures bigger than 100x100? Could someone also upload some pics of the installed product?
Thanks.
dreck
12-14-2006, 09:01 PM
Harald_T,
I am getting ready to install this version. I ran your 3.5 version for awhile, very nice.
I was wondering if I could place the featured gallery in the header template rather than the forumhome? I'd like to place 3 or 4 pictures in the header next to my logo.
Thanks, dreck
Harald_T
12-14-2006, 09:38 PM
Should work also. Just move the code for the featured-pictures to your "header-template".
Harald_T
12-14-2006, 09:43 PM
@all: Just to show you a bit of what is coming with the NEW version:
Yes, it's true. It's still all in german, as i didn't made the phrases yet.
I can't say when there is the release of the new version, as there are still a couple of things to do.
dreck
12-14-2006, 09:50 PM
Should work also. Just move the code for the featured-pictures to your "header-template".cool..
Thanks, dreck
mcontent10
12-16-2006, 11:32 PM
@mcontent10: Just set "Allow download attachments" for Guest to "Yes" this should remove the problem.
@buurman and motmann: Could you contact me via pm?
Hi Harald, I tried that and it was already set to that. Any other ideas? Can I take it out of your code maybe?
maidos
12-17-2006, 02:38 PM
i have done the installing but the images is showing red cross please help
Harald_T
12-17-2006, 03:13 PM
Sorry for late reply. I'm busy on releasing the beta-version of the new vbi-Gallery 2.
For those "Red X".: Check all settings for attachments (and make sure, that the picture isn't linked via URL). Also, make sure, your vB can make thumbnails for attachments (maybe a graphic library isn't installed?).
Hopefully, i can release the first beta around christmas. Maybe this may be a better solution for you all.
maidos
12-17-2006, 03:23 PM
erm how do i create thumbnails :S
maidos
12-17-2006, 03:33 PM
just notice that my other member cant view the images i uploaded on attachment :S
Harald_T
12-17-2006, 03:54 PM
@maidos: Check the settings for the usergroups, if they are able to download attachments.
maidos
12-17-2006, 04:13 PM
yeah its fixed now : thanks btw, on the next release could you possible make a category on the galleryv :P
like Sports, Car, Nude picture :P
Harald_T
12-17-2006, 04:16 PM
The new version doesn't need a category and then a forum inside of it. You define a category, define the permissions (which usergroup can access the category and which one not?) and also set, which usergroup will be moderated, if they upload anything in this category. That's all.
maidos
12-18-2006, 05:04 AM
btw how do i change Dateigröße into english ?
project-Buckfas
12-18-2006, 02:27 PM
Does this work on 3.6.4?
yj_enquirer
12-19-2006, 08:25 AM
btw how do i change Dateigr??e into english ?
https://vborg.vbsupport.ru/showpost.php?p=1118683&postcount=152
Cheers
yj_enquirer
12-19-2006, 11:49 AM
Does this work on 3.6.4?
tried this on a fresh install with no other mods installed and no hiccups.. worked perfectly...
so.. try it out on a test install for your board..
mcontent10
12-19-2006, 06:05 PM
This mod works great for me, but unfortunately only users logged in can see the pics. I tried all the options (visitors can download attachments) to have visitors see the pics, but no go. I guess I'll wait for the next release for that.
dgelinas
12-19-2006, 06:29 PM
F.A.Q.:
Q: Do you have any screenshots or Demo?
A: A live-demo can be seen here: http://www.underworld-kleve.de
Screenshots are included in the ZIP-File or can be seen here:
https://vborg.vbsupport.ru/showthread.php?t=92875
Q: I almost upload smaller image into the gallery. They are all blown up. How can i avoid this?
A: Edit the template "gallery-attachment". Replace the code with this:
<a href="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&d=$attachment[dateline]"<if condition="$show['newwindow']"> target="_blank"</if>>
<if condition="$attachment[filename]!=$vboptions[gal_feat_name]">
<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>
</if>
Hi,
How did you get the homepage to look like that? I like the recent threads, the stats and the announcements on the homepage.. Any help would be great, thanks!
Harald_T
12-19-2006, 09:10 PM
@dgelinas: I just used the vba_cmps-Portal. Just look here:
http://vbadvanced.com/
2meplie
12-28-2006, 05:45 PM
Hi,
I installed it and I get this. I reinstalled it and nothing change. Can you help?
How do I install the gallery to an own directory (ie www.myforum.com/gallery/index.php) as you've done at sf-galerie.net ?
Harald_T
12-29-2006, 12:34 PM
I'm not using the old gallery-system on this site any longer. So i decided to use another gallery-solution as long as vBi-Gallery 2 isn't ready.
Just wait for the version 2, the german Beta will be released tonight and i'm hardly working on the english version of it.
With the next version the gallery will be in an extra folder (not yet, but in the final version).
buurman
12-29-2006, 07:30 PM
I just noticed the attachments in the forum does not display for firefox. Any solution to this?
For me it always worked fine in firefox, but sinds today it doesnt anymore...
Pictures are not shown anymore, in IE it works fine... strange...:alien:
wIrEs
12-30-2006, 07:30 AM
i've been having big problems with firefox and IE lately, firefox favorites are broke so the Favorites display but not in subfolders, IE is broke or something i dont know, anyway .. i just want to ask 1 question, can the gallery scan a folder and then resize+create thumbnails of the images and then delete processed images as the scan goes? I have over 2,500+ images and i need a gallery to display them, i can't add 1 by 1 to the gallery since there's also new images created each day, weeks..
Harald_T
01-09-2007, 04:03 PM
@wIrEs: Sorry for late delay, i wasn't her for longer time.
Short answer: This version will not be able of this function, as it would be too difficult to write this for the normal forums-attachment-system.
This function may be included in the new version, which is building up at the moment.
justitaly.eu
01-13-2007, 03:21 PM
Hi,
Just installed the hack,
Images are displayed fine on forumhome and in members pages. The problem is no thumbnails being displayed on the actual gallery. i have looked through every thread here and checked attachment permisssions, thumbnails etc.... any ideas on resolving this. im using vb 3.6.4
does anyone have this working ok in 3.6.4
Harald_T
01-13-2007, 03:49 PM
It works fine on 3.6.4.
Did you also check the vbulletin-options for postings? There is also an attachment-setting (i think it was "Show Attachment Inline". Check if this is set to yes.
Sorry for no updates so far, but i'm working for the last weeks on the new version, which will be released soon (german users find a beta-version on vbulletinhacks-germany.org).
The BIG problem on the new version is, that all text is hardcoded atm, and therefore i can't release it (it's all in german).
justitaly.eu
01-13-2007, 06:23 PM
yes have checked that too.
admincp > VBoptions > Message Attachment options and is set to yes.
justitaly.eu
01-14-2007, 02:05 PM
ok the problem i have is not the actual attachments itself as they are displayed in the members page, forum home.
My gallery looks like (URL DELETED)
as you can see its not like your screen shots that are in the install file.
screenshot 1 or screenshot 3.
any ideas on how to resolve this, i have double checked the install procedures and cant see that i have missed anything.
MustangLisa
01-14-2007, 03:49 PM
I don't know what is wrong, but I don't have an upload button and when I attached something, it doesn't show up. These instructions are poor and so is the hack, IMO. Sorry, but I am installing this until all the words are in English (and spelled properly) and pieces aren't missing or broken. Nice idea, but needs more work. Thanks for your efforts.
Harald_T
01-14-2007, 04:24 PM
@justitaly.eu: Looks like you've haven't done the editings on forumdisplay.php.
@MustangLisa:
As i already wrote before, there is a new version coming ahead, and i'm working hard to release it. Maybe this will fullfill your needs better.
MotMann
01-14-2007, 05:18 PM
Jo Harald... ich warte auch noch ;) Oder ist die Deutsche Version schon fertig f?r 3.6.4?
justitaly.eu
01-14-2007, 06:17 PM
Hi Harold,
You are right! I tried editing the forumdisplay in notepad but kept on getting parse errors. I then did a find and replace for the forumdisplay.php in dreamweaver and that done the job.
One thing i did notice is that the image not rated should be uploaded to directory forum/images/statusicon/ not forum/images/misc as stated on the instructions
You should also upload file not registered to the forum/images directory
Thank you for your help Harold. i like this hack. There a few things in german that ill need to change into English but ive read how to do that in some of the previous posts.
Harald_T
01-14-2007, 06:37 PM
Wait for the next version... ;)
Harald_T
01-14-2007, 09:12 PM
@MotMann: Fast fertig. Es fehlt eigentlich nicht mehr viel.
Paultiscali
01-21-2007, 12:58 PM
ive installed this mod great but i get this error when accessing the gallery section
Invalid Forum specified. If you followed a valid link, please notify the administrator
MotMann
01-21-2007, 08:57 PM
@MotMann: Fast fertig. Es fehlt eigentlich nicht mehr viel.
Genjalomat :)
complete
01-21-2007, 09:39 PM
It was working for me in 3.6.2 but after I upgraded to 3.6.4, it's not....
I'm desperately waiting for the new version.
goga123
01-21-2007, 10:48 PM
Everything Good But Not Showing Random Pic. On Top
Fronty
01-27-2007, 02:37 PM
Hi everyone,
Just installed this script on vB3.6.4. Installed easily and seems to be working like a charm . I left out the Gallery button code as I will integrate that later on in my menu structure (using aria chocolate+ by vbstyles). Only thing I'm not sure about is they way the gallery categories should work. What should switching it off and on do?
Any news on the release of vBI-gallery 2? I think looking at the vbi-gallery.de website it looks awsome!!
Harald_T
01-27-2007, 04:55 PM
I think, the english version of vBi-g2 will be in february. Hope this is ok.
Fronty
01-27-2007, 04:59 PM
I think, the english version of vBi-g2 will be in february. Hope this is ok.
Its always ok, but the sooner the better :D :D
Harald if you need a hand in translating it just give me a shout. Allready tried to find that beta on the german VB-hack website but couldnt find it (yet)
Harald_T
01-28-2007, 10:18 AM
<a href="http://www.vbhacks-germany.org/showthread.php?t=6963" target="_blank">http://www.vbhacks-germany.org/showthread.php?t=6963</a>
Here you go... But still Beta, remember!
marcsmith73
01-28-2007, 01:35 PM
when i click on a Forum that I have made to show pics in the gallery. I get this...
Parse error: syntax error, unexpected '}' in /home/salthub/public_html/forumdisplay.php on line 920
Any ideas?
Harald_T
01-28-2007, 02:20 PM
Check your forumdisplay-modification. Do it once again. This should remove the error.
marcsmith73
01-28-2007, 02:47 PM
I had to reload the the forumdisplay.php
Fixed now....
Also...
If you click on a froum in my case "Reef photos" the cats. inside the froum are like shrunk together.
Also on the Forum homepage... How do i change the "Gallerie", and the words "Latest Pictures in gallery"
http://www.salthub.com/forumdisplay.php?f=11
See Link above...I like the hack. Install.
marcsmith73
01-28-2007, 03:35 PM
Ok...i fixed the Scrunch look. Just reloaded your code.
I want to change the word "Galerie", and then in the secon "Gallery" I want to chage the "Latest pictures in your gallery"
Also is there a default Ratings pictures I need...So Red X's won't show if there is no rateing yet?
My members love this gallery but most would like to see the gallery in a CMPS box with one single random or rotating graphic.
I can create a new CMPS Module but what I don't kow how to do is remove the gallery random pics from the forumhome template and put it into the module.
Do I use put the code that belongs in the forumhome template into the CMPS Module:
<!-- gallery-featured header -->
<table cellspacing="0" cellpadding="0" align="center">
<tr>
$featured_gallery
</tr>
</table>
and then
<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-->
I have tried this but it isn't working for me. Any ideas on how show random graphics this way?
StuntLife
01-29-2007, 01:15 PM
Good stuff. thanks!
Spank
02-02-2007, 12:13 PM
Hi this is a nice mod, I have a couple of problems though, hope somebody can help.
I put in the code the gallery attachement so that it doesn't blow smaller images up, but now images are tiny. how do I make them bigger, without the images being blown? If that makes sense?
Also the new thred links aren't being replace by the upload button, how does one fix this?
Any help woud be greatly appreciated.
Edit: Come across another problem.
In each forum, threads are duplicated which is seperated by code. See attachment.
Harald_T
02-02-2007, 06:43 PM
Check the modifications on forumdisplay.php. Something is wrong there.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.