Results 1 to 10 of 10

Thread: adding custom pages

  1. #1
    Join Date
    Jul 2009
    Posts
    94

    Default adding custom pages

    I need to add a few custom pages to my directory

    terms of use

    privacy policy [ Google now requires this policy on all sites using adsense]

    link to us

    I love the product and having a great time.
    but need help here.
    I am trying to add a custom page but I am doing something wrong.
    The page I am trying to add is located at-
    http://www.showdog.org/link_to_show_dog.php

    there is a problem with no template showing [ just a bit of code showing}. I also added the link to the menu but the lin only shows on the homepage?

    If anyone could help me.
    Tanks in advance.

  2. #2
    Join Date
    Sep 2001
    Posts
    170

    Default

    I will assume you are adding the page via the admin section (templates)

    for example: you create a page and name it "terms.html"

    the URL to view the page will be www.yoursite.com/page.php?id=terms

    hope this helps!

  3. #3
    Join Date
    Jul 2009
    Posts
    94

    Default

    Thanks, yes it does, great, thanks. Now I need to know how to get images to appear on custo pages i.e. a link back banner. I have worked out I cant paste html.
    My code , I have uploaded the images but they dont show. You may use any of the images below to link to the Show Dog Directory.</p>
    <p>Link One </p>
    <p>&nbsp;</p>
    <p><img src="http://www.showdog.org/button4.gif" alt="Show Dog Directory" width="219" height="136" /></p>
    <p>To display Link Number one </p>
    <p>Copy and paste the following code into your website</p>
    <p>&lt;a href=&quot;http://www.http://www.showdog.org&quot;&gt;&lt;img src=&quot;http://www.showdog.org/button4.gif&quot;
    alt=&quot;Show Dog Directory&quot; width=&quot;219&quot; height=&quot;136&quot;&gt;&lt;/a&gt;</p>
    <p></p>

  4. #4
    Join Date
    Sep 2001
    Posts
    170

    Default

    Sorry - I don't understand your question

  5. #5
    Join Date
    Jul 2009
    Posts
    94

    Default

    Thanks for taking the time to answer. i wanted to add images for people to link back to my site. I am having trouble getting the images to show on the page.
    http://www.showdog.org/page.php?id=link
    thanks again

  6. #6
    Join Date
    Sep 2001
    Posts
    170

    Default

    OK

    when I look at your source code I can't see the image code

    correct code is
    <a href="http://www.link to where you are going.com" ><img src="location of image.com" border="0" title="if required" /></a>

  7. #7
    Join Date
    Jul 2009
    Posts
    94

    Default

    Thanks so much for all your time. I am still tearing my hair out.

    My code looks o.k. to me [ I am using dreamweaver, know very little , trying to learn ] but when i paste it as code between the tags
    <%t%><%/t%>

    I get this results - http://www.showdog.org/page.php?id=link


    pasting the design view into the indeux template gets an o.k. looking result but no images [ or image code]



    <p>You may use any of the images below to link to the Show Dog Directory.</p>
    <p>Link One </p>
    <p>&nbsp;</p>
    <a href="http://www.showdog.org/" ><img src="http://www.showdog.org/button4.gif" border="0" title="Show Dog Directory" /></a>
    <p>To display Link Number one </p>
    <p>Copy and paste the following code into your website</p>
    <p>&lt;a href=&quot;http://www.http://www.showdog.org&quot;&gt;&lt;img src=&quot;http://www.showdog.org/button4.gif&quot;
    alt=&quot;Show Dog Directory&quot; width=&quot;219&quot; height=&quot;136&quot;&gt;&lt;/a&gt;</p>
    <p></p>
    <p>Link Number Two </p>
    <a href="http://www.showdog.org/" ><img src="http://www.showdog.org/button23.gif" border="0" title="Show Dog Directory" /></a>
    <p>To display Link Two </p>
    <p>Copy and paste the following code into your website</p>
    <p>&lt;a href=&quot;http://www.showdog.org&quot;&gt;&lt;img src=&quot;http://www.showdog.org/button23.jpg&quot;
    alt=&quot;Show Dog Directory&quot; width=&quot;239&quot; height=&quot;156&quot;&gt;&lt;/a&gt;
    </p>
    <p></p>
    <p>To display our banner.</p>
    <a href="http://www.showdog.org/" ><img src="http://www.showdog.org/banner5.jpg" border="0" title="Show Dog Directory" /></a>
    <p>Copy and paste the following code into your website</p>
    <p>&lt;a href=&quot;http://www.showdog.org&quot;&gt;&lt;img src=&quot;http://www.showdog.org/banner5.jpg&quot;
    alt=&quot;Show Dog Directory&quot; width=&quot;468&quot; height=&quot;60&quot;&gt;&lt;/a&gt;</p>
    <p>&nbsp;</p>

  8. #8
    Join Date
    Aug 2008
    Location
    Paris, France
    Posts
    46

    Default Understanding <%t%>

    Hi dochlaggie,

    I think that you just have to remove <%t%> and <%/t%> tags.

    <%t%> <%/t%%> tags tell smarty/php that everything between them has to be interpreted as text. This will lead to transformation of your " into its code, in other words &quote;.

    I think (based on my experience, not on technical knowledge) that <%t%> tags have to be used when smarty/php might take your text as a program instruction.
    Therefore, you should avoid using them when you just intend to display or store some text.
    When you are in a mixed situation, that is when you have an instruction that includes some text to display or store or whatever, you should write your instruction this way :
    instruction part before text <%t%>yourtext<%/t%> instruction part after your text.

    I had a similar problem with special characters (diacritics) and came through it by removing the <%t%> tags.

    Regards
    Gus
    Last edited by Gus; 07-11-2009 at 06:33 AM. Reason: forgot a "t" in a tag

  9. #9
    Join Date
    Jul 2009
    Posts
    94

    Default

    Gus, thanks so much. That was the problem. Fixed.

  10. #10
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    The only code that should go between <%t%><%/t%> is code for translation. So this means most text on your site will not have those tags.

Similar Threads

  1. Custom pages.php
    By silviojjb in forum Blocks and Modification
    Replies: 5
    Last Post: 01-09-2009, 05:53 PM
  2. Custom Pages
    By jrusso543 in forum INDEXU DELUXE v1.x
    Replies: 20
    Last Post: 07-02-2008, 12:25 AM
  3. Adding custom pages to the sitemap?
    By blacknight in forum v5.x
    Replies: 0
    Last Post: 05-21-2007, 06:57 PM
  4. Custom Pages Hack
    By inspireme in forum Blocks and Modification
    Replies: 15
    Last Post: 06-11-2006, 02:18 PM
  5. Creating Custom Pages
    By jhanna in forum v5.x
    Replies: 1
    Last Post: 04-02-2006, 06:12 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
  •