View Full Version : Search box width issue
May 25th, 2012, 05:43 PM
Just upgraded to 8.03 on First Generation Monte Carlo Club photo gallery - First Generation Monte Carlo Club Photo Gallery (http://www.firstgenmc.com/photopost) It is integrated with Threads 7.5.6 the problem I am having is the search box is way to wide on the sidebar with some of our forum styles. Any idea where to fix it. I read about being able to turn the sidebar off and it is supposed to show up in the menubar like it used to, but I like having the random images and what not on the sidebar...
Chuck I can give you admin access if you need it.
May 25th, 2012, 06:11 PM
Well in your threads7.php obviously we do style matching against default ubbthreads style we map that to the ubbthreads style class ubbcode_body
I would suspect that in some of your custom threads styles that style class has some large number in it I think 500px wide.
You can test changing the style class match in threads7.php in your gallery/forums subdirectory to form-input the line that has ubbcode_body.
May 25th, 2012, 06:23 PM
Hmm This is the only line I can find that looks like what you are talking about...
$Style['blockquote'] = "ubbcode-body";
Is that what I need to change to form-input
May 25th, 2012, 06:42 PM
OK I fixed it in the UBB style. It had a different setting than our default one did.
May 25th, 2012, 08:21 PM
You can always also check to see if all your styles have form-input class and if they do you can change the master declaration in your threads7.php file and see if that helps.
If form-input is in all styles I can update the master integration if that works. I wrote threads7 back when it was new.
June 2nd, 2012, 10:47 AM
You worked on threads, I did not know that :) I need to pick your brain on a random image script that I use for showing random images on the main threads page. It works great pulling 5 images, because you wrote it. I want to make it only pull one image and show it all day on the main page for our site.
June 2nd, 2012, 10:54 AM
Michael and I where real big code moders on the Threadsdev site way back like 2003-2004 when PhotoPost Pro was first launched as a PHP program. We both used Threads before it went downhill and we jumped ship to vbulletin. I guess anywhere else I was omegatron and you may indeed be using some old hack which probally was released for what Threads 6 series or maybe even 5.
You can check out the mod corner here there are random photo blocks you can toy with you will have to adjust them to threads style formatting etc
Other than writing a Threads 7 integration module a few years back I have not peeked too much with that forum code.
June 2nd, 2012, 11:12 AM
You can try adding this to any query take note to edit it to suit your needs
AND date > UNIX_TIMESTAMP( DATE_SUB(NOW(), INTERVAL 24 HOUR)
June 6th, 2012, 07:00 PM
Ok I got a random image working, but where in this statement do I add the above to make it change once a day?
$result = mysql_query("SELECT id,cat,bigimage FROM pp_photos WHERE cat IN (571,572,573) AND width > 799 ORDER BY rand() LIMIT 1" ) or die(mysql_error());
June 6th, 2012, 08:08 PM
How about after your other AND statement in that query or before it ;)
June 6th, 2012, 08:40 PM
I had tried it after the > 799 and got errors instead on the picture...
June 6th, 2012, 09:12 PM
maybe something in your edit there should be nothing wrong. My suggestion is to try in phpmyadmin sql window till you get it.
vBulletin® v3.8.1, Copyright ©2000-2014, Jelsoft Enterprises Ltd.