Jump to content

dcwebpixie

Members
  • Content count

    107
  • Joined

  • Last visited

About dcwebpixie

  • Birthday 01/15/1966

Profile Information

  • Real Name
    Lori Smith
  • Website
  1. dcwebpixie

    [Contribution] STS v4

    Thanks.
  2. dcwebpixie

    [Contribution] STS v4

    Hello, Still trying to get the New Pages Contribution to work correctly. If anyone else has used this and can offer some guidance that would be great. I have posted in great detail about the issues I am running across. Please look up a few posts for ALL of the details. When going to the live faqs.php page it is not actually showing the template called faqs.php.html. I am so lost on this. If I put $content on the template faqs.php.html how does it know where to pull the content from? I tried doing this but the live page just defaults to the faqs.php page under languages/english. The live page pulls from the file languages/english/faqs.php. I have the other pages and code correct as far as I know. I have started from scratch 4 times now. One thing that confuses me is that in the faqs.php file, there is code on the page that was included with the contribution that says something about it being the template - see my previous post for the code. Thanks so much.
  3. dcwebpixie

    How to use $content tag

    Has anyone worked with the New Pages Contribution in conjunction with STS? The site is just about done and I used the $content tag for the main category template and it works great. However, I now have general pages such as FAQs, Site Map, etc. I placed the $content tag on the template to pull the content but it is not working. Do I need to have specific PHP code on the page where my content is? Do I need to have specific PHP code on the actual template itself? Otherwise, how does it know where to pull the content from? I have all other pages with the download in the appropriate areas and with what seems to be the appropriate code. The problem is this... My template is filed under sts_templates/test/faqs.php.html (this is the template design with a blank table and the $content tag in the table where the content should feed into). There is no current PHP code on this template. My actual page with content is filed under languages/english/faqs.php (I have only content on this page with some PHP code as downloaded with the New Page Contribution) The problem is that when I go to the live faqs.php page it does not pull the template. So, it just shows up as a white page with some content. The PHP code that was already on this page with the download is (I changed the page name to match mine) <?php /* $Id: shipping.php,v 1.4 2002/11/19 01:48:08 dgw_ Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2002 osCommerce Released under the GNU General Public License Use this page as a template for any new pages that you want for your store. In the code below, substitute 'Newpage Template' for the actual name of your new page. */ define('NAVBAR_TITLE', 'Faqs'); define('HEADING_TITLE', 'Faqs'); define('TEXT_INFORMATION', '<p><b><font size="4">T</font></b>his is our newpage template.</a></p>'); define('TEXT_MAIN', 'content goes here'); ?> Thanks.
  4. dcwebpixie

    [Contribution] STS v4

    Okay - the database server is back online. So, I put ONLY the content on the faqs.php page (filed under languages/english) and this is now the only PHP code for this page. <?php /* $Id: shipping.php,v 1.4 2002/11/19 01:48:08 dgw_ Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2002 osCommerce Released under the GNU General Public License Use this page as a template for any new pages that you want for your store. In the code below, substitute 'Newpage Template' for the actual name of your new page. */ define('NAVBAR_TITLE', 'Faqs'); define('HEADING_TITLE', 'Faqs'); define('TEXT_INFORMATION', '<p><b><font size="4">T</font></b>his is our newpage template.</a></p>'); ?> As I look at the code above it says to use this page as my template so this is probably why it pulls from this particular page? My actual template is faqs.php.html filed under sts_templates/test I put the $content tag on the template called faqs.php.html. However, when going to the live page it is NOT showing the template design?? It is just a blank page with the content which is what the faqs.php page has. Do I need to add more PHP code to the faqs.php page? I also tried JUST adding the content to the template faqs.php.html and it just refers back to the faqs.php page under languages/english which is blank with no template design and no content (because I took it out and move to the template). It just seems no matter what I do, the live page faqs.php pulls directly from the languages/english/faqs.php page. This is just basic content so I would not consider it dynamic? Any ideas?
  5. dcwebpixie

    [Contribution] STS v4

    yeah yeah. laugh it up! Just kidding! :rolleyes: Yeah, this just occurred to me because my category template works with the $content tag. I was thinking wait a minute... why the heck am I using the design in both places - kinda defeats the purpose! :lol: Oh goodness, my brain is just not what it used to be. Now if the darn database server would come back online I can go in and fix this! I read through a search that this particular web host has a separate database server which supposedly can cause issues. I am not an IT person so I have no idea how these servers are usually setup. All they told me is that it is a widespread problem and their admins are working on it. Thanks again Bill!
  6. dcwebpixie

    [Contribution] STS v4

    Hi Bill, You probably have not had time to look at my last post. Unfortunately, the database server has gone down again with the hosting company. That's twice now in one week. Very frustrating. So right now I have no access to the site. Anyhoo, I am now wondering this... As I mentioned in my last post, I have my design template called faqs.php.html and it is filed under sts_templates/test. This is basically just the design/layout. There is a blank area (table) where the content should go for each page. I also have the same design WITH content named faqs.php filed under languages/english. So basically it is the same page as the template but has content on it along with some code. My question is should I have the actual design on the faqs.php page? Or am I supposed to just have the actual content? Should I be putting the tag $content in the blank table on the actual template named faqs.php.html? I am just wondering of my issue with using $urlfaqs is happening because I have the design in both places (faqs.php and faqs.php.html)
  7. dcwebpixie

    [Contribution] STS v4

    Hmm... well I am not sure what the issue could be then. As for the session ID, I do not know a lot about this but this site will be strictly business to business and will not have any commerce. The client does not want the site indexed by the search engines. They will not be tracking visitors. Here is what I have - gosh I am such a pain in the rear!! :lol: 1. I have my template filed under sts_templates/test/faqs.php.html. This is my custom design for the site. Includes no content for the actual faqs.php page. There is NO New Page code on it except for when I added the link $urlfaqs to the FAQs button 2. Next, I have the same exact page (which is basically the same template that is filed under sts_templates/test) and this is filed as languages/english/faqs.php. This page has ALL of my content on it. Again, I added the $urlfaqs link to the FAQs button. There is the following code on this page: define('NAVBAR_TITLE', 'Faqs'); define('HEADING_TITLE', 'Faqs'); define('TEXT_INFORMATION', '<p><b><font size="4">T</font></b>his is our newpage template.</a></p>'); 3. Then, I have another faqs.php page filed under /catalog. This has the following code on the page. CODE ONLY. No design and no content. require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_FAQS); $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_FAQS)); 4. For the sts_user_code page I have the following code: $sts->template['urlfaqs'] = tep_href_link(FILENAME_FAQS, '', 'SSL'); $sts->template['faqs'] = '<a href=' . tep_href_link(FILENAME_FAQS, '', 'SSL') . ' class="headerNavigation">' . 'Sitemap' . '</a>'; 5. For the filenames.php code I have the following code: define('FILENAME_FAQS', 'faqs.php'); As I mentioned, when I add $urlfaqs to my category template which is sts_template.html, it links perfectly to the actual faqs.php page. However, once I am on the faqs.php page and I click on the FAQs button, it goes to a 404 error page. :blink: Thanks.
  8. dcwebpixie

    [Contribution] STS v4

    Hey Bill, I know my last few posts were really long. I find that if I just use faqs.php for the link on my custom graphic navigation buttons, it works much better. Are there any cons on doing it this way? As I mentioned in my very long post, when I put the link $urlfaqs for the FAQs button, it works fine from the category pages but when on the actual FAQs page, the link $urlfaqs does not work - it goes to a 404 error page. If I just use faqs.php it works from all templates. I am still not entirely sure how everything synchs up but it seems to work using faqs.php for the link. I do know that it is pulling the content from faqs.php under languages/english. I tried the search function and also navigation to the category pages from the FAQs page and everything seems to work fine. So, at this point I am just wondering if you see any drawbacks to using the page name faqs.php versus the tag $urlfaqs. Thanks Bill!!! :D
  9. dcwebpixie

    [Contribution] STS v4

    Hi Christian, I am also a newbie to STS and osCommerce. The only thing that I can recommend is to do a Google Search on your problem. When I tried doing specific searches through the search function in osCommerce Community, sometimes it would work and sometimes it would not. Also, sometimes I would have to read through lots and lots of postings before finding an answer. However, the posts in the forum are indexed by Google so I found a lot of solutions by just using Google's search. As far as STS goes, Bill has helped out a great deal with that. I am not sure who else on the forum helps with STS. Sorry that I could not have been more help. Lori
  10. dcwebpixie

    [Contribution] STS v4

    Some more observations. 1. On my category page template called sts_template.html I put the following link for the FAQs button $urlfaqs. As I mentioned if I am on a category page, it links to the faqs.php page great. 2. Trying to resolve this issue, I changed the link on the faqs.php page (filed under languages/english) to simply faqs.php and now it links fine. So, my question is, should I just be using faqs.php for my navigation button link instead of $urlfaqs? 3. Also, after some experimenting, it appears that the faqs.php page is actually pulling from the languages/english/faqs.php page. If I take out the content from this page and then put the content on the faqs.php.html page filed under sts_templates/test, then the page just shows up blank with only the design and no content. One other thing I am thinking about is this... My template for the faqs.php page is filed under sts_template/test/faqs.php.html (no content or anything just the template design) I have my actual content on the faqs.php page filed under languages/english/faqs.php Should I have just content on the page for languages/english/faqs.php? Meaning that right now I have the whole design template on the faqs.php page filed here. If so should I add $content to the faqs.php.html template? I did also have the actual template design under catalog but I removed it and just kept the PHP code that needed to be there. Thanks
  11. dcwebpixie

    [Contribution] STS v4

    One more snag... When I am on a category page which uses sts_templates.html and then I click on the FAQs button it takes me to the correct faqs.php page. However, then when I click on the FAQs button from the actual faqs.php page, it goes to a 404 error page? I have the link for the FAQs button setup as $urlfaqs on all templates so I am confused. When I hover over the FAQs button on a category page, the path (at the bottom of the browser) is catalog/faqs.php. However, when I am on the actual faqs.php page and I hover over the FAQs button the path now reads: catalog/$urlfaqs. Any ideas on this? Also, before my buttons at the top went back to the home page (index.php_0.html) if I did not have any links set up. Now when I hover over those buttons it says catalog/faqs.php# Thanks!
  12. dcwebpixie

    [Contribution] STS v4

    Okay I figured this mystery out. :lol: Under catalog/faqs.php I was putting the blank design/template here as well so it was duplicating the site twice on one page. So I removed the design and just left the appropriate code and all is good now. This is why I was confusing MYSELF with what the difference was between the two faqs.php files were. I get it now. Thanks.
  13. dcwebpixie

    [Contribution] STS v4

    Thanks Bill. I did not edit any shipping pages because remember I copied the files from the Contribution over to the web host server and then downloaded them to my PC from there. Of course I backed up the files I was replacing with the Contribution. Everything looks good except that I now have a duplicate pages on my one faqs.php page. It shows my content with the design of the page BUT then right below the whole page duplicates but is just the empty template? UGH... I will sort through this. I was just trying to basically understand the difference between the two faqs.php files. Meaning which one do I place my content in. I went ahead and placed my content in the faqs.php under languages/english.
  14. dcwebpixie

    [Contribution] STS v4

    Hi Bill, I fixed the image problem and now everything looks good. Thank you so much for your help! I just have a few last questions to help me understand how this works. So, you have the "template: which I called faqs.php.html: this is filed under sts_template/test Then you have a faqs.php page which is filed under catalog/includes/languages/english Then you have ANOTHER faqs.php page which is filed under catalog My question is this... 1. The faqs.php page - does this serve as the "actual" page where I will have my content for that specific page? I guess I know that it does but why do you have to put it under two places as I listed above? If I create another page called sitemap.php, do I then need to also put that in the two directories above? I understant that I also need to put in the code. 2. If my FAQs, Contact, Site Map, etc all use the same template, can I just rename the template general.php.html and then make the necessary code adjustments? I really do not need a template for each page. Thanks again!!!!
  15. dcwebpixie

    [Contribution] STS v4

    Okay, so I got the page to come up after adding faqs.php to /catalog directory. I had forgotten about this one. However, now the images are not showing up correctly so I need to take a look at the template. Thanks.
×