Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Links & hidden text


warrenerjm

Recommended Posts

Hi all

 

I do not know how to code, but could someone please tell me what the following is called?

 

I have some questions at the top of the page, or links to the relevant info. At the moment the answers are all visable below these questions, & the link takes you down to the relevant bit. I would really like these answers to be invisible until the link is clicked. Either the answer should appear under the questions/links, or preferably staight under the link question. :D

 

If that makes sence, I would be grateful to a hint at the code or what it is called so I can search for a tutorial on it.

 

Thank you. :thumbsup:

 

Julie

Link to comment
Share on other sites

If you have the CCCVG installed already I think the FAQ section on it does what you want, don't install the whole thing, just the section you need (the page for the information box and the english language file). There are also a number of FAQ contributions, I am sure one will suit your needs.

Link to comment
Share on other sites

If you have the CCCVG installed already I think the FAQ section on it does what you want, don't install the whole thing, just the section you need (the page for the information box and the english language file). There are also a number of FAQ contributions, I am sure one will suit your needs.

 

If you think the answers might have text that someone will do a SE search for your idea mgiht not be the best. Such as if you site sells widgets and it is info about returns, etc. at you store then your way if fine. If it is about "how to use widgets I would expand each section and put them each on a seperate page and optimize the pages for the SE's. It will result on more hits to your site and from terms you had not thought of.

 

Optimized is like our "Ask Mr Coffee" section on my site (link is in my profile). The CCGV FAQ can be found on the site listed here

Link to comment
Share on other sites

If you have the CCCVG installed already I think the FAQ section on it does what you want, don't install the whole thing, just the section you need (the page for the information box and the english language file). There are also a number of FAQ contributions, I am sure one will suit your needs.

 

If you think the answers might have text that someone will do a SE search for your idea mgiht not be the best. Such as if you site sells widgets and it is info about returns, etc. at you store then your way if fine. If it is about "how to use widgets I would expand each section and put them each on a seperate page and optimize the pages for the SE's. It will result on more hits to your site and from terms you had not thought of.

 

Optimized is like our "Ask Mr Coffee" section on my site (link is in my profile). The CCGV FAQ can be found on the site listed here

Hi Peter

 

You have a great site & alot of links! :lol:

 

I am a little confused. :huh: I have a hints & tips page (new) & put a link on there to another page (new) but I get tips.php& link going to tip1.php for example but your example is faq.php & link going to faq/no1.php. Did you create a new page different to me? Your suggestion would probably work for the tips if I created a new page for each tip section, as one page for one tip is slightly ott & long winded.

 

I also have header tags which I should figure out how to add these new pages to the admin for SEO.

 

I would like to know how the points & rewards faq works, as the answers are posted at the bottom of the links. This or posted straight under the link would be great. :D

 

I will have a look at the points & rewards contribution ( I do not have CCGV contribution) & see if I can spot what is what.

 

Thanks for your help. :thumbsup:

 

Julie

Link to comment
Share on other sites

On my site all the pages are different. Page url's, titles, meta info is all unique based upon the content of the page. I did it that way for ALL the info pages so the sites navigation would be consistent throughout the site. The section "Ask Mr Coffee" was also put into a subdirectory to be able to add the keyword "Mr Coffee" which is a popular search term.

 

The Header Tags for each of the info pages on my site are just hard coded into each page. I have header tags installed but did not use it for those pages.

 

Your "Points Program FAQ" works the same way as the CCGV contribution. You can also copy that page and set your "Hints & Tips" up the same way. IMO "my_points_help.php?faq_item=3" is about as optimized as optimized as "index.php?cPath=118". There are better ways to do it and get better URL's.

Link to comment
Share on other sites

On my site all the pages are different. Page url's, titles, meta info is all unique based upon the content of the page. I did it that way for ALL the info pages so the sites navigation would be consistent throughout the site. The section "Ask Mr Coffee" was also put into a subdirectory to be able to add the keyword "Mr Coffee" which is a popular search term.

 

The Header Tags for each of the info pages on my site are just hard coded into each page. I have header tags installed but did not use it for those pages.

 

Your "Points Program FAQ" works the same way as the CCGV contribution. You can also copy that page and set your "Hints & Tips" up the same way. IMO "my_points_help.php?faq_item=3" is about as optimized as optimized as "index.php?cPath=118". There are better ways to do it and get better URL's.

I've had a look at the Points & Rewards FAQ help code, but I can't see what is specific to get this to work & what is totally reliant on other parts of the contribution code.

 

I need optimised! so I will ask how to add pages to the header tags in that thread.

 

The search goes on! :P

 

Thanks

Julie

Link to comment
Share on other sites

In the knowledge base there is a section on Adding A New Box Page. If you follow that but instead of using their pages use the ones from your Points And Rewards FAQ (your catalog page and your english language page) it will work.

Link to comment
Share on other sites

In the knowledge base there is a section on Adding A New Box Page. If you follow that but instead of using their pages use the ones from your Points And Rewards FAQ (your catalog page and your english language page) it will work.

