You are hereOther / Tweek Help
Tweek Help
How to manage users and content, perform install, backups and upgrades, secure your site, tweak performance, run configure and setup caching methods.
Filepath change when moving sites
I just run into problem of having a site under subdomain and moving it to live domain. Image paths in file table were all wrong, but there is simple fix for this.
run this in phpmyadmin and chage paths completly, something like is what I used
Moving site, Server settings and 500 error
Recently I was envolved with moving a site from one server (VPS) to other. I had to make a VPS installation also and setup of the server. I used Debian 6 which usually comes with php 5.3. Sometimes some modules have problems with 5.3 version of PHP. So when i transfered drupal site(drupal 6) I kept getting 500 error on server and tought this was somehow due to 5.3 php and some module i had, as on original location I had 5.2 so i was trying to force 5.2 to this server and lost bunch of time on this.
Facebook-style Micropublisher change link of attachment
Facebook-style Micropublisher works great with Facebook-style Statuses and is one of the coolest "new" drupal modules. Statuses are lightweight for database but statuses also can have their own page like nodes. Problem is that in my case this is not out of the box solution. So again i made some hacking :-)
I wanted status attacmhments to lead to status page when clicked. So i had to change how it is linked. I changed fbsmp.module one line in function fbsmp_render_attachment this one
Create drupal node programmaticly
Everything you need for this is here http://www.unleashed-technologies.com/blog/2010/07/16/drupal-6-inserting...
Take a note that you can also use node_object_prepare($node); to automaticly prepend node with some defaults and one glitch is that if you have node type with a name like
mm-evid when you put it in node type it has to be downscore
$node->type = 'mm_evid';
Online site when transfered to offline(localhost) doesn't work
Few times i transfered online site to my localhost and site wouldnt work, no response form page. What i realized is that main problem were cache tables in database. After clearing them everything was fine. Best way to do that would be to use backup and migrate module and just select all cache tables to be emptied in advanced settings and then backup database and import it to your localhost.
Creation of DrupalDump.com
Why drupaldump
Over the last few years, intensively using Drupal I have done many custumization to various parts of Drupal. The problem was that once i did that after some time i forgot the details and also where did i do it. Is it template.php is it custom module, is it contemplate, is it JQuery code etc. I always had to search through my code, through my drupal profile and issues and trying to find and remember how its solved so i dont have to do it again.