DrupalBin
Submit Code
About
Recent Posts
Fix for Code
4 hours 45 min
ago
Fix for Code
4 hours 45 min
ago
Code
4 hours 51 min
ago
whole thing
5 hours 42 min
ago
more
Tags
CCK
drupal
fapi
jquery
menu
module
Panels
php
simpletest
test
theme
views
more tags
User login
Log in using OpenID:
What is OpenID?
Username:
*
Password:
*
Create new account
Request new password
Log in using OpenID
Cancel OpenID login
Home
theming
privatemsg_list theming refactor
October 24, 2008 - 11:15am — Anonymous
function
privatemsg_list
(
$uid
=
NULL
)
{
global
$user
;
disallow_anon_access
(
)
;
if
(
!
$uid
||
$uid
==
$user
->
uid
)
{
privatesmg
theming
Add new comment
Read more
Body classes for css
September 27, 2008 - 1:37pm — Anonymous
switch
(
$hook
)
{
case
'page'
:
// Check for logged in or anonymous user
$vars
[
'logged_in'
]
=
(
$user
->
uid
>
0
)
?
TRUE
:
FALSE
;
body classes
layout
Panels
template.php
theming
Read more
How to get active class back in the active trail of D5 menus
September 18, 2008 - 3:46pm — Anonymous
In page.tpl.php, you need to change:
<div id=
"primary"
>
<?php
print
theme
(
'links'
,
$primary_links
)
;
?>
</div> <!-- /
#primary -->
to:
<div id=
"primary"
>
<?php
print
$primary_links
;
?>
theming
Read more
changing the login fields and button text
September 10, 2008 - 4:59am — Anonymous
function
phptemplate_user_login
(
$form
)
{
$login_node
=
node_load
(
array
(
'nid'
=>
1
)
)
;
//We're removing the description text before the form is rendered
$form
[
'pass'
]
[
'#description'
]
=
''
;
drupal 5
login
theming
Read more
Fix for Code
July 15, 2008 - 11:32pm —
litwol
Drupal.
theme
.
item_list
=
function
(
items, title, type, attributes
)
{
var
output =
'<div class="item-list">'
;
if
(
items == undefined
)
{
items =
[
]
;
/*initialize default values*/
}
JS THEMING
JSON
theming
Read more
Fix for Swap out javascript (jQuery) files
July 13, 2008 - 9:37am — Anonymous
We talked a little about the
"best"
way to swap out javascript files and the way we
've been doing it recently for sites that require 1.2 and higher, you can use this method.
javascript
jquery
theming
Read more
Individual menu classes on theme
June 18, 2008 - 10:36am — Anonymous
/*******individual menu classes******/
function
phptemplate_menu_item
(
$mid
,
$children
=
''
,
$leaf
=
TRUE
,
$extraclass
=
''
)
{
template
template.php
theme
theming
Read more
block visibility code doesn't work in all regions
February 28, 2008 - 3:04pm — Anonymous
if
(
drupal_is_front_page
(
)
==
TRUE
)
{
return
FALSE
;
}
else
{
return
TRUE
;
}
block
regions
theming
Example Page template
February 9, 2008 - 6:38pm —
JuliaKM
<?php
//your template can be found at myspecialtemplate.tpl.php
function
_phptemplate_variables
(
$hook
,
$vars
=
array
(
)
)
{
switch
(
$hook
)
{
case
'page'
:
template.php
theming
Read more
Fix for Swap out javascript (jQuery) files
February 2, 2008 - 1:55am — Anonymous
/*
From a Lullabot Workshop:
javascript
jquery
theming
Read more
1
2
next ›
last »