3

Help needed with hook_link_alter

http://drupal.org

I am interested in overriding the 'Add new comment' text in the links array at the bottom of nodes. In a module I created a function:
mymodule_link_alter(&$node, &$links) {
    $links['comment_add']['title'] = 'Replacement text';
}

Which worked, but the replacement text now appears on the page with taxonomy terms (not a link) as well as in the links array after $content. How can I prevent that from happening (some kinda conditional)?

Read more »
Created by Dplanet 2 years 47 weeks ago
Category: Modules   Tags:
3

AHAH opration result notification

http://drupal.org

Hi there.
i'm doing a module that use the filefield.module.
Actualy i want to be notified of the AHAH upload success or failure. It would be nice to be notified also of the beginning of the upload.
I mean by being notifed to get one of my Javascript function called;

Thanks in advance.

Read more »
Created by Dplanet 2 years 47 weeks ago
Category: Modules   Tags:
3

Anyone deveolping something like this???

http://drupal.org

Heya guys

I'm setting up a new Drupal website. I can't find a module anywhere that can look up a postcode to check if you are in a serviceable area. For example a pizza shop will only deliver a certain distance right? So you pop in your post code and it validates the distance and says yes/no.

Any thoughts? To be honest I wouldn't know were to start with this!

Cheers
Sam Goddard

Read more »
Created by Dplanet 2 years 47 weeks ago
Category: Modules   Tags:
2

Google advertisement

http://drupal.org

Hi
In my site i would like to have google advertisement in this manner:

a) Every time i create a page content, i need google text advertisement to appear in the down of my page content.
Some things like this: Google Ads: Animal Ball fruits

b) The second type of advertisement i would like to display is again the text but in the block... It means a set of google advertisement in the block.
Some things like in every sites we can see the advertisement in the right side bar

Read more »
Created by Dplanet 2 years 47 weeks ago
Category: Modules   Tags:
3

Dynamic Module

http://drupal.org

Is there any module which can run images as a slide show.

Description:
I have JPEG and PNG files, I need a module or a code which can run images as a slide show.

Read more »
Created by Dplanet 2 years 47 weeks ago
Category: Modules   Tags:
3

debug help required

http://drupal.org

is there any way to debug the module files etc. I am currently designing a module and am populating a list from query. however, somehow the query is not bringing the values,and i want to debug this process. i normally use phped for debugging, but here i am not sure how can i use phped to debug drupal since drupal has different standard of files which phped is not able to recognize for debugging. any help here will be appreciated. What is need is to find a way to debug drupal modules

Thanks

Read more »
Created by Dplanet 2 years 47 weeks ago
Category: Modules   Tags:
3

combo box problem

http://drupal.org

hi all,

i make my own module that select column from a table in my data base and load the returned values into combo box ,but there is an exception that i cannot deal with this exception says "Object of class stdClass could not be converted to string in E:\xampp\htdocs\drupal\sites\all\modules\manage links\managelinks.module on line 33. "

this is the code

<?

