News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Tagging System For Topics

Started by SMFHacks.com Team, December 19, 2006, 10:59:20 AM

Previous topic - Next topic

Kimmie

Periodically (not always), when my global moderators go to remove a tag it gives them this error and automatically logs them completely out of the sight.

Is there a fix for this?




They have the permissions set


Bruno36

Bruno36 the French
SMF 2.0.9

wynnyelle

SMF's word filter is not working on any of the tags or tag pages. We have pages of  cuss words appearing fully uncensored. How can I make the mod come under SMF's word censor?

vbgamer45

You would need to edit the code in the Sources/tags.php
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

wynnyelle

thank you so much for the reply!

How would I change the code? Like what would it be changed to? Where in this file does the code need to be changed and to what?

GamePersia


vbgamer45

You will need to make that change to that file manually.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro


vbgamer45

Install it manually on your theme that is only way to fix
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

GamePersia

Quote from: vbgamer45 on March 28, 2014, 12:10:35 AM
Install it manually on your theme that is only way to fix
Ok,..thanks for your precious reply,.
Moreover disable your online hide status... :-*

MechSpecs

I was able to install the mod easily on 2.0.7

Couple of bugs I have run in to....

Bug #1: Even without the three checkmarks Registered members are able to add tags

Bug #2: Everyone but me is able to add tags with capital letters in it. I am an administrator and my friend is also an administrator. He can make "Freelancer" and I can only make "freelancer" no matter how I enter them into the box.

vbgamer45

What do you mean by checkmark? for #1 It should be based on the Add Tag permission for membergorups.

#2. All tags should be lowercase uppercase not allowed but will look into it
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

MechSpecs

Quote from: vbgamer45 on April 13, 2014, 10:38:23 AM
What do you mean by checkmark? for #1 It should be based on the Add Tag permission for membergorups.

Yes, my REGISTERED USERS have none of those three permissions checked and yet are still able to add tags.

"Add Tags to Own Topics" <--- empty
"Delete Tags to Own Topics" <--- empty
"Manage Tags" <--- empty

Quote
#2. All tags should be lowercase uppercase not allowed but will look into it

All my tags are lowercase but my fellow admins are not. I use FF and he uses Chrome, not sure if that makes a difference.

SMFHacks.com Team

3.0
Requires full uninstall and install of new version to update.
!Fixed bug with tags not be lowercase when entering from creation of new topic.
!Fixed bug with permissions for showing the inputbox to add new tags on creation of a topic.
Disclaimer: SMFHacks.com Team is not affiliated with the SMF Team or the SimpleMachines NPO.
SMFHacks.com -  Paid Modifications for SMF
Latest Mods:
Community Suite
Newsletter Pro SMF Gallery Pro SMF Classifieds SMF Store

radu81

Quote from: Guillelmus on December 05, 2011, 03:13:27 AM
More simply put:
global $sourcedir, $txt, $context, $scripturl;
require_once($sourcedir . '/Tags2.php');
ViewTags();
if (isset($context['poptags'])) echo $context['poptags'];


This code is working with Simple Portal, I can see the cloud tags but I get a lot of errors in SMF log:

http://www.mydomain.com/index.php?
8: Undefined index: smftags_popular
File: /homeXXXX..X/mydomain.com/Sources/Tags2.php
Line: 110


Is there any way to solve this?
sorry for my bad english

Fisch.666

Hi,

had the same problems some time ago:

http://www.simplemachines.org/community/index.php?topic=135761.msg2595602#msg2595602

and just noticed that i didn't posted the solution. Just use the following code which should fix this:


global $sourcedir, $txt, $context, $scripturl;

if (loadlanguage('Tags') == false)
loadLanguage('Tags','english');

require_once($sourcedir . '/Tags2.php');
ViewTags();

if (isset($context['poptags']))
echo $context['poptags'];

radu81

Thank you Fisch.666, that worked well, no more errors on my smf log
sorry for my bad english

Kimmie

Is there any way to get the tags to line up (like in columns) on the tag cloud?  They all run together and it is hard to tell where one tag ends and another one starts.


Thanks.

vbgamer45

Quote from: Kimmie on May 19, 2014, 01:26:38 AM
Is there any way to get the tags to line up (like in columns) on the tag cloud?  They all run together and it is hard to tell where one tag ends and another one starts.


Thanks.
The code would need to be changed to use a table instead of the current display method.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Kimmie

Quote from: raklet on November 17, 2008, 09:16:41 PM
One solution:

In tags.php look for


    // perhaps adjust this title attribute for the things that are tagged
   $context['poptags'] .= ' title="'.$value.' things tagged with '.$key.'"';
   $context['poptags'] .= '>'.$key.'</a> ';


Right after the last line of the above code, you could add something like this:


$context['poptags'] .= 'whatever you want to separate words goes here';


Hth,

Raklet


This works good on the tags page, but can you tell me how to add that to my portal code? Thanks. Code is below




function display_tags_block()
{
// For TaggingSystem2.4.3
// System created by vbgamer45

global $txt, $smcFunc, $modSettings, $scripturl, $context, $user_info;

if (!isset($modSettings['smftags_set_cloud_tags_to_show']))
echo 'There are no tags to show...';

echo '
<div align="justify">';

$result = $smcFunc['db_query']('', '
SELECT
t.tag AS tag, l.ID_TAG, COUNT(l.ID_TAG) AS quantity
FROM {db_prefix}tags as t, {db_prefix}tags_log as l WHERE t.ID_TAG = l.ID_TAG
GROUP BY l.ID_TAG
ORDER BY l.ID DESC
LIMIT {int:limit}',
array(
'limit' => $modSettings['smftags_set_cloud_tags_to_show'],
)
);

$tags = array();
$tags2 = array();

while ($row = $smcFunc['db_fetch_assoc']($result))
{
$tags[$row['tag']] = $row['quantity'];
$tags2[$row['tag']] = $row['ID_TAG'];
}

if (count($tags2) > 0)
{
$max_size = $modSettings['smftags_set_cloud_max_font_size_precent'];
$min_size = $modSettings['smftags_set_cloud_min_font_size_precent'];

$max_qty = max(array_values($tags));
$min_qty = min(array_values($tags));

$spread = $max_qty - $min_qty;
if (0 == $spread)
    $spread = 1;

$step = ($max_size - $min_size)/($spread);

$context['poptags'] = '';
$row_count = 0;

foreach ($tags as $key => $value)
{
$row_count++;
$size = $min_size + (($value - $min_qty) * $step);

// uncomment if you want sizes in whole %:
// $size = ceil($size);

$context['poptags'] .= '<a href="' . $scripturl . '?action=tags;tagid=' . $tags2[$key] . '" style="font-size: ' . $size . '%" title="' . $value . ' things tagged with ' . $key . '">' . $key . '</a> ';

if ($row_count > ($modSettings['smftags_set_cloud_tags_per_row'] - 1))
{
$context['poptags'] .= '<br />';
$row_count = 0;
}
}
}

if (isset($context['poptags']))
  echo $context['poptags'];


echo '
</div>';
}

display_tags_block();

Advertisement: