Jun 302010
 

Install Drupal with Nginx, default, you can’t enable the Clean URL function, you have to edit nginx.conf file and add the URL rewrite rules.

If Drupal install in the root directory,

if (!-e $request_filename) {
rewrite  ^/(.*)$   /index.php?q=$1  last;
 break;
}

if drupal in a subdirectory,

if ($request_uri ~* ^.*/.*$) {
rewrite ^/(\w*)/(.*)$  /$1/index.php?q=$2 last;
break;
}
Jun 202010
 

The default title of  xhelp form, action and button are ‘Log Ticket’, if you will change it, open the file, /modules/xhelp/language/english/main.php, and position to these lines,


161: define('_XHELP_TITLE_ADDTICKET', 'Log Ticket');

340: define('_XHELP_MENU_LOG_TICKET', 'Log Ticket');

350:define('_XHELP_BUTTON_ADDTICKET', 'Log Ticket');

XOOPS Version: 2.4.5 RC3
PHP Version: 5.2.13
xhelp Version: 0.78(Beta)

Jun 202010
 
  • Open ‘/modules/smartfaq/class/faq.php’,
  • Position to line 1311,
    $grantedFaq->add(new Criteria('faqid', "(".implode(',', $faqsGranted).")", 'IN'), 'OR');

    ,

  • Change these line to
    $grantedFaq->add(new Criteria('faq.faqid', "(".implode(',',  $faqsGranted).")", 'IN'), 'OR');

    ,

  • Position to line 1408,
    $sql .= ' AND faqid IN ('.implode(',', $items).')';
  • Change these line to
    $sql .= ' AND faq.faqid IN ('.implode(',', $items).')';

My System Overview:

XOOPS Version: 2.4.5 RC3
PHP Version: 5.2.13
SmartFAQ Version: 1.0.8

Taken from: http://www.xoops.org/modules/newbb/viewtopic.php?topic_id=64655

Jun 012010
 

My WordPress host on Dreamhost share hosting, it’s superexcellence, but, you know, Dreamhost has the 7M MAX upload filesize limit, so I can’t do something. I checked the Dreamhost Discussion Forum and google www, find a real and simple way to resolve it. Here’s how:

  1. Set up your domain for FastCGI
    Login your Dreamhost, enter Manage Domains, Edit your domain setup, in Web Options->PHP mode, select ‘PHP 5 FastCGI’, as below: 

    PHP5 FastCGI

    PHP5 FastCGI

  2. Download DreamHost Custom PHP.ini from DeamHost Scripts and Tips.
  3. Extract the dh-phpini.php from dh-phpini.zip and upload it to you website root.
  4. Open dh-phpini.php in you browse. Example: http://www.yoursite.com/dh-phpini.php.
  5. Then, this result shows,

    Install Completed

    Install Completed

  6. After install, this script create ‘cgi-bin’ folder in you website root, including ‘php.ini’ files in the folder, and add this lines in you .htaccess file, AddHandler fastcgi-script fcg fcgi fpl
    AddHandler php-fastcgi .php
    Action php-fastcgi /cgi-bin/dispatch.fcgi
  7. Default, the Max upload file size increase to 20M, if you want to change to more, edit php.ini file in ‘cgi-bin’ folder like this,post_max_size = 50M
    upload_max_filesize = 50M