08:23 pm - October 15,2018
Private chat

[Exclusive] #hashtag v1 for wapka blog
yohans tesfaye on Dec 21/2015 3:41 am
yohans tesfaye
1 Dec 21/2015 3:41 am
Falling hurts alot but it make make stronger for next attempt.
A Hash tag label or metadata tag and it is commonly used by social network sites and blogs.users can create by placing '#' before/infront of a word or unspaced phrase.Hashtag use to find specific content or thread tagged with it. And it also use for social activism,collecting data,and some persons use it as coloring text(mostly on facebook users use to write a blue text,it become blue because of hashtags will be convert to link.they use it because of they don't know). [img]http://wac.450f.edgecastcdn.net/80450F/gator995.com/files/2013/06/hashtag.png[/img]
On wapka it made by users as bbcode using javascript or jquery.i can say they use it without understanding it.a thing to say this is when hashtag is clicked it will redirect to error page or it reload the page.but it is not hashtag a right function.

To avoid that type mistakes today i will introduce you with my new project.i hope it will be helpful to you.

Introduction
wapka hashtag v1 can be used for blog and simple forum(shout box).in this tut i give for blog if you want to use for shout box you only need to change :bloglist: wapka tag to :forumlist:

Copyright
this code copyright is for ethio-pic.tk.when you share this tut to other you must give credit for my site.

Requirements
your blog list %text% variable must be cover by name="hash" like this [php]<span class="hash" name="hash">
%text%
</span>[/php]

#hashtag bbcode js
under the bloglist/forumlist code or on footer page( default site -2 ) add this javascript
[php]<script language="javascript"> msg=document.getElementsByName("hash").length; for(h=0;h<msg;h++) { hi=document.getElementsByName("hash")[h].innerHTML; hi=hi.replace(/#([a-zA-Z0-9-_^.-?!/]+)/ig,'<a href="site_hash.php?get-hash=$1:admin-hash-amp:">#$1</a>'); document.getElementsByName("hash")[h].innerHTML=hi;} </script>[/php]

Hash search result page
Create one page and give it url name 'hash' because the url should be like this site_hash.xhtml it is important.
Next on this page add this code it show search result for hashtag
[php]<div class="sub_header"><b>Hash</b><br/> Result for <b>#:get-hash(hash):</b> </div><div name="john" class="text con"><div name="hashs"></div> </div>
:bloglist:l=50,s=1,o=n,t=--:: <script language="javascript"> old=$("div[name='hashs']").html(); t="%text%"; tex='<div class="list hash" name="high">%lname%<br/><l>Posted %time%</l><br/> '+t+'</div>'; show=old+tex; if(t.match(/#:get-hash(hash):/)) {$("div[name='hashs']").html(show);} else {$("div[name='hashs']").html(no);} </script>:: :/bloglist:[/php]

Finishing
If finally it didn't work because of your site doesn't have google jquery pluggin.to make it alive add this on head tag [php]<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>[/php]

* when you share this topic to others give a credit for my site.if you do that i will share more tutorials.

I wish you success
ethio-pic.tk
[img]http://ethio-pic.tk/601029/601029420_2b90f9cfd4.png[/img]
21 Vote · Reply · Quote · Report

waphelper on Mar 28/2016 8:46 pm
waphelper
2 Mar 28/2016 8:46 pm
I saw similar stuff here [url=site_101.xhtml?get-link=http://idelite.ga/forum2_theme_112529163.xhtml?tema=1&hash=b2858918983560dadf7dd3e527c757] This link[/url]

but it is different
[img]http://ethio-pic.tk/601029/601029420_2b90f9cfd4.png[/img]
51 Vote · Reply · Quote · Report

yohans tesfaye on Mar 29/2016 3:05 am
yohans tesfaye
3 Mar 29/2016 3:05 am
Falling hurts alot but it make make stronger for next attempt.
[quote=waphelper]I saw similar stuff here [url=site_101.xhtml?get-link=http://idelite.ga/forum2_theme_112529163.xhtml?tema=1] This link[/url]

but it is different[/quote] it is differ from my work. That site work hashtag to redirect to twitter or search on google or only coloring the tag. But my work is to show similar posts that have the same tag on blog post or simple forum post.
[img]http://ethio-pic.tk/601029/601029420_2b90f9cfd4.png[/img]
13 Vote · Reply · Quote · Report

netics on Aug 16/2018 5:00 am
netics
4 Aug 16/2018 5:00 am
can it be used in forums???
[img]http://ethio-pic.tk/601029/601029420_2b90f9cfd4.png[/img]
0 Vote · Reply · Quote · Report


Add Comment
bolditalicunderlineimageurlcodephp
Name:

Content:

: ..››..1
Name:

Content:

Name:

Content:

Name:

Content:

Name:

Content:

Name:

Content:

Name:

Content:

Real Time Analytics

Clicky