Tag: smarty

Help Needed In Smarty HI, Im new in using Smarty and Im having a problem when I tried installing it on a Linux Server... When I load my index php it display nothing... not even an error. I already tried iclude the path of my directory in php.ini but it still is not working. Please help... this is badly needed  :'(
3 comment(s) / fermie / Q&A / on April 8, 2008 at 19:21

Smarty Error I've just set up Siteframe Beaumont 5.0.2 and I'm getting this message at the top of a lot of pages: Warning : Smarty error: unable to read resource: "rte_head_1.tpl" in /usr/local/lib/php/Smarty/Smarty.class.php on line 1095 Don't know anything about how Smarty uses my .tpl files, all I know is that I don't seem to have one called rte_head_1.tpl in my...
3 comment(s) / Myles / Q&A / on March 3, 2007 at 22:36

New Smarty Block - Folder Tree This is a custom Smarty Block that is hacked together from the sitemap.php file and a few others. The end result is a folder tree view like you get from the sitemap.php script except you can invoke it from any of your templates like this: {folder_tree} ...format here.... {/folder_tree} I designed this for an easy way to create vertical navigation menus based on your folder structure....
0 comment(s) / cglusky / cglusky's dev notes / on February 26, 2007 at 14:05

Template Dev - Previous and Next With Thumbs This text file includes a snippet that can be used to render Previous and Next functions with thumbnails. If the Previous or Next page does not have an image it will use the page title. If there is no previous or next page it will do nothing.
2 comment(s) / cglusky / cglusky's dev notes / on June 17, 2006 at 06:26

Template Dev - Using All and Menu Together The {all} block can be used to generate arrays of info from several classes. Folders, pages and images are the main objects of interest for the {all} block. You can use {all} to generate a list of all folders: ---------------- {all class="folder"} {$folder.title} {/all} --------------- Or you can combine it with menu to add more sophisticated formatting options: ...
0 comment(s) / cglusky / cglusky's dev notes / on June 2, 2006 at 14:30

menu items based on login I'd like to have menu items display only if the  member has logged in. I see how to do it for an 'admin', but can I do it for groups? what would the syntax be? thanks.
1 comment(s) / mabzy / Q&A / on April 16, 2006 at 16:47

About Version Numbers Siteframe uses a fairly standard version numbering scheme: major . minor . patch where major is the major version number (e.g., "5"), minor is a minor release (usually with significant enhancements), and patch is incremented with each new formal relase. Typically, a major release involves a substantial rewrite of the code or major new enhancements. A minor...
0 comment(s) / glen / General Info / on November 27, 2005 at 21:03

Siteframe Beaumont (5.x) features Siteframe Beaumont is the 5.0 release of Siteframe. It is a complete rewrite of the underlying Siteframe codebase, and includes a number of innovative features. Here are some of the more notable ones: Simplified registration/invitation interface. If an existing user invites a new user to join a Siteframe website, registration is streamlined because the new user's e-mail address has...
0 comment(s) / glen / General Info / on November 26, 2005 at 23:27

page_next / page_prev (Smarty extension functions) These functions provide a context for the next or previous pages in a specific folder (for a given page in that folder). For example, if a folder contains pages A, B, C, and D, then the "next" page for B is C, and the "previous" page for B is A. Note that this function uses the default folder sort order; for example, if a folder is sorted in date order (most recent first), then the pages...
0 comment(s) / glen / Templates / on November 6, 2005 at 20:37

page_views (Smarty template function) This function returns a count of page views in the last N days (default N=1). For example, <p>There have been {page_views days=7} page views in the last week.</p> would show the number of page views in the last 7 days.
0 comment(s) / glen / Templates / on August 28, 2005 at 21:54

folder_path (Smarty extension block) The {folder_path} block is used to construct a "breadcrumb" trail. It creates a list of folder objects, one for the current folder on up to the top-level folder. Example: {folder_path folder=$folder_id} <a href="{$folder.url}">{$folder.title}</a> {/folder_path} Since this is a block function, you can use this in a Smarty template to format or modify as you see fit.
0 comment(s) / glen / Templates / on May 27, 2005 at 13:12

DEPRECATED: all_folders (Smarty extension block) The {all_folders} block has been dropped and has been replaced with the generic {all} block. To use it, change {all_folders ...} to {all class="Folder" ...} and everything should work just the same. The {all_folders} ... {/all_folders} block iterates through all the folders and produces a template context for each folder. If the parent=N parameter is provided, then only folders which are...
0 comment(s) / glen / Templates / on May 26, 2005 at 22:28

menu (Smarty extension function) {menu} is a custom Smarty function for the construction of menus. A menu , in this context, is a set of links and text for a specific function. For example, if you are signed in, the bottom of this page has a menu with various items such as "New Comment" and "Send Feedback." If you are the owner of a page, there are even more options like "Edit" and "Delete." These menus are all...
0 comment(s) / glen / Templates / on April 20, 2005 at 16:41

calendar (Smarty extension function) The calendar function creates a small table containing a calendar of the specified month, with links to archive pages for the specific days in the month that contain pages. There are several optional parameters: year - if not specified, the current year is used. month - if not specified, the current month is used. folder - if not specified, the calendar contains links...
0 comment(s) / glen / Templates / on April 6, 2005 at 07:55

ydate (Smarty extension function) ydate is a Smarty extension function that formats a date or time value according to certain rules: if the time is < 91 seconds, it shows "about a minute ago" if the time is < 31 minutes, it shows "about X minutes ago" if the time is < 91 minutes, it shows "about an hour ago" if the time is < 12 hours, it shows...
0 comment(s) / glen / Templates / on April 2, 2005 at 17:38

userdate (Smarty extension function) userdate is a Smarty extension function that formats a date or time string and adjusts it for the logged-in user's timezone. Example:     {$doc_created|userdate:"%Y-%m-%d %H:%S"} This will display the document creation date adjusted for the user's timezone. The format string uses the standard PHP strftime() function; it is recommended that you not include a timezone...
0 comment(s) / glen / Templates / on April 2, 2005 at 17:34

My page is blank; what did I do wrong? There are a number of causes for this particular problem. If there's no error message displayed on screen, it's most likely that the error messages are being redirected into the web server's log file. On my server, all the messages end up in /var/log/httpd-error.log. On your system, it may be something similar. Check the log files and see what's there. If there's no obvious problem or...
3 comment(s) / glen / Q&A / on March 28, 2005 at 04:57

Recommended/Required Software This document describes the software that is required to install Siteframe. Web server: Siteframe has been installed under Apache 2.0.53 ; it will most likely work under older versions of Apache, but it has not been verified. It should work under any web server that supports PHP5, but, again, nothing besides Apache 2.0 has been confirmed and tested. PHP5: Siteframe...
0 comment(s) / glen / Internals / on March 22, 2005 at 21:18