Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
I am attempting to change the string for the privatemsg module link for one type of node only. Currently the module includes a function which checks if the item is a node or comment (via variable "$type").
I, however, am trying to change it so that it is different for forum objects and nothing else.
I attempted to add a key to the array value by modifying the actual privatemsg.module ( see code )
I'm not too strong in PHP, so I'm sure this is just a coding error on my part. I'm trying to have my forum nodes mimick the module nodes in layout and design. I've already done a bit of tweaking on the comment module and I'd like it to apply to forum nodes as well.
In my node.tpl.php I attempted to include an "if/then" statement, but I can't seem to get the syntax right.
getting this msg: warning: Missing argument 3 for theme_menu_local_task() in /home/jwilde/public_html/ideascape/includes/menu.inc on line 696. each time I open a page with tabs on the node, eg, access control with the three tabs - permissions, roles, access rules. Any ideas? www.advancinginsights.com
I'm having CSS issues with Internet Explorer and using CSS to set the textarea to 95%. It looks pretty without text, but as soon as you type it expands beyond its set area.
I've tested this with the drupal site, and ofcourse it works great. I just wondered what trick you used, or what pit I've falled into.
I have been readying the next version of PHPTemplate for the 4.6 release (the RC should be out very soon now). You can get this in CVS now, but it is NOT meant for 4.5. I am still undecided wether to back port it.
Did away with the template caching. I did some benchmarking and it appears that file_exists() is nowhere near as heavy an overhead as I thought. This means you don't have to go to admin/themes to have the cache refresh.
$seqid and $zebra variables are now available to all templates without needing to do the template.php hack (see: http://drupal.org/node/16383).
$node object available in page.tpl.php on node view pages. This allows for some very creative layouts, and styling the entire page different for different node types (by adding a node-$node->type class to the body for instance).
Automatic loading of node-$type.tpl.php files. You can create different templates for story / blog / etc. nodes. Practically, I still think CSS would be better for this, but it has been requested often, so here it is.
Automatically uses a favicon.ico if found in the theme directory.