webstarter Posted January 15, 2007 Share Posted January 15, 2007 Hi there has anyone tried this contribution? I'm at this point of it but do not understand what I have to do please if anyone is able to shed anymore light with a bit more explanation on what I need to do that would be great. 3.) Add the following lines to EVERY SINGLE file in your catalog-directory RIGHT AFTER THE <BODY> TAG. (This is VERY important, if you don't add it right after the <body>-Tag, the script won't work!!). So, add these 3 lines to every file in your catlog-directory between the <body>-Tag and the including of header.php: <!-- coolMenu //--> <?php require(DIR_WS_INCLUDES . 'coolmenu.php'); ?> <!-- coolMenu_eof //--> After adding these lines, your files should look like this: <body marginwidth="0" marginheight="0" topmargin="0" > <!-- coolMenu //--> <?php require(DIR_WS_INCLUDES . 'coolmenu.php'); ?> <!-- coolMenu_eof //--> <!-- header //--> <?php require(DIR_WS_INCLUDES . 'header.php'); ?> <!-- header_eof //--> 4.) Add the following line to EVERY SINGLE file in your catalog-directory between <HEAD> and </HEAD>. (only in the /catalog directory, NOT in any further subdirectories like /catalog/includes !!). <script LANGUAGE="JavaScript1.2" SRC="includes/menu_animation.js"></SCRIPT> Thank You Regards Ian :thumbsup: Link to comment Share on other sites More sharing options...
spax Posted January 15, 2007 Share Posted January 15, 2007 FTP to your server and from the document root or the catalog directory, depending on how you have it, download index.php and open it up in a text editor. At the top, after some PHP stuff, you will see this code: <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html <?php echo HTML_PARAMS; ?>> <head> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <title><?php echo TITLE; ?></title> <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"> <link rel="stylesheet" type="text/css" href="stylesheet.css"> </head> <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0"> <!-- header //--> <?php require(DIR_WS_INCLUDES . 'header.php'); ?> <!-- header_eof //--> <!-- body //--> The instructions say add the 3 lines of code between the <body> tag and the call for header.php. Like this: <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0"> <!-- coolMenu //--> <?php require(DIR_WS_INCLUDES . 'coolmenu.php'); ?> <!-- coolMenu_eof //--> <!-- header //--> <?php require(DIR_WS_INCLUDES . 'header.php'); ?> <!-- header_eof //--> The other part, it says to add between the <head> </head> tags: <head> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <title><?php echo TITLE; ?></title> <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"> <link rel="stylesheet" type="text/css" href="stylesheet.css"> <script LANGUAGE="JavaScript1.2" SRC="includes/menu_animation.js"></SCRIPT> </head> So the whole section will look like this: <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html <?php echo HTML_PARAMS; ?>> <head> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <title><?php echo TITLE; ?></title> <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"> <link rel="stylesheet" type="text/css" href="stylesheet.css"> <script LANGUAGE="JavaScript1.2" SRC="includes/menu_animation.js"></SCRIPT> </head> <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0"> <!-- coolMenu //--> <?php require(DIR_WS_INCLUDES . 'coolmenu.php'); ?> <!-- coolMenu_eof //--> <!-- header //--> <?php require(DIR_WS_INCLUDES . 'header.php'); ?> <!-- header_eof //--> <!-- body //--> Now the place where you found index.php, you will see a load more .php files. You need to make the same changes to all those files, then upload them again overwriting the existing ones. Link to comment Share on other sites More sharing options...
webstarter Posted January 16, 2007 Author Share Posted January 16, 2007 FTP to your server and from the document root or the catalog directory, depending on how you have it, download index.php and open it up in a text editor. At the top, after some PHP stuff, you will see this code: <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html <?php echo HTML_PARAMS; ?>> <head> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <title><?php echo TITLE; ?></title> <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"> <link rel="stylesheet" type="text/css" href="stylesheet.css"> </head> <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0"> <!-- header //--> <?php require(DIR_WS_INCLUDES . 'header.php'); ?> <!-- header_eof //--> <!-- body //--> The instructions say add the 3 lines of code between the <body> tag and the call for header.php. Like this: <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0"> <!-- coolMenu //--> <?php require(DIR_WS_INCLUDES . 'coolmenu.php'); ?> <!-- coolMenu_eof //--> <!-- header //--> <?php require(DIR_WS_INCLUDES . 'header.php'); ?> <!-- header_eof //--> The other part, it says to add between the <head> </head> tags: <head> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <title><?php echo TITLE; ?></title> <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"> <link rel="stylesheet" type="text/css" href="stylesheet.css"> <script LANGUAGE="JavaScript1.2" SRC="includes/menu_animation.js"></SCRIPT> </head> So the whole section will look like this: <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html <?php echo HTML_PARAMS; ?>> <head> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <title><?php echo TITLE; ?></title> <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"> <link rel="stylesheet" type="text/css" href="stylesheet.css"> <script LANGUAGE="JavaScript1.2" SRC="includes/menu_animation.js"></SCRIPT> </head> <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0"> <!-- coolMenu //--> <?php require(DIR_WS_INCLUDES . 'coolmenu.php'); ?> <!-- coolMenu_eof //--> <!-- header //--> <?php require(DIR_WS_INCLUDES . 'header.php'); ?> <!-- header_eof //--> <!-- body //--> Now the place where you found index.php, you will see a load more .php files. You need to make the same changes to all those files, then upload them again overwriting the existing ones. Thank you very much :thumbsup: Link to comment Share on other sites More sharing options...
juntao Posted January 30, 2007 Share Posted January 30, 2007 Thank you very much :thumbsup: i'd like to see a screenshot of this mod before i do it as well <_< Link to comment Share on other sites More sharing options...
spax Posted January 30, 2007 Share Posted January 30, 2007 i'd like to see a screenshot of this mod before i do it as well <_< You know what, that is part of the fun of osC. I have a local XAMPP set up and being as osC is Open Source and absolutely free, I have dev stores just to test contributions. Most contributions have the stock files modified for you to drop into a stock store so you don't need to combe through code. It takes a couple of minutes to install a new instance of osC so if you want to see what a mod does or looks like, take it for a test drive. Go on, enjoy yourself! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.