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

TinyMCE article browser

Let's say you'd like to set your node edit window so that users can browse the tree of all Drupal pages and automatically insert an inline link within the text. This would work as the current inline [inline:url] module, but would be far more user friendly (GUIsh)

I found this snippet on TinyMCE's SourceForge.org page: http://sourceforge.net/tracker/index.php?func=detail&aid=1243169&group_i...

Error messages when trying to upload an updated module to the contributions folder

HI Guys,

I keep getting errors when trying to upload an updated module to the CONTRIBUTIONS folder in the CVS Respositories.

I have been using TortoiseCVS which has been working very well....up to now. I tried comitting the updated module to my sandbox folder..but was unable to upload it to the correct /contributions/ folder.

(I was trying to upload an updated version of the FRONT_PAGE.MODULE that works with the new forms api and Drupal CVS)

Ecommerce Module just Locks up Modules menu

Has anyone here tried the ecommerce package? I'm trying to install it on 4.6.3 but anytime I drop the folder in to the modules folder, the modules menu item ceases to work.

db_query strips curly brackets on INSERT?

Hey all (again)

Last question I swear ;o) After this I'm sorted and can finish the module myself, promise!

Here's my code: (I've included the $row variable to show a test INSERT although in my module it's gained from a user entered form)

$row = 'a:5:{i:0;s:5:"test2";i:1;s:4:"rtyr";i:2;s:3:"hgh";i:3;s:5:"fghfg";i:4;s:3:"ghf";}';
db_query("INSERT INTO {tablemanager_data} (id, tid, data) VALUES ('', '$tid', '$row')");

However when I look at whats created, its missing the curly brackets:

node_example.module doesn't seem to work as it should..

Hello,

I am in the progress of writing my own type of nodes, so i checked out the node_example.module from the API.
Even though it is very well documented, i can't seem to get it working.
I uploaded the whole file to my /modules directory, inserted the database table and activated the module in administer > modules.

POST elements not working properly? Or is it me...?

Hey all

I'm writing a VERY useful module (for me anyway!) And so I'd appreciate some help with my problems so I can get it finisheed asap (and concentrate more on finishing my main module contribution).

Anyways... My function is this (obviously unfinished!):

function tablemanager_add() {
if (isset($_POST['submit'])){
$count = $_POST['edit']['cols'];
$name = $_POST['edit']['item1'];
$output = "hello " . $name . " bugger don't work" . $count;
print theme('page', $output);
return;
}
$tid = variable_get('tablemanager_table', '1');
$count = 0;
$fetch = db_fetch_object(db_query("SELECT * FROM {tablemanager} tm WHERE tm.tid = '$tid'"));
foreach ((unserialize($fetch->header)) as $a) {
$count++;
$output .= form_textfield($a, 'item' . $count, '', 60, 255, t("Enter your data for '$a' here"), NULL, FALSE);
}
$output .= form_hidden('cols', $count);
$output .= form(form_submit(t('Submit'), 'submit'));
$output .= l(t('Cancel'), 'admin/tablemanager');
print theme ('page', $output);
}

What I can't work out is why none of my elements are being returned? Now bear in mind that I'm NOT a programmer, I'm just tacking this all together as best I can so maybe I'm assuming that I can do things in php which are not actually possible? I'm wondering whether my passing an incrementing variable to the 'name' is invalid? When I view the source on the created page it does seem to work though? It's only after clicking submit that I can't retrieve any of the POST variables. I can't understand why this doesn't work, I've done similiar in other projects before - I think I must just be doing something stupid.

Pages

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