I'd like to integrate all of Photopost's products, especially Photopost v4.8.5 with vBulletin v3.0.3, without running amok with all kinds of errors and problems that other users, myself included, are experiencing.
Since there are a lot of users asking the same kind of questions over and over concerning this subject, I think that the documentation is not
explained quite clearly, i.e. the infamous PP_PATH error. The author assumes that everybody installs vBulletin at the root of the server while in reality, very few do.
Using my case as an illustration. I'd like to install both programs' databases separately (trying to keep everything simple).
MySQL Databases:
-------------------------------------------------
Photopost : mydomain_photo (dbprefix: pp_ )
vBulletin : mydomain_vbb (dbprefix: vb3_ )
--------------------------------------------------
Paths:
-------------------------------------------------
Photopost : /home/mydomain/public_html/photopost
vBulletin : /home/mydomain/public_html/vbulletin
--------------------------------------------------
URL Paths:
--------------------------------------------------
Photopost :
http://www.mydomain.com/photopost
vBulletin :
http://www.mydomain.com/vbulletin
--------------------------------------------------
Quote:
Assuming you have already configured your config-int.php file, you can modify the first section in inc_photopost.php and inc_features.php to customize your layout. Follow the instructions in the Configuration section for any options which you can set.
If you have PhotoPost and vB in different databases, you'll need to scroll to the bottom of the script and uncomment the mysql_select_db() command (on line 26) and insert your vB database name and uncomment the mysql_select_db on line 310 and add your vB3 database in quotes.
|
1.A/ In my case, should I uncomment (from the file inc_photopost.php) the mysql_select_db() command (line 26?), insert
mydomain_vbb (where ?, which line #?), and uncomment the mysql_select_db on line 310 and add
mydomain_vbb in quotes ?
Quote:
// If you have placed PhotoPost into a seperate database, you will need to
// uncomment these lines to connect to the PhotoPost database. It is suggested
// that you install PP into the same database as vB for better performance.
//
// If you use the same userid/password to access both databases, you don't need to
// uncomment the mysql_connect - this is only if you require different ids to access
// the PhotoPost database.
//
//$link = mysql_connect ("localhost", "$dbuserid", "$dbuserpassword") or die('I cannot connect to the database.');
//mysql_select_db ("pp_database")or die("Could not select photopost database");
|
1.B./ What do I do with the file inc_features.php ? Need I edit something in this file, i.e. insert
mydomain_vbb somewhere ?
Quote:
In your vB index.php file, you will need to add two lines under under these four:
// ######################### REQUIRE BACK-END ############################
require_once('./global.php');
require_once('./includes/functions_bigthree.php');
require_once('./includes/functions_forumlist.php');
include('./photopost/inc_features.php');
include('./photopost/inc_photopost.php');
|
2.A./ Should I modify the 2 additions to something as shown below:
include(
'/home/mydomain/public_html/photopost/inc_features.php');
include(
'/home/mydomain/public_html/photopost/inc_photopost.php');
Quote:
In your vB templates, select Forum Home Templates and edit the FORUMHOME template.
To include the PhotoPost "features" box, add the variable $photopostfeature to your template:
$header
$navbar
$photopostfeature
|
In other words, log into my vBulletin board as ADMIN, open Style Manager (under Styles & Templates), select EDIT TEMPLATES from the All Style Options, double-click Forum Home Templates, double-click FORUMHOME, locate following code:
...
</head>
<body>
$header
$navbar
.....
and ADD below 3 lines:
<!--- start insert $photopostfeature below -->
$photopostfeature
<!--- end insert $photopostfeature -->
then, from the same template FORUMHOME, go down few lines, and locate following code:
<!-- main -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
...
and ADD below 5 lines:
<!--- start insert $photopostcats below -->
<br />
$photopostcats
<br />
<!--- end insert $photopostcats -->
so that, your
modified template FORUMHOME would look like below:
...
</head>
<body>
$header
$navbar
<!--- start insert $photopostfeature below -->
$photopostfeature
<!--- end insert $photopostfeature -->
<!-- main -->
<!--- start insert $photopostcats below -->
<br />
$photopostcats
<br />
<!--- end insert $photopostcats -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
...
3.A./ Is my work done after I've completed all these tasks, assuming that I have entered info correctly into the file config-int.php ?
3.B./ Need I modify the header-inc.php file ?
3.C./ What's the difference between Data virtual path and Server path OR they're the same, i.e. /home/mydomain/public_html/photopost/data ?