Siteframe development notes and files from cglusky
Skype Plugin
Attached is a simple plugin for use with Skype. It enables your users to enter their Skype name in their profile. Installation and useage are in the comments at the top of the file. You'll have to unzip it first. Pease note that it does validate user input using a regular expression pattern that may not allow all Skype names. I was not able to find any documentation on...
2 comment(s)
/ cglusky
/ cglusky's dev notes
/ on June 6, 2007 at 12:01
Template Dev - A look at "The Daily Photo"
There has been some interest about how Glen created TDP template, so I thought I would dissect it a bit. Please note I do not have access to the actual template, so this is just a method to make it happen. BTW, Widescreen is the base template for this look.
The first thing you notice about TDP is the thumbnails stacking up with no text. And the thumbs are all the same size -...
3 comment(s)
/ cglusky
/ cglusky's dev notes
/ on March 2, 2007 at 10:10
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
Subfolder Sort Order
I have a site that has monthly assignments; each month in their own subfolder. I would like them to be sorted by date but the default is alpha. Have not looked to see how to change this yet, but wanted to get it out there. Probably not a big deal for most.
Happy New Year
Coby
1 comment(s)
/ cglusky
/ cglusky's dev notes
/ on January 1, 2007 at 05:56
Clean URL's on OS X
I do my development on a Mac and have been struggling to get mod_rewrite and htaccess working to support clean URLs. This blog entry is referenced a bit around the net -
http://www.clagnut.com/blog/350/ but it did not work for me. I ended up getting the solution from Glen.
I moved my dev folder outside of the defaults for OS X/Apache and created an alias in the your_user_name.conf...
1 comment(s)
/ cglusky
/ cglusky's dev notes
/ on July 11, 2006 at 22:24
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
User Folders - Error on user edit
If user folders are set to auto create with a new account and top-level folders are set to admin only you get the following error if the user then tries to edit their folder:
Error: sorry, top-level folders can only be created by site administrator(s)
It does not appear to stop the user from editing and saving changes.
0 comment(s)
/ cglusky
/ cglusky's dev notes
/ on June 7, 2006 at 08:09
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
Hidden causing problems
Glen,
Not sure if this was fixed yet or not. If a user assigns a page as hidden it can cause problems with recent and random block. I have not looked at the sql yet but don't think they exclude hidden.
Coby
1 comment(s)
/ cglusky
/ cglusky's dev notes
/ on May 25, 2006 at 07:42
siframe version 1.2
Here is the latest build for the siframe template.
Changes from 1.1.2:
-Turned off right click (for most modern browsers) on page and file images
-Turned off IE image toolbar for entire site
-New font (Verdana) for easier reading (maybe)
-All recent/random thumbs now take you to page view
-File view now supports an image up to 750px wide
-Links are now underlined on hover vice bold ...
1 comment(s)
/ cglusky
/ cglusky's dev notes
/ on April 8, 2006 at 19:13
Patch for mail.php in v5.0.2
Bug: A syntax error prevents mail.php from displaying.
File: mail.php
Fix:
-Find line 50:
$PAGE->assign('page_title', sprintf(lang('page_title_mail'), $group->get_title());
-Replace with:
$PAGE->assign('page_title', sprintf(lang('page_title_mail'), $group->get_title()));
1 comment(s)
/ cglusky
/ cglusky's dev notes
/ on February 23, 2006 at 11:28
multi-tag search
Been working with Glen to develop a method to search via multiple tags. These files have been modified to work with this method. They have had limited testing so use at your own risk. Hopefully they will be ready for inclusion in the next version (5.0.3?), but that is up to Glen. You can see this feature at work here:
http://www.cglusky.com/tags.php
0 comment(s)
/ cglusky
/ cglusky's dev notes
/ on February 22, 2006 at 19:12