Nov 22, 2009
Pages: 1, 2

How To Test Drupal Themes?

free web hosting

Read Latest Entries..: (Post #14) by Vyoma on Aug 22 2006, 06:37 AM.
Nice to know that you finally got it working.I do not know of anyother site that would help other than Drupal.org itself. They have links to many other related sites. Just go there and snoop around, and I think you could find something useful.For my Drupal driven site, I downloaded a simple theme and with help of seec77, I modified it to what I required....
read more.
Read the FIRST post of this Topic. - Express your Opinion! Contribute Knowledge :-).

Open Discussion & Free Web Hosting > Computers & Tech > Software > Content Management Systems (CMS) & Blogs > Drupal

How To Test Drupal Themes?

doudou
I am writing a Drupal theme and I would like to test it out before using it on my website. Is there a way to test it?

Comment/Reply (w/o sign-up)

Vyoma
The first one is, set up a local server on your PC (may be using XAMPP or EasyPHP), and then setup Drupal there. (Just FTP download your site, and put it in the www folder of the Apache). Then, I think it is straight forward. Put the theme you created in the themes folder, start your (local) Drupal, and select it and see how it turns out.

I have heard people use different themes for different roles, but I am not sure how this can be achived and it is too much intrusive. This method, requires a lot of code change, I suppose.

So, the best way is to have a local copy of your Drupal website running on your workstation, fiddle around with it, and when you are satisfied, upload it.

Comment/Reply (w/o sign-up)

doudou
I don’t suppose there is any other way of validating my code? I don’t have a server set up on my computer and it’s really too much trouble. I’m afraid to try it on my site because if it doesn’t work, it hard to get it back to my original theme.

Comment/Reply (w/o sign-up)

seec77
Well, you can easily create a new Drupal installation inside a new folder of your site's web server. If you really want you can actually get multiple instances of Drupal to run from the same codebase, but that's overkill for an action such as testing out your theme.
Running it on your main site isn't as bad either if you don't have any visitors, because it's actually very easy to change back to the old theme (just disable your new theme and set the default to the old theme).
But anyways, I think the best long-term approach would be to just easily set up a complete webserver using XAMPP.

Comment/Reply (w/o sign-up)

doudou
QUOTE
But anyways, I think the best long-term approach would be to just easily set up a complete webserver using XAMPP.


Should I download the lite version or the full version? The Lite version doesn't seem to have a installer.

Comment/Reply (w/o sign-up)

Vyoma
Yes, setting up a server at home can be difficult, but as I said earlier, and also as seec77 pointed out, the job has been done easy by XAMPP.

