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

Correctly Handling RSS and HTML Teasers

I have a question about how to have a module correctly handle HTML and RSS teasers. I can't find the answer anywhere, and lots of modules seem to get it wrong, so it seemed like a good idea to iron it out!

Snippets for different pages with short url paths?

I'm using Drupal 4.7 and I was wanting to know if there is a script that will pull snippets for each page that you use? For example, I'm using path auto.

For ex:

Say I have created a PAGE with the short url path 'Bio', and another PAGE with the short url name of 'Guests,' and I wanted a teaser for each of the pages on the main page. Is there a way I can do that?

If not, does anyone know how I can just do snippets in general? The listhilightnodes script that I used for version 4.6 doesn't work for 4.7. Thanks!

[removed all caps title]

Job Search Module

Has anyone used the job search module http://drupal.org/node/27586/release ? Any demonstration sites that are up? Do the patches work for all versions of drupal - I am running 4.6.5

Thanks in advance!
Ken

Quick Question

I'm using node_example to help me develop a module for video game reviews. At one point, the form hook references $body $title etc, am I to assume that all nodes require these fields and that they are stored in the main table for nodes? Am I also to understand that I don't need to write any code to have the fields inserted into the database (following the node_example.module file outline). From my POV then, developing a "new" node via module is really just an extension of the existing node system and includes all the basic node stuff.

smugmug module for Drupal

Just curious if anyone is interested in a Drupal module to integrate your smugmug gallery into your site? I've started work on a drupal module which i've called smugmug.module, but I haven't quite released it. I consider it alpha code at this stage.

For that don't know, smugmug is much like flickr, but more advanced. Check it out, smugmug.com. If you decide to sign up, use my coupon code so 1) you get $5 off, 2) I get a few bucks to encourage me to develop smugmug. I'm not employed with smugmug, nor affilated in anyway other than I wanted my smugmug galleries integrated into my website. :-) Coupon code: qgSctxuKhAiAE

About the module I have so far:

  • The module uses the xmlrpc.inc file to handle XML requests/responses to/from the smugmug API system.
  • Random image block- Due to the load time of getting all image ID's from smugmug, the block selects 5 random galleries to pull random images from for that page load. At first, was getting image ID's of all albums, but this took a very long long.
  • Input filter, much like flickr.module. Simply insert {{smugmug:1111111}} where 111111 is the ID of the image you want displayed in your node/blog/page/etc. This will get you a thumbnail size. You can also use {{smugmugY:11111}} where Y is the size of the image you want, T (tini), S (small), M (medium), L (Large), O (Original). These are the smugmug API sizes. Smugmug also allows you do dynamically request the image at any size. So, Y can also be a number such as {{smugmug201:11111}} and you'll get an image that it's largest side will be 201 pixels, the other side will be scaled down to the proper ratio. Pretty sweet. This allows you to have any size image on your node/page/forum post/book/etc.

mysql and pgsql interfaces conflict

My Drupal installation runs on mysql. However, one of my modules needs access to a pgsql db. I describe new db in settings.php but when I call db_set_active('mypgsqldb'), drupal dies with
Fatal error: Cannot redeclare db_connect() (previously declared in /home/username/public_html/drupal/includes/database.mysql.inc:23) in /home/username/public_html/drupal/includes/database.pgsql.inc on line 71

Pages

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