Results 1 to 7 of 7

Thread: template editing - excellent

  1. #1

    Default template editing - excellent

    Just thought i'd add a bit.

    Once I'd got my head around the scripting processes of php (not too hard) I've started to make background changes to vshare's templates.

    templates_c/users.tpl.php

    One area I needed to change was the Users display to include the First and Last names of members. this task proved reasonably easy by adding first of all between the Name & Country sections. (from line 53+):

    <td>FIRST
    <a href='users.php?a=<?php echo $_REQUEST['a']; ?>
    &status=<?php echo $_REQUEST['status']; ?>
    &sort=fname+asc'>[img]<?php echo $this->_tpl_vars[[/img]
    /templates/images/up.gif' border='0'></a>
    <a href='users.php?a=<?php echo $_REQUEST['a']; ?>
    &status=<?php echo $_REQUEST['status']; ?>
    &sort=fname+desc'>[img]<?php echo $this->_tpl_vars[[/img]
    /templates/images/down.gif' border='0'></a>
    </td>
    <td>LAST
    <a href='users.php?a=<?php echo $_REQUEST['a']; ?>
    &status=<?php echo $_REQUEST['status']; ?>
    &sort=lname+asc'>[img]<?php echo $this->_tpl_vars[[/img]
    /templates/images/up.gif' border='0'></a>
    <a href='users.php?a=<?php echo $_REQUEST['a']; ?>
    &status=<?php echo $_REQUEST['status']; ?>
    &sort=lname+desc'>[img]<?php echo $this->_tpl_vars[[/img]
    /templates/images/down.gif' border='0'></a>
    </td>
    Next after you've added the above script add this in from line 142
    <td><?php echo $this->_tpl_vars['users'][$this->_sections['aa']['index']]['fname']; ?>
    </td>
    <td><?php echo $this->_tpl_vars['users'][$this->_sections['aa']['index']]['lname']; ?>
    </td>
    Please note the line count alters when the first section is added.

    Hope the info helps someone.

    Dafydd

  2. #2
    Join Date
    May 2007
    Posts
    588

    Default

    hmm why not just change the user.tpl in the templates directory?

  3. #3

    Default

    Leki,

    Not sure I get what you mean.

    I wanted the spreadsheet style display of the membership "users" to include their first and last name. I cant see how i can make that sort of change in the templates/user.tpl

    If i can... please indicate where... cant see it....

    Dafydd

  4. #4
    Join Date
    May 2007
    Posts
    588

    Default

    maybe i dont get what you mean ;)

    do you mean the profile page?

    can you give a link?

  5. #5

    Default

    ha.... no not the profile page. It's the admin section, a list of members - displaying 20 on a page...which I'd like to up as well.

    Dafydd

  6. #6
    Join Date
    May 2007
    Posts
    588

    Default

    ahh...well it should be easier to edit \templates\admin\users.tpl to do the changes. I think the files in templates_c are generated from the .tpl files

  7. #7

    Default

    Thanks...I'll check up on what you've mention.

    Thank you for the support leki... appreciated.

    Dafydd

Similar Threads

  1. Editing tpl files?
    By cmm14513 in forum Template Modifications
    Replies: 1
    Last Post: 09-02-2008, 05:52 AM
  2. Editing my template
    By SKTV in forum Template Modifications
    Replies: 3
    Last Post: 10-15-2007, 06:27 AM
  3. Fatal Error after editing template
    By shopgood in forum General Discussions
    Replies: 0
    Last Post: 09-06-2007, 06:39 AM
  4. editing a .tpl
    By loachman in forum Feature Requests
    Replies: 2
    Last Post: 06-22-2007, 06:54 PM
  5. Template editing?
    By Luke Beale in forum Installation Support
    Replies: 3
    Last Post: 06-01-2007, 12:30 PM

Bookmarks

Posting Permissions

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