By Rob on Saturday, 26 July 2014
Posted in General Issues
Replies 6
Likes 0
Views 750
Votes 0
Hello,

No rush on this just advice.

I would like to put the EasyBlog search module in my menu and have it show on all pages. I realize how to get it to show on all pages but I do not know what code to grab to place in that module.

It would have to be a custom html code but is this possible?

Thank you.

See image please.

Regards,
Rob
Yes, that is the code but I don't think you can actually copy those php codes. You probably just want to use the codes below,


<form name="search-blogs" action="<?php echo JRoute::_( 'index.php?option=com_easyblog&view=search' );?>" method="post">
<input type="text" name="query" id="search-blogs" class="input" />
<button class="ui-button button"><?php echo JText::_( 'Search' );?></button>
</form>
·
Sunday, 27 July 2014 01:31
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Rob,

I am really sorry for the delay of this reply as it is a weekend for us here. Hm, you can't really do that unless there's a module position that's available but since EasyBlog has 2 search plugins for Joomla, why not just use the search module that comes with Joomla? This way you get to search everything and not just EasyBlog
·
Saturday, 26 July 2014 23:55
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Mark,

Thank you for the reply on the weekend!

I did try the generic Joomla search and I tried using various other search modules Smart Search Module and RokAjaxSearch and all they did was either just search articles (which I only have 1 article) or return my searches with nothing found. And the EasyBlog Search was faster than these other modules.

I installed the EasyBlog Search plugin last night before I posted but I could not find where I could place that to show in the menu. I know the location it needs to go but I just need that snippet of code that needs to go there.

Is this the code?

<form name="frmBlogger" id="frmBlogger" action="<?php echo EasyBlogRouter::_( 'index.php?option=com_easyblog&view=blogger' ); ?>" method="post" class="blogger-filter">
<input type="hidden" name="option" value="com_easyblog" />
<input type="hidden" name="view" value="blogger" class="inputbox" />
<input type="hidden" name="Itemid" value="<?php echo JRequest::getVar('Itemid', '');?>"/>
<input type="text" name="search" value="<?php echo $this->escape( $search );?>" class="inputbox text mrm width-200" />
<?php echo $sortHTML; ?>
<input class="button" type="submit" value="<?php echo JText::_('COM_EASYBLOG_FILTER');?>" name="btnSubmit" id="btnSubmit" />
</form>

I hope you understand. Thank you again for your reply.

Regards,
Rob
Rob
·
Sunday, 27 July 2014 00:26
·
0 Likes
·
0 Votes
·
0 Comments
·
Wow that is great Mark. I just need not to customize the code so it looks okay but man that helps a lot. Thank you again. Have a great weekend! :}

If interested here is the finished product with CSS customizations. Thanks again Mark.

Regards,
Rob
http://techlick.com
Rob
·
Sunday, 27 July 2014 02:10
·
0 Likes
·
0 Votes
·
0 Comments
·
Attached search box.
Rob
·
Sunday, 27 July 2014 09:43
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for sharing Rob
·
Sunday, 27 July 2014 12:16
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post