PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Photopost Pro Installation & Upgrades (http://www.photopost.com/forum/photopost-pro-installation-upgrades/)
-   -   Photopost v4.8.5 & vBulletin v3.0.3 Installation (http://www.photopost.com/forum/photopost-pro-installation-upgrades/111207-photopost-v4-8-5-vbulletin-v3-0-3-installation.html)

Imajine December 29th, 2004 02:22 PM

Photopost v4.8.5 & vBulletin v3.0.3 Installation
 
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 ?

Chuck S December 31st, 2004 07:22 AM

1. yes you need to uncomment the database select and also the link line and make sure the proper information in the link statement as well.

2. yes

3. There should be no need to modify anything else. I dont know where your getting this term data virtual path. In your Photopost admin select edit integration and fill out the paths etc as needed.

Imajine December 31st, 2004 12:32 PM

Pictures Display in vBulletin 3.0.3
 
Thank you for your help and clarifications. PhotoPost got integrated nicely to vBulletin.

My next question deals with how to get the pictures displayed. Currently, they are listed vertically.

1./ I'd like the featured photos to be listed horizontally (valign=top) OR vertically on the right side of the forum.

2./ To have the pictures categories table listed (switched) at the bottom of the forum.

Imajine December 31st, 2004 01:44 PM

I just figured it out.

In the inc_features.php, I changed the lines from
Code:

Content visible to verified customers only.
to
Code:

Content visible to verified customers only.

Chuck S January 1st, 2005 08:47 AM

Yes and that would display 5 photos in one row horizontal correct

daystorm May 30th, 2006 10:17 AM

Help...

I am new to changing code and I do not understand what you mean by "uncomment". I have changed the files and nothing is showing up.

Also, could I get more direct instructions for changing the header-inc file. When I changed it, it keeps trying to go to Photopost/profile.php. I get an error message stating that this file does not exist.

Also, in vb3.5 when I click on my avatar for more pics, it tries to send me to gallery.php. how do I change that to direct them to their photopost profile?

Thank you for your help,
Ella

Chuck S May 30th, 2006 10:37 AM

Hello

I think your posting to the wrong thread. Now if you have an issue trying to get the photo block on vbulletin forumhome this is the thread you want

http://www.photopost.com/forum/showthread.php?t=122207

I suggest if you have questions about vb 3.5 you visit there support forums or the hack thread of any hacks you have installed as there is no such file as gallery.php in our code.

daystorm June 21st, 2006 02:27 AM

I have moved this question to the 3.5.4 area...


All times are GMT -5. The time now is 08:39 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97