Questions about PHP not related to Drupal should be asked on Stack Overflow. Don't use this tag to generally mean "the question is about PHP code."
1
vote
2answers
37 views
Increasing PHP memory limit (Possible Drupal override?)
Problem
I've recently come across a problem with my dev version of drupal where I realised the php memory limit isn't high enough.
I've changed the main php.ini files but they seem to be ignored and ...
0
votes
1answer
14 views
Programmatically execute FEED import
The situation is I can successfully import remote content using the FEEDS module by manually clicking the import button.
I need to execute the import process from code, either from a module or ...
1
vote
1answer
21 views
Notice: Undefined index: field_brand_image in include() in views field template
I've got another question about undefined index that I can use help with.
The error message I get is: Notice: Undefined index: field_brand_image in include() on line 15
I'm pretty sure that this is ...
0
votes
0answers
19 views
custom module for search twitter
I am a new programmer and issues for academic and non-profit, I have to develop a module for drupal 6 for receiving tweets with certain hashtags.
Before twitter switched to version 1.1 i used jQuery ...
1
vote
1answer
18 views
Language comparison in template file
My site has 3 languages. In my node--service.tpl.php, I've put the following:
<?php if ($language = 'es'): ?>
<div class="more"><a href="<?php print $base_url . $node_url ...
-2
votes
0answers
20 views
Adding a javascript / php tool to a page
I started to write a tool to pick up field values from different nodes and render them in the current page.
For now, I wrote in a page some javascript to get user's choice and POST them to a php code.
...
0
votes
1answer
19 views
Call to undefined function ldap_connect(), even though LDAP is enabled
I'm seeing this error when making ldap connections in a Drupal 6.2 app on a Mac running Mountain Lion. I'm running Drupal using Acquia's bundle.
Call to undefined function ldap_connect()
My ...
1
vote
3answers
24 views
Linking to a homepage when Drupal is located in a Directory
I have a problem with creating a proper link to the homepage of my website. I would like this code to redirect to my homepage:
<a href="/">
<div class="logo_wut">
<img ...
0
votes
2answers
29 views
How do I add custom PHP to a Drupal page to be executed after posting?
I have a function that compares zip codes, and sends out messages to folks within a particular zip code range, say 100 miles or so. What I'd like to occur is a person posts a new event, and as the ...
0
votes
1answer
23 views
How to add custom images to header
I would like to add some custom images into the header block of my website and the problem is that I don't know if I should modify some php file or if it is possible via admin panel. Which method is ...
0
votes
1answer
25 views
Displaying block only when user visits his own profile page
I want to display the block only when the current user visits own page.
So in block visibility I use the following PHP:
global $user;
if ($user->uid == arg(1)) {;
return TRUE;
} else {;
return ...
0
votes
1answer
5 views
ubercart zip/postal code reformatting in views using php
Is it possible to rewrite in views (possibly with php field) ubercart's customers zip numnber? The original format is "12345". I need to put a empty space after 3rd digit like "123 45". Can anybody ...
0
votes
1answer
27 views
Use functions: uc_file_user_downloads function and theme function
I would like to print files user download from ubercart on a new page. I find this theme function "uc_file_user_downloads" but i don't know how to use it.
To print the table i write this little ...
0
votes
1answer
28 views
How do I move the “Add new comment” link? [duplicate]
I'm trying to move the "Add new comment" link above some field items I have in my product display. Any advice on how to do this? This is an example of what I'm trying to accomplish: example
The ...
0
votes
0answers
13 views
No chance to run drush on php 5.3.2?
I have php 5.3.2 installed, which I need for Plesk11 on a virtual Server. Unfortunately drush needs 5.3.3. Is there no way to run it with 5.3.2?
Otherwise I have to compile a second php especially ...