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

Pager URL aliasing

hi,

i applied the patch on http://drupal.org/node/23708 to change all "node" appearances to "article" ones. it's working other areas but all pager URLs are still showing "node" instead of "article". how can i change that also?

if it is possible can i convert "node?page=1" into "pages?1" ?

thanks

Linux shortcut for command-line mysql access

Hopefully the upcoming Drupal 5.0 auto-install/uninstall will greatly reduce the need for command-line mysql access. Until then you may find this little "script" useful... just add it to the relevant .bashrc (or other) file on your server, then logout & back in again.

# shortcut sql command
file=~/httpdocs/sites/default/settings.php
host=`grep db_url $file | grep -v "*" | awk -F@ '{ print $2 }' | awk -F/ '{ print $1 }'`
user=`grep db_url $file | grep -v "*" | awk -F/ '{ print $3 }' | awk -F: '{ print $1 }'`
pass=`grep db_url $file | grep -v "*" | awk -F: '{ print $3 }' | awk -F@ '{ print $1 }'`
dbse=`grep db_url $file | grep -v "*" | awk -F/ '{ print $4 }' | awk -F\' '{ print $1 }'`
alias sql='mysql -h$host -u$user -p$pass $dbse'

Then just type "sql" to start a mysql command-line session. No more hunting around for usernames & passwords. Very useful if you have multiple databases.

It works for me... but your mileage may vary.

Database Problem

My hosting company recently updated my sql server, and now they are telling me its corrupted. Can I just copy the contents of the database folder again into phpMyAdmin? Or will that erase everything that I've worked on? Or would it be easier just to start over, drop that database and create a new one?

Thanks for any help!

Caregory module hidden container function not working

Don't know why but the hidden container function is not "hiding" a container when users go to categorise content. This then suggests they have to submit an entry to this particular container (which I don't want ) . Any help really appreciated

Copying the administer menu and submenus to a new block

I want to have an administer block, and it'd be handy to have the already built menu structure of "administer" in there. But I can't see any way to "move" it into a new block - sure I can add the administer item, but I seem to have to then go through and recreate all the sub items that are in the existing menu. Isn't there a quick way of just copying or moving the whole thing?

Cannot modify header information

warning: Cannot modify header information - headers already sent by (output started at /vservers/blogsnhc/htdocs/drupal/modules/node.module:1) in /vservers/blogsnhc/htdocs/drupal/includes/common.inc on line 139.

I have searched and read several "solutions" to this problem. Is there a definitive solution?

There are NO extra lines or closing PHP tags at the end of my node.module file.

What is the next step?

Pages

Subscribe with RSS Subscribe to RSS - Post installation