XAMPP stands for Apache, MySQL, PHP and PERL. (Do not ask me what 'X' stands for, 'cause I do not know tongue.gif).

Anyway, do not bother with the lite version. Down load the full version. I downloaded the self extractor, and extracted it to C:\xampp folder. After all the files have been extracted, run the C:\xampp\setup-xampp.bat batch script. (That is, just browse to the folder you have installed xampp and run the file setup-xampp.bat). By doing this all paths in the configuration will be updated.

That is it, it is as simple as that.

Start the different servers using the GUI "xampp-control.exe" that is present in the same folder. A prudent move would be to make a short cut of this and place it on your desktop. Just click on the Apache and MySQL Start buttons if they are not running already.

Now, go ahead and install a Drupal site on the \xampp\htdocs folder. If you had earlier used the Fantastico installer to install Drupal, you would find doing this a bit more difficult, but reading through the Drupal installation instructions is easy.

Anyway, first install the XAMPP and then try to install Drupal. If you have any problems, let us know and one of us would walk you through.

 

 

 


Comment/Reply (w/o sign-up)

doudou
I have successfully installed XAMPP I have ran into some problem installing drupal.

I have followed the instruction listed in several sites, since the handbook always confuses me. I must have incorrectly configured the “settings.php” file because I can’t seem to connect.

First I tried to connect without any password, just the username ‘root’. But it doesn’t seem to work.

Then I opened up the database ‘mysql’ with phpMyAdmin and added the password for user “root”.

I also added the my password in cofig file under phpMyAdmin.

So now, I cannot access both phpMyAdmin and drupal.

What did I do wrong?

Thanks

Comment/Reply (w/o sign-up)

Vyoma
Ok doudou.

Let us do this one by one.
  • Unzip the drupal tarball to the htdocs directory
  • Now we need to create a Drupal database with proper username and password (because, this we, would be using in settings.php):
    • Open a MSDOS command window. (Choose Start->Run... and then type 'cmd' and hit OK.
    • type 'CD c:\xampp\mysql\bin' (note to replace c:\xampp to whereever you have installed xampp)
    • type 'mysqladmin -u root -p create durpaldb'. It may ask for password. If you had changed the password earlier for root, give it now.
    • type 'mysql -u root -p'. Again, give the root password.
    • copy and past the following QL command:

      GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX,
      ALTER, CREATE TEMPORARY TABLES, LOCK TABLES
      ON drupaldb.*
      TO 'username'@'localhost' IDENTIFIED BY 'password';

      Note: repalce username and password with anything you wish for your 'drupaldb' database. Just remember them.

      Once you hit enter, it should give: 'Query OK, 0 rows affected'
    • After that, give a ' FLUSH PRIVILEGES;'
    • Enter 'exit' and come out of the prompt
    • Then enter:

      mysql -u username -p drupaldb < database/database.4.1.mysql

      Use the username you had used earlier while granting permissions. You will need to give that same password.
      Also, it is advisable to use the full path of databasee.4.1.mysql file.
  • Now, go to the sites/default/settings.php file, and locate the $db_url. Remove the standard string there and replace it with:
    $db_url = "mysql://username:password@localhost/drupaldb";

    Again replace username and password with whatever you had given earlier.
  • With in the Drupal directory, create a folder called 'files'

That should work. If it doesnot, just tell us on which particular step you are failing.

Comment/Reply (w/o sign-up)

doudou
But how do I solve the problem I currently have. Should I uninstall and then reinstall everything?

Comment/Reply (w/o sign-up)

Vyoma
Yes doudou, I think that would be prudent. I gave the full set of installation instructions because I could not actually pin point on what the problem was from what you have given. Just try to do things from the scratch, and then hopefully it works.

If it does not, try to give the exact step where you failed to get the result as you expected. That would put us both on the same page and then we can work on the problem and try and get a solution for that.

Comment/Reply (w/o sign-up)

Latest Entries

Vyoma
Nice to know that you finally got it working.

I do not know of anyother site that would help other than Drupal.org itself. They have links to many other related sites. Just go there and snoop around, and I think you could find something useful.

For my Drupal driven site, I downloaded a simple theme and with help of seec77, I modified it to what I required.

Comment/Reply (w/o sign-up)

doudou
I finally got it working. Apparently the passwords did reset after I rebooted my computer. You instruction were pretty good. Thanks a bunch. Now that I have my local server running, I can start writing and testing my own Drupal themes. Do you have any suggestions on related websites and resources?

Comment/Reply (w/o sign-up)

seec77
That's weird. I personally don't have any experience with XAMPP, so I don't know what's up with that. Have you tried logging in from phpMyAdmin? If you can login from there, use the username and password and put them in Drupal (in the $db_url variable) and it should work. The questions is, have you been able to log in into phpMyAdmin with the password you supposedly know?

Comment/Reply (w/o sign-up)

doudou
I uninstalled and reinstalled XAMPP as you suggested. Unfortunately it did not solve my password problem. I still have the password setup f or MySQL, and although I know what it is, I cannot access it. Anyother suggestions?

Comment/Reply (w/o sign-up)


Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

This textarea will convert to Rich-Text automatically (IE, Firefox, Chrome)

Pages: 1, 2
Similar Topics

Keywords : test, drupal, themes

  1. Drupal Taxonomy + Heavy Modification = Preference Engine? Thoughts?
    (3)
  2. Drupal 5 Upgrade Anyone?
    Having trouble updating. (2)
    Wondering if anyone has tried to update to drupal 5? I have gone through their instructions on
    updating the install I did off the cPanel (from 4.7). I had to set the settings.php writable but
    now I get a crazy error: CODE ray( 'content' => $content, 'region' => $region,
    'title' => $title )); } /** * Default callback for PHPTemplate. * * Load a template file,
    and pass the variable array to it. * If the suggested file is not found, PHPTemplate will attempt to
    use * a $hook.tpl.php file in the template directory, and failing that a * $hook.tpl.....
  3. Drupal And Forum Integration (phpbb/smf)
    Or creating new module for Drupal (9)
    I have been running a site for couple of months that is powered by Drupal. And I like the way
    Drupal handles everything. It is kind of lean and mean, when compared to the other CMS that I
    checked out at OpenSourceCMS.com. But it has one down side that I must accept. It does not have a
    decent forum. I am sure, if I say this over at Drupal.org, I would be staked and asked what feature
    does Drupal forum not have. If I give few of the features out of the whole list, I would be given a
    module each to substitute for each feature. And in a way, what they say is true. A ....
  4. Drupal Login Problem
    (9)
    I’ve recently discovered a login problem with Drupal. I registered a domain name with
    smartdots.com. All it does is redirect to my real address. Although the url does not change. But
    when I do that, I cannot log in. If I went to my real address directly, I can log in. Does anyone
    know how to fix this? ....
  5. Help Needed In Drupal Page Categerization
    (3)
    Well, I just installed Drupal 5 days ago succesfully. Have also used quite a few modules of Drupal.
    As everyone realizes, not many layouts are present for Drupal. I've hust selected one and
    proceeding with it. (Layout can be changed anytime). Though I had quite some frustrating times with
    Drupal, this one is the most frustarting one. Well, there are modules like Forum, Blog, Book etc
    for putting content up there in the site. Actually my problem is, I want separate pages for these
    and I want my front page to contain only articles. I want to keep liks for Blog, Foru....
  6. Getting Frustrated With Drupal
    (11)
    I haven’t made any progress on Drupal since I installed Xampp. I guess one of the challenges is
    that there are so little templates out there for Drupal (php driven). And writing one is more
    challenging than I thought. I have the xhtml part down, and I know some basic php, so why is
    putting both together so hard? Should I general some more contents for my website before I go crazy
    with design? But then there is the whole taxonomy model. Would I mess everything up if I don’t
    categorize everything up front? Anyways, just getting very frustrated with Drupal. I am sur....
  7. Installing Drupal Through Cpanel
    Install under root directory (5)
    Most people probably already know this, but it took a little while for me to figure it out.
    1. Configure your Public_html folder Access your files through FTP, Under folder “public_html”
    rename file “.htaccess” to “ORIGNAL.htaccess” Right click on the renamed file “ORIGNAL.htaccess”,
    select “File Attributes” and uncheck “Group Permission” so that the total is 600. 2. Install
    Drupal From your CPanel home, under “Fantastico” click on Drupal (under Content Management) Click
    on “New Installation”, fill in the information except for leave the directory filed empt....
  8. New To Drupal
    Drupal Themes (5)
    Yesterday I had my account setup and the first thing I did was to install Drupal Content
    Management System from my cPanel. But I am at a loss as to what to do next! I looked at the themes
    Drupal offered on their website and didn’t really like any of them. I found some other PHP themes
    on the web, but I don’t know if they will work for Drupal. Are there specific requirement for
    Drupal themes? Their manual and documents are so confusing; I wonder if someone on the forum can
    answer my questions? ....
  9. Drupal Taxonomy Module
    Tips, guides, and pointers please (10)
    I installed Drupal for my website, and am having a walk in the park for almost all the modules. The
    one module that I am finding it hard to understand is the Taxonomy module. It is one of the most
    confusing and hard-to-learn module in the Drupal, but I went through few of their documentation and
    I realized that it is a powerful tool for categorization. Since I am planning on launching a site
    that contains quality articles, and these articles need to be categorized, I understood that I need
    to use this module soon as the artcile-base starts growing. Could some one....
  10. Unable To Log Into The Drupal Cms When Using Parked Domain As Url
    (Can log in when using direct astahost.com subdomain URL) (4)
    Oh boy! Setting up a website even using a CMS does not seem to be straight forward task. I have
    noticed a problem. As stated earlier in another thread , I have already registerd for the domain
    wisetome.com and parked it against kmaheshbhat.astahost.com. Also, for illustrating the problem I
    am facing, I have created a user with the following details for my site: Username: joe Password:
    joe (This is a temporary user that I will be deleting later). Now here is the problem I am facing.
    Let us take the following two cases: Case 1: Go to URL: http://kmaheshbhat.astaho....
  11. Drupal
    A nice little CMS (13)
    After ditching Mambo because it ate too much of my space, I switched to Drupal and MAN is it nice.
    It's a bit unorthodox in its approach, but I really like how all the content is in the same
    basic format, even the forums.....

    1. Looking for test, drupal, themes

See Also,

*SIMILAR VIDEOS*
Searching Video's for test, drupal, themes
advertisement



How To Test Drupal Themes?

Affordable Web Hosting, Low cost Web Hosting - ComputingHost.com