![]() |
I just added 1 line I'd missed from the copy paste of my forumdisplay, and added table prefix stuff, thats it.
Does anybody else have a problem with my version? |
works perfect now m8 - you even fixed the rar problem.
If a rar is the only attachement it now displays no thumb displayed pic :) well done m8 |
i second that! works great! thanks a lot
|
I installed Delphy's version also, and it seems to be working right.
|
Doesn't work here, all post dissapear when I've installed the hack, it seems to be a problem with the forumdisplay.php modification. I've tried the Dechevious and the Delphy variant, but none works. Any suggestions? Best regards
|
Quote:
|
gkar,
Make sure you start from a fresh forumdisplay when installing my version, don't start from an existing thumbnailed forumdisplay base. Also make sure you have the updated txt file above |
Great hack!
Sadie Frost : thanks for your code, worked great |
Ug oh.. just noticed that the 2 forums I want this to work in are showing thumbs, but so is one forum I don't want to show thumbs in...
anyone have this problem? It's just one extra forum but it doesn't make sense. Triple checked the #'s in forumdisplay.php... using the code above for "no default post icon" but have tried enabling the icon and using the stock code and the modified code, no change.. Forum number's are 42 and 95 for the ones i WANT it to work in, and 2 for the one that I don't want thumbs to be displayed. Is there a possibility strpos is matching the #2 from 42 with the forum # 2? PHP Code:
|
alkatraz, yes thats what happening.
If you want to still use the original hack replace the code you have with: Code:
$displaythumbs = false; |
Delphy, thanks but I have the same problem, I've installed this hack:
Quote:
|
I have this hack fully functional on my site which you can see running here.
http://www.scifi-meshes.com/forums/forumdisplay.php?f=6 Using conditionals I was able to add "ads" column in specific forums, that's not part of this hack. I've also modified this code so that the image shown on forumdisplay links to the thread NOT the attachment. I found this more useful. Below you will find a copy of code I used to link to THREAD and not the attachment - threadbit template: Code:
<a HREF="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]"><img src="attachment.php?attachmentid=$thread[attachmentid]&stc=1&thumb=1" border=0></a> Aceman |
Delphy: works perfect! thanks!!!
Is there a way to strip ' and " from the title? I put up a note saying not to type those but my members can't read apparently and keep getting errors. (when the script ads the forum info to the db) |
alkatraz,
Do you mean when they add posts in those forums, or what? I'm sorry I don't know what you mean... Aceman, yeah I find linking to the actual thread much better too :) |
When the script creates a new thread in a forum,
PHP Code:
I'd like to process $ad_title (the var. i've used for the title) to strip out ' and " or any characters that could cause a problem. doing some research into it, the trim function might do it http://ca.php.net/trim Think this would remove ' ? How would I remove "? trim($ad_title, " ' "); |
alkatraz,
Neither mine nor the original hack contains that code, so you're looking at a problem which isn't related to this thread. What you probably want, btw, is $ad_title = html_entities($ad_title, ENT_QUOTES) Hope this helps |
lol wrong thread, my bad!
forgot i was dealing with this thread: https://vborg.vbsupport.ru/showthread.php?t=66082 (which is a perfect addition to this thumbnail browsing script) |
Quote:
You might want to move the image display into a template conditional if you don't have attachments enabled for guests. Otherwise your page becomes a column of red Xs separated by the occasional THUMBNAIL NOT AVAILABLE. (log out of your forum and check your link) Regards, Matt |
Thanks for the heads up Memobug. I'll use a if not registered conditional to remove the thumbnail column or something.. haven't figured it out yet. :)
I guess it would have helped to logout and see what the visitors see. Aceman |
MemoBug -
I fixed this oversite by modifying the could to see if the member/guest is registered or not. IF they are not the message, "Only Registered Members can view thumbnails" shows, IF they ARE the thumbnail shows up. This is the code for the <TR> that I used. This is just the code for the table cell that shows the thumbnail. Code:
<td class="alt2" align="center" valign="middle"> Aceman |
Dear Aceman,
The conditional looks like it is working well. I think rather than the repeated text you might consider an icon of some kind with an alt text that says "Only members can view thumbnails" it would clean up the layout a lot. Dear Dechevious, You might want to add this behavior (broken thumbs if you are logged out) to the known behaviors list. Regards, Matt |
Heya,
The hack works great, but I have 1 weird issue...if a new post is made, the thumbnail doesn't show up, even though it's attached, it shows the 'no thumbnail available'. If I rebuild the attachments after posting it shows up fine. If I attach a attachment to an existing post it shows up fine, without rebuilding the attachments. Any ideas?? |
Thanks aceman for the code, now it works but with a little change.
This code PHP Code:
PHP Code:
Thanks for the hack guys. |
HI. Sorry I'm a little lost...are we installing the Dechevious hack or is there one that Delphy has modded that we are using?
Thanks. |
I've a little problem here, too:
The hack always displays the last attachment of a post, not the first one. Strange, isn't? |
I used the code to build up a simple gallery, but changed it so, that allways five thumbs are displayed in one row. Now i'm checking how to change the templates, so i can use this hack completly as a gallery.
|
I love this hack. The thumbnails don't show up in search results, but I'm not too concerned about that.
|
Quote:
Regards, Matt |
Has anyone an idea, how to integrate the condition $displaythumbs in postbit?
|
Here, that's what i've got so far. What do you think of it?
(it's a german site, but i think for showing it, it's enough, isn't it?) http://www.scifi-fan.net/forumdispla...=60&styleid=19 |
I think it's very interesting and that you're on to something Harald. The page is too wide (too many columns) for your page layout though.
Regards, Matt |
Yup, but that's because of the size of the attachments. It's no problem to set the columns to 3 or 4 (or set the size of the attachments down).
I'm not finished yet, as i want to change the templates a little bit further. Mostly of adding to the hack of Delphy is template work. There is only some very simple PHP-work to do. |
This is, what it looks like, with size of thumbs set to 140 (see attachment).
I still trying to find out, how to change the layout for showthread-template, cause i don't have $displaythumbs in showthread.php. I need it for checking only, if i'm in the gallery or not. Any ideas (i'm not the expert in PHP i have to say).? |
Found out how i had to check it. So now i can use special-templates for the gallery.
|
Anyone interested in making this hack into a gallery?
|
Actually, I would :)
|
O.k., i'll write it down and post it later on this day.
|
THis hack is awesome!! thanks.
I would love to see images in the search as well and the gallery idea sounds amazing!! Thanks for all your hard work ;) |
O.k., i think, i've got it so far. :nervous:
I included all files in a zip-files, including an image for the upload-button. This hack isn't still finished, i'm trying to find out other things to do, so be patient. I hope you like it. Edit: Included a screenshot, how it looks like now. |
Quote:
|
All times are GMT. The time now is 06:17 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|