Drupal is up and running but how do I ...?

How best to use Taxonomy for Online Magazine

Hi All. I have put up an online magazine with 7 main articles that will appear each month and I know I am not using Taxonomy right now to my advantage because I don't fully understand it (and I can't get terms to appear under anything but the root level.)

Right now I have each article being linked to directly for this month and I know I will want it under a category instead, such as "Sports Nutrition" or "Training."

How do I get the RED BORDER around my textbox to show up when an error occurs?

How do I get the RED BORDER around my textbox to show up when an error occurs?

I already have the validation in place.

function shopprofile_validate(&$node) {
  if ($node->homepage) {
    if(!valid_url($node->homepage, TRUE)) {
      form_set_error('url', t('The homepage URL is not valid. Make sure you have included the http:// part.'));
    }
  }
}

I just need to have the highlight script.

iframes that can use php snippets?

On My front page i want to have an iframe that contains some information found off the drupal database. I know i could insert a Php snippet in the page.tpl.php and it will run, but if I put snippets in its own php page it will error, because I am missing functions and includes that are only in drupal's index.php. I am using phptemplate and I want to know is there away to filter a node type into a separate page that doesn't use the template and I could use to put in an iframe.

Complete RSS

Hi all,

is there one general rss for all the site? Now I´m using http://example.org/node/feed, but it only displays the last entries in index page. I have several other categories that doesn´t get to front page but I want them at the rss feed. (I knew that I have one rss for each category, but I´m looking for a global feed).

Thanks, Simon.

Let users delete their own blog comments

Hi,

I have a community web where every user can have their own blog. Is it possible to give them permissions to delete the comments that other users post at their blogs?

Thanks, Simon.

Filter table to show certain article content

How do I filter my modules table (a list of articles posted with that node type); to list only nodes that have been submitted with the same content in the field?

My modules consists of posting articles using a form.

It includes having to submit what content is being submitted from a form drop down box (e.g. Horror, Action, Other). The selection is knwon as "$node->about" and "d.about".

I would like my table (which shows all nodes submitted with my moduels node type) to simply be able to filter the content by, either; horror, action, or other.

Is it possible to filter it using the SQL query:

$sql = db_rewrite_sql("SELECT n.nid, n.title, d.about FROM {deal} d INNER JOIN {node} n ON d.nid = n.nid WHERE n.status = 1");
  $sql .= tablesort_sql($header);
  $result = pager_query($sql, $amount);

E.g. "WHERE n.status = 1" to something like "WHERE d.about=horrow AND n.status = 1"

BUT, THIS DOES NOT WORK.

user error: Unknown column 'other' in 'where clause'
query: SELECT COUNT(*) FROM deal d INNER JOIN node n ON d.nid = n.nid WHERE d.about=other AND n.status = 1 in /LOCALHOST/includes/database.mysql.inc on line 66.

user error: Unknown column 'Other' in 'where clause'
query: SELECT DISTINCT(n.nid), n.title, d.about FROM deal d INNER JOIN node n ON d.nid = n.nid WHERE d.about=other AND n.status = 1 ORDER BY d."something" ASC LIMIT 0, 20 in /LOCALHOST/includes/database.mysql.inc on line 66.

Pages

Subscribe with RSS Subscribe to RSS - Post installation