vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=5)
-   -   Photopost to vb/Home Intergration v1.7 (https://vborg.vbsupport.ru/showthread.php?t=53539)

gmarik 06-19-2003 09:12 AM

PixelFx, can't wait. Friday or Saturday?

Russ_T 06-19-2003 10:38 AM

I can't wait either :) Hopefully it might work with my vBulletin 2.3, vBHome 4.2 and Photopost 4.0 combo :)

Smoothie 06-19-2003 04:10 PM

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

PixelFx 06-19-2003 08:12 PM

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

Guidster 07-04-2003 08:40 PM

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!

PixelFx 07-04-2003 11:31 PM

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.

:)

Intex 07-05-2003 01:20 PM

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.

PixelFx 07-10-2003 12:09 AM

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.

:)

Intex 07-10-2003 05:59 PM

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.

PixelFx 07-10-2003 08:28 PM

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

Intex 07-11-2003 04:06 AM

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.

Intex 07-11-2003 04:29 AM

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"

PixelFx 07-12-2003 06:08 AM

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:


$Url_Path = "http://www.shukenja.com/gallery/";        //URL of your photo album, where the index.php is (with / at end)
$data_dir = "http://www.shukenja.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 = "data/";                                    // path to the data directory where pictures reside RELATIVE
                                                      // to the location of THIS file (used for checking thumbs)

rather than use path names I've used full site url etc... for linking the file up.

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 ;)

Intex 07-12-2003 08:40 AM

PixelFX - I can confirm those don't work on my windows system.

PixelFx 07-12-2003 11:14 AM

wonder what is missing, anyone else have ideas?

Intex 07-12-2003 11:59 AM

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?

Intex 07-13-2003 09:00 AM

Anybody?

PixelFx 07-13-2003 09:31 PM

Quote:


Russ_T has just replied to a thread you have subscribed to entitled - Photopost, vBulletin & vBHome Intergration v1.5 - Updated - in the Beta Hacks forum of vBulletin.org Forum. You can now reply to the thread by replying to this message. All you need to do is to make sure this code appears in the e-mail subject: [thread-53539-]

Here are the contents of the post:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Heya,

Could you do a mini guide on how to upgrade from the previous version and changes please?

Thanks
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Russ_T, if you have version 1.0 installed it should work fine when you upgrade to photopost 4.0.1 .. a lot of the changes in 1.5 are just clean ups of code, etc.

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 :)

Intex 07-14-2003 04:58 PM

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.

PixelFx 07-14-2003 06:39 PM

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 :)

Intex 07-14-2003 06:43 PM

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.

Alien 07-15-2003 06:14 AM

Works perfectly, thanks so much for putting together some nice clear instructions!

-Jason

PixelFx 07-16-2003 06:28 AM

your welcome :) Alien,

Mickie D 07-20-2003 11:28 AM

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 :)

Russ_T 07-20-2003 12:38 PM

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

Alien 07-25-2003 01:15 PM

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... :(

Intex 07-26-2003 10:49 AM

PixelFX - I've still not worked out the issue with the windows path. Have you (or anyone else) been successful with this yet?

Mickie D 07-26-2003 02:02 PM

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 :(

PixelFx 07-26-2003 05:57 PM

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

Mickie D 07-26-2003 08:41 PM

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 :(

PixelFx 07-31-2003 01:37 AM

well as far as I know if your on linux, this script is pretty stable.. I'm working on an even more intergated system

gmarik 08-02-2003 11:12 AM

Pixel, have you hacked your PhotoPost as well and if so, what exactly, can you tell it?

Mickie D 08-03-2003 12:24 PM

Quote:

07-31-03 at 03:37 AM PixelFx said this in Post #71
well as far as I know if your on linux, this script is pretty stable.. I'm working on an even more intergated system
sorry i was not clear :(

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

PixelFx 08-19-2003 06:50 PM

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 :)

Intex 08-20-2003 03:54 PM

PixelFx - did you get anywhere with the windows integration? I'd gladly pay for someone to get this sorted.

PixelFx 08-20-2003 06:08 PM

Intex what windows os are you using? I'm toying with the idea of setting up a test board on my xp box...

Intex 08-21-2003 04:34 AM

I'm using Windows XP as well.

gmarik 08-23-2003 07:34 AM

It's getting better and better. Thank's, Pix!

Intex 08-24-2003 07:21 AM

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 :).

PixelFx 08-28-2003 08:23 AM

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
  • Page Generation 0.01289 seconds
  • Memory Usage 1,823KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete