By Nick Russell on Tuesday, 23 February 2016
Posted in General
Replies 21
Likes 0
Views 505
Votes 0
Hi

I am trying to get my search bar to display using cse.google.com

http://www.kksou.com/php-gtk2/Joomla-Gadgets/googleSearch-CSE-component.php#download

1 - I need to paste some code, into a <div> element in your site's <body> section where I want both of the search box and the search results to render.- any idea where i can get this placed? I have the code ready to copy - just not sure where I can access that template file!

2 - Also when i tried to paste the other bit of code to display the search bar in a custom html modile it would not let me save it - where can i create a new one to place on the homepage?

thanks!
Hi Nick,

I am sorry for the delay of this reply.

1 - I need to paste some code, into a <div> element in your site's <body> section where I want both of the search box and the search results to render.- any idea where i can get this placed? I have the code ready to copy - just not sure where I can access that template file!


I not too sure if I understand correctly the above but do you mean you just want to display this googlesearch inside EasyBlog only? If yes, the only theme file that will be always included within EasyBlog is JOOMLA/components/com_easyblog/themes/wireframe/toolbar/default.php file.

Anyway, just my suggestion. If you need to 'inject' this googlesearch into EasyBlog that based on an unique div (with certain class prefix ), maybe you should try to use custom html module instead of modify EasyBlog theme file Place this div inside your custom html module and assign this module into your EasyBlog menu item

2 - Also when i tried to paste the other bit of code to display the search bar in a custom html modile it would not let me save it - where can i create a new one to place on the homepage?


Em, can you show me the code and which custom html module? Maybe I can take a look at your this module

Please advise.
Sam
·
Tuesday, 23 February 2016 11:37
·
0 Likes
·
0 Votes
·
0 Comments
·
hey

thanks for this - regarding

1- i opened that PHP file but could not see the <body> tag - im thinking it will be found in the main site template but i cant find this - it is not necessarily just for easy blog as i need to add this search unit to the homepage

2 - i placed the code at the bottom, below my login details - you can find it there

thanks
·
Tuesday, 23 February 2016 16:09
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Nick,

I am sorry for the delay of this reply.

1- i opened that PHP file but could not see the <body> tag - im thinking it will be found in the main site template but i cant find this - it is not necessarily just for easy blog as i need to add this search unit to the homepage


Ah I am sorry for mis-understand your previous question. In within EasyBlog, we will not generate the BODY tag. The BODY tag should come from your Joomla template. You might want to check with your Joomla template provider and see which template file is generating the BODY tag


2 - i placed the code at the bottom, below my login details - you can find it there


I manage to add the javascript code into custom html module. I've created a custom html module named 'Test GoogleSearch'. To add javascript code, you have to set your Joomla editor to use 'no editor' or configure one of your user to use 'no editor' and login with this user to edit / insert the javascript code into your custom html module

Anyway, I've assigned this 'test googlesearch' module at 'footer' position but it seems like nothing being generate from the javascript code

Also, I just realised there is a ready module developed for this GoogleSearch component. Please take a look at http://www.kksou.com/php-gtk2/Joomla-Gadgets/googleSearch-CSE-module.php

Maybe you want to give this module a try instead of using custom html module

Hope this help and have a nice day!
Sam
·
Tuesday, 23 February 2016 18:25
·
0 Likes
·
0 Votes
·
0 Comments
·
ok thanks - i have asked for info about the head tag via the template's forum.

seeing as you have now created the custom html module i dont need to do install the module do it? if so please let me know which menu i can create it in -also i want to show the search bar near the top of the site - any idea which unit would be most suitable so that it displays in the best position?

much appreciated
·
Tuesday, 23 February 2016 19:27
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Nick,

I am really sorry for the delay of this reply.

You can create any menu and also can put this module anywhere follow you template guide position. Anyway, I've assigned this 'test googlesearch' module at 'footer' position but it seems like nothing being generate from the javascript code

it's ok that we install this ready module developed for this GoogleSearch component or you can try to download it and see how it goes?
·
Wednesday, 24 February 2016 15:47
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi

yes please try to do this - i think i need to place some code below the closing <head> tag also
·
Wednesday, 24 February 2016 18:23
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Nick,

I've have install ready module developed for this GoogleSearch component and i place it at you home page positions search. Snapshot: http://screencast.com/t/u7z1AU0B

Can you give it a check now, hope this help.
·
Thursday, 25 February 2016 10:53
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Jasni

It works great up until the click through is made - it returns to the homepage instead.. I typed in Eminem on the search and selected one of the links (i also tried with loads of other links with same result) -

http://blatantlyblunt.com/Interviews/Exclusive-interview-denaun-porter-talks-1.html goes to

https://www.google.com/url?q=http://blatantlyblunt.com/interviews/exclusive-interview-denaun-porter-talks-1&sa=U&ved=0ahUKEwjThKDSgpTLAhWLiCwKHRjBCTwQFggIMAE&client=internal-uds-cse&usg=AFQjCNFJB1PqeY3Z20KMjQEe2dIZCo6h6w

It also seems to redirect via another URL midway through - any idea what that may be please?

thanks!
·
Friday, 26 February 2016 07:10
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Nick,

It seems like when I disabled sh404sef on your site, the redirection is working correctly as it should. Can you try to purge the sh404sef url on your site and see how it goes?"

see snapshot: http://screencast.com/t/YT6aiLXHfD
·
Friday, 26 February 2016 18:55
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi

thanks how do i do that?
·
Friday, 26 February 2016 19:11
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Nick,

You can go to components-> sh404SEF-> SEF URLs-> click purge
see my screenshort: http://screencast.com/t/PmTOgMignT
wait for it to generate new structure url.
·
Friday, 26 February 2016 19:36
·
0 Likes
·
0 Votes
·
0 Comments
·
hey

