Forums | Mahara Community

Support /
How to add Google Search in Mahara Front Page


anonymous profile picture
Deleted user
Posts: 23

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?

 Thanks.

anonymous profile picture
Deleted user
Posts: 1643

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.

anonymous profile picture
Deleted user
Posts: 16

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

 

anonymous profile picture
Deleted user
Posts: 15

13 June 2010, 4:10 PM

Hi Wael,

'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:

http://www.google.com/sitesearch/

anonymous profile picture
Deleted user
Posts: 16

14 June 2010, 3:42 AM

thanks Ben Sharman for your answer

i found the file i asked for but the link is not working it refer to a wrong page

waiting your answer again

:):)

anonymous profile picture
Deleted user
Posts: 15

14 June 2010, 3:48 AM

Sorry ;)

Please copy/paste the link into your browser rather than clicking on it.

anonymous profile picture
Deleted user
Posts: 16

14 June 2010, 3:57 AM

thanks again

it is now working

:)

 

anonymous profile picture
Deleted user
Posts: 16

14 June 2010, 3:56 AM

AND by the way i found the file in this directory:

/public_html/mahara/export/leap/theme/raw/header.tpl

anonymous profile picture
Deleted user
Posts: 15

14 June 2010, 4:15 AM

Hey Wael,

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).

 

anonymous profile picture
Deleted user
Posts: 16

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

 

 

11 results