2016-10-13, 09:55 PM
I've been using this MyCode on my forum for some years...
Hope you like it.
Regular expression:
Replacement:
You must replace YOURWEBSITE.COM with your domain name on the replacement string.
#then #you #can #just #type #like #this
When you click on a hashtag, it will open a new search looking for posts from your site where the same hashtag was written.
Unlikely, Google is not updated instantly... you will have to wait until Google bot collects the information of your new posts in order to get the updated search result for a hashtag.
I may realease a new version (using some custom page/plugin) to use MyBB search functions... but it's not THAT easy because MyBB search only accepts POST requests and I don't want to change core files in order to make this work.
Hope you like it.
Regular expression:
(?:color: *|pid=\d*|\[color=|\[url=[^]]*\]?\]?|&)\#(*SKIP)(*F)|\#((?:\w+|á|é|í|ó|ú|ñ|Á|É|Í|Ó|Ú|Ñ|\[|\])+)
Replacement:
<a target="_blank" href="https://www.google.com.ar/search?domains=YOURWEBSITE.COM&sitesearch=YOURWEBSITE.COM&as_epq=%23$1&as_qdr=all&as_occt=any" title="Let's Google '$1'">#$1</a>
You must replace YOURWEBSITE.COM with your domain name on the replacement string.
#then #you #can #just #type #like #this
When you click on a hashtag, it will open a new search looking for posts from your site where the same hashtag was written.
Unlikely, Google is not updated instantly... you will have to wait until Google bot collects the information of your new posts in order to get the updated search result for a hashtag.
I may realease a new version (using some custom page/plugin) to use MyBB search functions... but it's not THAT easy because MyBB search only accepts POST requests and I don't want to change core files in order to make this work.