foss
Blank page while installing drupal from cvs
Submitted by ravisagar on Sat, 04/18/2009 - 13:52I downloaded the latest drupal from the cvs using the command below.
When I tried to install the drupal it gave me a blank page when I clicked on "Install drupal in english". I tried everything from re-downloading the code to commeting some lines in the install.inc file but all in vain but finaly I have fixed it. I know it is kinda dirty way of fixing things. I saw this page http://drupal.org/node/298391 while searching for solution. Though I did not apply the patch. I made the change in the includes/install.inc file manually.
In the function "function drupal_detect_database_types()" Replace this portion of the code.
- ravisagar's blog
- Add new comment
- Read more
- 2616 reads
Table view with rows/columns switched
Submitted by ravisagar on Fri, 04/03/2009 - 04:35These days I am working on my other site www.ggsipu.info to build the database of all the colleges affiliated to GGSIPU. I created a Custom Content Type to have various fields like college address, phone, fax, email, rating, etc. During the counselling time the students wants to compare various colleges based on various parameters like infrastructure, campus and other things. Now I wanted to create a view where a table is shown with the names of the colleges in the header and these parameters on rows.
Title | Price 1 | Price 2
----------------------------
Node #1 | $10 | $20
Node #2 | $15 | $25
but what you really want is the node titles displayed in the header, and the prices as the rows:
| Node #1 | Node #2
----------------------------
Price 1 | $10 | $15
Price 2 | $20 | $25
I created a view table, but obviously it showed the college names in the rows as it is the dynamic part. I searched around a lot on drupal and google and found this amazing piece of code that transpose the rows/columns.
You just need to replace YOURTHEME with the name of the theme and VIEWNAME with the view name and that's it!
- ravisagar's blog
- Add new comment
- Read more
- 1693 reads
Flash in Firefox 3
Submitted by ravisagar on Fri, 04/03/2009 - 04:30I know I am late. I installed firefor3 on my fedora 8 just three weeks back. I have been using FF3 on windows workstation in office ever since it was launched.
When I installed FF3 I noticed that the flash content is not working in it, though I have it installed on my system. I searched around the internet and found this way around.
You just need to link the flash module from your old firefox folder to the new folder.
- ravisagar's blog
- Add new comment
- 1067 reads
How drupal got its name?
Submitted by ravisagar on Tue, 03/31/2009 - 07:00Drupal is an English rendering of the Dutch word “druppel”, which means “drop” (as in “a water droplet”). The choice of “drop” was merely coincidental, Dries Buytaert the original writer wanted to register dorp.org (meaning “village” in Dutch, in reference to his program’s community aspect) Dries made a typo when checking the domain name and thought it sounded better.
Source: http://hehe2.net/apps/etymology-of-an-open-source-appproject/
- ravisagar's blog
- Add new comment
- 1171 reads
Delhi Drupal Meetup
Submitted by ravisagar on Sun, 02/22/2009 - 13:23
Drupal Delhi meetup is a gathering of drupal enthusiasts in Delhi. This meetup is focused at getting together and coding for drupal. The event will focus on module development and theme development for drupal. There will be two talks, one focused on drupal module development and another one focused at drupal theme development. Following the talks we will have hacking session for coding a module and a theme.
- ravisagar's blog
- Add new comment
- Read more
- 2531 reads
Convert .cue/.bin to .iso format
Submitted by ravisagar on Sat, 11/29/2008 - 08:14Today I was installing something on Windows using Sun VirtualBox but the package was in the form of .cue and .bin files. I was not aware of these two format and didn't know how to mount them in Virtual Machine. I had two ways, first is to write a CD and second is to somehow convert the .cue and .bin files into .iso.
Well I am lazy person so I decided why take so much pain in converting them into .iso, I though of writing the .cue/.bin files on CD and them mount the CD on VirtualBox. I don't have blank CD and was getting ready to buy some from the nearby market. Suddenly I realized that it is election day today in Delhi and all the shops must be closed. So now I had only one option left, to convert the .cue and .bin files into .iso.
- ravisagar's blog
- 1 comment
- Read more
- 7004 reads
Blank admin page in Drupal 6
Submitted by ravisagar on Tue, 11/25/2008 - 08:31I installed Drupal 6 today on my windows machine in office. After creating the first user I tried to access the Administration Page, but a blank page was returned. I searched google to fix this problem and got this link.
http://www.tmsnetwork.org/blog/content/2008/08/22/drupal-6-slow-administ...
Go to system table and change the value of 'status', 'bootstrap' and 'throttle' to 0
set s.status=0, s.throttle=0, s.bootstrap=0
where filename = 'modules/update/update.module'
Now you should be able to access the ./admin area :)
- ravisagar's blog
- 3 comments
- 10314 reads
Display Random images
Submitted by ravisagar on Thu, 11/20/2008 - 07:56Yesterday I came across this excellent tutorial to display Random Images. I also tried it and implemented it on this site.
1. I use bluemarine theme for this site. I created a folder "images" and uploaded three images in there.
themes/bluemarine/images
header_1.jpg
header_2.jpg
header_3.jpg
2. Modified "page.tpl.php" and added the following code
3. Modified "style.css" and add section to handle "random_header"
float: left;
width: 900px;
height: 170px;
}
- ravisagar's blog
- 1 comment
- Read more
- 1505 reads




