Tagged Questions

1
vote
1answer
24 views

Unable to edit a page content drupal 6

I am unable to edit a page content on my site even with the admin account.I have a page with the profile informations of the committee, I can see that page on the site but when i click the edit button ...
0
votes
1answer
21 views

How can I exclude admin(uid=1) for “Views Argument PHP Validator code” which limit a view to a User’s uid value?

I have a page view with a menu tab and URL looks like my-site.com/user/%/my-view I use return $argument == $GLOBALS['user']->uid; for default argument. And then I would like to limit the argument ...
0
votes
0answers
13 views

Fatal Memory error only when parsing line 33 in cache.inc [closed]

I understand that it is a very common question, but in all cases, increasing the php memory limit was the only solution. I have increased the limit to 150 MB, and I personally believe it is quite not ...
1
vote
2answers
53 views

How to show “New” if the node author is registered within 4 weeks.

I would like to print "New" if the node author is registered within 4 weeks in a field of "node View" by using custom php with Views Custom Field. I tried the code below but didn't work. Am I missing ...
3
votes
1answer
40 views

What is the best way/api to load a node by node content type and a field value?

Aside from plain SQL, is there any Drupal api to retrive node(s) by passing a node CCK type and a field value? For example, I would like to get the node which is an Assignment CCK type, by matching ...
0
votes
0answers
101 views

How to evaluate php code in a content type text field in Drupal 6

I have a content type with some fields. Normally I would user "filtered HTML" option as input format, but now I want to user "PHP filter". I've placed my php code into the field <?php echo ...
3
votes
1answer
116 views

Using hook_form_alter() to prevent free email addresses from registering on a Drupal 6 site

I have been tasked with blocking specific email address domians from registering at our Drupal 6 site (gmail.com, aol.com & yahoo.com). I implemented some JQuery code to do this but the problem ...
1
vote
0answers
101 views

Adding variables in db_query for webform dynamic select

I would like to populate a dynamic select option in page 2 of my webform based on the value of another select option in the previous page. I would like to use a variable in db_query, and hence tried ...
0
votes
1answer
60 views

How to modify a view's empty text to show a different message depending the user viewing it

I have created a view displaying a user's blog entries. In view's empty text i have put the simple php code showing below You have not created any blog entries. You can create a Now i want to ...
0
votes
1answer
155 views

Custom PHP code in Rules differs from Devel's one

I'm facing an issue which is quite boring since the result displayed into Devel's PHP executer differs from the results of the Custom PHP code. What I want to do is sending private messages (thanks to ...