PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > PhotoPost Pro Support Forums > Photopost Pro How Do I...?

Photopost Pro How Do I...? Wondering how to do things in PhotoPost?

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old September 9th, 2006, 06:16 PM   #1 (permalink)
Junior Member
Verified Customer
 
Join Date: Jul 2005
Posts: 12
Header and footer

Could you please tell me what I do wrong?

This is my album: http://barnemix.no/photopost/showpho...1&limit=recent

The forumtemplate is not show up (only part of the header).

This is my header-inc:

Quote:
<?php
//
// vBulletin Integration header file
//
// If PhotoPost has an odd background color or squished width, you will need to edit
// vbulletin's default "header" style input box / template and change "{pagebgcolor}"
// and "{tablewidth}" (near the bottom) to your preferred background color and table
// width, respectively.
//

require "config-int.php";

$vboptions = array();
unset($vbuserid);

if ( VB3_INTEGRATION == "off" )
{
if ( THIS_SCRIPT == "comments" && VB3_ENHANCEDINT == "on" )
{
// ################### PRE-CACHE TEMPLATES AND DATA ######################
// get special phrase groups
//$phrasegroups = array('threadmanage', 'posting', 'PhotoPost_PopUp');
$phrasegroups = array('threadmanage', 'posting');

// get special data templates from the datastore
$specialtemplates = array(
'smiliecache',
'bbcodecache',
'attachmentcache'
);

// pre-cache templates used by all actions
$globaltemplates = array(
'newpost_attachment',
'newpost_attachmentbit',
'newthread'
);
}
elseif ( THIS_SCRIPT == "showphoto" && VB3_ENHANCEDINT == "on" )
{
// ################### PRE-CACHE TEMPLATES AND DATA ######################
// get special phrase groups
$phrasegroups = array('posting', 'postbit', 'showthread');

// get special data templates from the datastore
$specialtemplates = array();

// pre-cache templates used by all actions
$globaltemplates = array();
}
else
{
// ################### PRE-CACHE TEMPLATES AND DATA ######################
// get special phrase groups
$phrasegroups = array();

// get special data templates from the datastore
$specialtemplates = array();

// pre-cache templates used by all actions
$globaltemplates = array();
}

chdir($vbpath);
require("../skravlemix/global.php");
unset($date);

if ( isset($bbuserinfo['userid']) )
{
$vbuserid = $bbuserinfo['userid'];
define( "VB35", 'off' );
}
else
{
// vB3.5 uses $vbulletin
$vbuserid = $vbulletin->userinfo[userid];
$vboptions[bburl] = $vbulletin->options[bburl];
$vboptions[forumhome] = $vbulletin->options[forumhome];
$vboptions['storecssasfile'] = $vbulletin->options['storecssasfile'];
$vboptions['avatarenabled'] = $vbulletin->options['avatarenabled'];
$vboptions['usefileavatar'] = $vbulletin->options['usefileavatar'];
$vboptions[avatarurl] = $vbulletin->options['avatarurl'];

define( "VB35", 'on' );

if ($vboptions['storecssasfile']) {
$styleinclude = str_replace("clientscript", "$vboptions[bburl]/clientscript", $style['css']);
}

$styleinclude = process_replacement_vars($styleinclude);
}

eval('$navbar = "' . fetch_template('navbar') . '";');

$headinclude = process_replacement_vars($headinclude);
$header = process_replacement_vars($header);
$navbar = process_replacement_vars($navbar);

$vbheader = "$stylevar[htmldoctype]
<html dir=\"$stylevar[textdirection]\" lang=\"$stylevar[languagecode]\">
<head>
$headinclude";

if ( VB35 == "on" )
{
require_once('../skravlemix/includes/functions_showthread.php');
}
else
{
require_once('../skravlemix/includes/class_postbit.php');
}

if ( THIS_SCRIPT == "comments" && VB3_ENHANCEDINT == "on" && VB3_COMMWYSIWYG == "on" )
{
require_once('../skravlemix/includes/functions_newpost.php');
require_once('../skravlmix/includes/functions_editor.php');
require_once('../skravlemix/includes/functions_bigthree.php');
//require_once('../skravlemix/includes/functions_wysiwyg.php');

$textareacols = fetch_textarea_width();

if ( !isset($_POST['WYSIWYG_HTML']) )
{
$editorid = construct_edit_toolbar('{ppcode}', 0, 0, 1);

if ( VB35 == "on" )
{
$messagearea = str_replace( "\"client", "\"". $vbulletin->options['bburl'] ."/client", $messagearea );
$messagearea = str_replace( "\"images", "\"". $vbulletin->options['bburl'] ."/images", $messagearea );
}
else
{
$messagearea = str_replace( "\"client", "\"$vboptions[bburl]/client", $messagearea );
$messagearea = str_replace( "\"images", "\"$vboptions[bburl]/images", $messagearea );
}
}

if ( VB35 == "off" )
{
$body = "<body onload=\"editInit();\">";
}
else
{
$body = "<body>";
}

$vbheader .= <<<VBHEADER
{ppheader}
</head>
$body
$header
$navbar
<div align="center">
VBHEADER;
}
elseif ( (THIS_SCRIPT == "showphoto" && VB3_ENHANCEDINT == "on") ||
(THIS_SCRIPT == "comments" && VB3_ENHANCEDINT == "on") ||
(THIS_SCRIPT == "search" && VB3_ENHANCEDINT == "on") ||
(THIS_SCRIPT == "comshow" && VB3_ENHANCEDINT == "on") ||
(THIS_SCRIPT == "showmembers" && VB3_ENHANCEDINT == "on") )
{

// We need these functions, too...
require_once('../skravlemix/includes/functions_newpost.php');
require_once('.skravlemix/includes/functions_editor.php');

$istyles_js = construct_editor_styles_js();

$vbheader .= <<<VBHEADER
<!-- set up CSS for the editor -->
<link rel="stylesheet" type="text/css" href="$vboptions[bburl]/clientscript/vbulletin_editor.css" />
<style type="text/css">
<!--
#vBulletin_editor {
background: {$istyles[pi_button_normal][0]};
padding: $stylevar[cellpadding]px;
}
#controlbar, .controlbar {
background: {$istyles[pi_button_normal][0]};
}
.imagebutton {
background: {$istyles[pi_button_normal][0]};
color: {$istyles[pi_button_normal][1]};
padding: {$istyles[pi_button_normal][2]};
border: {$istyles[pi_button_normal][3]};
}
-->
</style>
{ppheader}
</head>
<body>
$header
$navbar
<div align="center">
VBHEADER;
}
else
{
$vbheader .= <<<VBHEADER
{ppheader}
</head>
<body>
$header
$navbar
<div align="center">
VBHEADER;
}

