Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated

How to add text to top menu bar search field?

10 years 1 month ago
  • Robert's Avatar
    Topic Author
  • Robert
  • Offline
  • Fresh Boarder
  • Posts: 69
  • Thank you received: 2
Licenses:
JomSocial Expired Socialize Expired

How can I add an example text to the search field in the Socialize top menu bar? See example image attached.

Attachments:
10 years 1 month ago
Licenses:

Hi, Robert.

Copy this file:

ROOT/modules/mod_community_toolbar/tmpl/default.php

to:

ROOT/templates/socialize/html/mod_community_toolbar

Edit the file in line 313 an replace this:

<input type="text" id="keyword" name="q" />

with this:
<input type="text" id="keyword" name="q" value="My text" onblur="if(value=='') value = 'My text'" onfocus="if(value=='My text') value = ''"/>

And in line 330 replace this:
<input type="text" id="keyword" name="q" />

with this:
<input type="text" id="keyword" name="q" value="My text" onblur="if(value=='') value = 'My text'" onfocus="if(value=='My text') value = ''"/>

Replace "My text" with any text that fits you. Don't use ", ' and ; .

Confirm if it works for you.


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you
10 years 1 month ago
  • Robert's Avatar
    Topic Author
  • Robert
  • Offline
  • Fresh Boarder
  • Posts: 69
  • Thank you received: 2
Licenses:
JomSocial Expired Socialize Expired

Hi Michal,
Thx for quick reply. But...:
- The file "ROOT/modules/mod_community_toolbar/tmpl/default.php" has only 260 lines?!
- "ROOT/templates/socialize/html/mod_community_toolbar": no such directory exists ?!
FYI: I am using the latest Jomsocial version.

10 years 1 month ago
Licenses:

Hi, Robert.

1. Just look for this line: <input type="text" id="keyword" name="q" /> . This file should have 511 lines.
2. Oh, I wasn't clear enough - feel free to create those folders :) (there should be "html" folder, just create "mod_community_toolbar"


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you
The following user(s) said Thank You: Robert
10 years 1 month ago
  • Robert's Avatar
    Topic Author
  • Robert
  • Offline
  • Fresh Boarder
  • Posts: 69
  • Thank you received: 2
Licenses:
JomSocial Expired Socialize Expired

Thx, this works.
But the "default.php" file really only has 260 lines ;-)

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