PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Classifieds How do I...? (http://www.photopost.com/forum/classifieds-how-do-i/)
-   -   How to integrate the site layout (http://www.photopost.com/forum/classifieds-how-do-i/121903-how-integrate-site-layout.html)

Marshal Halloway January 2nd, 2006 01:27 PM

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?

Chuck S January 2nd, 2006 01:57 PM

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 ;)

Marshal Halloway January 2nd, 2006 03:14 PM

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.

Chuck S January 2nd, 2006 04:12 PM

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();

?>

Marshal Halloway January 2nd, 2006 04:24 PM

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);
}


All times are GMT -5. The time now is 10:12 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