Results 1 to 10 of 10

Thread: pick format / hot format display templates

  1. #1
    Join Date
    Aug 2003
    Posts
    233

    Question pick format / hot format display templates

    Is there a way I can add to the pick display page a format that inlcudes the sites description ?

    ie: It is nicely formatted now by boxes for each category but within the box I would like to display the same way as browse template displays the link details.
    Is this possible to do ?

    Once again thanks for ALL your wonderful help and support.

    Lewis
    Best
    Lewis
    www.AtoZfitness.com/indexu

  2. #2
    Join Date
    Apr 2003
    Location
    Atlanta GA
    Posts
    3,395

    Default Re: pick format / hot format display templates

    open pick.php and change the following:

    Code:
    // mod to use row.html 
    //  $links_obj->template_file = $theme_path."pick_link_rows.html";
      $links_obj->template_file = $theme_path."rows.html";
    you will probably want to comment out the following two lines
    Code:
    // mod to use row.html 
    //$links_obj->pick_link_table_header = $msg["10063"]; 
    //$links_obj->pick_link_table_footer = $msg["10064"];
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

  3. #3
    Join Date
    Aug 2003
    Posts
    233

    Default

    Esm,
    I am learning now it is your turn to be someones Senesi

    Best,
    Lewis
    Best
    Lewis
    www.AtoZfitness.com/indexu

  4. #4
    Join Date
    Apr 2003
    Location
    Atlanta GA
    Posts
    3,395

    Default

    well, I do what I can but there are other folks on here that know a whole lot more than me!

    we can learn together!
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

  5. #5
    Join Date
    Aug 2003
    Posts
    233

    Default

    Hi again,

    How do I remove the special links you improted from links.def in the new link add page ?

    I notice it is NOT in add_form template . Do I need to modify add.php directly ?

    remove these items.

    pickadddate
    picklengthdays
    pickexpiry
    old_id


    best,
    Lewis
    Best
    Lewis
    www.AtoZfitness.com/indexu

  6. #6
    Join Date
    Apr 2003
    Location
    Atlanta GA
    Posts
    3,395

    Default

    to prevent their display in the add_form.html/modify_form.html, just remove the following:
    Code:
    <%custom_field_form%>
    the will still be in the database and accessable in the edit link screen of the admin control panel
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

  7. #7
    Join Date
    Aug 2003
    Posts
    233

    Default

    worked like a charm but then again I never doubted it for a second.

    Tell me so far I have been able to make every single change I wanted to indexu with your help.

    I have one more request and please tell me if this is too difficult to do anyone.

    Currently I have my pick sites first and then the sponsored links.
    Now the sponsored links look better then the pick links casue of the color change.

    Is it possible to have the pick sites also have a different color then the plain link.
    Something like this:

    the plain links are white with grey

    the sponsor links are white with a yellowish color.

    I would like to have the pick links white with a very light green color.

    Is this possible ?

    All the best to all and have a great week-end.
    Lewis
    Best
    Lewis
    www.AtoZfitness.com/indexu

  8. #8
    Join Date
    Apr 2003
    Location
    Atlanta GA
    Posts
    3,395

    Default

    there is no quick and dirty answer for this. there is a some discussion on this in a thread somewhere and I may have even provided a solution.

    Three ideas come to mind:
    [list=1][*]modify link.class.php ( display function )[*]modify browse.php[*]modify browse.html ( when v4 comes out with "smarty" templates )[/list=1]
    modify link.class.php:
    I did this at one point ( modified for pick ):
    Code:
          if($validation)
            $vid = $result->Fields("vid");
    // mod for highlighting sponsors in search
     if ($result->Fields("pick")==1)
     $this->template_file = "/home/acct5/public_html/indexu/themes/default/sp_pick_rows.html";
      else
      $this->template_file = "/home/acct5/public_html/indexu/themes/default/rows.html";
    modify browse.php
    split the current link SELECT command in two by adding WHERE pick=1 and WHERE pick <> 1 and use sp_pick_rows.html and rows.html as appropriate.

    you will need to create sp_pick_rows.html - use rows.html as the starting point.

    I have a dinner date with wifey tonight so my time is limited now...
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

  9. #9
    Join Date
    Aug 2003
    Posts
    233

    Default

    Have a great dinner date.
    I'll leave this one for now until you have some more time as I do not think it is complete but then again I have no clue heh heh.

    Best
    Lewis
    Best
    Lewis
    www.AtoZfitness.com/indexu

  10. #10
    Join Date
    Apr 2003
    Location
    Atlanta GA
    Posts
    3,395

    Default

    Originally posted by lewisw
    Have a great dinner date.
    I'll leave this one for now until you have some more time as I do not think it is complete but then again I have no clue heh heh.

    Best
    Lewis
    the code above to modify link.class.php does work. just create the sp_pick_rows.html and change it to suit.
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

Similar Threads

  1. Replies: 2
    Last Post: 05-12-2004, 10:18 PM
  2. Replies: 1
    Last Post: 08-19-2003, 08:40 AM
  3. Replies: 3
    Last Post: 08-14-2003, 10:11 AM
  4. Changing the format...templates
    By fattymen in forum v5.x
    Replies: 7
    Last Post: 11-06-2001, 05:39 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
  •