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

video module duplication

Hi guys,
I found video mudule so great that I'd like to duplicate it in my website.
I mean, I've a video section, my admin uploads videos and everything goes ok, I've got my video summary in the ?node/video page.
Now I'd like to add one more video section, with different rules and different summary page, how can I achieve it in the cleanest way?
I was thinkin about, installing two video mudules, with different names (e.g.: video and video_two), different table names and menu voices.
Let me know if it can go ok or if you suggest some better way.

How do I add a new value to a comment and retrieve it later?

I have one node on my site that displays different content depending upon a variable that is provided. I also need comments to track to that variable and not just the node itself. I was able to edit the comment_form function in the comment module to add the appropriate line to the form, but I can't figure out where to go next. Here is the line I added.

$form['package'] = array('#type' => 'value', '#value' => $package);

$package is the variable I am trying to pass. I used a type of hidden instead of value initially to confirm that it was being determined correctly.

As far as I can tell, there are two pieces I am missing. The first is that I need the page to refresh with $package intact as part of the URL. This would be the same as the page that a comment is actually entered on. Right now the action points to /comment/reply/5 with 5 being the node id. I need that page to access the $package value from the form before loading /node/5 so it can go to the right page.

For example:
http://linuxappfinder.com/package is the alias of /node/5, but it needs to have a form of http://linuxappfinder.com/package/drupal (where drupal is the app being displayed) in order to display correctly. Current behavior returns me to http://linuxappfinder.com/package#comment-xx after a comment is posted.

I also need the comment_save function to be able to determine the $package value because it updates a table to associate the comment id (cid) with the appropriate package so only the appropriate comments are displayed later.

Does anyone know where I should look to solve this? I back-tracked from the comment_save function to the comment_form_submit function, but I can't tell where the latter gets called from.

ping help- please!

Hello- I love drupal, but I simply don't understand why the ping module is so difficult.

I would really like to ping technorati.com. I am a php n00b, so could someone please just post the ENTIRE ping module that will do this?

Thank you!

About HTTPGet function in drupal.js

the comment of this function is:
/**
* Creates an HTTP GET request and sends the response to the callback function.
*
* Note that dynamic arguments in the URI should be escaped with encodeURIComponent().
*/

I want to know what is the second line meaning? thanks

preview must change "$node->myvar" for templates.php

hi

i must set a $node->myvar on a node preview. I haven't found a way to do this until many many hours, but i must change the variable for getting preview working correctly and displays the page how it looks after a save. i'm reading my $node->myvar variable in templates.php from the $vars scope...

how can this be done?

Regards
Marc

img filter (inline width thumbnail)

The img filter is a simple img filter module.

It is a modification of the inline module.
The 'show original' and 'show as link' features are removed. Instead of 'maxwidth' and 'maxheight' only the 'thumbnail width' is used. [img: x] tags are accepted.

It always displays the images but they are smaller in previews (resized to thumbnail width) and larger (the original image size) in the full views.

Pages

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