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

Flexinode problem.

Not sure if this is the right place to post this question but...

I am using Drupal 4.7 beta 3 and have installed the 4.7 version of flexinode.

When I try to add an image to a content type I get the following error message

Fatal error: Cannot use object of type stdClass as array in /raid/sites/www.lfshosting.co.uk/www/drupal/drupal-4.7.0-beta3/modules/flexinode/fie... on line 137

I am using PHP 5.1.

Dating website?

Hi
i have a question ?
can i make a dating website using drupal ?
or a picture rating website using drupal where people will be posting there pictures and people will be rating them and leaving message like this website for example www.ratedesi.net

Please do help me on this if anyone i will be greatful

Modifying paypal.module script so that payments go to the originator of the node

No guarantees on this -- because this is coming from a really new programmer. But anyhow...

I just thought that I would share this with you guys -- I don't know if it will be helpful for anybody -- or if it is even correct ! -- I am very new at this -- but I was trying to modify the stores.module functionality in the e-commerce.module -- so that when somebody purchases an item from somebody else in the community -- the payment (via paypal) -- goes to them, rather than the default paypal e-mail in the settings. (The way the stores.module is currently set up -- all payments go to the same user -- regardless of who actually is selling the product.)

So, I changed it -- so that the payment actually goes to the person who is selling the product.

Maybe this will help somebody. And if anybody has suggestions on how to improve it, please let me know -- At any rate, here is the modification:
look for the following lines in the paypal.module

<?php
function paypal_goto($txn) {

global $user;

// Earmark the item_number since we never know if the admin is using Paypal
// for other services.
if ($txn->txnid) {
$txnid = 'txnid_'. $txn->txnid;
}

global $base_url;
$return_url = variable_get('paypal_return_url', '%order-history') == '%order-history' ? t('%order-history', array('%order-history' => url("store/history/$user->uid"))) : url(variable_get('paypal_return_url', '%order-history'));

formating forms w/CSS--please help

I'm admittedly a middle layer web developer and know enough CSS to output pretty text, but not much else.

I have hit a wall trying to produce the following *simple* example layout

First Name: [form_textfield] Last Name: [form_textfield]

I'm building the following output string like this:

$output .= "<div class='col_form'>First Name:</div>" . form_textfield('', 'firstname', $node->firstname, 20, 20, null, null, true)  . <div class='col_form'>Last Name:</div>" . form_textfield('', 'lastname', $node->lastname, 20, 20, null, null, true);

The HTML output looks like this:

<div class='col_form'>First Name:</div><div class="form-item">
<input type="text" maxlength="20" class="form-text required" name="edit[firstname]" id="edit-firstname" size="20" value="" />
</div><div class='col_form'>Last Name:</div><div class="form-item">
<input type="text" maxlength="20" class="form-text required" name="edit[lastname]" id="edit-lastname" size="20" value="" />
</div>

Yet each label and text field appear on separate lines:

First Name: [form_textfield]
Last Name: [form_textfield]

There's something about class "form-item" that's forcing the line break. I examined drupal.css, but nothing appeared obvious to me. I know it's possible to change this behavior by adding a sub class, but with what attribute?

I would be sincerely grateful if someone could help me out. Thank you.

allow contact from unregistered user

The contact module allows registered users to send an email to another user. Can this be set to act as a contact page for an unregistered user to contact a registered user?

Manager role where it can used to modify other ppl pages.

I would like to create a role where it can be used to edit/create/delete any pages/books, etc... Currently admin is the only role can do this. Can you show me what I need to do to make this happen?

Thanks

Tung

Pages

Subscribe with RSS Subscribe to RSS - Post installation