![]() |
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? |
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 ;) |
Quote:
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. |
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(); ?> |
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('<', '>', '"', '&'), 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