![]() |
Hi Delphy,
What you're suggesting sounds interesting. I would be interested in seeing it. What I did, to enable USERS to chose the thumbnail option or not is to create a copy of the style with thumbnails turned on. That way the user can make the selection. People on broadband really like it. The ones on dialup sometimes prefer not to load extra images. So I think it's a feature that might best be in the hands of the user rather than the admin. However, one thing I could really use would be the capability to show fewer threads per page if its a thumbnail view, and more threads per page in nothumbs. That would help to normalize the scrolling and load time. Regards, Matt |
memobug,
What I did was set a limit of 10 threads if viewing thumbnails, or the normal 25 if viewing forums without thumbnails. I agree with you on the user selectable thumbnails though - especially in the New Posts search screen. I hadn't considered a style becuase it would still do the mySQL queries to get the attachment ids even if it's not showing the thumbnails, unless you hardcoded the styleid into the php and checked against that. To change the number of threads on a forum that has thumbnails: Edit forumdisplay.php Find the section where you define forumids Code:
$forumids = array(41, 43, 44, 45, 46, 47, 48, 49, 69, 70, 40, 50, 51, 52, 97, 98); Code:
$perpage = 10; |
Quote:
|
this is really a great hack -- but i'd love to know how to do it in the search results also. my php knowledge is fairly minimal -- any ideas?
|
sicloan, works fine here. Might be becuase of some small other changes I made.
Bent, you need to alter search.php Find: Code:
// ############################################################################# AFTER this add: Code:
// Delphy's Search Thumbnail Hack |
thanks a million -- that's really great stuff there. it seems to work, but unfortunately it's only displaying the nothumb.gif image -- as if there was no image in the thread (even though there is)
other thing is that that codeblock was around 1200 something, not 2518 -- must be installed mods on your search.php or something my codeblock in search.php looks like this: PHP Code:
|
I have installed, but i can't see anything.
Must I change something in the admin cp ? |
skokari,
did you change the forum ids to the same ones you want thumbnails to appear in? bent concepts, hrm I haven't modified search.php that much at all... so it's weird that yours is on a different line. What version you running? 3.0.7 here |
I'm running 3.07 also.
i hadn't changed it at all from the base unmodified version. what it's doing is displaying the "no thumb" image for all the items in the search. is that code change the only thing that needs to be done in search.php? is there a specific version of this hack that needs to be used in order to get the search to work? i just changed the hack code i was using to the December 20th, 2004 version. thanks |
Hrm
It might be your $forumids = array(1,2,3,4,5,6,7,); line. Try taking out the last , in that. What I found handy when developing the hack was doing this: Code:
if ($bbuserinfo[userid] == 1) { Obviously turn it off before you go live :) |
All times are GMT. The time now is 11:13 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:
|