function managelinks_block($op = 'list', $delta = 0, $edit = array()) {

Read more »
Created by Dplanet 2 years 47 weeks ago
Category: Modules   Tags:
3

Front Page

http://drupal.org

I need front page to be looked dynamic i.e. chairman's message at one block, Vision at one block, mission at one block. Is there any module which can do so.

Please visit the link for more information:

http://ntcltd.co.in/

Read more »
Created by Dplanet 2 years 47 weeks ago
Category: Modules   Tags:
3

combo box problem

http://drupal.org

i want when value change on my combo box it display the corresponding web site in new tab or window

<?
function managelinks_block($op = 'list', $delta = 0, $edit = array())
{
if ($op == "list")
{
// Generate listing of blocks from this module, for the admin/block page
$block = array();
$block[0]["info"] = t('Select a link');
return $block;
}
else if ($op == 'view')
{
$query = "SELECT title FROM " .
"{managelinks }";

$queryResult = db_query($query);

Read more »
Created by Dplanet 2 years 47 weeks ago
Category: Modules   Tags:
3

how to get the pages from a query

http://drupal.org

Hello all,
I am in the process of making a module for split testing. I want to populate a combo box with all the pages that have been made by the user (through pages content creation, or any other pages that exist in the drupal website). Kindly tell me what would be the query if i need to bring this data from database. if it could be brought from any other locaiton, kindly let me know. This is highly critical task and requires urgency. therefore a quick response will be really appreciated.

Thanks

Read more »
Created by Dplanet 2 years 47 weeks ago
Category: Modules   Tags:
3

Is there any module to make a Proxy site

http://drupal.org

I want to make a proxy site, in which user can access blocked sites behind a proxy. for eg: http://www.pagemod.com , http://www.hidemyass.com

Is there any module for it?

Read more »
Created by Dplanet 2 years 47 weeks ago
Category: Modules   Tags:
3

Why is index.php hit twice for every page visit?

http://drupal.org

With the debugger I see index.php is visited twice for every URL. I set break points, start debug, the debugger would stop at the first line of index.php, hit resume, my break point is not hit but debug would come back to the first line of index.php, hit resume again and now my break is hit.

It's as if there is a redirect for the first time and only the second time full execution actually happen.

Read more »
Created by Dplanet 2 years 47 weeks ago
Category: Modules   Tags:
3

Feed Aggregator and Poormanscron Question

http://drupal.org

I'm new to drupal and trying to get my feed aggregator to update feeds automatically. It says it needs cron to run maintanance tasks but I cant really figure out how to do that. So, will feed ag. update automatically with poormanscron?
TIA!

Read more »
Created by Dplanet 2 years 47 weeks ago
Category: Modules   Tags:
3

403 Forbidden Error

http://drupal.org

Hai, I uploaded a folder in my site. If I try to download it, it shows the 403 Forbidden. But that folder is available in "root/sites/default/files/" path. How can i solve this problem?

Thanks,
Revathy.

Read more »
Created by Dplanet 2 years 47 weeks ago
Category: Modules   Tags:
3

Theory help with communicating a desktop program with Dupral

http://drupal.org

I have a desktop program in c# .Net that performs certain tasks throughout the day and write information to files. I'd like to make a program that will post the content of the files to my drupal site as posts. Would it be easier to directly access the server's database and add entries?

Where do I start?

Thanks

Read more »
Created by Dplanet 2 years 47 weeks ago
Category: Modules   Tags:
3

submit form function result in a blank page without theme

http://drupal.org

Hi all,

I will appreciate an help with the following.
I am building a form with a submit form handler.

The form is working well (it give me back the text string i submit)
The problem is that I get the result in a blank page without the theme,
I attach below the code of my submit function.

I do not understand what is wrong.

Thanks

Read more »
Created by Dplanet 2 years 47 weeks ago
Category: Modules   Tags:
3

hook_nodeapi, $op= insert, db_query error message

http://drupal.org

hi everyone,

I'm yet another newbie looking for some help...

I'm writing a module which should link a node to a user. I'm using the hook_nodeapi to do this and i'm trying to get the part for the 'insert' operation to work. But drupal keeps telling me there's something wrong with my query:
db_query("INSERT INTO owners1 (book, oid) VALUES (%s, %s), $node->title, $user->uid");

Read more »
Created by Dplanet 2 years 47 weeks ago
Category: Modules   Tags:
3

Node not saved to DB when node_save called within hook_insert

http://drupal.org

Is it a bad idea to call node_save inside hook_insert? I have a custom content type; inside its hook_insert I do node_save on another custom content type. But I noticed that the original node (hook_insert) wasn't saved but the second node was (node_save). Is this a no-no? Or any workarounds?

Thanks

Read more »
Created by Dplanet 2 years 47 weeks ago
Category: Modules   Tags:
3

db_query - printing single field

http://drupal.org

I need to print two different fields in the sql table. The fields are uc_store_postal_code & uc_quote_store_default_address, they are in the variables table.

Below is the reference code I have that works without issue, I understand that it creates a loop and builds an array. I don't need this, I just need to print those two particular fields.

Read more »
Created by Dplanet 2 years 47 weeks ago
Category: Modules   Tags:
3

using hook_form_alter to disable form display and insert custom message

http://drupal.org

Hi All,

I have workflow enabled for a particular CCK content type. Based on the workflow state I would like to enable or disable the edit form for this content type for certain users.
So when the workflow state is 'LOCKED' I would like to have the edit page display a message saying the "form is locked".
I am trying to do this using the hook_form_alter. How do I put in a custom message instead of the existing form would be the question?

Read more »
Created by Dplanet 2 years 47 weeks ago
Category: Modules   Tags:
3

adding picture on user registration form

http://drupal.org

Hi,

I would like to add picture upload on the user registration form. I am using the core option profile module.

I added this code via the form_alter function:

Read more »
Created by Dplanet 2 years 47 weeks ago
Category: Modules   Tags:
3

How to change the page title of "user/4/edit" page -- Pls help it is urgent

http://drupal.org

Hi all,
How to change the page title of "user/4/edit" page -- Pls help it is urgent

Thanks in advance

Read more »
Created by Dplanet 2 years 47 weeks ago
Category: Modules   Tags:
3

damnsexybookmarks for drupal?

http://drupal.org

I just can't get over how damn sexy this social bookmarking plugin for wordpress looks. Would it be possible to make this work with drupal?

Authors page (example) - http://www.robotwithaheart.com/

plugin page - http://wordpress.org/extend/plugins/damnsexybookmarks/

Sorry if I'm asking for to much, just though I'd try.

Read more »
Created by Dplanet 2 years 47 weeks ago
Category: Modules   Tags:
3

Help understanding hook_theme & #theme on the form element level

http://drupal.org

Okay, I've been pouring over the API documentation found at api.drupal.org related to form reference and I can't find the answer or an example of what I need or am overlooking in my situation.

The Situation

I am building a module that needs to simply theme some form elements (not the entire form) very specifically. In this example, radio and checkbox groups.

Here is the code I'm currently trying to massage into working.

Read more »
Created by Dplanet 2 years 47 weeks ago
Category: Modules   Tags:
3

Imagecache not posting files

http://drupal.org

need some help.. imagecache is giving me problems.. i created a new content type that requires an image to be uploaded for the content type. the upload works fine.. but when it resizes the image is tries to put it in mysite.com/sites/default/files/imagecache/product_big/images/101_06251.jpg

all folders are 777 and the only folders that are created are sites/default/files/imagecache - it cant create the image to that directory for some reason. i have tried reinstalling the module a few times and that still didnt fix it. any suggestions?

Read more »
Created by Dplanet 2 years 47 weeks ago
Category: Modules   Tags:
3

user stats

http://drupal.org

im looking for a way to have users statistics, such as when they last logged on, how much of a certain content theyve created, how many page visits theyve had, how many user relations they have. etc

I know theres a few user visits modules, and drupal can show when a user last logged on. But is there away of integrating it all into one block?

Also I would like the stats to be links where possible.(content types linked to a view of content theyve created, friends will link to a page with all the friends on etc)

So ill have a list looking like the following

Read more »
Created by Dplanet 2 years 47 weeks ago
Category: Modules   Tags:
3

open new widow

http://drupal.org

i just tried in my custom module when user select a value say "yahoo" from combo box and press Go button it should open a new window which url is www.yahoo.com after go to data base and fetch the corresponding url of combo box value.

Read more »
Created by Dplanet 2 years 47 weeks ago
Category: Modules   Tags:
3

how to get a new module tags for my website

http://drupal.org

how to get a new module tag for my website where i am runing it localy and i need to get preview of the tag like it should display in the primary link. where i have went through the class of 10 min website developing in the internet but their they are having an extra section in their page for aligning the tag where i am not having it in my page link so how i will get it.

Read more »
Created by Dplanet 2 years 47 weeks ago
Category: Modules   Tags:
3

what is hook? what is the use of it

http://drupal.org

I was going through the commands of drupal i am not getting what is the use of hook and what is it mean by please give me a definition in a simple words.

Read more »
Created by Dplanet 2 years 47 weeks ago
Category: Modules   Tags:
8

conflecting in modules

http://drupal.org

hi all,
i tried to develop my own module that simply select from database the title and insert those returned data a new window that has the url according what user select from combo box, any way ,it work in a proper way ,but i discovered a big problem which is drupal doesnot fell any changes i make like adding a new page or story for example but when i removed this module it worked very well...

but i donot know where and why the conflecting in my module....

so what is the problem..?

here is the managelinks.module

Read more »
Created by Dplanet 2 years 47 weeks ago
Category: Modules   Tags:
6

conflecting in modules

http://drupal.org

hi all,
i just developed my own module and i successed to chow and use it :D ,but i have a big problem which is,...
when i make anything in drupal like create a new page for example it doesnot appear in drupal website (i.e drupal website doesnot feel any changes i made ) and i tried to remove my module ,then it work in proper way,...so what would be the problem..?

this is the code of my module(simply select from table in database the title and load it in a combo box and onchange this combo box it open a new windo with the corresponding URL ...that is it)

Read more »
Created by Dplanet 2 years 47 weeks ago
Category: Modules   Tags:
7

conflecting in modules

http://drupal.org

hi all,
i tried to develop my own module that simply select from database the title and insert those returned data a new window that has the url according what user select from combo box, any way ,it work in a proper way ,but i discovered a big problem which is drupal doesnot fell any changes i make like adding a new page or story for example but when i removed this module it worked very well...

but i donot know where and why the conflecting in my module....

so what is the problem..?

here is the managelinks.module

Read more »
Created by Dplanet 2 years 47 weeks ago
Category: Modules   Tags:
9

problem in Display Dynamic Block Module

http://drupal.org

Display dynamic block solves my problem but it appears at left, right side bar. I need it to display at the middle of home page. How can that be possible

Read more »
Created by Dplanet 2 years 47 weeks ago
Category: Modules   Tags:
3

Modules that increase interactivity

http://drupal.org

I want to make my site more interactive with users. What modules are recommended for this ?

Read more »
Created by Dplanet 2 years 47 weeks ago
Category: Modules   Tags:
9

Help please cron fails

http://drupal.org

Please help. Cron crashes with the following error:

Fatal error: Cannot use object of type stdClass as array in /home/content/e/l/a/elazar/html/includes/common.inc(1647) : eval()'d code on line 12

if I insert print $code; exit; just before the eval call, I get the following:

Read more »
Created by Dplanet 2 years 47 weeks ago
Category: Modules   Tags:
7

Strange behavior of db_error()

http://drupal.org

Hi all.

Correct me if I'm wrong, but as I found in the Drupal API docs:

db_error(): Determine whether the previous query caused an error.

I have been testing on a new module I'm developing and db_error() makes me ponder...

I do the following query, I insert a record into a table "I know does not exist" = deliberate error

$sql = "INSERT INTO {eam_templates_xl} (label) VALUES ('%s')";
db_query($sql, "test");

then i get the expected error shown in my window:

Read more »
Created by Dplanet 2 years 47 weeks ago
Category: Modules   Tags:
2

XML-RPC services question

http://drupal.org

Do I need to install something other than the services module to make xml-rpc commands? Where do I place the xml-rpc services?

Read more »
Created by Dplanet 2 years 47 weeks ago
Category: Modules   Tags:
8

Customize invite module

http://drupal.org

Hi am working with a project and using "invite" module in it .... I need to cutomize the "New invitation" page.... ie., I just want To: --> text area., Message-->text area and send invite button .... can any one help me with it??? Where can i customize the module.

Thanks
Shamlah

Read more »
Created by Dplanet 2 years 47 weeks ago
Category: Modules   Tags:
9

Galleria remove text "image:"

http://drupal.org

Hi All,

Probably a simple question, but I can't seem to figure this out...

When making a galleria node I get this text "image:" above the images, but I don't want this.
I've check the template but can't seem to find what outputs this text because I want it gone.

How to remove this text???

Thnx in advance.

Lightawave

Read more »
Created by Dplanet 2 years 47 weeks ago
Category: Modules   Tags:
2

INTERNAL LINKS, INTERNAL MENUS

http://drupal.org

Hello everybody, I'm surfing everywhere but can't find how to... put internal links??? I would like to write a line, such as "go to --that page--" where "that page" is an internal node I already wrote.. but I can't manage to do this, without writing directly "go to node/12".... is there a specific module to do this?

Read more »
Created by Dplanet 2 years 47 weeks ago
Category: Modules   Tags:
4

search hook problem

http://drupal.org

Hi every body
Could any one help me
actualley i have devloped my own module with own search hook
and put the following query
$result = pager_query("SELECT person_id,uid, firstname,lastname,country,city FROM {patiants} p INNER JOIN {person} c ON p.person_id = c.id WHERE LOWER(story) LIKE LOWER('%s%') OR
LOWER(firstname) LIKE LOWER('%s%')OR LOWER(lastname) LIKE LOWER('%s%')OR LOWER(country) LIKE LOWER('%s%')OR LOWER(city) LIKE LOWER('%s%') OR LOWER(diagnosis) LIKE LOWER('%s%')", 15, 0, NULL, $keys);
person and patiant tables in the database

Read more »
Created by Dplanet 2 years 47 weeks ago
Category: Modules   Tags:
3

Site map - Error on loading gss.xsl file

http://drupal.org

I'm using the site map (last version of 6, not DEV) module on drupal 6.*, but recently I have a problem on loading it, because it is said that wasn't possible to find gss.xsl: http://www.sitename.com/gss.xsl according Firefox.
I've already read the others topics, but i couldn't find anything to solve it.
Anybody nows how to fix it or at least what other module i can use?

Read more »
Created by Dplanet 2 years 47 weeks ago
Category: Modules   Tags:
4

Adding block to menu-driven module

http://drupal.org

I've built a module with hook_perm, hook_access and hook_menu. Every menu item calls an include file within hook_menu like such:
    $items['scoreos/teaminfo'] = array(
        'title' => 'Team Info',
        'page callback' => 'teaminfo_all',
        'access arguments' => array('access team info'),
'file' => 'teaminfo.inc',

Read more »
Created by Dplanet 2 years 47 weeks ago
Category: Modules   Tags:
2

How to access youtube api via javascript

http://drupal.org

I've spent a fair amount of time searching for the answer but haven't found it. Maybe that means its obvious.

Anyway.

My goal is to embed a video page, then while it is playing query where it is in the video based on user input. Initially I just want to do this with youtube videos but eventually from other sources as well. So if for now the solution is youtube specific then fine. The youtube api supplies all the methods necessary to do this, I am just missing the bit of context to make all this work. How do I do this?

Thanks.

Read more »
Created by Dplanet 2 years 47 weeks ago
Category: Modules   Tags:
2

Allowing Multiple Votes in Fivestar

http://drupal.org

Hey guys, I have a quick question regarding Fivestar. I am not a module developer, so please make it easier for me to understand your reply.

Read more »
Created by Dplanet 2 years 47 weeks ago
Category: Modules   Tags:
4

Views reffering to wrong database

http://drupal.org

Im using Drupal 6.10 and civicrm 2.2.2.
I need to create views for civicrm contributions
but when i do this the query built is reffering to drupal's database instead of civicrm's
Any Idea whats going wrong?

Read more »
Created by Dplanet 2 years 47 weeks ago
Category: Modules   Tags:
3

From which module is this message

http://drupal.org

From which module is this message ?

Sorry, you do not have the permission to login at this time

Users can't login

Read more »
Created by Dplanet 2 years 47 weeks ago
Category: Modules   Tags:
2

How to free convert videos/music to Sansa

http://drupal.org

SanDisk has series of media players such as Sansa Clip, Sansa Fuze, Sansa View, Sansa slotMusic Player, etc. which attracted us with their amazing features, ig, big storage capacity, long-time battery life, high quality of video and sound.
But not all the videos/music that can be accepted by Sansa. For example, Sansa Clip supports MP3, OGG and WMA files. Sansa View supports MPEG-4, H.264, WMV, MP3, WMA, and non-DRM AAC formats. So sometimes we need a third party to enjoy Sansa easily.

Read more »
Created by Dplanet 2 years 47 weeks ago
Category: Modules   Tags:
3

Can't delete earlier Facebook-style statuses post

http://drupal.org

I've observed that I can't delete status before the last one posted. Is there a way to remove the early statuses posted? Thanks

Read more »
Created by Dplanet 2 years 47 weeks ago
Category: Modules   Tags:
3

can't add or edit content in table

http://drupal.org

Hello all,

I have created a form to add news in a table that is not related to the node
the form is submitted and the values are also displaying when echoed in the submit function and a row gets inserted to the table but the values are empty. please see the code below to check the error i have made

Read more »
Created by Dplanet 2 years 47 weeks ago
Category: Modules   Tags:

PSD to Drupal Theme

Drupal Development

Module Development

Get an Estimate

Best published scoops - Modules

Recent comments