This forum is for less technical discussions about the Drupal project, not for support questions.

php.template vs. .theme chameleon

Hi everyone
i have been working on a chameleon .theme to adapt it to my site.

can someone explain to me how this theme compares with a php template theme.

i looked at the php templates and they simply seem like a chameleon style .theme broken up in several pieces...

the chameleon seems like a php template to me, as i've done a lot of php work in it, and outside of it, i mean directly in the modules, and with themeable functions.

are there really any advantages to using a pure phptemplate theme over a chameleon style since it looks similar to me ?

Drupal 4.6 vs 4.7 for a new site.

I am building a local community website in my spare time. I have installed 4.6 and 4.7. I noticed a few nice features in 4.7, but very few of the 3rd party modules seemed to work. I am most interested in the image and mail importer modules. (As of 2006-04-09)

Do you think I should build the site in 4.6 with the current modules and then upgrade at a later date? Or just start from the beginning with 4.7 and make due?

Thanks,
Jamison

template.php and Views example

Can someone please provide a simple example about how to change the look of a Views block using template.php? A simple, complete function would be nice. I found something here on Drupal, but I didn't understand it well enough to successfully implement.

starting a blogging community...

Hey Guys,

I'm one of those people who've been coming back to drupal and doing a fresh sandbox install every few months but never launching a live site in it.. I guess my head's in Joomla projects most of the time so its hard to sit down and focus on Drupal...

Anyway, I'm looking to change that and had a couple of questions regarding a new project I want to get going. Its a blogging community site that should let users maintain their own blogs **with** their own categories. Is this possible with Drupal?

Also, what's the best image-inclusion method these days? FCK?

Book + Taxonomy

Hi,

Are there any prior works trying to integrate taxonomy into book module?

I think it is common that books are organized in taxonomy form. But I haven't seen any modules which integrates both.

For me, book modules + taxnomy access funcionalty is especially necessary for that I'm trying to install Drupal in a business context which hierachical access control is important.

I'm using Drupal 4.6.5. Any suggestions?

---Steve

Review: Rudimentary Tracing Mechanism / Possibly create something similar to create a Macro Recording Mechanism?

I've created a rudimentary tracing mechanism which might be useful to newcomers.

  • to understand the flow (which specific hook function is being called, with what parameters, etc)
  • to trace the SQL that is being executed

Can someone please review / comment on this? Is there a better place to insert hooks so that we can possibly
record a "macro" and then replay macros(for example, I add a product, create a macro, just parameterize the product name and then execute a php script to insert products from a list)

Here are the steps:

  1. Insert
    $moduleDebug = 1;
    
    function var_dump_ret($mixed = null) {
      ob_start();
      var_dump($mixed);
      $content = ob_get_contents();
      ob_end_clean();
      return $content;
    }
    
    function logtofile($string)
    {
    $filename = 'c:\temp\log.txtt';
    $fp = fopen($filename, "a");
    $write = fputs($fp, $string."\n");
    fclose($fp);
    }
    

    at the top of includes\bootstrap.inc

  2. Add the following lines:
      
      if ($moduleDebug = 1) {
      	logtofile( 'query: '. $query ."\nerror:". mysql_error($active_db) ."\n");
      }
    

    after the if ($debug) line (115) in the _db_query function in includes\database.mysql.inc

  3. Insert


    if ($moduleDebug = 1) {
    logtofile("module_invoke: calling $function with args => ". var_dump_ret($args));

Pages

Subscribe with RSS Subscribe to RSS - General discussion