It would seem that integration with vB3 is the #1 support issue here on PhotoPost.Com, so I am writing this FAQ to help guide you through the process and help you determine what settings need to be adjusted.
It's important for users to realize that in order for PhotoPost to communicate with
vB you have to make some changes to both PP and
vB so they can.
What are all these cookie settings and what do I need to set them to?
PhotoPost allows for you to configure the cookie_domain, cookie_path and a cookie_prefix. Each of these three things
must match your vB3 cookie variables so that the cookies can be shared between applications.
A common problem is for vb3 to be installed into a /forums directory while PhotoPost is installed in /gallery and the cookies cannot be shared. This is because
vB is creating cookies in /forums and PhotoPost in /gallery and neither can access the others.
On
PhotoPostDev.Com we use the PhotoPost config-inc.php settings:
$cookie_path = "/";
$cookie_domain = "";
$cookieprefix="bb";
and in the vB3 Admin Options under Cookies and HTTP Header Options:
Path to Save Cookies:
/
Cookie Domain:
<blank> PhotoPost says I am logged in, but when I go back to the main page I am not logged in.
vB3 saves your password using your License Number as a key for encryption. If your license number is incorrectly set, then your cookies will not be properly created.
To find your vB3 license number, look at the top of your index.php file for vB3. The fourth line will look like:
|| # vBulletin 3.0.0 Release Candidate 3 - Licence Number XXXXXXXX
The XXXXXXXX is your license number and should be entered in your config-inc.php as:
$vblicense = "XXXXXXXX";
I upgraded from vB2 to vB3 and now my users cannot login.
If you were running on vB2 and have upgraded to vB3, you have to tell PhotoPost you are using the new user system. Don created a handy
conversion utility to help you with the process.
I cannot get my vB3 headers to work.
PhotoPost includes a file called header-inc.php which is used to integrate your
vB headers. There is a new section for users of vB3.
If you upgraded from vB2, you will need to comment out the vB2 section and the uncomment the vB3 section.
If you are doing a new install, then you would uncomment and modify the vB3 section.
There are a couple lines you will need to edit, the two path variables:
$vbpath
$pppath
Both of these variables are full server paths to your vB3 forums directory and PhotoPost directory.
There is also a stylesheet variable just below that which needs to be editted.
My headers show up, but the images are all showing as Red X's
This is because
vB uses relative paths for your images. You will need to update your vB3 header to use absolute paths.
Using your Style Manager edit your header template, find:
a href="
/$vboptions[forumhome].php
and for each of the URL's used you will need to update your path. In this case my forums are installed in the root directory, so I added the
/ to the path. Simply prepend $vboptions[bburl]/ in front of every url relative link.
a href="
$vboptions[bburl]/$vboptions[forumhome].php
You will need to update all your links to use the absolute paths as PhotoPost is not installed in the same directory as
vB and so PhotoPost needs to know where to follow the links to.
Also, check your headinclude template:
var IMGDIR_MISC = "$stylevar[imgdir_misc]";
And either put a
/ in the path or change your
vb configuration to point to /images.
Okay, I've done everything you say but still cannot login.
1) Check your database settings.
2) Double check your cookie and license settings.
3) If you want to see just what your cookies are doing, then logout from both
vB and PhotoPost. Login to vB3 and using a Cookie Manager (I use Mozilla), look at the cookies created for your domain. Note the domain the cookie is using and the cookie values. Logout from vB3 and go to PhotoPost and login. Check your cookie values and note any differences between the two.
Having trouble getting css files to load when stored as files instead of inline!!!
Open global.php and find:
define('STYLEID', $style['styleid']);
Underneath add this
if ($vboptions['storecssasfile'])
{
$style['css'] = str_replace('clientscript', "$vboptions[bburl]/clientscript", $style['css']);
}
Please do not post your questions/issues in this thread - this is just for informational purposes and will be updated accordingly; replies to this thread may be deleted.