Weird issue with hook_comment not getting op insert or update

I'm working on a site for a client where I needed to write some special code to do some moderation workflow on comments. Got it working just fine on my test site, which is mostly stock 4.7 with the changes I've made for them. Then when I put it on my dev site provided by the client (which has enough custom code that I can't replicate in my test site), it no longer works.

Outline problem for Book Module - Please Help

I wanted to create a number of content types similar to a book (in my case for an academic website, these were Thesis, Reports, Papers). So i copied the book module and edited its text by replacing all the words "book" to "Thesis" or "Report" or "Paper". This worked well but as a result i have now got the links for "add child page" and "Printer-friendly version" appearing 4 times below my page. This would have been a minor problem of aesthetics if only all of these links would point to the content type of the node...

Modifying system messages

I want to modify some system messages that come out of core modules.

Specifically, I would like to change the message shown to after the registration message is sent to the user. I can quite easily hack the User and the Comment modules but, as these are core modules, I'd have to remember to re-fix this when we do a Drupal update.

(1) Is there a better way to change system messages? or,

(2) If you have to hack a core module, what is the best way to manage these for the future.

- Geoff

Views Help Needed - How to remove field_names from table view

Hello to all,

I am using the views module to display content created using custom CCK node types.

I need to show my view using "Table View", however this displays the name of the field (e.g.: Title) and also the id of the field next to it (field_field_name).

So my table view shows the following on the table header for each field:

Text: Turnover (field_business_turnover)

How can I remove the "Text: " bit and the "(field_business_turnover)" bit?

Any regex gurus?

I have a html string like this:

<img src="/files/screenshot.jpg" alt="screenshot"/>

The img above can have other attributes like width or height or both.

I want to replace the relative path above with the absolute path : http://www.example.com/files/screenshot.jpg.

How do I create the regular expression for this?

Thanks a bunch!

Integrating module functionality FOR the Registration process

Hi all,

I'm stuck with a problem which concerns most probably hackin through the user.module to integrate a module I've developed into the registration process itself..

I've been reading quite a bit about registration/login costumization but I have still not really found something good to grab hold of..

Here it goes ;)

I've built a module for the generation and evaluation of a certain test to a given user. The test will be a page full of multiple choice questions each accompanied by a radio buttons group for the answers.

The test is to be generated thanks to the input values of the newly and REGISTERING user. The user will put fields such as gender or age to determine amount and difficulty of the questions..

The test data is in a set MYSQL tables which are installed through the test_module.install script.. This contains quite a bit of stuff, but the important thing is to know that all questions and answers are stored in it and that they are collected/updated by the module when needed...

Now,

I'd like to integrate this wizard functionality module that I have with the Registration process.
Hence every new user to register will need to go through a test!!! The process is:

  • A registering user will get a first form where to fill out his name, age and gender

Pages

Subscribe with RSS Subscribe to RSS - Drupal 4.7.x