Log in

View Full Version : Full Photopost Intergration


Rampag33
04-21-2004, 06:22 AM
Ok I know its out there but I have let to find documentation about how to fully intergrate vb3 with photopost.

I want the one that actually combines the 2 databases into 1.

Also the use of vbulletin templates would be good, much better then using the tmpl files for photopost.

Thx in advance.

sabret00the
04-21-2004, 07:00 AM
Ok I know its out there but I have let to find documentation about how to fully intergrate vb3 with photopost.

I want the one that actually combines the 2 databases into 1.

Also the use of vbulletin templates would be good, much better then using the tmpl files for photopost.

Thx in advance.
you can set photopost to use the same database as vB and as for the templates, that's been released on www.photopostdev.com

lasto
04-21-2004, 10:39 AM
photopost integrates with vb3 quite well

all u do in the config file for it is change the databse name twice to the same databse as u r using for your vbull board.Then it installs in same database.There is also addons that will allow u to have last X pics on forum Index as well as the excellant Photopost Popup Hack which is released on here as well.

jluerken
04-21-2004, 01:22 PM
photopost integrates with vb3 quite well

all u do in the config file for it is change the databse name twice to the same databse as u r using for your vbull board.Then it installs in same database.There is also addons that will allow u to have last X pics on forum Index as well as the excellant Photopost Popup Hack which is released on here as well.
You can integrate 4.7j but its a lot of work.
There are some smaller things you have to change which will cost you hours to find out and hours to test.

Version 4.8 will come with an option to use all vb3 styles if you have multiple on your site. If not 4.7 will already work fine after some changes (see above :D )

lasto
04-21-2004, 01:52 PM
aint hard to integrate - it throws up quite a few errors during install but i got one of my admins to take a look and 5 mins later it was all sorted.

jluerken
04-22-2004, 06:37 AM
aint hard to integrate - it throws up quite a few errors during install but i got one of my admins to take a look and 5 mins later it was all sorted.


5 mins? unbelieveable :D
Give me the link and I will take a look at it if you want.
At the moment I'm so deep into this that I know nearly all small problems :D

MPDev
04-22-2004, 07:17 PM
There is an integration FAQ on the PhotoPost support forums that make intergation pretty easy. As for the modifications, those aren't too hard to install either under most circumstances.

4.8 is exciting for the themes integration with several forums.

d3nnis
04-23-2004, 12:16 AM
Photopost comes with a file header_inc.php (this file can be used to integrate vb and photopost)

P.Jackson
04-24-2004, 03:01 PM
but how do you get it to call the header_inc.php i tried :(

sabret00the
04-24-2004, 04:02 PM
open the header_inc.php and read the contents.

Rampag33
04-24-2004, 06:49 PM
h just doing the header-inc.php file works like a charm

but having a problem with cookies it seems. Each one has to be logged in seperately.

also PP and VB3 have tthe same cookie prefix and domain and have the "/" as the dir.

spence2
04-24-2004, 07:04 PM
aint hard to integrate - it throws up quite a few errors during install but i got one of my admins to take a look and 5 mins later it was all sorted.

Since you didn't actually do the fixing, should you really speak with such authority about how easy it was?

lasto
04-24-2004, 07:14 PM
Since you didn't actually do the fixing, should you really speak with such authority about how easy it was?
since mine is working do u have the authourity to question me about it :0

i was there when it was integrated and it took about 5 mins all in all so whats wrong with saying that.

@Rampag33 i have the cookie problem as well - here is how to semi fix

log out of your board - log into the gallery with your username and pass from the board.
Now go back to board log in and the gallery works fine.

Seems u need to log into gallery first not sure why though.

sabret00the
04-24-2004, 07:23 PM
the cookies problem normally only resides in subdomains

MPDev
04-25-2004, 12:57 AM
Check the FAQ - your cookie prefix should be set to "bb" if you use the vB default. Make sure both directories can read your cookies (path "/" and domain = "" or ".domain.com").

Getting the cookie setting right is critical to making sure both systems can read them.

Rampag33
04-25-2004, 01:57 AM
Check the FAQ - your cookie prefix should be set to "bb" if you use the vB default. Make sure both directories can read your cookies (path "/" and domain = "" or ".domain.com").

Getting the cookie setting right is critical to making sure both systems can read them.


Yeah did all that still didn't work. Still made me log in serprately to both. Even tried different browsers. PP.com and PPdev.com didn't help wourth anything. Atleast I can get real support and help here.

I read something before that becuase of VB3 new cookie encoding sysstem it made stuff more difficult.

MPDev
04-25-2004, 01:31 PM
> PP.com and PPdev.com didn't help wourth anything.

Did you post a question on PP?

BTW, PPDev.Com is not a support site.

> Atleast I can get real support and help here.

I assume thats your way of telling me you don't want my help.

lasto
04-25-2004, 11:44 PM
ive got same problem as u lot

so long as i log out of board and log in galley everything is fine and my cookie prefix for vb3 is "" so unsure wot problem is but at least it works and thats the main thing

Rampag33
04-26-2004, 03:09 AM
MPDev you help is very wanted just this is fustrating to me and my members. Also I know PPDev.com is not a support site although the intergration is modification.

I heard it was a problem becuase of the new hash encoding used by VB3. When using VB2 I didn't have this problem.

The Geek
04-26-2004, 07:50 AM
In all fairness I have to agree that the integration is very disapointing. Yes I have gotten it to work OK... but it did take awhile and as with the others, you have to log into photopost because of the cookie problem.
Also, once I have done that, I can log into my vB board as a test users, go into photopost, and it comes up as me being logged in as the previous user (big security problem).

Any help with this situation is deeply appreciated and I can whole heartily accept I may have done something wrong, but in all fiarness I am more ofay with this stuff than an average user (I sorted out your popup photopost wysiwyg integration hack on this site) and I have spent many many hours attempting to sort the problem out.

The Geek
04-26-2004, 08:09 AM
BTW: adding bb to the prefix did nothing. Looking at the ini, it says to only add the prefix with ubb and phpbb... not vB

Thanks

MPDev
04-26-2004, 11:16 AM
The issues are not a PhotoPost issue - its how your setup is configured that is the issue. Cookies are picky - if PhotoPost can read its own cookie and vB can't, then it wont work. Same in reverse - thats not a PhotoPost limitation, it's a cookie limitation.

If you aren't using the right License Number, then the encryption won't match vB3 and subsequent verifications won't work either - again, not a PhotoPost issues. vB3 added the License Number to the password hash - if you don't enter the right number, then the encrypted password is saved wrong and PhotoPost cannot verify the id.

As developers there is only so much we can do, for integrations like this its up to you to do some basic checking and configuring.

1) In the header of your vB index.php file is a comment section that looks like this:

/*================================================= =====================*\
|| ################################################## ################## ||
|| # vBulletin 3.0.0 - Licence Number 99999999
|| # ---------------------------------------------------------------- # ||
|| # Copyright ?2000?2004 Jelsoft Enterprises Ltd. All Rights Reserved. ||
|| # This file may not be redistributed in whole or significant part. # ||
|| # ---------------- VBULLETIN IS NOT FREE SOFTWARE ---------------- # ||
|| # http://www.vbulletin.com | http://www.vbulletin.com/license.html # ||
|| ################################################## ################## ||
\*================================================ ======================*/

This is where you can verify your license number that PhotoPost needs to encrypt the password. Enter the number that is in your file in bold into the config-inc.php.

2) Cookie Paths. Check your vB cookie settings, if you run vB in a directory like /forums and PhotoPost in a directory like /photopost; then you need to configure both applications to make the cookies available to both applications. You do this by setting the cookie path to "/" in both applications.

3) Cookie domains. If you have both applications on the same domain (like www.yoursite.com), then you can set this to blank "". If you run forums.yoursite.com and photos.yoursite.com, then you need to set this to ".yoursite.com" so that the cookies can be read across domains.

4) Cookie prefix. vB3 uses a default cookie prefix of "bb"; if you specify a different prefix, then you need to tell us whats different about it.

If you need to check why your system isn't working, I suggest referencing your Cookie Manager (if you use Mozilla, IE sucks). Logout from both PP and vB3. Login to PP and check what cookies are created, the values and the paths. Logout. Login to vB3, check those again. 99% of the issues can easily be traced in this manner as you will often find the paths not set properly or the prefixes.

If the password hashes don't match, then the issue is of your license number. 8 out of 10 integration issues are people using the wrong License Number. I'm considering writing a script to parse the license number out (or try to), but checking your index.php file is the easiest way.

Keep in mind, once the integration works you still need to modify your navbar and footer paths. vB3 uses relational paths and if you are using the navbar header in PhotoPost, then the header needs to know where to find the vB3 files.

I am more than happy to help you get your setups working properly, but there is no need to be rude. We have a competent and professional staff at PhotoPost.Com who monitor the forums 7 days a week and provide an extensive FAQ and conversion script to help people along the way. It isn't 100% automatic as you might like, but we do try our best to make it as easy as possible.

If, after you've done all this, and you still want my help - PM me your URL and a login id to test. I will check out the values myself and offer any suggestions that I can identify.

Rampag33
04-26-2004, 07:43 PM
Finally making lead way. Its the license number. Wierd as tho its not working.
The license number is the same on all the files and I even made sure it was the same in the session file on vb3. Still the passwords hashes are different. Atleast now I know what the problem is, just have to figure out how to fix it and then everything will be alright. And I know its the right one since it works with the login as user mod. Maybe there was a Photopost upgrade that fixed this problem.

obsidian
04-26-2004, 07:59 PM
I had no problems getting the integration to work with my Vbulletin/VbPortal site. I used the instructions specified on their site including the ones regarding how to get your themes working with photopost. Took a couple hours to get everything nailed down but nothing to complicated.

Rampag33
04-26-2004, 08:58 PM
well everything is fine basically except for the seperate logins

MPDev
04-27-2004, 12:44 AM
I've never encountered an installation where the hashes didnt match with the right license number. May sound obvious, but make sure there are no spaces in the key you entered. Also, clear logout of both sites and make sure you don't have any cookies (just to be sure).

sabret00the
04-27-2004, 08:23 AM
Photopost would be like 10 times better if they had the template system right :( so much needless php :(

SVTBlackLight01
04-27-2004, 09:40 AM
Photopost would be like 10 times better if they had the template system right :( so much needless php :(

Exactly what I was thinking.

MPDev
04-27-2004, 11:04 AM
A matter of opinion I suppose - putting conditionals in <> or outside of echo's is simply a matter of preference. The main difference would be that our templates don't require a preprocessor.

(Not that there is anything wrong with using a preprocessor, just not my preference).

sabret00the
04-27-2004, 12:14 PM
once you rmeove the php then the templating takes on a life of it's own, much in the same fashion as all the vB skinning sites, i think it's worth the consideration, i know me myself as a customer of PP would prefer to be able to read the templates, otherwise theirs no point in having em.

MPDev
04-27-2004, 01:34 PM
once you rmeove the php then the templating takes on a life of it's own

Except vB hasn't removed php from the templates - it's just created its own template language which is then preprocessed before being displayed:

<if condition="$bbuserinfo['userid']">
...
</if>

More information: http://www.vbulletin.com/docs/html/main/template_conditionals

I'm just saying different strokes. Not everyone codes their products to a "vB standard". You might prefer a template with its own syntax while others might prefer a template made of of php.

sabret00the
04-27-2004, 02:09 PM
the conditionals were put their by popular demand after having a full version of no php in statements over than variables such a $catergory etc

i understand what you're saying and completely where you're coming wrong, so don't get me wrong, i'm just saying as a customer who's had your product going on a years i'm still unable to make heads or tails of the templates :(

but alas, i doubt i'll change your mind ;)

MPDev
04-27-2004, 02:12 PM
I've modified my remarks to be more explicit - vB has its own template language with is preprocessed before being displayed. Our templates are similiar, except we use native php conditionals.

It's just syntax - the results are the same.

Rampag33
04-27-2004, 05:42 PM
Well I fixed the problem. It had nothing to do with me or settings, it was currupt files that was doing it. Now everything working just fine.

MPDev
04-27-2004, 05:58 PM
Excellent! Glad to hear it.

The Geek
04-28-2004, 12:28 PM
Thanks again for your help. MPDev got me sorted straight out.

(was the missing bb cookie prefix, customer number instead of license number, and my login header was mispointed.)

Works a treat now :D

MPDev
04-29-2004, 08:06 PM
You're welcome - it's usually something minor, hopefully my post will point people in the right direction.

allandk
11-19-2004, 10:16 AM
Hi,

I have a problem with logins on our site. Our site is based on vbAdvanced, Vbulletin and photopost. The problem occurs when a user

signs up to become a registered user. After finishing the signup-process, the user is automatic logon to vbulletin, but not photopost.

The user has to log off and then logon again to get access to the images in photopost. This is giving us a lot of supporttickets and a

lot of wated time.

I have been reading this thread carefull, and tried a lot of things to solve the problem, but without any luck.

I have checked that the vb licensnumber is listed correct in photopost.

The cookie settings are:

vb cookie path: "/"
vb cookie prefix: "bb"
vb cookie domain: ""

pp cookie path: "/"
pp cookie prefix: "bb"
pp cookie domain: ""

When I log in to photopost, I get a cookie named 'bbsessionhash'. If i log out and closes the browser and log in to vbulletin, I stille

get a cookie named 'bbsessionhash'. The host and path information in these cookies are the same but the sessionhash is not.

When I log in to vbulletin I get two cookies named 'bbuserid' and 'bbpassword'. I do not get these cookies when I log into photopost.

I think I got a cookieproblem, but I'm not sure, and if that is the case, I do not know how to solve it. Can anyone help?

obsidian
11-19-2004, 11:41 AM
I had the same problem for a while. Double check your licence number that you enter into photopost. Make sure you put in your licence number not your member number.

allandk
11-19-2004, 06:29 PM
i have the correct license number

steve3402000
11-21-2004, 02:57 AM
can photopost be set up like this?

http://www.airliners.net/search/photo.search?newonanet=aircraft