Forums | Mahara Community
How to add Google Search in Mahara Front Page
24 January 2009, 1:54 AM
In this site, I look Google search integrated with mahara. How can I do it in my mahara application? Which file I must edited to implement this feature? Please help me...
And one question, When Mahara version 1.10 will be stable version?
25 January 2009, 5:28 PM
Hi Raymond - it's relatively simple, just get the HTML that google gives you and put it in themes/default/templates/header.tpl at the place you want it.
Note that google's custom search can only search public content, which isn't much in Mahara 1.0. In 1.1 (which is what this site is running), you can have public forums and profile pages which makes the search a little more useful.
As for the 1.1 release - please read this post.
13 June 2010, 5:24 AM
1st of all i couldn't reach the file that can be edited " header.tpl "
2nd i want to know where i could optain the search code and if i obtain it how can i edit it to be suitable for my search
13 June 2010, 4:10 PM
'header.tpl' can be found in /var/www/mahara/htdocs/theme/theme-name/templates
Replace theme-name with the theme you are using ('default' for example).
To get the Google search code for your site you need to go here:
14 June 2010, 3:48 AM
Please copy/paste the link into your browser rather than clicking on it.
14 June 2010, 3:57 AM
it is now working
14 June 2010, 3:56 AM
AND by the way i found the file in this directory:
14 June 2010, 4:15 AM
There are many header.tpl files in Mahara. The path to the header.tpl you have found is used in the leap export.
The header template that affects the front page is located in the path I gave you before (or should be very similar).
14 June 2010, 4:19 AM
okay i understand
but when i tried google search engine i found that this is not what i want to do
i want to configure the search box in the mahara front page
i want to add new search option as name , title or even place
whatever the option i want aclue to this