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

Keeping a user logged in when not changing pages

I've set my sites session to expiry after no page loading in 20 minutes.

One of my site pages includes a flash based file where a user can play for as long as they want. If they play for 30 minutes they are going to find themselves logged out when they change page.

What is the best way to prevent this from happening?

lost my drupal .htaccess file and having big issues

I have a multisite environment installed (fortunately we're not live - just in config mode). All WAS working great until I started trying to reorganize my sites.

I won't drag you through the details, but it appears that I have lost the drupal specific .htaccess file. Both of my sites have clean URL's on. Can somebody please post a copy of what a .htaccess file would look like once clean URLs were turned on. Also, let me know where I should put it - in the drupal core directory I assume and perhaps a little direction for domain/site names for the text so I can modify any lines to suit my envt. as appropriate. Oh yes and a new car if you have one to spare :-)

More background on my symptoms (maybe my theory's wrong and you're better at spotting the issues)
One of my sites - the one installed initially and not really as a site, I can at least get to the homepage. But as soon as I click a link, it generates the URL without the lovely ?q and I get 404 errors. If I manually add the ?q, I can get to public pages. BUT guess what, I can't login this way!

On the other site, ughh the one that is (I mean was) installed as a site properly. This one I get crazy open file dialog from firefox:
You have chosen to open
which is a: application/x-httpd-php
from: mydomain.org
What should Firefox do with this file?

And before I'm told to RTFM, I've been reading the forums all day and get close, but no cigar. I even tried restoring from last night's backup. Still not working ??? HUH??

Parsing XML Works in 4.6 but not in 4.7?

I'm having a real tough time with this one, and really could use some help. I am using a php code snippet to pull an XML file from a remote server, and parse it onto my page. I had this working on a previous version of the site running 4.6, but now, with my new server and upgrade to 4.7, it's saying that it can't read the file. My code is thus:

This is the code snippet that is on my page.
<?php
include $_SERVER['DOCUMENT_ROOT'] ."/lib/parser.class.php";

if ( $_GET['rss'] )
{
$pattern = '/^xml/';
preg_match( $pattern, substr( $_GET['rss'], 3 ), $matches, PREG_OFFSET_CAPTURE );
	
if ( !empty( $matches ) )
{
header( "Location: ". $_GET['rss'] ); /* Redirect browser */
}
else
{
$rssDefault = $_GET['rss'];
parseFeed($rssDefault);
$GLOBALS['getRequest']	= true;
}
}
?>

<?php
$rssDefault = "http://www.wpg.cc/stl/CDA/RSS/homepage/1,1076,691-0,00.xml";
parseFeed($rssDefault);
?>


This is the parser.class.php file:
<?php
include "readingRoomTitleCondig.php";

/* ---------- [ Define Globals ] ---------- */

$GLOBALS['readingRoom'] = $readingRoom;
$GLOBALS['readingRoomFeed'] = 'http://www.wpg.cc/stl/CDA/RSS/channel/1,1075,691-314,00.xml';

$GLOBALS['title'] = '

replace

';
$GLOBALS['link'] = 'read more';
$GLOBALS['description'] = '

replace

';

$GLOBALS['headline'] = '

replace

';
$GLOBALS['teaser'] = '

replace

';
$GLOBALS['body'] = '

replace

Typing in TinyMCE Appears So Tiny

Two questions about TinyMCE:

epublish: Sections/Topics/Categories

Hi, I'm trying to a set up Drupal to work with a monthly magazine and I'm using epublish. The module seems like it can do everything I want, but its sections/topics/categories stuff is VERY confusing. The magazine is organized very simply (just a few sections, no subsections) and I would like the pages generated by epublish to reflect that. I was able to easily set up a publication, and then editions and volumes. I would now like to add articles to the volumes and mark which sections they fall under.

I created the sections by going to the Sections and Topics tab of the epublish admin page. Apparently each section needs at least one topic (ie taxonomy tag) associated with it, so I created corresponding tags. This means I have a Current Events section with a Current Events topic. Fine. This seems unnecessary, as articles are directly added to editions.

Now, I add articles by editing an edition and choosing Add More Headlines under the Manage Headlines section of the page. A filtered list of Stories appears (maybe other things would too, but that's all I have entered in my system so far), and I can check stories to add to the addition. I am given a choice of Type for each stories, but I only have two choices (Current Events and misc, when I also have History, Culture, and other sections). So, this is my first significant problem (and the general difficulty understanding the module admin page is an overriding one).

Remove line break after author's $picture display?

I've got the following code in a node.tpl.php file that displays the author's picture:

Pages

Subscribe with RSS Subscribe to RSS - Post installation