Results 1 to 3 of 3
  1. #1
    Join Date
    January 17th, 2005
    Los Angeles, USA

    My server admin just installed allposters and I need help with customization.
    The new install is a white page with content but no header, footer or search fields.

    I'm not a programmer and would like someone to explain it in very lay terms. My site uses global headers and footers and I'm familiar with how PHP includes work. How/where should I include the header and footer and where is the search field? Is there a style sheet somewhere or a place to change colors? I apologise if this has been addressed already in the forum, but I searched and could not find a related topic.

    I appreciate any help.

    Best Regards....

  2. #2
    ABW Ambassador cusimano's Avatar
    Join Date
    January 18th, 2005
    Toronto, Canada
    Have a look at the templates in the allposters-template directory. There are several sample template sets in that directory. The allposters.ini file contains configuration variables. The templatedir configuration variable specifies in what directory the script will look for templates. Either use one of the sample template sets as is or modify one of them or create your own template set (using the samples as a guide to see how they work).

    If you want the created files to be named with filenames ending in ".php" rather than ".html" then change the htmlext configuration variable to "php" (default is "html"). If you do that, then the server will interpret the created .php files as PHP files (after all that's what the .php filename ending means). In your template, you can have PHP include statements -- they will appear in the created .php files.

    For example, you could have a minimal template file tdefault.html as follows:


    <head><title>{namePlain} Posters</title></head>
    <body bgcolor=white>

    <?php include("../header.txt") ?>

    <INPUT TYPE="HIDDEN" NAME="aid" VALUE="{allpostersID}">
    <P><INPUT TYPE="TEXT" NAME="associatesearch">

    <?php include("../footer.txt") ?>


    In the above example, the header & footer would be in header.txt and footer.txt respectively (located in the directory where the home page is located; the ../ would be required since the created files are in subdirectories such as /animals/cats.html).

    In the sample template sets, you'll see tdefault.html and t0.html (that's a zero). The t0.html file is the template used to create the home page file (e.g.: /index.html). The tdefault.html file is used for all other pages. Also, the t0.html file must have a line in it somewhere that says <!--noInherit--> thus causing it to be use for the root category only and not for other categories. In fact, you can have a different template for each category (and its subcategories), e.g.: one for Movies, one for Animals, etc. For example, Movies is category 101, so t101.html would be its template. If a template file contains <!--noInherit--> then it is use for the category only and not for that category's subcategories (category 0 is the root category); otherwise, it is inherited by its subcategories. If no template is found for a category (either specifically or inherited), then tdefault.html is used.

    Yours truly,
    Cusimano.Com Corporation
    per: David Cusimano
    Affiliate Tools: Datafeed Merge

  3. #3
    Join Date
    January 17th, 2005
    Los Angeles, USA
    Hello David,

    I shall forward this to my programming partner. His eyes are less likely to glaze over

    Thanks for everything....

  4. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. Replies: 4
    Last Post: May 6th, 2012, 11:47 AM
  2. customization not taking
    By Rexanne in forum PopShops
    Replies: 13
    Last Post: November 7th, 2009, 03:18 PM
  3. Customization
    By jcaviani in forum Scripts
    Replies: 1
    Last Post: September 30th, 2003, 01:11 PM
  4. AllPosters customization
    By foo in forum Scripts
    Replies: 4
    Last Post: February 6th, 2003, 04:53 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