MyBB Community Forums

Full Version: [UPDATED][SEO] Simple TagCloud Plugin for myBB v 0.9a - Tag Cloud (beta)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
ok have a question?

I will explain ... when the title of thread -----> example: bricks & stones
the tag only recognizes bricks but not stones

When the title of thread is ----> example: bricks - stones
the tag now recognizes both now

Can this be typical or can this be fixed or is it a bug?
(2010-04-22, 11:05 PM)Shemo Wrote: [ -> ]
(2010-04-22, 01:18 PM)Watt Wrote: [ -> ]Turn off and on plugin, and then try to add tags. My work will be a little slow down (because my new plugin - http://community.mybboard.net/thread-68108.html ). I want to add function that in tagcloud will be tags from many languages Smile

tried that..still not letting me delete any tags or manually edit them.

also, do not see where the box is to edit tags anymore...something 1.4.13 messed up maybe?

inc/plugins/stcp.php

function stcp_showthread_edit() and function change_tag()

edit

function stcp_showthread_edit ()
{
    global $mybb, $db, $edit_tags, $thread, $templates;
    
    /* If it is on */
    if(!$mybb->settings['stcp_on'])
        return false;
$b=$db->fetch_array($db->query("SELECT * FROM ".TABLE_PREFIX."threads WHERE firstpost='".intval($_GET['pid'])."'"));    
    if($mybb->input['pid'] == $b['firstpost'])
    {
        $AJAX = '
        <script type="text/javascript">
        function getXMLHTTPRequest() {
            req = false;
            try {
            req = new XMLHttpRequest();
            } catch(err1) {
              try {
              req = new ActiveXObject("Msxml2.XMLHTTP");
              } catch (err2) {
                try {
                req = new ActiveXObject("Microsoft.XMLHTTP");
                } catch (err3) {
                  req = false;
                }
              }
            }
            return req;
            }


            var http = getXMLHTTPRequest();

            function change_tag() {

            var myTextField = document.getElementById("subject");
            if(!myTextField.value == ""){
            myRand = parseInt(Math.random()*9996999999121299999);
            http.open("GET", "tags.php" + "?thread=" + myTextField.value + "&rand=" + myRand);
            http.onreadystatechange = function (){
            if(http.readyState == 4 && http.status == 200){
            document.getElementById("tag").value = http.responseText;
            document.getElementById("tagloading").innerHTML = "";
            }else{
            document.getElementById("tagloading").innerHTML = \'<img src="images/spinner.gif" alt="Yükleniyor" />\';
            }
            }
            http.send(null);
            }
            }</script>';
            
        $inserted_tag = $b['tag'];
        $inserted_tag = str_replace(", ",',', $inserted_tag);    
        $inserted_tag = str_replace("-",' ', $inserted_tag);    
        $inserted_tag_exp = explode(",", $inserted_tag);
        unset($inserted_tag);
        foreach($inserted_tag_exp as $ins_tag)
        {
            if(!$ins_tag == "" || !$ins_tag == " ")
            $inserted_tag = $ins_tag.", ".$inserted_tag;
        }
        
        $inserted_tag_leng = strlen($inserted_tag);
        $inserted_tag_first = substr($inserted_tag, 0, 1);
        if ($inserted_tag_first == ",")
            $inserted_tag = substr($inserted_tag, 1, $inserted_tag_leng);

        $inserted_tag_leng = strlen($inserted_tag);
        $inserted_tag_last = substr($inserted_tag, $inserted_tag_leng-2, $inserted_tag_leng);
        if ($inserted_tag_last == ", ")
            $inserted_tag = substr($inserted_tag, 0, $inserted_tag_leng-2);
        
        $inserted_tag_leng = strlen($inserted_tag);
        $inserted_tag_last = substr($inserted_tag, $inserted_tag_leng-2, $inserted_tag_leng);
        if ($inserted_tag_last == ", ")
            $inserted_tag = substr($inserted_tag, 0, $inserted_tag_leng-2);
            
        // To be sure need to be optymalized :P
        eval("\$edit_tags = \"".$templates->get("stcp-new-edit-thread")."\";");    
        if($mybb->settings['stcp_automat'])
            $edit_tags = $AJAX.$edit_tags;
    }

In this way it works
didn't work here..

still cannot delete individual tags and/or edit tags in a thread..do I need to deactivate and activate the plugin for the file changes to take affect?
As I said, I'll fix it this or next week, I focused on mybb translator, but it seems to be less poprular than tags. You have to wait - you can always dele tags in phpmyadmin, if plugin makes bugs.
(2010-04-29, 02:37 PM)Watt Wrote: [ -> ]As I said, I'll fix it this or next week, I focused on mybb translator, but it seems to be less poprular than tags. You have to wait - you can always dele tags in phpmyadmin, if plugin makes bugs.

thanks for replying.

you'd think you'd take care of the bugs in the more popular plugin first, no?
Yeah, I'll try to fixa ll of bugs (can somebody make list) it is easier for me that way (I want to make sure that all bug will be fixed)
(2010-04-29, 04:42 PM)Watt Wrote: [ -> ]Yeah, I'll try to fixa ll of bugs (can somebody make list) it is easier for me that way (I want to make sure that all bug will be fixed)

Watt,

for me..the tag box isn't showing up in the thread once you edit the main post for further editing the tags...also, when you try to delete an individual tag, it goes to a 404 page error..deleting ALL tags seems to work just fine.
(2010-04-29, 08:09 PM)Shemo Wrote: [ -> ]
(2010-04-29, 04:42 PM)Watt Wrote: [ -> ]Yeah, I'll try to fixa ll of bugs (can somebody make list) it is easier for me that way (I want to make sure that all bug will be fixed)

Watt,

for me..the tag box isn't showing up in the thread once you edit the main post for further editing the tags...also, when you try to delete an individual tag, it goes to a 404 page error..deleting ALL tags seems to work just fine.

Watt I am getting Unknown Location in the who's online if location looks likes http://www.mysite.ca/tags.php?tag=Everyone should be seo too guess i should check .htaccess file
and in the admin plugins and click "Add Tags to all threads" screen goes white then you got to go back page to get to plugin list again

IE 8 Problem look at Image

[attachment=18118]

those are some things i noticed
No in htaccess, this tag does not exist. Or something. I have to check it Big Grin
I have upgraded my forum to 1.4.13 and since then tags cannot be edited. The tags field simply does not show itself when editing posts.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46