![]() |
Quote:
|
Quote:
|
Quote:
|
Sure ;)
I use the following code: PHP Code:
ORDER BY rand() LIMIT 1 tells him to output a randomly chosen attachment. Together with the following conditional in the threadbit -Template it generates this beautiful gallery :) HTML Code:
<if condition="$show['threadicons']"> |
Okay I've been working on the problem of displaying images regardless of whether the first attachment is an image or not.
The solution I came up with is as follows: - Keeping the existing $threads SQL query, add the following into it: thread.firstpostid - Add the following: Code:
$displaythumbs = false; - I have to add 1 extra query per forumdisplay page, which is: Code:
// Added by Delphy to add proper thumbnails Find: Code:
while ($thread = $DB_site->fetch_array($threads)) Code:
$threads = $DB_site->query($sql_threads); Code:
$thread['attachmentid'] = $thumbnails[$thread['firstpostid']]; Hope this helps somebody, Regards Delphy |
any chance of a text file doingthe full install but with these modifciations added because not everyone has added teh 1st version
also m8 the demo on your site gives this error Unable to add cookies, header already sent. File: /home/forums/public_html/forumdisplay.php Line: 806 |
mhmm... nice hack! :)
but i have a "problem". the nothumb image is displayed but the thumbs are not displayed. get a red cross... where do i set the default icon via admincp? i don?t find the option... gd2+ is installed and thumbnails are on. |
lasto, I was probably modifiying it again :)
mhobelsb, using the actual proper hack or my one? |
ive removed the attachment hack and will wait for u to do yours delphy as mine is showing red x`s if a rar is added as an attachemnt and it deffos needs a fix
|
Okay I've written up a text file in the style of the original, let me know if something doesn't work.
Updated 29th December at 5pm GMT to fix table prefixes and add a line I'd missed out from my original. Should work now :) Regards, Delphy |
All times are GMT. The time now is 10:15 AM. |
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:
|