$headvars = array( "\"clientscript", "url(images/", "\"search", "\"profile", "\"#usercp", "\"private", "\"member",
"\"subscription", "\"online", "\"misc", "\"forumdisplay", "action=\"login", "\"faq", "\"register",
"\"{$vboptions[forumhome]}.php", "\"#usercptools", "\"usercp.php", "\"login.php", "'misc.php",
"\"calendar.php", "\"images/misc", "\"admincp.php" );
$headrepl = array( "\"{$vboptions['bburl']}/clientscript", "url({$vboptions['bburl']}/images/", "\"{$vboptions['bburl']}/search",
"\"{$vboptions['bburl']}/profile", "\"{$vboptions['bburl']}/#usercp", "\"{$vboptions['bburl']}/private",
"\"{$vboptions['bburl']}/member", "\"{$vboptions['bburl']}/subscription", "\"{$vboptions['bburl']}/online",
"\"{$vboptions['bburl']}/misc", "\"{$vboptions['bburl']}/forumdisplay", "action=\"{$vboptions['bburl']}/login",
"\"{$vboptions['bburl']}/faq", "\"{$vboptions['bburl']}/register",
"\"{$vboptions['bburl']}/{$vboptions[forumhome]}.php", "\"{$vboptions['bburl']}/#usercptools",
"\"{$vboptions['bburl']}/usercp.php", "\"{$vboptions['bburl']}/login.php", "'{$vboptions['bburl']}/misc.php",
"\"{$vboptions['bburl']}/calendar.php", "\"{$vboptions['bburl']}/images/misc", "\"{$vboptions['bburl']}/admincp.php" );
$vbheader = str_replace( $headvars, $headrepl, $vbheader );

eval('$vbfooter = "' . fetch_template('footer') . '";');
$vbfooter = process_replacement_vars($vbfooter);
$vbfooter = "</div>$vbfooter";

