Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
The following styles are designed to work with the markup from a custom theme override template called [upload_attachments.tpl.php](http://snipplr.com/view/11851)
1
1136
posted 16 years ago by zachharkey
Few different ways to output primary links in your page.tpl.php template.
3
1264
posted 16 years ago by zachharkey
Rather than using target="_blank", which is deprecated by the W3C in XHTML, you should use rel="external" for links that you want to pop out in a new window. This is the javascript that makes it happen.
0
1135
posted 16 years ago by chippper
Groovy ranges works on dates also!
(http://kousenit.wordpress.com/2009/02/02/groovy-groundhogs/)
2
1059
posted 16 years ago by narkisr
paste it in wp-config.php and make sure the prefixes are right (wp_* is default)
also the blogs must be installed on the same database with different prefixes.
For example, you might have a primary blog with the table prefix wp_ on the database...
0
748
posted 16 years ago by philiph
Thanx to Guillaume Laforge, who provided this code snippet of Groovy code in a GSP. The snippet below is more or less the same, less the HTML. It will show all future evens and create a eventMap for each event.
0
1291
posted 16 years ago by hansamann
Please, be careful with trailing slash rewrite as post requests without a trailing slash will be ignored.
Be sure to test if you plan on using that one.
Not compatible with Drupal.
0
854
posted 16 years ago by troynt
I wanted to show a block of the current taxonomy term info (desc, name, img) in Drupal 6 views 2
Provide default argument
0
725
posted 16 years ago by lexx
Running a btrace script takes two separate steps by default:
1. Running jps to get the Java process ID.
2. Running btrace on the ID.
A simple awk script can merge the two into a single step.
0
916
posted 16 years ago by narkisr
here's the suckerfish dropdown menu for Joomla 1.5 that written by tbianco. It's extremely easy and here's what you need to do:
1) Create the main menu module and add a suffix to it of '_topmenu'. I use the underscore to so that the class name in...
4
1193
posted 16 years ago by jitendraweb
An example of how to write your own navigation with dynamic "active" classes.
3
1165
posted 16 years ago by kristarella
I currently have project_issue nodes set for replacement pattern issues/issue[nid] in Drupal 5.x PathAuto. This query fixes all of the URL aliases for entries created before this was set correctly.
0
868
posted 16 years ago by tgbdad