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

Gallery2 Embedded mod rewrite Issue?

Hello,

Sorry if someone reads this twice (posted in wrong forum earlier).

I Have Drupal 4.6 and Gallery 2.1.2 installed. They work fine independently. They work together embedded, except for the site admin menu items. In drupal I get a page not found screen and a log entry that says main.php not found.

Since this is a multisite gallery 2 build I can't figure out how to work with the url mod rewrite stuff. In Gallery admin I can force it to pass rewrite test but no automatic test, so I don't know if it is working right or if this is an .htaccess in drupal fix. I know I could probably install multiple gallery 2 full installs to accomplish what I need but I am being stubborn about configuring it multisite.

So I believe I need help with the .htaccess lines in Drupal

Here is the info about URL and Path -

I Host on 1and1 with no root access

Gallery 2 Codebase

Base URL: http://myuniquenumbershere.onlinehome.us/gallery2/
Path relative to root: /kunden/homepages/8/myuniquenumbershere/htdocs/gallery2/

Gallery 2 Site

Base URL: http://myuniquenumbershere.onlinehome.us/drupal/maha/gallery2/
Path relative to root: /kunden/homepages/8/myuniquenumbershere/htdocs/drupal/maha/gallery2/

Drupal 4.6 is here (multisite, so I have a sites folder within Drupal)

Base URL: http://myuniquenumbershere.onlinehome.us/drupal/
Path relative to root: /kunden/homepages/8/myuniquenumbershere/htdocs/drupal/

classified ads: please help test brand-new first classified ads pay per listing module

A lot of people have been asking for a genuine pay-per-listing classified ads module for a long time. The good news is that a beta version has just been released as part of the lm paypal suite.

http://drupal.org/node/78002

please help test!

Time format

I am curious how the timestamp is created for Drupal. I am trying to create a query that will 1) Create a new entry with a timestamp and 2) convert the timestamp to a standard date. Any help would be great! Thanks.

"blog it" for other node types

I've been searching around but couldn't find much on this.

I'm interested in converting the 'blog this' function, which allows users with access to blog.module to create new nodes from aggregator links, to a more generalised function. There seems like a few possibilities for it though, and I'm not a coder, so thought it'd be worth posting this to keep track of ideas and see if anyone else has done or is trying to do the same thing:

Most of the relevant code is here in blog.module


/**
* Implementation of hook_form().
*/
function blog_form(&$node) {
global $nid;
$iid = $_GET['iid'];

if (empty($node->body)) {
/*
** If the user clicked a "blog it" link, we load the data from the
** database and quote it in the blog:
*/

if ($nid && $blog = node_load($nid)) {
$node->body = ''. $blog->body .' ['. l($blog->name, "node/$nid") .']';
}

if ($iid && $item = db_fetch_object(db_query('SELECT i.*, f.title as ftitle, f.link as flink FROM {aggregator_item} i, {aggregator_feed} f WHERE i.iid = %d AND i.fid = f.fid', $iid))) {
$node->title = $item->title;
// Note: $item->description has been validated on aggregation.
$node->body = 'link) .'">'. check_plain($item->title) .' - '. $item->description .' [flink) .'">'. check_plain($item->ftitle) ."]\n";

have problem editting custom node content

Below is my problem. Any comments or help appreicate.

My problem:

I created a module that adds two additional data fields to the node by implementing hook_form, which in essence I have the usual node fields plus a dropdown and textfield.

The best way to start a new node type?

Looking for some good folks with a great understanding of Drupal inside and out to answer this one...

I am about to undertake converting an existing website from a proprietary CMS and converting it to Drupal. Why would I want to do this? Because the existing CMS infastructure is bloated, messy, and I think drupal could do a much better job of managing all of the content.

Porting over the article content on the existing site will be a breeze; however these is a huge aspect of the site which is going to require quite a bit of custom development; essentially what I want to do is create a node type "Establishment", and have the following elements:

- Establishment Name
- Establishment Contact Info (name, address, etc)
- Establishment Location (e.g. a local neighborhood that its located in...)
- Establishment Picture (and a thumbnail picture for search results)
- Establishment Categories (not taxonomy) more like searchable options, such as smoking, non-smoking, under 18, etc.

For a better understanding of what I'm talking about, check out the website here:

http://www.sotanlife.com/

Write now, all of the establishment veriables are stored in a database, and I'd probably just port that same db structure over to drupal and create some new tables.

Suggestions on the best way to start this process? Start with creating a simple node type,

Pages

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