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 November 6th, 2008, 06:39 PM   #1 (permalink)
Member
 
Join Date: Dec 2007
Posts: 41
Edit Header in Classifieds

Ok I have my classifieds intergrated with vBulletin3, so all my headers and footers are the same all accross. I was able to change the footer just for the classifieds by adding a new templage called footer2, and changing the "go fetch" code to footer2 in header-inc.php file. However, when I tried to do the same for my header by creating a new template header2 and changing the code on my header-inc.php file, nothing happened. What am I doing wrong? Help please?

My site: Main Index - Coolscrapsdigital Freebies

Thank you
Addie
Addie is offline   Reply With Quote
Old November 6th, 2008, 09:13 PM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,702
http://www.photopost.com/forum/1163510-post4.html

this should help
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old November 6th, 2008, 09:25 PM   #3 (permalink)
Member
 
Join Date: Dec 2007
Posts: 41
Quote:
Originally Posted by Chuck S View Post
Chuck, thank you for replying, however, this is exactly what I did, and only the footer works. The header never changed and I have it pointing to my new template which I happened to also call header2. What could I be doing wrong?

Here my chunk of code where you can see in my header-inc.php file I have it pointing to my new template:

if ( VB2_INTEGRATION == "on" )
{
chdir($vbpath);
require("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('header2')."\",0);"); $vbheader.=ob_get_contents();
ob_end_clean();
ob_start();
eval("dooutput(\"".gettemplate('footer2')."\",0);");
$vbfooter=ob_get_contents();
ob_end_clean();
chdir($pppath);
Addie is offline   Reply With Quote
Old November 6th, 2008, 11:48 PM   #4 (permalink)
Member
 
Join Date: Dec 2007
Posts: 41
OK, I was able to turn off integration from vB3 and then I can see my custom header, but this is NOT what I want. I want everything as far as style is concerned to be integrated from vB3, I only want to create a custom header for classifieds. Because when I turn off the integration, the site looks really strange and it does not match the rest of my sites. Any help, I'm running out of options here.
Addie is offline   Reply With Quote
Old November 7th, 2008, 09:40 AM   #5 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,702
My post above should assist you.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old November 7th, 2008, 09:45 AM   #6 (permalink)
Member
 
Join Date: Dec 2007
Posts: 41
Quote:
Originally Posted by Chuck S View Post
My post above should assist you.
I did try that, and it still does not work. That's what I'm trying to convey here.
Addie is offline   Reply With Quote
Old November 7th, 2008, 12:32 PM   #7 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,702
The code your posting is from vb2 part.

You need to turn back on the vb3 integration and just add the header2 line as noted in the file in that other thread and make a header2 template in vb and it works.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old November 7th, 2008, 01:09 PM   #8 (permalink)
Member
 
Join Date: Dec 2007
Posts: 41
Quote:
Originally Posted by Chuck S View Post
The code your posting is from vb2 part.

You need to turn back on the vb3 integration and just add the header2 line as noted in the file in that other thread and make a header2 template in vb and it works.
Ok, I'm really not getting this at all, and don't understand why it's not working for me. Here are the steps I have taken so far after your last post Chuck:

1. Turned on Vb3 integration
2. Added header2 in my VbAdmin area (Note, my header2 is completely different that Vb "header" so I know if and when it starts working.
3. changed my header-inc.php line# 297 to add this line:
eval('$header = "' . fetch_template('header2') . '";');


Here is a copy of the code from my header-inc.php:

if ( VB2_INTEGRATION == "on" )
{
chdir($vbpath);
require("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('$header = "' . fetch_template('header2') . '";'); $vbheader.=ob_get_contents();
ob_end_clean();
ob_start();
eval("dooutput(\"".gettemplate('footer2')."\",0);");
$vbfooter=ob_get_contents();
ob_end_clean();
chdir($pppath);
}


What am I missing? It is still not reading my header2???
Addie is offline   Reply With Quote
Old November 7th, 2008, 01:12 PM   #9 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,702
You keep editing the vb2 area as I stated in my last post.

You want to add the line I posted in that other thread where I noted its at line 86 right after we define the navbar template add the header2 line
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old November 7th, 2008, 01:21 PM   #10 (permalink)
Member
 
Join Date: Dec 2007
Posts: 41
Quote:
Originally Posted by Chuck S View Post
You keep editing the vb2 area as I stated in my last post.

You want to add the line I posted in that other thread where I noted its at line 86 right after we define the navbar template add the header2 line
OMG, I'm so dense! ...and I'm so sorry. I didn't realize the section was Vb2 eventhough you did mention it before...ugggh!

It was starring at me right there in the face, and I just kep doing a search for any line that matched what I was supposed to be replacing..never mind what I was doing, it's stupid.

Anyway, thank you so much for pointing it out over and over. I finally got it and it's working now. phew..

Addie
Addie is offline   Reply With Quote
Old November 7th, 2008, 03:21 PM   #11 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,702
have a good evening
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   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
Can't Edit the Header qaz01ok General Discussion 1 October 11th, 2007 09:26 AM
How do I edit header StefaniaB Photopost Pro How Do I...? 1 March 9th, 2006 08:09 AM
New install 5.1 - edit header and edit headtags both go same place Silver_2000 Photopost Pro Bug Reports 3 June 10th, 2005 03:42 PM
Please help!! Edit the header and navibar! heather Photopost Pro How Do I...? 3 January 1st, 2005 12:59 PM


All times are GMT -5. The time now is 11:03 AM.

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