Mind 2 Share All

Best Resources Share-center. Mind 2 Share everything you have............... Software's,Utilities,Web Templates,Animations,Videos,Music,Graphics,Scripts,Web Clones,Images,Tips,Tricks,Ideas,Stories,Novels,Poems,Projects,Adult,Jobs.............

Showing posts with label Tips. Show all posts
Showing posts with label Tips. Show all posts

Remove Meta Generator tag from Joomla 1.5

Many may find the inclusion of this meta tag to be inappropriate for their website. However, determining how to remove it is surprisingly difficult. Here is the recommended solution:

in your template, add the following above the tag:

setGenerator('Anything you want or leave empty'); ?>

thats it!

you can also edit the core joomla file, however this change will be lost if you upgrade the site!

The file you want to edit is called head.php and is found here:
/libraries/joomla/document/html/renderer/head.php

you will want to find the following code (~line 167):
$strHtml .= $tab.''.$lnEnd;

you can turn it off by simply commenting the line with // at the beginning:
//$strHtml .= $tab.''.$lnEnd;

Best CSS menu with feed reader icons list



Create a menu of feed reader icons using CSS. It could easily be adapted to other types of menus.

http://woork.blogspot.com/2008/06/nice-css-menu-with-feed-reader-icons.html

Use CSS & JavaScript To Add “Trendy” Border



A complete rundown of how to create a variety of border styles around the images on your blog using both JavaScript and CSS.

http://www.impressivewebs.com/add-a-custom-trendy-border-around-blog-images-with-css-javascript/ 

Install CSS Viewer For Firefox 3.5.x



CSSViewer is a very handy add on for Firefox, which shows the css parameters of any element in a website. If you use it once then you cannot live without it.

The bad news are that it is not compatible with the Firefox 3.5.* version, and from what I can understand there are no plans for an update.

The good news are that there is a really easy way to install it and make it work perfect in Firefox 3.5.*

1. Copy the following address to another browser than Firefox (so that the pop up installation window will not come out)

https://addons.mozilla.org/en-US/firefox/addon/2104

if you do not have any other browser installed go to

https://addons.mozilla.org/en-US/firefox/addons/versions/2104

2. Download the file cssviewer-1.0.3-fx.xpi

3. Use 7-zip (or any other extractor) to open it and extract it

4. Open install.rdf with notepad (I used Notepad++ to find easily the line I must change)

5. On line 18 you see 3.0.* you must change it to 3.5.*

6. Save the file and select all the files you extracted and make a zip file

7. Now you must rename the zip file including the zip extension to cssviewer-1.0.3-fx.xpi (it will prompt you if you are sure you want to change the file name extension and you must click yes)

8. Now drag n’ drop the xpi file to Firefox 3.5.* and the installation window will pop up. Install it normally ;)

I have checked it and it works great in Firefox 3.5.1 

Display Hits At Joomla! 1.5 Frontpage & Category Pages Tips

Show Hits at Joomla Category Pages with Each Item:

You want to show the hits for every article in category page too?

You need to add the following code in your category page:

item->hits; ?>

You can change the "Total Hits: " with anything you want...

Ideally your joomla template should have html override folder... i.e. you need to open this blog_item.php file, and add the above code where you want to display thehits.

your joomla template > html > com_content > category > blog_item.php

This will work perfectly for you I am sure as we do this daily :-) If you do not know how to edit template or your current tempalte dont have the html override folder, let us know, and one of our coder will do implement this for you.

Show Hits at Frontpage (Main page) of Your Joomla Site:

Just add the above code in the frontpage item i.e.

item->hits; ?>

into the following file:
joomla template > html > com_content > frontpage > default_item.php

(Add this in the above file at the position where you want to show the hits)

But to make this code work you need to add one more little code at joomla page i.e.

Open components/com_content/models/frontpage.php

Search for this line at about 128th line:

$query = ' SELECT a.id, a.title, a.title_alias, a.introtext, a.fulltext......... big line :-)

you need to add this code (a.hits,) at the end before the "'"

i.e.
a.attribs, a.urls, a.metakey, a.metadesc, a.access,

becomes :
a.attribs, a.urls, a.metakey, a.metadesc, a.access, a.hits,

PS. If you want any customization, or this does not work in your situation. You can submit a support ticket at our desk and let one of our expert coder do this for you.

Backup & Restore Big Joomla Databases Using Telnet

Here is a simple way to backup your joomla website databases using Telnet/SSH. Why using telnet? You can backup large  joomla databases using telnet which is not possible from Phpmyadmin interface where memory is an issue.

BACKING UP MYSQL DATABASE USING TELNET

STEP 1:

FTP into your web site where you want to backup the database. Create a folder named ‘backup’ (or any name you want) in your public_html directory. Chmod it to 777. (Note: If your server API is CGI, you will get ‘Internal server error’ with 777. So if this is your case, chmod it back to 755.)

STEP 2:

Telnet into your web site using Putty.

STEP 3:

At the command prompt type the backup query like this - (single line)

mysqldump -u mysite_User -ptest123 mysite_database
> /home/path/to/backup_folder_name/backup.sql

Press ENTER.

* Website - mywebsite.com
* Database name - user_database
* Database Username - user_User
* Password - test123

If everything is OK, you will go to the command prompt again. Check your ‘backup’ folder. You will see backup.sql file.

Note: There is no space between -p and your password.

Tip: Copy the above command on a notepad and modify it with your details. Then copy and paste at command prompt.

STEP 4:

Download it to your computer in ASCII mode of your ftp software. (Not in AUTO mode.)


RESTORING YOUR DATABASE

You need to restore the data into the database if you lost your data or if your database is corrupted.

STEP 1:

Create a folder ‘restore’ (or whatever you like) on your site. Upload the ‘backup.sql’ that is saved on your computer to this folder in ASCII mode.

STEP 2:

Login into your web host panel and go to Phpmyadmin. Select the database into which you want the data restored to. Delete ALL Tables. Remember, you need to restore data into the SAME database. So your database should be empty with no tables and no data.

STEP 3:

Now telnet into your web site as you did during database backup process above.

Run this command at command prompt - (single line)

mysql -u mysite_User -ptest123 mysite_database
< /home/path/to/restore_folder_name/backup.sql

Press ENTER.

* Website - mysite.com
* Database name - mysite_database
* Database Username - mysite_User
* Password - test123

If everything is OK, you will go to the command prompt again. Check your phpmyadmin interface. All data will be restored into the database again.

Note: There is no space between -p and your password.

Tip: Copy the above command on a notepad and modify it with your details. Then copy and paste at command prompt..

Do a test practice on a test database first. Create a test database and import some data and try following above instructions

Integrating reCaptcha with PHP Script

This post show you how to get started with reCAPTCHA. “reCAPTCHA is a free CAPTCHA service that helps to digitize books, newspapers and old time radio shows. Check out our paper in Science about it”.

1. Go To reCaptcha.net
2. Download The Required Files
3. Implement The Code With Your Script

Demo: http://vidiame.com/demo/recaptcha
See ths Detail and Download: http://vidiame.com/demo/recaptcha/recaptcha-tut.rar