This is a discussion on stupid bit of easy code within the osCMax v1.7 Discussion forums, part of the osCMax v1.7 Forums category; I just don't know why when I click on the links I'm making, it doesn't take me to the answers. ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| I just don't know why when I click on the links I'm making, it doesn't take me to the answers. I got this format from the Gift Voucher FAQ, and I'm just stripping it down and modifying it. Please oh please tell me why this stupid bit of apparently easy (but none the less diabolic) code won't work right for me. Thanks Code: <?php
define('NAVBAR_TITLE', 'Product FAQ');
define('HEADING_TITLE', 'Product FAQ');
define('TEXT_INFORMATION', '
<a href="'.tep_href_link(FILENAME_FAQ,'faq_item=1','NONSSL').'">How do I attach a flag bracket in stucco?</a><br>
<a href="'.tep_href_link(FILENAME_FAQ,'faq_item=2','NONSSL').'">Can I wash my flag?</a><br>
<a href="'.tep_href_link(FILENAME_FAQ,'faq_item=3','NONSSL').'">Can I attach grommetted flags onto a sleeve style pole?</a><br>
');
switch ($HTTP_GET_VARS['faq_item']) {
case '1':
define('SUB_HEADING_TITLE','How do I attach a flag bracket in stucco?');
define('SUB_HEADING_TEXT','test');
break;
case '2':
define('SUB_HEADING_TITLE','Can I wash my flag?');
define('SUB_HEADING_TEXT','We recommend that you do not wash your flag, but if you must
then we recommend gentle handwashing.');
break;
case '3':
define('SUB_HEADING_TITLE','Can I attach grommetted flags onto a sleeve style pole?');
define('SUB_HEADING_TEXT','test3');
break;
}
?>
http://www.upupandawaykites.com/catalogmax/faq.php Thanks! |
| Sponsored Links | ||
| ||
|
#2
| ||||
| ||||
| I can help you get it to work check your PM.
__________________ Check out my homepage.. It\'s my jewelry website. |
|
#3
| ||||
| ||||
| andy, I appreciate your attempt to help. For future reference, please keep the discussion in the public forums. There is no need to take this to PM. If you have help to offer, post it, I am sure others will benefit if you do. That is the point of these forums. Also, as a rule of thumb, you should not PM somebody unless they ask you to.
__________________ Michael Sasek osCMax Developer
|
|
#4
| ||||
| ||||
| Msasek, The reason why I did not post the answer to his question is I have to look into his files therefore he needs to provide me with more information as I need to see the whole file to get the full picture. This is why I PM'ed him if he wants to provide me with more info it is up to him. If he does I will help him out. Just looking at the post I can't solve his problem and will need more time to look into it. If he want's me to spend more time looking into it I will. I am sorry if this is a problem and will try to keep answers posted in the community. Andrew
__________________ Check out my homepage.. It\'s my jewelry website. |
|
#5
| |||
| |||
| I thought I posted enough code for it to be looked at, but I'll include everything I can think might relate to it.... First, I followed Adding New Static Content Pages made by msasek. /faq.php Code: <?php
/*
$Id: faq.php,v 1.0 2004/11/24 01:16:23 hpdl Exp $
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright (c) 2003 osCommerce
Released under the GNU General Public License
*/
require('includes/application_top.php');
require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_FAQ);
$breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_FAQ));
$content = CONTENT_FAQ;
$content_template = TEMPLATENAME_STATIC;
require(DIR_WS_TEMPLATES . TEMPLATENAME_MAIN_PAGE);
require(DIR_WS_INCLUDES . 'application_bottom.php');
?>
/includes/languages/english/faq.php Code: <?php
define('NAVBAR_TITLE', 'Product FAQ');
define('HEADING_TITLE', 'Product FAQ');
define('TEXT_INFORMATION', '
<a href="'.tep_href_link(FILENAME_FAQ,'faq_item=1','NONSSL').'">How do I attach a flag bracket in stucco?</a><br>
<a href="'.tep_href_link(FILENAME_FAQ,'faq_item=2','NONSSL').'">Can I wash my flag?</a><br>
<a href="'.tep_href_link(FILENAME_FAQ,'faq_item=3','NONSSL').'">Can I attach grommetted flags onto a sleeve style pole?</a><br>
');
switch ($HTTP_GET_VARS['faq_item']) {
case '1':
define('SUB_HEADING_TITLE','How do I attach a flag bracket in stucco?');
define('SUB_HEADING_TEXT','test');
break;
case '2':
define('SUB_HEADING_TITLE','Can I wash my flag?');
define('SUB_HEADING_TEXT','We recommend that you do not wash your flag, but if you must
then we recommend gentle handwashing.');
break;
case '3':
define('SUB_HEADING_TITLE','Can I attach grommetted flags onto a sleeve style pole?');
define('SUB_HEADING_TEXT','test3');
break;
}
?>
Code: <?php
/*
$Id: information.php,v 1.6 2003/02/10 22:31:00 hpdl Exp $
modified by paulm_nl 2003/12/23
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright (c) 2003 osCommerce
Released under the GNU General Public License
*/
$boxHeading = BOX_HEADING_INFORMATION;
$corner_left = 'square';
$corner_right = 'square';
$box_base_name = 'information'; // for easy unique box template setup (added BTSv1.2)
$box_id = $box_base_name . 'Box'; // for CSS styling paulm (editted BTSv1.2)
$boxContent = '<a href="' . tep_href_link(FILENAME_SHIPPING) . '"> ' . BOX_INFORMATION_SHIPPING . '</a><br>' .
'<a href="' . tep_href_link(FILENAME_PRIVACY) . '"> ' . BOX_INFORMATION_PRIVACY . '</a><br>' .
'<a href="' . tep_href_link(FILENAME_CONDITIONS) . '"> ' . BOX_INFORMATION_CONDITIONS . '</a><br>' .
'<a href="' . tep_href_link(FILENAME_CONTACT_US) . '"> ' . BOX_INFORMATION_CONTACT . '</a><br>'.
'<a href="' . tep_href_link(FILENAME_CATALOG_PRODUCTS_WITH_IMAGES, '', 'NONSSL') . '">' . BOX_CATALOG_PRODUCTS_WITH_IMAGES . '</a><br>' .
'<a href="' . tep_href_link(FILENAME_FAQ) . '"> ' . BOX_INFORMATION_FAQ . '</a><br>'.
'<a href="' . tep_href_link(FILENAME_GV_FAQ, '', 'NONSSL') . '"> ' . BOX_INFORMATION_GV . '</a>';//ICW ORDER TOTAL CREDIT CLASS/GV
// bof BTSv1.2
if(file_exists(DIR_WS_BOX_TEMPLATES . $box_base_name . '.tpl.php')) {
// if exists, load unique box template for this box from templates/boxes/
require(DIR_WS_BOX_TEMPLATES . $box_base_name . '.tpl.php');
}
else {
// load default box template: templates/boxes/box.tpl.php
require(DIR_WS_BOX_TEMPLATES . TEMPLATENAME_BOX);
}
// eof BTSv1.2
?>
Thanks Greg |
|
#6
| |||
| |||
| just a friendly bump...maybe someone knows how to fix this. |
|
#7
| |||
| |||
| |
|
#8
| |||
| |||
| Quote:
On a sidenote....I started up a new section in the Wiki for tutorials on how to install various contributions. If we solve this I'll post all the changes in the wiki for this contrib. THANKS! The implimentation can be found at http://www.upupandawaykites.com/catalogmax/faq.php I removed the link to it in my information infobox just so my testers for the site won't get all on me for it. |
| Sponsored Links | ||
| ||
| |
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| This might be a stupid question, but... | akisok2 | osCommerce 2.2 Discussion | 3 | 05-05-2006 11:27 AM |
| Stupid question on OSC Version | Melissa | osCMax v1.7 Discussion | 1 | 12-26-2004 03:32 PM |
| Maybe Stupid Question? Where to Download 1.5? | ryanmhubbard | osCMax v1.7 Discussion | 2 | 09-05-2004 06:16 AM |
| A stupid questio, sorry but i don't find... | Anonymous | osCMax v1.7 Installation | 1 | 03-29-2004 03:46 AM |
| I must be stupid! | Kristine | osCMax v1.7 Installation | 5 | 03-13-2004 09:44 AM |