DrupalBin
Submit Code
About
Recent Posts
Code
1 hour 43 min
ago
weird filefield with mp3 embed object
1 hour 59 min
ago
D6 FAPI Examples
2 hours 27 min
ago
returning to the same code a second time doesn't have the $form_values argument set
6 hours 47 min
ago
more
Tags
CCK
drupal
fapi
jquery
menu
module
Panels
security scanner
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
views
Bad query
August 14, 2008 - 4:50pm — Anonymous
user warning: You have an error
IN
your SQL syntax;
CHECK
the manual that corresponds
TO
your MySQL server version
FOR
the
RIGHT
syntax
TO
USE
near
'= node_node_data_field_client.nid WHERE node.type i
views
Read more
Fix for Views
August 11, 2008 - 3:44pm — Anonymous
<?php
$view_args
[
]
=
""
;
$view
= views_get_view
(
'degree_program'
)
;
$programs
= views_build_view
(
'items'
,
$view
,
$view_args
,
false
,
20
)
;
$majors
=
array
(
)
;
foreach
views
Read more
Fix for Views
August 11, 2008 - 3:44pm — Anonymous
<?php
$view_args
[
]
=
""
;
$view
= views_get_view
(
'degree_program'
)
;
$programs
= views_build_view
(
'items'
,
$view
,
$view_args
,
false
,
20
)
;
$majors
=
array
(
)
;
foreach
views
Read more
Fix for Views
August 11, 2008 - 3:21pm — Anonymous
<?php
$view_args
[
]
=
""
;
$view
= views_get_view
(
'degree_program'
)
;
$programs
= views_build_view
(
'items'
,
$view
,
$view_args
,
false
,
20
)
;
$majors
=
array
(
)
;
foreach
views
Read more
Views
August 11, 2008 - 3:21pm — Anonymous
<?php
$view_args
[
]
=
""
;
$view
= views_get_view
(
'degree_program'
)
;
$programs
= views_build_view
(
'items'
,
$view
,
$view_args
,
false
,
20
)
;
$majors
=
array
(
)
;
foreach
views
Read more
Fix for Argument handling code for a view taking in TID as argument, trying to get the parent TID to be returned (if it has)
June 27, 2008 - 11:40am — Anonymous
// note that this only gets the immediate parent
if
(
$args
[
0
]
)
{
$parents
=
taxonomy_get_parents
(
$args
[
0
]
)
;
if
(
$parents
)
{
foreach
(
$parents
as
$parent
)
{
$parentID
=
$parent
->
tid
;
arguments
taxonomy
views
Read more
Argument handling code for a view taking in TID as argument, trying to get the parent TID to be returned (if it has)
June 27, 2008 - 10:14am — Anonymous
if
(
taxonomy_get_parents
(
$args
[
0
]
)
)
{
$args
[
0
]
=
taxonomy_get_parents
(
$args
[
0
]
)
;
}
return
$args
;
arguments
taxonomy
views
cck variables get printed as null in Drupal 5 view
June 10, 2008 - 5:57am — Anonymous
//in template.php----------------------------
function
phptemplate_views_view_list_promotion_box
(
$view
,
$nodes
,
$type
)
{
/*
$fields = _views_get_fields();
CCK
D5
views
Read more
Inserting a nodereference field into a view.
June 4, 2008 - 8:03am — Anonymous
// Add the nodereference field if it's not present.
$nodereference_table
= content_views_tablename
(
$nodereference_field
)
;
CCK
nodereference
views
Read more
Fix for views_ajax show thumbnail
May 26, 2008 - 9:34pm — Anonymous
function
theme_views_ajax_page_item
(
$node
)
{
$file
=
next
(
$node
->
files
)
;
// return l(theme('image', $file->filepath, NULL, NULL, array('border' => 0)), $path, NULL, NULL, NULL, NULL, TRUE);
ajax
Custom theme
views
Read more
1
2
3
4
5
next ›
last »