Gossamer Forum
Home : Products : Gossamer Links : Discussions :

VBPortal 2.2 Integration

Quote Reply
VBPortal 2.2 Integration
I was able to integrate VBPortal with Censura using the below directions. I'm curious if there is a way to integrate this into LinksSQL the same way. I played with page.php but could not get it to work correctly. I would get errors with the authenication.inc.bla bla bla .. You guys take a look at these directions and see if you can think of a way or maybe you already know another way I have not been able to find yet.



-------------Censura integration directions---------------------------

Code:


=================================================
Instructions for Installing Censura with vbPortal
=================================================
Written by Darren Lewis (www.thebookforum.com)

Instuctions Version 1.00 (16 November 2002).
Tested with Censura V1.14.01b and vbPortal 3.0 beta 2.

=======
CENSURA
=======
Censura is a powerful reviews application available at www.incursio.com

Censura already has built-in options to integrate with forum communities including vbulletin, phpBB and several others.

These instructions are for installing Censura so that it fits into your vbPortal system.
It will allow Censura to use your vbPortal header and footer templates.

============
INSTRUCTIONS
============

Step 1
======
Open your Censura index.php file in a good text editor (eg TextPad)
Add this code to the very top of the index.php just after the <?

chdir( "../");
include("mainfile.php");
global $nukeurl, $bburl, $bbuserinfo;
// Optional code to show the vbportal breadcrumb
$index=0;
$Pmenu="";
$breadcrumb="Censura"; // Change this to whatever you want to call your Censura install eg Reviews
// End of optional code
chdir( "./censura"); // Change this to the directory your censura install uses.


Add this code to the top if any other custom Censura pages you create eg hot_items.php, most_pageviews.php

Step 2
======
Open your Censura startup.php file in your text editor

Find this line of code (approx line 27)

error_reporting(1);

Add this code after it

chdir( "../");
include("mainfile.php");
global $nukeurl, $bburl, $bbuserinfo;
// Optional code to show the vbportal breadcrumb
$index=0;
$Pmenu="";
$breadcrumb="Censura"; // Change this to whatever you want to call your Censura install eg Reviews
// End of optional code
chdir( "./censura"); // Change this to the directory your censura install uses.

Save the file and upload to your server to replace the exising one.

Step 3
======

Upload the included censura-header.php and censura-footer.php files to your censura folder on your server.
You may edit these to include any other code you wish to use.

For reference this is the contents of the two files

censura-header.php
~~~~~~~~~~~~~~~~~~
<?
chdir( "../");
include("header.php");
chdir( "./censura"); // Change this to the directory your censura install uses.
?>

censura-footer.php
~~~~~~~~~~~~~~~~~~
<?
chdir( "../");
include("footer.php");
chdir( "./censura"); // Change this to the directory your censura install uses.
print("<center>"); // This line will ensure the Censura Copyright is centered at the bottom of the page. Change to something else to format the Censura copyright bit.
?>

Step 4
======
Enter your Censura admin screen, and set the header & footer to external files.
Configuration -> General Options -> Headers/Footers

Set the "External Header File:" as censura-header.php
Set the "External Footer File:" as censura-footer.php


That's it!

Any questions, ask in the thread at www.phpportals.com and I'll try to help

Known Problems
==============
1
~
Will NOT work for external Vendor header and footer files, as vendor.php is encoded, and there is no startup.php equivalent (will speak with Scott at Incursio about this).

2
~
You still need to edit the Censura templates to fit your site.
Changes made to your vbportal styles & themes will not affect your censura templates.
Will try to update this hack with new Censura templates which can use vbportal variables.

3
~
The dynamic Censura page title will not work as the pages are using the generic vbportals one instead. Not sure how to solve this one yet.
May have to create some way of getting vbportal to create dynamic page titles.
May be able to set up a variable in the vbportal header.php file?
Quote Reply
Re: [Dale_Brown] VBPortal 2.2 Integration In reply to
bump
Quote Reply
Re: [Dale_Brown] VBPortal 2.2 Integration In reply to
Alex buddy I'm really struggling here and I know there are many people using vbportal that could really make use of linkssql with this done. Can you help out here. You already have a plugin that works with vbulletin all we need to do is get the correct module code to work so we can add the vbportal header and footer wrapped around linkssql and still maintain the same connection to the user table for vbulletin (vbportal uses the vbulletin table so this should not be difficult).
Quote Reply
Re: [Dale_Brown] VBPortal 2.2 Integration In reply to
?? Lots of interest brewing.. Alex any comments? :)
Quote Reply
Re: [Dale_Brown] VBPortal 2.2 Integration In reply to
VB is a very tempermental script. I recently did some work on it, and got pretty annoyed with it. Is GForum not an option? I tried recommending my client, but they were stuck on using vB....which was a bad choice IMO. Very slow, and a rubbish template system Frown

Just my opinion.

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!