Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter toy

    (@toy)

    anyone?

    You edit your Main Template file to add the function inside The Loop.

    The code you’ll actually need to add will be something like:

    <?php pri_print_browser('1', '2', true, '3');?>

    Where 1,2 and 4 need to be replaced by:
    1. String to be printed before description
    2. String to be printed after description
    3. String to be printed between web browser and operating system description, defaults to ‘on’.

    The “true” will display icons and the “false” will not, I believe.

    No, edit your comments.php file.

    This is what I’m using:

    if (function_exists('pri_print_browser')) pri_print_browser(", using", "", true, 'on');

    Oh, yeah…on closer look I see the confusion. What is “the comment loop”? Never heard of that before.

    Use this code it works perfectly in my blog


    <?php pri_print_browser("Using ", "", true, 'on');?>

    The Comment Loop isn’t nearly as documented as the main Loop. To answer your question, the Comment Loop can be found in the comments.php file of your theme. It’s a loop similar to the main posts loop, but is responsible for displaying the comments on a post. It starts with
    <?php if ($comments) {
    An ends later just before the comment form is displayed.

    -tg

    Thread Starter toy

    (@toy)

    Thanks soo much =]

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Browser sniff’ is closed to new replies.