PHP Script $_SERVER["REQUEST_URI"] to Check for a Particular URL PathThe following PHP script checks to see if a url argument is TRUE: <?php Drupal 6 Page VariablesHere is a list of available variables within page.tpl for Drupal 6: General utility variables: Drupal if($is_front) PHP ConditionThe following PHP script can be used to check if the Drupal home page is TRUE: <?php Drupal 6 - Declaring Custom Regions and Style Sheets in the Theme's .info FileHere is an example theme.info file to reference formatting for declaring page regions and style sheets custom to that theme. ; $Id: theme-name-here.info,v 1.0 2009/mn/dy 02:30:57 Exp $ ; Information added by drupal.org packaging script on 2009-09-16 ; Declare custom page regions Drupal 6 - Increase PHP Max Memory Limit and File Upload LimitTo increase the default php memory limit and max file upload size in Drupal 6, the following methods can be performed: If you have access to your php.ini file add this script (recommended): In your php.ini file: *** A custom php.ini file can also be created adding only the script shown above. Drupalcamp Atlanta - Theming Drupal Menus SessionOn Saturday, September 19th 2009 at Kennesaw State University (Room #SO3031), Trent Wyman will be presenting a Drupalcamp session titled: "Theming Drupal Menus". The "Theming Drupal Menus" session is intended for Drupal beginners and will cover various techniques for theming primary, secondary, and tertiary level links into collapsible & expandable menus. --------------------------------------------------------------- 1) Static Links v/s Drupal Menu Links PHP Date/TimeBasic PHP date() script: <?php print date('Y'); ?> -------------------------------------------------------- Simple copyright statement using year ('Y') date format: <?php echo "© ".date('Y')." Trent Wyman. All rights reserved."; ?> or ... <?php echo "Copyright ".date('Y')." Trent Wyman. All rights reserved."; ?> -------------------------------------------------------- DRUPAL AUTHOR/DATE DISPLAY How to display HTML script as text on a web pageIn order to display HTML code on a web page as text, the "<" & ">" opening & closing characters need to be converted to: < = < Example: <a href=http://www.wy-designs.net>Wy-Designs</a> The above line when displayed by the browser it will display this: --------------------------------------------------------- Online Tool: How to insert Bullets using Adobe IllustratorTo insert bullets into text within an Adobe Illustrator file do the following: WINDOWS = Place the text cursor where you want the bullet to appear. Then, hold down the alt key and press 0149 on the numeric keyboard (not the numbers), when you release the alt key, a bullet will appear in the text. MAC = Place the text cursor where you want the bullet to appear. Then, select option + 8 to insert the bullet. Embed Flash into web page using SWF ObjectBelow are the scripts I use to embed a Flash file into a web page or Drupal node tpl file using SWF Object. Examples include using JW Player for rtmp & flv streaming. Also a basic SWF Object script to load single .swf or .flv file into a web page. Example 1: Load Streaming Video into SWF Object (using JW Player) |
