Not Solved #Hashtag and Trending
#1
Not Solved
is there a plugin like on twitter that every #Hashtag will thread in Forum?

Thanks!
Reply
#2
Not Solved
You can actually try the plugin by Paul and see if it works.
http://mods.mybb.com/view/mytags
Reply
#3
Not Solved
(2016-05-19, 05:19 PM)WallBB Wrote: You can actually try the plugin by Paul and see if it works.
http://mods.mybb.com/view/mytags

Its not working.. Sad
Reply
#4
Not Solved
(2016-05-19, 05:38 PM)Black Box Wrote:
(2016-05-19, 05:19 PM)WallBB Wrote: You can actually try the plugin by Paul and see if it works.
http://mods.mybb.com/view/mytags

Its not working.. Sad

Did you try changing the compatibility ?
Reply
#5
Not Solved
(2016-05-19, 05:54 PM)WallBB Wrote:
(2016-05-19, 05:38 PM)Black Box Wrote:
(2016-05-19, 05:19 PM)WallBB Wrote: You can actually try the plugin by Paul and see if it works.
http://mods.mybb.com/view/mytags

Its not working.. Sad

Did you try changing the compatibility ?

No, i dont change anything.. the plugin is working but i cant see the tags plugin in our forum..

and this is only the contained in mytags.php file

<?php
/*
Copyright 2011 PJGIH 
See license here: http://wb-dev.net/Thread-Wb-Dev-License
*/


if(!defined("IN_MYBB")) {
    die("This file cannot be accessed directly.");
}
//Add Your Hooks
$plugins->add_hook("parse_message_end", "tag_parse");

//REQUIRED
function mytags_info()
{
    return array(
        'name'            => 'MyTags',
        'description'    => 'Uses # to make clickable and searchable hashtags, like on twitter.',
        'website'        => 'http://www.wb-dev.net',
        'author'        => 'PJGIH',
        'authorsite'    => 'http://www.wb-dev.net',
        'version'        => '1.0',
    );
}

function mytags_activate() {
//no settings
}

function mytags_deactivate()
{
//no settings
}

function tag_parse($message) {

    $tweet = $message;
    return preg_replace("/#([A-Za-z0-9_]+)(?=\s|\Z)/",
        '
<form method="post" action="./search.php" style="display:inline;">
<input type="hidden" name="action" value="do_search" />
<input type="hidden" name="postthread" value="1" />
<input type="hidden" name="forums" value="all" />
<input type="hidden" name="showresults" value="posts" />
<input type="hidden" class="textbox" name="keywords" value="#\1" />
<a href="#" class="mytags_hashtag" onclick="document.forms[0].submit()">#\1</a>
</form> 
        ',
        $tweet);
       
    return $message; 
}


?>
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)