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

node/xxx Logs User Out

Every time a blogger/user is logged in and goes to a blog post they're getting logged out. Hence, they can't edit their posts, only post new. Anyone have any ideas?

All the denied access errors are coming on /node/xxx/edit but I suspect they're actually logged out when they hit the node

Obviously we've got clean urls turned on/

We're running Lamp with mysql 3.23.58 Drupal 4.6.3 with mod_rewrite on...

Any help appreciated - deadline looms and you can't edit unless your an admin...but only through administer, not through the page.

User Date/Countdown snippet help

Hello all,

Just getting into drupal from postnuke and I must say from what I have seen so far, its quite amazing.

I am currently building my own user_profile.tpl.php file and I have come accrosss a few issues.

First one is that I am trying to make the profile display a date field (birthday). There is a snippet code that I tried to use however, I get an unexpected ':' error and I don't really know how to fix it. I can make the error go away, but then it will just display a blank page. Here is the code below:

$date_key = 'profile_expiry_date'; //change the name to the profile date field you are using.
<?php if ((user_access('administer users') || $GLOBALS['user']->uid == $user->uid): ?>
<div class="warning">
<?php $keyMonth = $user->$date_key{month}; ?>
<?php $keyDay = $user->$date_key{day}; ?>
<?php $keyYear = $user->$date_key{year}; ?>
<?php $month = date(F); $mon = date(n); $day = date(j); $year = date(Y); ?>
<?php $hours_left = (mktime(0,0,0,$keyMonth,$keyDay,$keyYear) - time())/3600; ?>
<?php $daysLeft = ceil($hours_left/24); ?>
<?php $z = (string)$daysLeft; ?>
<?php if ($z > 1): ?>
<P>There are <?php print $z ;?> days left until your membership expires with this site</p>
</div>
<?php endif; ?> 

Then my other problem is that I am trying to edit the Display Freeform list code to display as an inline list instead of bullet point as well as use commas as seperators. I have been able to take it as far as making it an inline list but as far as the commas, I have either been able to put them in and have them display after the last word (i.e. sports, movies, cooking,) or else they do not show at all. How would I go about editing this snippet to make it the way I am looking for:

$fieldname = 'profile_keywords';
if($user->$fieldname != ""):

Keywords:

How do I efficiently parse XML

How can I efficiently read/parse XML from an URL. Say I want to go to the URL http://myxml.com/foo.php?flag=1 which will output some XML . I want to parse/read the xml output and manipulate its content.

Thanks!

Watchdog error "user/user not found" - going to My Account

When I or others go to My Account, an error is logged in watchdog "user/user not found.".

How do I stop this?

Is there something within My Account that calls for user/user or similar in the background; when loading the page.

E.g. an image or links.

My Account is: http://LOCALHOST.com/user => could there be something that calls for /user - which could cause user/user error.

However, the error doesn't show up to the user; it is just logged in watchdog.

Any ideas?

Creating a better menu structure?

I'm trying to create a better menu structure and hopefully better breadcrumbs. Right now, if I make a blog entry, I get Home > My Blog for the breadcrumb. I have the blog entries categorized into different taxonomy terms, but I realize now that all of that didn't do much good since I don't see a way to directly link to all stories in any of these terms. Anyway, I would like to set up a better system of categories, sub-categories, etc. so I can directly link to all entries in any category, and the breadcrumbs will make sense.

Permissions based on points

I've been experimenting with a bunch of different modules. I discovered the User_Points module that assigns points (experience) to a user based on their actions (Points for posting, replying, voting, etc.). I also discovered the Role_Delay module which will automatically upgrade a person's role based on tenure with the site.

And then I got an idea that I've been trying to figure out. What if the role-delay was based on a person's points?

Pages

Subscribe with RSS Subscribe to RSS - Post installation