DrupalBin
Submit Code
About
Recent Posts
message i get when running openssl s_client -connect 150.203.86.21:443
Fix for Code
Code
add_to_cart_by_sku_contents()
Fix for page.tpl.php
Page.tpl
foreach is beeing disregarded dispite variable is array. Please help. Outside Drupal it works as standalone.php file
foreach is beeing disregarded dispite variable is array inside drupal. Please help. Outside Drupal it works as standalone.php
Fix for filefield implementation in an admin page. "An HTTP error 0 occurred. /drupal/?q=filefield/ahah///"
PHP Code custom.module
more
User login
Log in using OpenID:
What is OpenID?
Username:
*
Password:
*
Log in using OpenID
Cancel OpenID login
Create new account
Request new password
Tags
CCK
drupal
fapi
jquery
menu
module
php
simpletest
taxonomy
test
theme
views
more tags
Home
›
simonsays1980
›
Recent Posts
simonsays1980
View
Posts
Error Code when using Ctools Modal
February 17, 2010 - 5:38pm —
simonsays1980
An error occurred at
/
drupalBCom
/
test
/
ajax
/
go.
Error Description:
thedude
|
localhost
localhost
thedude
Ajax Test
My account
Create content
Administer
Log
out
Home
module development
Read more
Using CTools
February 17, 2010 - 5:29pm —
simonsays1980
function
example_test_modal_callback
(
$js
=
FALSE
)
{
if
(
$js
)
{
ctools_include
(
'ajax'
)
;
ctools_include
(
'modal'
)
;
$form_state
=
array
(
'ajax'
=
>
TRUE
,
'title'
=
>
t
(
'Login
module development
Read more
Error Code
February 16, 2010 - 9:17am —
simonsays1980
An error occurred at
/
drupal
/
test
/
ajax
/
go.
Error Description:
thedude
|
Drupal powered by BitNami
Drupal powered by BitNami
thedude
Ajax Test
My account
Create content
Administer
L
module development
Read more
CTools Modal Frames
February 16, 2010 - 8:59am —
simonsays1980
<?php
// $Id$
/**
* Implementation of hook_menu().
*/
function
ctoolstest_menu
(
)
{
$items
=
array
(
)
;
$items
[
'test'
]
=
array
(
'title'
=
>
'Ajax Test'
,
'page callback'
=
>
'example_t
module development
Read more
Included Modules of Apache in bitnami Drupal stack
January 27, 2010 - 10:37am —
simonsays1980
LoadModule authn_file_module modules
/
mod_authn_file.so
LoadModule authn_dbm_module modules
/
mod_authn_dbm.so
LoadModule authn_anon_module modules
/
mod_authn_anon.so
LoadModule authn_dbd_module module
Drupal System
Read more
Fix for $_GET variable is empty nside of drupal
January 25, 2010 - 6:32pm —
simonsays1980
[
Mon Jan 25 23:14:00 2010
]
[
error
]
[
client ::1
]
Array
\n
(
\n
[
q
]
=
>
user
/
1
/
info
/
place_of_living\n
[
lng
]
=
>
11.25
\n
[
lat
]
=
>
50.28933925329177
\n
[
country
]
=
>
Deutschland\n
[
region
]
=
>
Th\x
module
Read more
$_GET variable is empty nside of drupal
January 25, 2010 - 6:26pm —
simonsays1980
[
Mon Jan 25 23:14:00 2010
]
[
error
]
[
client ::1
]
Array
\n
(
\n
[
q
]
=
>
user
/
1
/
info
/
place_of_living\n
[
lng
]
=
>
11.25
\n
[
lat
]
=
>
50.28933925329177
\n
[
country
]
=
>
Deutschland\n
[
region
]
=
>
Th\x
module
Read more
UPDATE statement
December 25, 2009 - 8:32am —
simonsays1980
case
'update'
:
$query
=
"SELECT languages, skype, msn, icq, mobile, telephone, address, zipcode, website, interests, clubs, advicedwebsites"
.
" FROM {profileadds} WHERE uid = %d"
;
$result
module development
Read more
Action which should redirect the user to his account after a node had been deleted.
December 12, 2009 - 5:42pm —
simonsays1980
/**
* Implementation of hook_action_info().
* Constructs an action which reacts on the deletion of a node.
* @param object $node
* @return
*/
function
surf_action_info
(
)
{
$info
[
'surf_de
Module Development.
Read more
PHPTemplate override of node_delete_confirm_submit
December 11, 2009 - 7:04pm —
simonsays1980
/**
* @Override node_delete_confirm_submit in node.pages.inc.
*/
function
phptemplate_node_delete_confirm_submit
(
$form
,
&
$form_state
)
{
$node
=
node_load
(
arg
(
1
)
)
;
//alternative: $node = node_lo
module development
Read more
Fix for Load a Node on the user Page
November 27, 2009 - 7:35pm —
simonsays1980
function
mymodule_menu
(
)
{
$items
[
'user/%user_uid_optional/surf'
]
=
array
(
'title'
=
>
'Info'
,
'page callback'
=
>
'load_info'
,
'page arguments'
=
>
array
(
1
)
,
'access callback'
=
>
TRUE
,
module development
Read more
Load a Node on the user Page
November 27, 2009 - 7:28pm —
simonsays1980
function
mymodule_menu
(
)
{
$items
[
'user/%user_uid_optional/surf'
]
=
array
(
'title'
=
>
'Info'
,
'page callback'
=
>
'load_info'
,
'page arguments'
=
>
array
(
1
)
,
'access callback'
=
>
TRUE
,
module development
Read more
Easy Secondary Tabs
November 23, 2009 - 6:42pm —
simonsays1980
function
testmodule_menu
(
)
{
$items
[
'user/%user/info'
]
=
array
(
'page callback'
=
>
'test_info'
,
'title'
=
>
'Info'
,
'parent'
=
>
''
,
'type'
=
>
MENU_LOCAL_TASK
,
'access callba
module development
Read more
Secondary Tabs
November 22, 2009 - 9:22am —
simonsays1980
function
MyModule_menu
(
)
{
$items
[
'user/%user_uid_optional/info'
]
=
array
(
'title'
=
>
'Info'
,
'page callback'
=
>
'user_view'
,
'page arguments'
=
>
array
(
1
)
,
'access callback'
=
>
'
module development
Read more