Results 1 to 10 of 10
  1. #1
    Join Date
    Apr 2008
    Posts
    174
    Plugin Contributions
    0

    Default HTML coding in the database

    I have no idea if this goes in here.

    my boss wants to add a line of html code onto every single page we have by sending a line of sql through the database.

    can this be done the way he wants? can this be done at all in any way?

  2. #2
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: HTML coding in the database

    Certainly this can be done, but not in the way being suggested.

    Could you tell us more about what this line is and where on each page it should appear. Then we'll be able to advise on appropriate options.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  3. #3
    Join Date
    Apr 2008
    Posts
    174
    Plugin Contributions
    0

    Default Re: HTML coding in the database

    its this html code:

    <font color="#800000">
    <h3>Reminder!</h3>
    Call us for unadvertised specials and discounts! 866-856-6100
    </font>


    and its supposed to be in the same place as the reminder is on this page.
    My Site

    this reminder you see is an attribute but my boss wants this to be removed and replaced by the html from above. i dont need how to substitute the html for attribute or anything i am merely saying this is the eventual placement.

  4. #4
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: HTML coding in the database

    Putting to one side that this uses a deprecated (soon to disappear) font tag, is it only intended to appear on product pages, or all pages as stated earlier? If it is still all pages, where should it appear on non-product pages?
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  5. #5
    Join Date
    Apr 2008
    Posts
    174
    Plugin Contributions
    0

    Default Re: HTML coding in the database

    aw crap again with the depreciation? which tag?

    it should only appear in the product pages where it has a description.

  6. #6
    Join Date
    Apr 2008
    Posts
    174
    Plugin Contributions
    0

    Default Re: HTML coding in the database

    no one knows how this is entered?
    he messed up the database when he tried adding an sql statement.

  7. #7
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: HTML coding in the database

    The problem here is that it's still not clear exactly where you want this text to appear.

    If it is anywhere where there is a product description it would indeed need to be added to the product description in the database for each product. But that's going to look very repetitive on the product listings pages. And would need to be added to each new product.


    If it was only to appear on the product information page for each individual product, then it would be better to add it directly to the product_info page template.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  8. #8
    Join Date
    Apr 2008
    Posts
    174
    Plugin Contributions
    0

    Default Re: HTML coding in the database

    i understand what you mean but i was hoping to avoid all that. there is over 200 products and its such a pain.

    all i want is the text to appear right under where it says product dimensions or no product dimensions.

    what is this template you speak of?

  9. #9
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: HTML coding in the database

    That's in the middle of the product description, so you can only get there by inserting the text in each product's description in the database, which I wouldn't recommend either.

    Better would be to put it above the dimension information, in which case you could insert it just once into your includes/templates/red_passion/templates/tpl_product_info_display.php file.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  10. #10
    Join Date
    Apr 2008
    Posts
    174
    Plugin Contributions
    0

    Default Re: HTML coding in the database

    every time i touch that file the site dies. i have no idea why.

    could you give me the line where to add this text and any code you know of please? I'll see if my boss can do this.

 

 

Similar Threads

  1. HTML Coding
    By annettes in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 9 Feb 2011, 12:33 AM
  2. HTML coding not working
    By irishshopper in forum Upgrading from 1.3.x to 1.3.9
    Replies: 2
    Last Post: 21 Dec 2010, 01:14 AM
  3. HTML coding showing up in my product descriptions
    By jpmill in forum General Questions
    Replies: 0
    Last Post: 17 Aug 2009, 08:40 PM
  4. Help me with this HTML coding for Sponser Box
    By wmorris in forum General Questions
    Replies: 3
    Last Post: 20 Feb 2008, 11:31 PM
  5. Suggestions for textbooks/online courses for html and php coding?
    By lankeeyankee in forum General Questions
    Replies: 4
    Last Post: 12 Mar 2007, 07:02 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg