This forum is for less technical discussions about the Drupal project, not for support questions.

Paid time based permissions - just an idea...

I'm not a programmer but,

Now we have node permission by role, subscriptions, media files, paypal framework and e-commerce.
What about a subscription module around permissions to access content - for a time. Paid subscriptions to periodicals, to nodes, to roles (roles would make Drupal a membership management system).

Can it be done?

Best
Gunnar

HTML syntax - problem with tag

I have problem with tag

. When i want creat new page (with "full html") with tables. I write something like that:
<table>
<tr>
<td>something</td>
<td>something</td>
</tr>
<tr>
<td>something</td>
<td>something</td>
</tr>
</table>

Now i write it to story, result is:

empty tables showing up...

I have modified my tracker module to not allow submissions from the 'page' node to show up by slightly changing some code, this...

$rows[] = array(
node_invoke($node->type, 'node_name'),
l($node->title, "node/$node->nid") .' '. (node_is_new($node->nid, $node->changed) ? theme('mark') : ''),
format_name($node)
);
}

and change it to:

Why some things show up in search and some don't?

Does anyone have an answer to why some things turn up in search and other things don't. My search module says that 90% of my site is indexed (which I believe actually translates to all it, content-wise), but still I can't get certain posts to come up when I search for words that are in them. This includes some newer content and some older content. It all seems very arbitrary. Any suggestions, etc? Does it matter if it is a "blog" node or "story" node in terms of indexing/search?

Personal Photo Galleries - Block Available

Hi!
After reading the handbook chapter on Blocks (http://drupal.org/node/17170) and specially this topic about "showing the highest contributers to a site" (http://drupal.org/node/15638), I managed to make this block to show the 10 Personal Image Galleries which have images uploaded most recently:

$users = db_query("SELECT  COUNT({image}.nid) AS count, {users}.uid, {users}.name FROM {image} INNER JOIN {node} ON {image}.nid = {node}.nid INNER JOIN {users} ON {node}.uid = {users}.uid WHERE {node}.uid != 0 GROUP BY {users}.uid ORDER BY {node}.created DESC LIMIT 10");
print "<div class=\"item-list\"><ul>";
while ($user = db_fetch_object($users)) {
    print "<li>".l($user->name,"image/uid/$user->uid")." ($user->count)</li>";
}
print "</ul></div>";

All you have to do is add a block, set 'input format' to PHP code and paste the code above. Then enable the block.

If you want more than 10 galleries, change 'DESC LIMIT 10' to the desired number.

If your users have personal and non-personal images/photos, you might want to change the where clause to:

'WHERE nyc_node.uid != 0 and nyc_image.personal = 1'

so that only the images assigned as "personal" will be counted.

In my case, I used this patch "show personal images in shared galleries" (http://drupal.org/node/11392) and changed the sql a little bit so that when you see the personal gallery of an user, you see all the images they uploaded.

I hope it's useful. :-)

Creating Extra Pages w/ Static Content

I'm trying to create extra pages (faqs and an about pages, for example) with static content. I've looked through the available documentation, and I've had another developer look into it. Neither of us can figure it out. You can see what I mean at www.Grahn400.com/drupal/ (the link on the top right); this is the last last change I need to finish before launching.

Pages

Subscribe with RSS Subscribe to RSS - General discussion