PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Classifieds Installation & Upgrades (http://www.photopost.com/forum/classifieds-installation-upgrades/)
-   -   Integrating with VB3 (http://www.photopost.com/forum/classifieds-installation-upgrades/108867-integrating-vb3.html)

tteal June 26th, 2004 06:32 PM

Integrating with VB3
 
As you see in this forum, there is a bar up top (User CP, FAQ, etc) I would like to have that when in the photopost & classifieds, however, have been unable to do that. I tried making the changes to the header-inc.php file and the format is all messed (it's like the css file does not take effect) once I make all of those changes outlined below.

Here is an example of that file:

$vbpath ="/var/www/hosts/YourDomain.com/forum"; // change to your path
$pppath ="/var/www/hosts/YourDomain.com/classifieds"; // change to your path
chdir($vbpath);
require("/Ichangedthistoo/global.php");

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

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

$vbheader .= "</head>
<body>
$header
$navbar
<div align=\"center\">";

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

$HTTP_POST_FILES = $_FILES;
$HTTP_POST_VARS = $_POST;
?>

Once I commented all of that out, it's like the "css" don't take effect and I get a "plain white" background and my css file is not taking effect. By the way, I did change the parameters above for my specific site.

Any help would be greatly appreciated.

Cheers,
T. Teal

Chuck S June 27th, 2004 07:54 PM

The issue is you are using VB stylesheets by file not inline. Since VB uses relative path the link stylesheet statement if you view your page source is looking for clientscript/somestylesheet.css

and you need to use the full url so Photopost can find it. The easy fix is of course to use inline CSS

sinhvien June 29th, 2004 12:58 AM

so, what are we really suppose to do in details?

Chuck S June 29th, 2004 07:15 AM

use inline css or find in VB3 where the relative path to the stylesheets is found and change it. I beleive this is what I posted in my last post

memobug September 18th, 2004 04:51 AM

Can't get my vb3 headers to show either
 
Quote:

Originally Posted by omegatron
use inline css or find in VB3 where the relative path to the stylesheets is found and change it. I believe this is what I posted in my last post

Well, I have a similar problem I am afraid, but I don't know where your last post was - maybe it's relevant to my problem

I changed the vb3 headerinclude to an absolute path as recommended above, but there seem to be other issues. I am sure my paths for $vbpath and $pppath are correct, but I get the following errors

Quote:

Warning: main(): open_basedir restriction in effect. File(./languages/english/pp-inc.php) is not within the allowed path(s): (/home/bonsai/:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/bonsai/public_html/forsale/pp-inc.php on line 64

Warning: main(./languages/english/pp-inc.php): failed to open stream: Operation not permitted in /home/bonsai/public_html/forsale/pp-inc.php on line 64

Fatal error: main(): Failed opening required './languages/english/pp-inc.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/bonsai/public_html/forsale/pp-inc.php on line 64
The vb3 Integration suggestions and notes posted in the (reviews and photopost) forums seem to be written for a different version of header-inc.php than currently exists. They reference vb2 and vb3 versions of the code which is all very confusing today, although I am sure it was correct at one moment in time.

I can use any help I can get.

Regards,

Matt

Chuck S September 18th, 2004 09:59 AM

Your path statement in your config for classifieds is set to . set this to /home/bonsai/public_html/forsale instead


All times are GMT -5. The time now is 05:36 AM.

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