Music Website Requires 3 Custom Modules To Be Upgraded from Drupal 4.7 to 5.2

Hi there,

My website http://www.noripcord.com - an online music and film magazine - is in the process of upgrading to Drupal 5.2. We have three custom modules, which need to be upgraded.

These modules are an "album review" module, a "film review" module and a "features" module. They are all quite similar in their implementation and in terms of the data they contain. An idea of them can be gained by browsing the site and looking at the three different types of content.

Snippets problem

Hello!

Since 2 months I'm looking for a snippet code to show me nodes
- from a content type "story"
- from a taxo id "98"
- in the list of 10

how could i do that?

please help! thanks...

Understanding profile

I was wondering what the following option means in profiles.

There is a box form with the following statement:

Page title:

To enable browsing this field by value, enter a title for the resulting page. The word %value will be substituted with the corresponding value. An example page title is "People whose favorite color is %value". This is only applicable for a public field.

two things - search box disable and register/login links issue

right i am going to make this a bit of a list, which i hope will not be too annoying.

I have a link to a search option so i was wondering if there were controls to disable the box search option?

OrOr is there a way to have just the search button without the space to put the words.!!!

I was also wondering if i could have a "register" in the menu selection that disapeared when you log in?

Is there a db_rewrite_sql with OR instead of AND?

Subject says it all.

So I'm writing a module. And it EXTENDS the information retrieved by another, rather than restricts it.

Done in one command, the SQL would look like:

$sql = "SELECT x.* FROM x INNER JOIN y ON x.id=y.x_id".
           " WHERE (x.private IS NULL OR y.private IS NULL)".
           " AND y.group_id IN (".implode(",", $user->groups).");"

See, all items in table x can be public/private, but there is a further table y that can make certain certain items public for people who belong to a group. [As this list is displayed verbatim, I don't believe it is fit for node_access; afaik Drupal has no built-in system to not show things that are either not user_access or node_access allowed in SQL, which means I'd have to reinvent the wheel.]

The problem I see is that db_rewrite_sql merges the WHERE clauses together using AND's, but as you can see, the clause requires it to be merged as an OR.

I've got a big thing about leaving modules I didn't write untouched (and thus easily upgradable) but I'm becoming afraid I might have to modify a module.

Or could this problem be solved as a restriction? [I don't think so, the only restriction I see is to show ALL items, but have module Y determine what to hide, which isn't good coding, as now X depends on Y and Y on X.]

How to set up node for Private Space Module

Anyone used the Private Space module for 4.7 http://drupal.org/project/privatespace? I'd like to set up a "my private space" page for registered users that they can use to make notes, to work on their blog before posting it, and maybe to store some page links. The module installed just fine, but I don't understand how to create a node to base the template that the module uses for the user's page. Any suggestions>

Pages

Subscribe with RSS Subscribe to RSS - Drupal 4.7.x