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 Classifieds Support > Classifieds How do I...?

Classifieds How do I...? Wondering how to do something in Classifieds?

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old January 2nd, 2006, 01:27 PM   #1 (permalink)
Member
Verified Customer
 
Join Date: Jan 2006
Posts: 77
How to integrate the site layout

Hi,

I am using Photopost Classifieds 2.42 with SMF 1.1. RC1.

I have been able to change the header.htm to display the default header from my site.

However:

1. I need to add a script between <head> and </head>, but cannot find where I can do this.

2. Is there a way to add the SMF forum menu to the pages for better intergration?
Marshal Halloway is offline   Reply With Quote
Old January 2nd, 2006, 01:57 PM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,683
You can add a rendition of whichever html you want in the header to mimic a menubar etc.

As far as adding head tags you would place those in a file called say headtags.htm and upload to your directory.

In global options there is between header and footer settings a place to load the server path to a headtags file and simply fill out the path to where you placed the file
__________________
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 January 2nd, 2006, 03:14 PM   #3 (permalink)
Member
Verified Customer
 
Join Date: Jan 2006
Posts: 77
Quote:
Originally Posted by Chuck S
You can add a rendition of whichever html you want in the header to mimic a menubar etc.
SMF has a SSI.php file that can be used to add the forum menu to either php files or shtml files.

For php files, the instruction says to add at the very top of your page before the <html> tag on line 1:
<?php require("/home2/www/cascity/forumhall/SSI.php"); ?>

Then we can use the following tag to add the menu:
<?php ssi_menubar(); ?>

However, I cannot find where I can add the ?php require line so all pages on the classifieds can show the menu.

I would assume I have to add the <?php ssi_menubar(); ?> tag to the header.htm file, but am not sure.

Please advise.
Marshal Halloway is offline   Reply With Quote
Old January 2nd, 2006, 04:12 PM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,683
You can use PHP files instead of html files.

Simply make your header.html a header.php file like so

<?php

echo<<<header

SOME HTML HERE FOR HEADER

header;

require("/home2/www/cascity/forumhall/SSI.php");

ssi_menubar();

?>
__________________
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 January 2nd, 2006, 04:24 PM   #5 (permalink)
Member
Verified Customer
 
Join Date: Jan 2006
Posts: 77
I tried a test, but get this:

Fatal error: Cannot redeclare un_htmlspecialchars() (previously declared in /home2/www/xxxxxx/classifieds/pp-inc.php:81) in /home2/www/xxxxxx/forumhall/Sources/Subs.php on line 836

Seems to be there is a mismatch between the pp-inc file and the forum subs.php file.

the pp-inc file says:
}

function un_htmlspecialchars($string) {
$string = str_replace(array('&lt;', '&gt;', '&quot;', '&amp;'), array('<', '>', '"', '&'), $string);
$string = strip_tags($string, "<b><table><tr><td><strong><i><em><u><a><div><span><p><blockquote><ol><ul><li><font><img><br><h1><h2><h3><h4><h5><h6>");
return($string);
}

Last edited by Marshal Halloway; January 2nd, 2006 at 04:29 PM.
Marshal Halloway 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
Gallery Layout instead of forum layout? tyranny Before You Buy 2 October 20th, 2005 04:27 PM
edit complete site layout Ginger2 Photopost Pro How Do I...? 1 March 25th, 2005 07:54 AM
Copied Reviewpost to new site - evrything points to old site criscokid ReviewPost Installation & Upgrades 6 January 9th, 2005 01:03 PM


All times are GMT -5. The time now is 11:22 PM.

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