PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/index.php)
-   PhotoPost Product FAQs (http://www.photopost.com/forum/forumdisplay.php?f=73)
-   -   PhotoPost Enhanced vB3 Index Integration (http://www.photopost.com/forum/showthread.php?t=110527)

Michael P November 16th, 2004 12:35 PM

PhotoPost Enhanced vB3 Index Integration
 
If you plan to integrate PhotoPost into your vB3 Main Index like we do on PhotoPostDev.Com, you can now use the included (and supported!) files inc_photopost.php and inc_features.php

inc_photopost.php is used to integrate a gallery listing into your forums
inc_features.php is used to add a "featured photos" box to your Main Index

We recommend installing PhotoPost into your vB database, doing so will prevent the need to swtich databases for PhotoPost access.

Pre-Installation
================

You have two options for integrating the galleries into your setup -

Type 1: As at PhotoPostDev.Com, you can put the galleries into their our "section", or
Type 2: You can list the galleries inside the same table as your forums.

By default we made $pp_headers = "yes"; so that it will create a section of galleries to include in your forum. If you want to list them in the same table (Type 2), you would set this to "no" so that it does not include the table wrappers.

Installation Instructions
=========================
1) 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. If your username password is different to connect to the databases then you will need to uncomment the $link statement and fill in the proper variables for the host username and password to access the photopost database

2) Upload the scripts to your PhotoPost directory.

These next steps involve changes to your vBulletin script files - this is necessary as you plan to display these items from within your vB forums.

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


vB TEMPLATE ADDITIONS
=====================

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

This places the feature at the top of the forum (as done on our site).

TYPE 1
------
1) Down lower, to add your gallery section, add the $photopostcats variable under your Main section:

<!-- /main -->
<br />
$photopostcats
<br />


You can also place the $photopostfeature above the $photopostcats if you wish to move your features to just above the gallery section.

TYPE 2
------
1) Down lower, to add your galleries into your forum table, add $photopostcats under the $forumbits variable:

Code:

Content visible to verified customers only.
Then click SAVE and your Forum Index should be displaying your PhotoPost galleries on your forums!


All times are GMT -5. The time now is 08:41 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.