Results 1 to 2 of 2

Thread: jtncomputers testimonial manager available to all users?

  1. #1
    Join Date
    Apr 2005
    Posts
    81

    Default jtncomputers testimonial manager available to all users?

    I notice that the testimonial manager was seen by all users.

    In those cases where you only want it viewed by the admin, find the tag:

    PHP Code:
    function testimonial_show_admin_icons() 
    and change the code under it to read:

    PHP Code:
        global $config;
            if(
    $admin == "yes")$member "admin";
            if(
    $admin == "no")$member "member";
        switch (
    $member) {
            case 
    'admin':
            
    $admin_link '<a href="index.php?action=addon_testimonial_admin"><img src="' .$config['baseurl'].'/addons/testimonial/images/admin_icon.jpg"></a>';
                break;
            case 
    'member':
            
    $admin_link '';
                break;
            default:
            
    $admin_link '';
                break;

        return 
    $admin_link
    Just my small contribution to our thriving knowledge base.

  2. #2
    Join Date
    Sep 2004
    Location
    Jackson, MS
    Posts
    447

    Default Re: jtncomputers testimonial manager available to all users?

    Thanks for the heads up. I have fixed it now!!!

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
  •