This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

get page url from within a block

This is something so simple it is proving difficult to search for. Within a PHP block or module, what would I put within <?php > to spit out the page's url?

For example, say I wanted a link to post this page to del.icio.us:

http://del.icio.us/post/?url=http://drupal.org/forum/4

the html would look like

Help make the Invite module rock the house for 4.7!

I recently added a 4.7 branch for the Invite module. It has some new features and is more streamlined. There is a new API that lets other modules react to invite events. I used this API to make a buddylistinvite module that makes inviter and invitee buddies of each other when the invitee accepts the invitation.

Trouble uploading images, both with the IMAGE module and with FCKeditor

Hi there. I'm trying to put togeteher a drupal site. I got a website in pure html and spend a lot of time tuning it.
Drupal is cool, but it's giving me problems uploading pics. When I use the Upload Image, i get

warning: copy(files/images/temp/calipo_piscina.jpg): failed to open stream: Permission denied in D:\Inetpub\webs\viruetecom\drupal-4.6.5\includes\file.inc on line 288.

Problem with node_example module

I am beginer in Drupal trying to nderstand how to make modules.
I installed node_example module http://drupaldocs.org/api/head/file/contributions/docs/developer/example... to look how it works. But it does not work in my case. I use Drupal 4.6.5.

1. When I ckick on 'create content' link in admin menu, I see new menu item 'example node' in submenu. But on the right side of this page this item is not added. It is strange.

hooks... please explain me hooks

I`ve already wrote some working code, but still cant understand how does those hooks work.
Now I stuck with form_alter - need to remove taxonomy select from node add form (adding term id later, on validate).

It worked, but now its not working again - dont remember what I changed.

$form comes to mymodule_form_alter with no $form['taxonomy'], so "$form['taxonomy']=array()" takes no effect - the select appears on the form.
I gues it is adding by the same form_alter somewhere in taxonomy module, UFTER CALLING MY HOOK.

Search not working when using Search API

Hello all.

I am using the search API to add content to a node when it is indexed. Specifically _nodeapi() with 'search index' as the $op.

I can see the the content is being added to the node by adding debug print statements to node.module and by looking in the search_index table in the DB. Both show that the extra content is being indexed.

However, when I search for this content I am getting no search results back. Despite searching for keywords the definately appear in the DB search_index table.

Is there something else I am missing?

Thanks
Adam

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions