Disable auto tagging

Support requests, bug reports, etc. go here. Dedicated servers / VDS hosting only
larsx2000
Bear Rating Trainee
Bear Rating Trainee
Posts: 2
Joined: 25 Jul 2008, 19:54

Disable auto tagging

Postby larsx2000 » 29 Jul 2008, 04:32

Hi all.
1. Tiny Tiny RSS is a great piece of software, I love it!

The only feature I do not like is that tags get automatically assigned to new posts based on the tags the blog author asignes to his posts. I want to only asign the tags by myself to organize the posts the way I want to.

I couldn't find an option to turn this off. Did I miss something?
In the meantime I cleaned the variable $additional_tags in functions.php line 1339 to turn off auto tagging, but it somehow did not always work.

User avatar
fox
^ me reading your posts ^
Posts: 6318
Joined: 27 Aug 2005, 22:53
Location: Saint-Petersburg, Russia
Contact:

Re: Disable auto tagging

Postby fox » 29 Jul 2008, 10:31

There is no option for this, so you have to patch. You are better off cleaning $entry_tags on line 1355, e.g. $entry_tags = array();

larsx2000
Bear Rating Trainee
Bear Rating Trainee
Posts: 2
Joined: 25 Jul 2008, 19:54

Re: Disable auto tagging

Postby larsx2000 » 31 Jul 2008, 17:22

Thx for the hint.

Changing line 1355 actually disables all tagging, including tags assigned by user defined filters which I was intending to use :wink:
So I changed a bit more (see patch below). Now I'm taking a look into the get_pref stuff, so I can supply a real patch with an option in the preferences.

Code: Select all

--- functions.php.old  2008-07-31 14:34:45.000000000 +0200
+++ functions.php 2008-07-31 14:38:08.000000000 +0200
@@ -1325,10 +1325,11 @@
        if ($tag_filter) {

          $manual_tags = trim_array(split(",", $tag_filter[1]));
+         $manual_entry_tags = array();

          foreach ($manual_tags as $tag) {
            if (tag_is_valid($tag)) {
-             array_push($entry_tags, $tag);
+             array_push($manual_entry_tags, $tag);
            }
          }
        }
@@ -1353,6 +1354,7 @@

        if (count($entry_tags) > 0) {

+         $entry_tags = $manual_entry_tags; // disable auto tagging
          db_query($link, "BEGIN");

            foreach ($entry_tags as $tag) {

dariottolo
Bear Rating Trainee
Bear Rating Trainee
Posts: 27
Joined: 05 Jul 2014, 18:57

Re: Disable auto tagging

Postby dariottolo » 29 Sep 2014, 19:12

Sorry for bringing this topic back to life.

Would this patch still work?

Thank you in advance.


Return to “Support”

Who is online

Users browsing this forum: No registered users and 8 guests