here is simple script to remove extra white spaces from each field of database table and get log record of how many fields age getting affected ! !
Often when one installs the CMS Made Simple on an active server online; they face a problem with the Tiny MCE editor in the pages section and hence the content cannot be modified via the editor.
I have provided three known solutions to this problem:
1) Change the permission on the modules directory to 755 if it already isn’t.
2) Try uninstalling the Tiny MCE and reinstalling it.
3) Try uninstalling the Tiny MCE and replacing it with an older version.
To add the banners in the zencart just follow the three steps.
1. Open the zencart database and insert one record in the “Configurations” table.
Keep the configuration_id null(it will update automatically)
Write the title for e.g.’Banner Display Group All pages left‘ in configuration_title.Layout Settings on the Admin side.
In configuration_key write the tag ‘SHOW_BANNERS_GROUP_SET10‘
Note: SET10 is the id of sets of banner. Upto SET9 all are the default banners of zencart.Update the SET no. everytime you want to add banners such as SHOW_BANNERS_GROUP_SET11,SHOW_BANNERS_GROUP_SET12 and so on….
In the configuration_value write any value such as’left_banner2‘
Note …
Installing a language pack in magento can be done by selecting the key from the magento commerce or downloading it from a site.
Spanish language key given may be wrong
Recently I have face strange issue on wordpress which is “public_html/wp-includes/pluggable.php on line 868 wordpress issue” error at the time of login on wordpress website.
Issue: public_html/wp-includes/pluggable.php on line 868
Solution: This kind of error is normal for wordpress. This can occur due to some spaces after ?> ( end of php code ) in your php code files. So, you need to check your last accessed files and removed spaces if there and try again accessing that page. Hope it helps for wordpress developers.
- Tejas
Preparing Your system
sudo apt-get install gs pdftk
Now we will see one example how to combine pdf files
let us assume we have 1.pdf,2.pdf,3.pdf files and now we need to cobmine this files using the following command
gs -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=combinedpdf.pdf -dBATCH 1.pdf 2.pdf 3.pdf
the output file will be combinedpdf.pdf
Rename “1.pdf 2.pdf 3.pdf” to whatever your file names are (separate your file names with a space).
If you want to know more options available for gs command check main page
Follow the below code to import mysql database using command line.
mysql -uUSERNAME -pDATABASE < DATABASE_FILE.SQL
Correct Example: mysql -uroot -pabc123 < mytest.sql
Wrong Example: mysql -u root -p abc123 < mytest.sql
where root is USERNAME of MySQL, abc123 is DATABASE of MyQL and mytest.sql is a file you want to import in to selected database.
some has experienced that when clicked on some link blank page is displayed
that problem is there because of add page process of zencart
to add page in zencart we have to create four pages
* A new directory, includes/modules/pages/myNewPage/, containing a file called header_php.php
* A new file in the directory includes/templates/template_default/templates called tpl_myNewPage_default.php
* A new file, includes/extra_datafiles/myNewPage.php, defining your new page’s filename for the Zen Cart™ system
* A new language file, …
Please visit below links to add custom fields to joomla registration page:
http://joomla-and-more.com/2010/02/05/how-to-velden-toevoegen-bij-de-joomla-registration-form/
http://www.mediainti.com/en/forum/6-tutorials/8-adding-additional-field-to-the-joomla-15-registration-form.html
To change content of registration mail :
To change conent of joomla registration mail follow the below steps:
Suppose we need to add ‘city’ field to the mail content
1. First goto components –> com_user — > controller.php
2. Findout function register_save()
Below the line $document =& JFactory::getDocument();
Add following line for city
$city = JRequest::getVar(‘city’);
3. Now in the same function (function register_save())
Below the line $user->set(‘gid’, $authorize->get_group_id( ”, $newUsertype, ‘ARO’ ));
Add following line for city
$user->set(‘city’, $city);
4. Now Findout function register_save()
Below the line …
There may be certain servers which do not allow curl options so there is a alternate option for it. We can use the following code instead of curl:
$file = fopen ($url, “r”);
if (!$file) {
echo “
Unable to open remote file.\n”;
exit;
}
while (!feof ($file)) {
$line = fgets ($file, 1024);
/* This only works if the title and its tags are on one line */
if (preg_match (“@\(.*)\@i”, $line, $out)) {
$title = $out[1];
break;
}
}
fclose($file);
where $url is the url …