![]() |
PixelFx, can't wait. Friday or Saturday?
|
I can't wait either :) Hopefully it might work with my vBulletin 2.3, vBHome 4.2 and Photopost 4.0 combo :)
|
PixelFx-
Actually, you can choose a specific category, instead of excluding all but one category. This is good for my site, where all I want is one category to be displayed |
Vbhome 4.2 / Photopost 4.0 / vb 2.3.0 work well together... I just did a clean install and everything seems to be working well.
I just have to make install script, with some easter eggs ;) Demo: updated http://www.pixelfx.ca/index.php |
Here is what I did to suit my needs running 2.2.9, Photopost 4.0 and vBPortal:
On the vBportal homepage, I simply added a center block, selected php script as the type and then added the following line: include("http://www.allthingsmoto.com/photopost/thumbincluder.php"); I decided to add the thumbnails to the forumdisplay template in lieu of an already busy forum home page, so I added the following to forumdisplay.php: // +-------------------------------------------------------------- // | Photopost to vbhome Link // +-------------------------------------------------------------- $templatesused.= 'home_gallery'; eval( '$gallery = "' . gettemplate( 'home_gallery' ) . '";' ); This is identical to what Pixels instructions said to add to the index.php of forumhome. I created a custom home_gallery template, added the postthumbnail line in the phpinclude template and then called the $posthumbnail from the home_gallery template. Works like a charm! If you want to see yet another example of these modifications, you can visit www.allthingsmoto.com for the vBportal integration and http://www.allthingsmoto.com/forums/...hp?forumid=114 to see the thumbnails on my forumdisplay. Photopost and VB are an awesome pair indeed! |
yup :) I just updated the install doc I'm working on to include vb 2.3.0 and photopost 4.0.1 :) should be up soon.
:) |
PixelFX - great hack!
How easy would this be to implement with say myvbindex which is another cool homepage hack by Tigga on vb.org. I'm also running photopost 4. Thx. |
HACK UPDATED IN FIRST POST, v1.5 posted, works with vbulletin 2.30, photopost 401, and vbhome 4.2.
Things to do, Working on Txt File Install, for the above, txt file install for vbindex, vbportal, support. :) |
Hi PixelFX - I tried this for myvbindex under advisement and everything went according to plan apart from when you actually view the homepage it shows 'QUERY FAILED'. I believe this is due to the relative path being incorrect for the images and data directory.
I'm on a windows system and tried various paths. My apache install is c:\program files\apache group\apache\htdocs (htdocs is the web root). Any ideas on what this should be? Thx. |
I've tested this on linux box. But not on windows. Possible sugguestion would be to try
your relitive path as "c:\program files\apache group\apache\htdocs\forum" or how ever it's setup on your system. do you have phpmyadmin setup on your system? I've been debating on setting up an apache test site on my local host as well. If I do then I'll update the txt file for windows as well. If anyone has a windows local box setup, can ya please post here as well. not sure if that helps but I'll message around with it on my xp system and see what i come up with :P |
PixelFX - yep I have phpmyadmin setup ona local system - so if you want to do any testing, just PM me.
I'll try some other path variations including the one you've highlighted above and let you know. |
OK, I've tried various variations for the path and still get the same 'Query Failed' error. My windows path to the gallery is:
C:\Program Files\Apache Group\Apache\htdocs\gallery The thumbincluder.php file is located in the root of gallery folder above. My configurations settings are currently set to: $Url_Path = "http://mysite.com/gallery/"; //URL of your photo album, where the index.php is (with / at end) $data_dir = "http://mysite.com/gallery/data/" ; //URL of your photo dir where those jpeg stored (with / at end) $images_dir =$Url_Path."images/"; //URL of your photopost images dir where default missing thumb image is stored (with / at end) $rel_dir = "C:/Program Files/Apache Group/Apache/htdocs/gallery"; // path to the data directory where pictures reside RELATIVE // to the location of THIS file (used for checking thumbs) //Database Setting //You must change these values in order to run this script //These value are not visible in the output page source $host = "localhost"; //Server Name $user= "removed"; //Username $password= "removed"; //Password $database="removed"; //Photopost database name or forum database name I've tried a variety of paths for the $rel_dir , including: 1. "C:\Program Files\Apache Group\Apache\htdocs\gallery" 2. "C:/Program Files/Apache Group/Apache/htdocs/gallery" (to make sure PHP is ok with the path) 3. "C:\\Program Files\\Apache Group\\Apache\\htdocs\\gallery" (which vB required for installation) 4. "C:\Progra~1/Apache~1/Apache/htdocs/gallery" (short name in case LFN's are causing the problem" |
Although I'm on linux this is how I have my thumbnail includer setup. Also I have the thumbnail includer setup in my gallery/root.
Code:
again it's not windows but you can see how I Have it setup... It works perfectly on my setup but I can't account for all systems, will try to help where I can though. if anyone else us using a localhost windows box/system for running their forum and use this hack, if you find a solution please feel free to post it here. Also if you use this hack please click installed on the forum ;) |
PixelFX - I can confirm those don't work on my windows system.
|
wonder what is missing, anyone else have ideas?
|
Is there any way I can do some troubleshoot to find out? Maybe turning on / creating some debugging within the script so we can see what paths its using?
|
Anybody?
|
Quote:
I'm currently working on a txt file, as long as your on linux your forums, vbhome and photoshop should work. Clean install or upgrading to new versions of vbulletin or photopost. This hack in it's current state should be compatable with vb2.2.x scripts. when vb3.0 goes gold I'll look at trying to make a version for that :) |
PixelFX - did you get anywhere with your windows test box. I can't figure this thing out and I'd really like this feature on the HP.
|
I haven't had much chance to work on it, still would have to setup mysql etc on the system which I've not had time to do yet... been a busy week :)
|
OK, no probs. Thx.
On a slightly different note do you know of any hack that lets the vB forum members know if a new photo has been uploaded? See my request here. |
Works perfectly, thanks so much for putting together some nice clear instructions!
-Jason |
your welcome :) Alien,
|
is it possable to add a photo uploads section to the post bit ???
ie Posts 3400 Member 1 Location UK Pic Uploads 23 <---or something like that under the avatar somewhere have it show how many pictures each member has added .. i think that will gr8ly increase the amount of pictures newbies and any other members will add :) let me know if this is possable please but thank you very much this hack is fantastic :) |
Hi,
I'm getting a query failed output but have no idea why, I'll look into it more but is there a common problem I might be having? Thanks |
For some odd reason, I noticed shortly after adding this that my page render times increased hugely.. I went up to 5.x seconds when I was under 1.. I removed it until I figure something else out... :(
|
PixelFX - I've still not worked out the issue with the windows path. Have you (or anyone else) been successful with this yet?
|
also the last bit of code for the php_include template
$postthumbnail = implode("", file("http://www.yourdomain.com/gallery/thumbincluder.php")); is thre no elseif ode you could use ??? because i have my gallery site on another domain and my gallery domain went down for 24 hours and all my members told me there was an error and i was taking ages to load :( maybe if you had php code where if the first url is unreachable then it would take another url to an image with GALLERY CURRENTLY OFFLINE instead of messing all the forums up :( |
I'm still learning php but will look into it,
I'm trying to get my code to show up with multiple Thumbnail includers on the same forum, with multi-ple catigories. showing up specifically. DEMO: http://games.shukenja.com/swg/index.php |
thanks very much i dont get any errors or any problems unless my other url goes down then the implode code gives about 4 errors.. and that really slows my site down .. but hopefully my gallery wont go down anymore :(
|
well as far as I know if your on linux, this script is pretty stable.. I'm working on an even more intergated system
|
Pixel, have you hacked your PhotoPost as well and if so, what exactly, can you tell it?
|
Quote:
there is nothing wrong with your coding :) it works fine but i have my gallery on another site (not the same as my forums) and when the gallery site is down because of the gallery site hosts then my forums get alot of errors from the other site being down but i suppose if you keep your gallery on the same site as the forums then it will be fine, but unlucky me has it on another site and if the gallery goes down then my forums might aswell be down aswell because the speeds are crazy slow and my forums get alot alot of errors :( hope that makes sense |
Updated first post, added text file, and cleaned up code a bit.. Working on more updated, tested with latest version of photopost and vbulletin 2.3.2, works great on my sites.
Demo: http://www.lxg.ca/index.php :) |
PixelFx - did you get anywhere with the windows integration? I'd gladly pay for someone to get this sorted.
|
Intex what windows os are you using? I'm toying with the idea of setting up a test board on my xp box...
|
I'm using Windows XP as well.
|
It's getting better and better. Thank's, Pix!
|
PixelFX - let me know if I can assist. I'd really like to get this operational and as I'd mentioned previously - I'm will to pay for it :).
|
Note to: Intex
I've been building my new graphics workstation the last few days, so haven't had a chance to setup my windows box, to text this script on it yet, but it is on my ta do list. Once I have update for windows varient, I'll post it on the site. ----------- Note to vb.org Members: As for linux version which is posted, what ya guys think? And any bugs or issues anyone finds please let me know. Thanks |
All times are GMT. The time now is 01:48 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:
|