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

AJAX Showcase Module

Just been at Drupal for a while and thought i would try designing my first module.

I had this idea of a "showcase" on another non-CMS site i did - and since i am moving that site over to Drupal figured i should give it a shot.

to start with ... check it out at: http://www.allanalog.com/d0214/

the SHOWCASE part hopefully is obvious - the porttion in my header that cycles through various blurbs on different technologies.

a little bit about it... in case anone is interested...

how do i get nodeapi to process only once ??

Maybe this is not the right question - so i wil llikely end up posting this a couple times here.
=================

What do i do to have a module put a piece HTML code ONCE into my page ?

I was trying to use hook_nodeapi which sort of works.. except that my page has 3 nodes on it.. therefore it was doing this 3 times... which in FF it didn't seem to be an issue (not sure why not.. likely it was doing it but other 2 copies were buried).. but they show up in IE.

node id in node_head

Hi all, I'm rewriting the spellcheck module for 4.7 CVS.
I'm trying to use $node-nid in hook_head, but I'm not getting anything.

I've tried:
function spellcheck_head() {
global $node;
echo 'w' . $node->nid . 'bw'

which echoes 'wbw' and I've tried the same thing without the global $node and go the same thing.

Is it possible to use any $node values in hook_head? Thanks.

New module: courselist

I'm attempting my first module (for 4.6). I was a little confused by the module-building tutorial, but I went through the whole thing and am now going to give it a try and see if I can make it work.

I'm making a web site that needs to have a list of courses on a page. The courses will belong to programs. I am picturing a form where the user can type in the form information, and check boxes next to each program that the course belongs to. So if the course counts as credit towards program3 and program5, the admin can check the relevant checkboxes -- that is why those program fields are boolean.

The course list will be sortable by column. When the name of the course is clicked on, it will take the user to a page about that course.

Can anyone offer any advice if I am going about this the right way? I'm looking at other modules and trying to modify what I find there. Is the nid the correct primary key to use?

Thanks


CREATE TABLE courselist (
nid int(10) unsigned NOT NULL default '0',
course_start date NOT NULL,
course_end date NOT NULL,
course_name varchar(50) NOT NULL,
city varchar(35),
state_region varchar(30),
country varchar(30),
link_title varchar(30),
page_url varchar(50),
program1 boolean,
program2 boolean,
program3 boolean,
program4 boolean,
program5 boolean,
program6 boolean,
program7 boolean,
program8 boolean,

Page navigation overlapped in image galleries

Does anyone know how to move the page navigation (1,2,3,next,last,etc) on the bottom of the image galleries pages further down the page? My pictures are overlapping the text. I only have 8 pics per page, and even 6 will still do it.

Thanks a mil,
~J

img_assist conflict with tinymce?

I have been having problems with images placed using img_assist where the node-link back to the source is consistently corrupted and the word "node" is changed to "../../ " whenever the text is subsequently edited with tinymice.

does anyone know what settings in tinymice could cause this. I've been tinkering with various settings and only managed to get the images to stop appearing at all.

a perhaps related diffiuclty is some sort of corruption where the image node itself seems to forget the links back to the pthumbnail size image created by the image module.

Pages

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