Results 1 to 2 of 2

Thread: Create variable to use in HTML

  1. #1
    michaer is offline Registered User
    Join Date
    Feb 2007
    Posts
    13

    Default Create variable to use in HTML

    Where do I craete global variables to be used in HTML page?
    I want to create a variable in category.class.php and assign values to it there, then display it in browse.html

  2. #2
    dody is offline Administrator
    Join Date
    Aug 2001
    Location
    Indonesia
    Posts
    3,731

    Default

    You can add the variable in browse.php
    Add the variable in this section
    PHP Code:
        // vars template
        
    global $header$footer$category$category_name$category_description,
                 
    $link$pagination$category_path$content$editor,
                 
    $category_path_search_opt$meta_keywords$meta_description,
                 
    $page_title$editors$sponsored_link$num_rows,
                 
    $num_rows_sponsored$num_rows_premium
    and this section
    PHP Code:
        DisplayTemplate($theme_path "browse.html",
          
    "\$header,\$footer,\$category_path,\$category_path_search_opt,".
          
    "\$category,\$category_name,\$category_description,\$meta_keywords,".
          
    "\$meta_description,\$page_title,\$editors,\$header,\$footer,\$num_rows,".
          
    "\$pagination,\$cat,\$link,\$content,\$start_number,\$ma,\$editor,".
          
    "\$sponsored_link,\$num_rows_sponsored,\$num_rows_premium"); 
    www.nicecoder.com
    www.dodyrw.com

Similar Threads

  1. Category number of links variable
    By ezykiwi in forum Blocks and Modification
    Replies: 4
    Last Post: 09-24-2006, 09:13 PM
  2. permission variable in browse.php?
    By ezykiwi in forum Templates
    Replies: 0
    Last Post: 09-04-2006, 08:56 AM
  3. Replies: 3
    Last Post: 09-21-2005, 05:28 AM
  4. Replies: 1
    Last Post: 06-03-2004, 09:03 AM
  5. Replies: 2
    Last Post: 10-03-2002, 11:09 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
  •