Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated

Search bar at the top

10 years 6 months ago
  • lion's Avatar
    Topic Author
  • lion
  • Offline
  • Junior Boarder
  • Posts: 103
  • Thank you received: 2
Licenses:
JomSocial Active iSEO Active Socialize Active

Hi, i would like to set a google search area in the toolbar and to disable the normal search bar.
How can i do that?


Thanks
Laurentiu

Attachments:
10 years 6 months ago
Licenses:

Hi,

you can override this file:
/modules/mod_community_toolbar/tmpl/default.php
copy it to
/templates/socialize/html/mod_community_toolbar/default.php (create the folder if not exist)

edit that file, and put new code.

Regads

10 years 6 months ago
  • lion's Avatar
    Topic Author
  • lion
  • Offline
  • Junior Boarder
  • Posts: 103
  • Thank you received: 2
Licenses:
JomSocial Active iSEO Active Socialize Active

I have created this folder and copied this file into this folder.
At wich point i have to edit this file?
Thanks
Laurentiu

10 years 6 months ago
Licenses:

Hi,

you need to changing this code

<form class="navbar-form navbar-left" role="search" name="search" id="cFormSearch" method="get" action="<?php echo CRoute::_('index.php?option=com_community&view=search&task=display');?>">
	<div class="form-group form-group--search">
		<input type="text" class="form-control" placeholder="Search" id="keyword" name="q">
	</div>
	<button type="submit" class="btn btn-default">
		<span class="glyphicon glyphicon-search"></span>
	</button>

	<input type="hidden" name="option" value="com_community" />
	<input type="hidden" name="view" value="search" />
</form>
with google search.

if you no idea about the code. please provide me FTP access + joomla super user login by editing your first post at this topic.
put it at site info form (private). I will do it for you.

Regards

10 years 6 months ago
Licenses:

Hi,

you need to changing this code

<form class="navbar-form navbar-left" role="search" name="search" id="cFormSearch" method="get" action="<?php echo CRoute::_('index.php?option=com_community&view=search&task=display');?>">
	<div class="form-group form-group--search">
		<input type="text" class="form-control" placeholder="Search" id="keyword" name="q">
	</div>
	<button type="submit" class="btn btn-default">
		<span class="glyphicon glyphicon-search"></span>
	</button>

	<input type="hidden" name="option" value="com_community" />
	<input type="hidden" name="view" value="search" />
</form>
with google search.

if you no idea about the code. please provide me FTP access + joomla super user login by editing your first post at this topic.
put it at site info form (private). I will do it for you.

Regards

10 years 6 months ago
  • lion's Avatar
    Topic Author
  • lion
  • Offline
  • Junior Boarder
  • Posts: 103
  • Thank you received: 2
Licenses:
JomSocial Active iSEO Active Socialize Active

Hi, i have attached the Data and the code.
Thanks
Laurentiu

10 years 6 months ago
Licenses:

Hi,

I cant find any code. please attaching the file in zip format. if not will be ignored by system.
or you can send it to my email: This email address is being protected from spambots. You need JavaScript enabled to view it.

Regards

10 years 6 months ago
  • lion's Avatar
    Topic Author
  • lion
  • Offline
  • Junior Boarder
  • Posts: 103
  • Thank you received: 2
Licenses:
JomSocial Active iSEO Active Socialize Active

send file

10 years 5 months ago
Licenses:

Hi,

Done, please check it

Regards

10 years 5 months ago
  • lion's Avatar
    Topic Author
  • lion
  • Offline
  • Junior Boarder
  • Posts: 103
  • Thank you received: 2
Licenses:
JomSocial Active iSEO Active Socialize Active

Thank you very much for your help.
It is possible to delete the title "Suchen" (Search) in this field, it looks not so good when it is above the other title.
This is the file which you changed? ==> /templates/socialize/html/mod_community_toolbar/default.php



BR Laurentiu

Attachments:
10 years 5 months ago
Licenses:

Hi,

Please check it again.

Regards

The following user(s) said Thank You: lion
Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW