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

A "Visit links in new window(s)" block in weblink.module

I've just hacked together a very small module that extends the weblink module to add a block that allows users to enable/disable the $user->weblink_new variable with a checkbox.

For the purposes of my site I wanted anonymous users to also have the ability to enable/disable this. This was not possible in the weblinks module as it exists, so I saw no other solution than to hack it. (I hate doing this, but what can you do?) This required saving/reading the variable in $_SESSION for anonymous users instead of in the $user object.

Taxomony in a Block

Hello
What are the easiest ways to include selected taxonomies in a block. I mean displaying the latest articles/posts (in a selected taxomony) in a block.

Thank you,

Using hyperlink to set locale cookie.

I have written a function within locale.module to display a block with hyperlinks that I want to use to set cookies similar to the following:

$path = preg_replace("/.+\/\/[^\/]+(.*)/", "\$1/", $base_url);
setcookie("locale", 'en', time() + 3600 * 24 * 365, $path);

Can anyone explain how to set such a cookie - e.g. the format of the link and the required location of the code above?

New Module: Wordfilter for filtering posted content

I wanted this functionality for my site and I didn't see it built in anywhere in Drupal. You can enter word/phrase pairs, such as "crap" and "crud". Wordfilter will search for all instances of "crap" and replace it with "crud". It is case insensitive and you can use regex expressions.

Try not to be too restrictive, I don't want to create a big brother / 1984 thing here (e.g. replacing "great" with "double plus good" ... shudder), but I want some control over my site without the burden of moderation.

displaying tables/html content in center window

I am looking for a way to:

1. display static content in the main viewing window in the form of an HTML/Table that I can create using my Web page editing program without the Date/time/author stamp.

2. display a link to that content in the nav bar (dynamically or manually)

I am trying out Drupal for use on a corporate web site. The web site is geared toward service related sales, and hense the content I need to display is not dynamic. It is a predesigned sales piece. I would be looking to to this without the additional functionality of a CMS, but my client desires the security of a good user database. They also need the functionality of a "latest news" section.

The difficulty comes in where it seems that Drupal can accomodate my need to create static html and display it, but it doesn't link on the nav bar and it also lists the author and date created at the top. I want the display of the static content which is linked to from the nav bar to be listed without any publishing (date/time/author) information as it is a sales piece directed at the visitors.

these sections that I want to display are predesigned tables that I will fit to the size of the viewport. Initially I was attempting to modify a pre-exsisting module for this type of use as it appears that the modules should be able to accomodate my needs, however I am a designer, and only have a rudimentary grasp on PHP. Because of this I have been unable to create a hacked version of a module to acomodate my needs..

The Amazon module doesn't work with 4.3.2

I just setup drupal 4.3.2 in my site.and download Amazon module Amazon 4.2.0 (event CVS version) .
After I install amazon module,and set it enable. but not found any setting menu in "administer panel".

Any suggestions?

Thank you ver much.

Pages

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