$footvars = array("\"$admincpdir", "\"$modcpdir", "\"archive", "\"sendmessage.php");
$footrepl = array("\"{$vboptions['bburl']}/$admincpdir","\"{$vboptions['bburl']}/$modcpdir","\"{$vboptions['bburl']}/archive", "\"{$vboptions['bburl']}/sendmessage.php");
$vbfooter = str_replace( $footvars, $footrepl, $vbfooter );

// One header with no navbar or such

$vbnoheader = <<<VBHEADER
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$styleinclude
$headinclude
{ppheader}
</head>
<body>
<div align="center">
VBHEADER;

$vbnoheader = str_replace( $headvars, $headrepl, $vbnoheader );
}

//
// VB2 CODE
//

if ( VB2_INTEGRATION == "on" )
{
chdir($vbpath);
require("../skravlemix/global.php");

ob_start();
eval("dooutput(\"".gettemplate('headinclude')."\",0);");
$bodytag = "<body>";
echo dovars($bodytag,0);

$vbheader = "<head>";
$vbheader .= ob_get_contents();
$vbheader .= "{ppheader}</head>";

ob_end_clean();
ob_start();

eval("dooutput(\"".gettemplate('header')."\",0);");
$vbheader .= ob_get_contents();

ob_end_clean();
ob_start();

eval("dooutput(\"".gettemplate('footer')."\",0);");
$vbfooter = ob_get_contents();
ob_end_clean();

chdir($pppath);
}

// vBPortal Integration
// If you want to include the vBPortal header, footer, and left menu, remove
// the "//" slashes from the beginning of the 16 lines of code below, and change
// "/home/public_html/vbportal" to your actual path to vbportal's main directory,
// and change "/home/public_html/photopost" to your actual path to PhotoPost's
// directory. This will override the default header and footer variables set in the
// PhotoPost admin panel.

if ( VBP2_INTEGRATION == "on" )
{
chdir($vbportal . "/home/bmix/domains/barnemix.no/public_html/skravlemix/");
require("mainfile.php");

$index = 0;
global $Pmenu,$Pheader;

$Pheader = "P_themeheader";
$Pmenu = "P_thememenu_photopost";

require("header.php");

$vbheader = ob_get_contents();
ob_end_clean();
ob_start();

require("footer.php");
$vbfooter = ob_get_contents();
ob_end_clean();

chdir($pppath . "/");
}

?>
stairway is offline   Reply With Quote
Old September 9th, 2006, 06:39 PM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,667
I do show your using the header integration

so what do you want to do show vbulletin headers or use photoposts headers

right now your using photopost header footer but setting to use the forum style which is why yourpage is white

If you want to use vbulletin header footers style you need to in edit integration set the 3 vbulletins options to on
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old September 9th, 2006, 06:47 PM   #3 (permalink)
Junior Member
Verified Customer
 
Join Date: Jul 2005
Posts: 12
thanks, I want to use vbulletin style.

In the integration all 3 choises for vb3 integration is on.
stairway is offline   Reply With Quote
Old September 10th, 2006, 11:55 AM   #4 (permalink)
Junior Member
Verified Customer
 
Join Date: Jul 2005
Posts: 12
Does anyone knows what to change in header-inc to do the integration?
stairway is offline   Reply With Quote
Old September 10th, 2006, 01:38 PM   #5 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,667
You dont change anything in header-inc.php if you set the vb3 options to yes in edit integration you will load the vb3 system

I am showing looking at your site you are not doing this. Are you sure you selected vb3 integration on install not vb2?
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old September 10th, 2006, 02:09 PM   #6 (permalink)
Junior Member
Verified Customer
 
Join Date: Jul 2005
Posts: 12
Quote:
Originally Posted by Chuck S View Post
You dont change anything in header-inc.php if you set the vb3 options to yes in edit integration you will load the vb3 system
Ah I uploaded the original header-inc, and now everything is ok - thank you!!!
stairway is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Integration of header and footer dookie Photopost Pro How Do I...? 1 August 1st, 2006 08:30 AM
How do i play with header/footer? sumitbahl Photopost Pro How Do I...? 1 February 22nd, 2006 08:36 AM
Re header and footer in reviewpost rcull ReviewPost Installation & Upgrades 0 January 15th, 2005 11:55 AM
Header and Footer question omeganostral Photopost Pro Installation & Upgrades 1 October 6th, 2004 05:19 PM


All times are GMT -5. The time now is 07:02 AM.

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