Hi Peter

 

Yep. I know how to add a new box page. :thumbsup: Below is an extract from the FAQ. I do not know how to code the bit between the DO NOT EDIT bits so that it will work for my FAQ, & which bits of that code is specific to Points & Reward? :blink:

 

<?php
/*
 $Id: my_points_help.php v 1.60 2005/NOV/02 09:00:46 dsa_ Exp $
 http://www.deep-silver.com

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2005 osCommerce

 Released under the GNU General Public License

***********************************************************

Be carefull when editing this files do not tutch anything between ...
--- DO NOT EDIT  BOF ---  and   --- DO NOT EDIT  EOF ---

************************************************************/


define('NAVBAR_TITLE', 'Reward Point Program FAQ');
define('HEADING_TITLE', 'Reward Point Program FAQ');

define('POINTS_FAQ_1', 'What is the Reward Point Program?');
define('POINTS_FAQ_2', 'How does the Program work?');
define('POINTS_FAQ_3', 'Points and Values');
define('POINTS_FAQ_4', 'Redeeming Shopping Points');
define('POINTS_FAQ_5', 'Minimum Points Required');
define('POINTS_FAQ_6', 'Minimum Purchase Amount Required');
define('POINTS_FAQ_7', 'Maximum Points Redeemptions allowed per order');
define('POINTS_FAQ_8', 'Will I earn points for shipping fees?');
define('POINTS_FAQ_9', 'Will I earn points for tax fees?');
define('POINTS_FAQ_10', 'Will I earn points for discounted products?');
define('POINTS_FAQ_11', 'Will I earn points when purchases paid with points?');
define('POINTS_FAQ_12', 'Products Restrictions');
define('POINTS_FAQ_13', 'Products on sale Restrictions');
define('POINTS_FAQ_14', 'Conditions of Use');
define('POINTS_FAQ_15', 'When Problems Occur');