i did that, and it displays the URL but doesn't actually go to the page, instead it goes back to homepage. when i go back to that page again it still says You are about to delete 59 urls from the database (including duplicates).

what does it actually mean when it says purge urls?
·
Friday, 26 February 2016 19:45
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Nick,

I am very sorry for the delay of this reply.

Regarding your issue, it seems like the blog post links that return from google search are in lowercase format and in your EasyBlog, the links are at upper case:

Google search:
http://blatantlyblunt.com/interviews/exclusive-interview-denaun-porter-talks-1.html



Your EasyBlog page:

http://blatantlyblunt.com/interviews/exclusive-interview-denaun-porter-talks-1.html



Did you recently changed your SH404sef setting? Please see http://screencast.com/t/vK2sUcH4xaje
If yes, most likely the old links (lower case) was cached in google and when someone click on the links from google, your SH404sef couldn't find the correct url thus it redirect you to homepage.

What you can do is to enable the 'all lower case' option from your sh404sef setting, or, if you think your sh404sef setting is already correct, then you might need to clear your website links from your google webmaster, or, you will have to wait for Google to re-crawl your site to update your links

what does it actually mean when it says purge urls?


Regarding the above, when you click to purge urls from your sh404sef, it actually delete your page the cached links from within sh404sef so that sh404sef can regenerate the links again.Usually when you've changed setting from your sh404sef, you will required to purge your urls so that sh404sef can re-generate the links based on your new settings


Hope this help and have a nice day!
Sam
·
Saturday, 27 February 2016 15:51
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi


Thanks I enabled the all lower case option - some of the search results are clicking thru to the correct page but most of them are still going to the homepage - even the posts i made this year (which suggest it isn't an issue relating to the age of the posts) - it says 'the page you requested was not found on our site' however if the search results are displaying it must mean they exist but the link is not working as intended.

Any thoughts why this may be?

thanks
·
Monday, 29 February 2016 19:31
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Nick,

I am sorry for the delay of this reply.

Is it possible provide us a few of post link which still going to the homepage as you mentioned at above? so that we can investigate for these post again?
·
Tuesday, 01 March 2016 13:33
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi

These results are going to the home page with the same error message

http://www.blatantlyblunt.com/index.php?option=com_googlesearch_cse&n=30&view=googlesearchs&cx=002510024247567160058%3Ao_xcp1lwnde&cof=FORID%3A11&ie=ISO-8859-1&q=wiley&sa=Search

https://www.google.com/url?q=http://www.blatantlyblunt.com/blog/grime/audio-j2k-ladies-night-feat-roses-gabor-wiley&sa=U&ved=0ahUKEwjAnciHvqDLAhWIVxoKHbiFAcMQFggRMAQ&client=internal-uds-cse&usg=AFQjCNEpxL-o65x-5IBLEDMEDzzCagr5aQ

https://www.google.com/url?q=http://www.blatantlyblunt.com/blog/hip-hop/mixtape-rtkal-skunk-rock-vol-1&sa=U&ved=0ahUKEwiA5dq8vqDLAhWjKJoKHT5EAVsQFggFMAA&client=internal-uds-cse&usg=AFQjCNHlUCAdCAk3cPYvT6RJ2rDYcE1YGg

https://www.google.com/url?q=http://blatantlyblunt.com/blog/grime/video-aj-tracey-naila&sa=U&ved=0ahUKEwiOgrGsvqDLAhWEYZoKHebCAfIQFggFMAA&client=internal-uds-cse&usg=AFQjCNF6IbUOcHPph3BU6Xb497u_2pBDoA


It seems like almost all of them are going to the homepage for some reason - thanks for your help on this!
·
Wednesday, 02 March 2016 06:02
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Nick,

I've checked again, it seems like now the issue is your old post link already cached in Google search engine and you have to wait for Google to re-crawl your site to update your latest links as my colleague mentioned at above.

// Google cached this post URL
http://www.blatantlyblunt.com/blog/grime/tempa-t-added-to-wiley-novelist-newham-generals-more-for-king-original-at-electric-brixton
// Current valid post URL
http://www.blatantlyblunt.com/Grime/Tempa-t-added-to-wiley-novelist-newham-generals-more-for-king-original-at-electric-brixton.html


// Google cached this post URL
http://www.blatantlyblunt.com/blog/hip-hop/mixtape-rtkal-skunk-rock-vol-1
// Current valid post URL
http://www.blatantlyblunt.com/Hip-Hop/Mixtape-rtkal-skunk-rock-vol-1.html


I've tried to search in Google and see is it got other method to remove these outdated link from Google, then I found out this video : https://www.youtube.com/watch?v=hCTV7uK5IBo

Perhaps you can take a look of this video and the video description and see how it try to submit a request remove link in Google from Google webmaster tool page.
·
Wednesday, 02 March 2016 13:01
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks - this video is really useful however there are hundreds of blog posts which would need to be removed in order for google to recrawl and display the correct URL
·
Wednesday, 02 March 2016 16:20
·
0 Likes
·
0 Votes
·
0 Comments
·
You're welcome.

Keep us updated then if this method it work, because I never try this before.
·
Wednesday, 02 March 2016 16:41
·
0 Likes
·
0 Votes
·
0 Comments
·
Sure, but i won't be using this method for all the blog posts

is there any idea of when google recrawls the URLs
·
Wednesday, 02 March 2016 16:59
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Nick,


I am really sorry for the delay of this reply.

I'm not very sure when google re-crawls the URLs, by the way your can read this article if your want google re-crawls the URLs.

https://support.google.com/webmasters/answer/6065812?hl=en

Hope this help:)
·
Wednesday, 02 March 2016 17:40
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post