problem: using drupal 6, iis 7.5 on windows
enabled image module, however, there is a file upload error displaying extension not supported.
solved by
Changing line 117 in include/menu.inc:
if (!is_file($file)) {
to:
if (!is_file($file) && !is_uploaded_file($file)) {
source
Showing posts with label cms. Show all posts
Showing posts with label cms. Show all posts
Sunday, July 12, 2009
drupal 6, image related
Friday, July 10, 2009
Adding js to Drupal 6
open a file name external-js.tpl.php and add the script with a script tag of the external js script
in template.php
source
<?php
<script type="text/javascript" src="http://www.google-analytics.com/urchin.js"></script>
?>in template.php
<?php
function Nefertari_preprocess_page(&$vars){
$path = drupal_get_path('theme', 'Nefertari');
$vars['external_js'] = theme_render_template($path.'/external-js.tpl.php', $vars);
$vars['footer'] .= '<script type="text/javascript"> _uacct = "UA-GOOGLE-ID"; urchinTracker(); </script>';
}
?>source
Tuesday, July 7, 2009
drupal 6 theming
drop down menu for garland -> source
theming for contact form -> source
creating custom region -> go to template's .info file and add
-> source
module for theme developer -> devel module
when using nodes in block module, will dispaly string, -> use this module to change the string name
theming for contact form -> source
creating custom region -> go to template's .info file and add
regions[left] = Left sidebar
regions[right] = Right sidebar
regions[content] = Content
regions[header] = Header
regions[footer] = Footer
-> source
module for theme developer -> devel module
when using nodes in block module, will dispaly string, -> use this module to change the string name
Sunday, July 5, 2009
login page in drupal
scenario - remove user login page block from all pages
solution - type domain.com/user in the url or /?q=user for non-clean url
source
solution - type domain.com/user in the url or /?q=user for non-clean url
source
Monday, June 29, 2009
clearn url for drupal 6 on iis 7
copy this code into drupal folder -> web.config
source
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Drupal Clean URLs" stopProcessing="true">
<match url="^(.*)$" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="index.php?q={R:1}" appendQueryString="true" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
source
Friday, June 26, 2009
Sunday, June 14, 2009
drupal multisite, guides and problems encountered
spent a fair amout of time researching on multisite for drupal.
using windows server 2008 as a learning ground, using iis 7.0.
using windows 7, iis7.5 as local development machine
local machine runs fine, however, while ftp to server and change the relevant parameters, the themes seems not to be working.
- this article gives a very good guide. it provides implementation of single code base and multiple database.
using windows server 2008 as a learning ground, using iis 7.0.
using windows 7, iis7.5 as local development machine
local machine runs fine, however, while ftp to server and change the relevant parameters, the themes seems not to be working.
Saturday, June 13, 2009
drupal 6.12
* user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') ORDER BY fit DESC LIMIT 0, 1' at line 1 query: SELECT * FROM menu_router WHERE path IN () ORDER BY fit DESC LIMIT 0, 1 in .../public_html/includes/menu.inc on line 315.
* user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') ORDER BY fit DESC LIMIT 0, 1' at line 1 query: SELECT * FROM menu_router WHERE path IN () ORDER BY fit DESC LIMIT 0, 1 in .../public_html/includes/menu.inc on line 315.
solved by resetting the setting.php and dropping the previous table.
source : here
* user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') ORDER BY fit DESC LIMIT 0, 1' at line 1 query: SELECT * FROM menu_router WHERE path IN () ORDER BY fit DESC LIMIT 0, 1 in .../public_html/includes/menu.inc on line 315.
solved by resetting the setting.php and dropping the previous table.
source : here
Thursday, June 11, 2009
content management system
was doing some reading on cms and found some open source for it.
joomla, mambo, drupal
artilce on comparison on ease of creating muli-site between joomla, durpal and plone -> here
now I am hoping to found some site that provide interface like joomla, but allow multi site managment. Found that Jentla is quite a good option, but I am looking some open source alternative.
drupal forum offers guides on setting multi site -> here
a video guide on how to set up apache for drupal multisite -> here
comparison of joomla vs drupal -> here
joomla, mambo, drupal
artilce on comparison on ease of creating muli-site between joomla, durpal and plone -> here
now I am hoping to found some site that provide interface like joomla, but allow multi site managment. Found that Jentla is quite a good option, but I am looking some open source alternative.
drupal forum offers guides on setting multi site -> here
a video guide on how to set up apache for drupal multisite -> here
comparison of joomla vs drupal -> here
Subscribe to:
Posts (Atom)