define('TEXT_INFORMATION', '<a name="Top"></a>
<ol>
 <li><a href="'.tep_href_link(FILENAME_MY_POINTS_HELP,'faq_item=1','NONSSL').'">' . POINTS_FAQ_1 . '</a></li>
 <li><a href="'.tep_href_link(FILENAME_MY_POINTS_HELP,'faq_item=2','NONSSL').'">' . POINTS_FAQ_2 . '</a></li>
 <li><a href="'.tep_href_link(FILENAME_MY_POINTS_HELP,'faq_item=3','NONSSL').'">' . POINTS_FAQ_3 . '</a></li>
 <li><a href="'.tep_href_link(FILENAME_MY_POINTS_HELP,'faq_item=4','NONSSL').'">' . POINTS_FAQ_4 . '</a></li>
 <li><a href="'.tep_href_link(FILENAME_MY_POINTS_HELP,'faq_item=5','NONSSL').'">' . POINTS_FAQ_5 . '</a></li>
 <li><a href="'.tep_href_link(FILENAME_MY_POINTS_HELP,'faq_item=6','NONSSL').'">' . POINTS_FAQ_6 . '</a></li>
 <li><a href="'.tep_href_link(FILENAME_MY_POINTS_HELP,'faq_item=7','NONSSL').'">' . POINTS_FAQ_7 . '</a></li>
 <li><a href="'.tep_href_link(FILENAME_MY_POINTS_HELP,'faq_item=8','NONSSL').'">' . POINTS_FAQ_8 . '</a></li>
 <li><a href="'.tep_href_link(FILENAME_MY_POINTS_HELP,'faq_item=9','NONSSL').'">' . POINTS_FAQ_9 . '</a></li>
 <li><a href="'.tep_href_link(FILENAME_MY_POINTS_HELP,'faq_item=10','NONSSL').'">' . POINTS_FAQ_10 . '</a></li>
 <li><a href="'.tep_href_link(FILENAME_MY_POINTS_HELP,'faq_item=11','NONSSL').'">' . POINTS_FAQ_11 . '</a></li>
 <li><a href="'.tep_href_link(FILENAME_MY_POINTS_HELP,'faq_item=12','NONSSL').'">' . POINTS_FAQ_12 . '</a></li>
 <li><a href="'.tep_href_link(FILENAME_MY_POINTS_HELP,'faq_item=13','NONSSL').'">' . POINTS_FAQ_13 . '</a></li>
 <li><a href="'.tep_href_link(FILENAME_MY_POINTS_HELP,'faq_item=14','NONSSL').'">' . POINTS_FAQ_14 . '</a></li>
 <li><a href="'.tep_href_link(FILENAME_MY_POINTS_HELP,'faq_item=15','NONSSL').'">' . POINTS_FAQ_15 . '</a></li>
</ol>');
#---------------------- DO NOT EDIT  BOF ----------------------------  
switch ($HTTP_GET_VARS['faq_item']) {
 case '1':
 $key = 'USE_POINTS_SYSTEM';
define('SUB_HEADING_TITLE','' . POINTS_FAQ_1 . '');
#---------------------- DO NOT EDIT  EOF ----------------------------  

define('SUB_HEADING_TEXT','
Text Here');
#---------------------- DO NOT EDIT  BOF ----------------------------  
 break;
 case '2':
define('SUB_HEADING_TITLE','' . POINTS_FAQ_2 . '');
#---------------------- DO NOT EDIT  EOF ----------------------------  

define('SUB_HEADING_TEXT','
Text Here');

#---------------------- DO NOT EDIT  BOF ----------------------------  
 break;
 case '3':
if (POINTS_PER_AMOUNT_PURCHASE > 1) {
 $point_or_points = 'points';
} else {
 $point_or_points = 'point';
}
define('SUB_HEADING_TITLE','' . POINTS_FAQ_3 . '<br></font></b><span class="smalltext">Points value last updated: ' . tep_get_last_date('REDEEM_POINT_VALUE') . '</span>');
#---------------------- DO NOT EDIT  EOF ----------------------------  

define('SUB_HEADING_TEXT','
Text Here');

#---------------------- DO NOT EDIT  BOF ----------------------------  
 break;
 case '4':
define('SUB_HEADING_TITLE','' . POINTS_FAQ_4 . '');
#---------------------- DO NOT EDIT  EOF ----------------------------

 

If I wanted the answers to the links questions to come up immediately below the link, would I put the code that is not to be edited after the link?

 

Thanks for your continued help.

 

Julie

Link to comment
Share on other sites

I do not know how to code the bit between the DO NOT EDIT bits so that it will work for my FAQ, & which bits of that code is specific to Points & Reward?

 

If you copy and paste the page to a new one then none of it is specific to the Points and Rewards. On your NEW page you added you will want to change;

 

1)

define('NAVBAR_TITLE', 'Reward Point Program FAQ');
define('HEADING_TITLE', 'Reward Point Program FAQ');

 

to;

 

define('NAVBAR_TITLE', 'My New FAQ');
define('HEADING_TITLE', 'My New FAQ');

 

2)

 

define('POINTS_FAQ_1', 'What is the Reward Point Program?');
define('POINTS_FAQ_2', 'How does the Program work?');

 

to;

 

 

 

define('MY_FAQ_1', 'This is my first new FAQ topic?');
define('MY_FAQ_2', 'This is my second FAQ topic?');

do it all the way through the list.

 

3)

 

  <li><a href="'.tep_href_link(FILENAME_MY_POINTS_HELP,'faq_item=1','NONSSL').'">' . POINTS_FAQ_1 . '</a></li>
 <li><a href="'.tep_href_link(FILENAME_MY_POINTS_HELP,'faq_item=2','NONSSL').'">' . POINTS_FAQ_2 . '</a></li>

 

to;

 

  <li><a href="'.tep_href_link(FILENAME_MY_FAQ_HELP,'faq_item=1','NONSSL').'">' . MY_FAQ_1 . '</a></li>
 <li><a href="'.tep_href_link(FILENAME_MY_FAQ_HELP,'faq_item=2','NONSSL').'">' . MY_FAQ_2 . '</a></li>

 

Now it relates to the MY_FAQ topic you changed in #2. You will have to add the file FILENAME_MY_FAQ_HELP to you list of filenames just as you did when you installed the Points and Rewards contribution.

 

4)

 

#---------------------- DO NOT EDIT  BOF ----------------------------  
switch ($HTTP_GET_VARS['faq_item']) {
 case '1':
 $key = 'USE_POINTS_SYSTEM';
define('SUB_HEADING_TITLE','' . POINTS_FAQ_1 . '');

 

to;

 

#---------------------- DO NOT EDIT  BOF ----------------------------  
define('SUB_HEADING_TITLE','' . MY_FAQ_1 . 'This is my first FAQ section with many more to come');

 

etc.

Link to comment
Share on other sites

#---------------------- DO NOT EDIT  BOF ----------------------------  
switch ($HTTP_GET_VARS['faq_item']) {
 case '1':
 $key = 'USE_POINTS_SYSTEM';
define('SUB_HEADING_TITLE','' . POINTS_FAQ_1 . '');

 

to;

 

#---------------------- DO NOT EDIT  BOF ----------------------------  
define('SUB_HEADING_TITLE','' . MY_FAQ_1 . 'This is my first FAQ section with many more to come');

 

etc.

Hi Peter

 

Thanks. It was the switch & key & case that I didn't understand. What makes the new FAQ answers invisible, until the link is clicked then? Sorry for being backward, but I want to understand & learn what the different codes mean, so that I can hopefully solve more of my own questions in the future! :-"

 

Thanks

Julie

Link to comment
Share on other sites

Is it not working or is it that you don't understand why it is working? I am just a hack, I can make some things work but don't ask me too much about why they work.

Link to comment
Share on other sites

Is it not working or is it that you don't understand why it is working? I am just a hack, I can make some things work but don't ask me too much about why they work.

A hack is still one better than me. :P I will try it & maybe I'll learn how later. I'll let you know. :thumbsup:

 

Julie

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...