TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,917
  • Total Topics: 21,308
  • Online today: 884
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 276
  • Total: 276

[Reguest] Tag Cloud snippet

Started by soMzE, February 28, 2007, 06:11:07 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

SteveW


JPDeni

Cool!  8)

I love the random stuff.

foel

#82
Hi JPDeni.. thanks for the great code..
it work fine for me..  :)

A Question, How to make the tag list show with different color? and is there anyway to set the height size for this block?

Best Regards

WillyP

#83
Make sure you log out and view your forum-posts after installing the SMF tag mod. I did and the layout when I was logged in as administrator looked fine, as any lesser member or guest it was broken. Functionally fine, but didn't play nice with the TP blocks.



This was just with the SMF tag mod, I wasn't feeling it so I just uninstalled it and everything went back to normal.

Maybe if you're going to use this, you need to install the tag mod first, then reinstall TP?

JPDeni

QuoteHow to make the tag list show with different color?

You can add inline css code via div tags. Take a look at the code. I'm sure you'll be able to figure out where it would go.

Quoteis there anyway to set the height size for this block?

Not that I know of.

FragaCampos

This is a great snippet, thanks a lot JPDeni!

Just one question:
How can i make the string "thiungs tagged with" in $poptags .= ' title="'.$value.' things tagged with '.$key.'"'; language selectable?

Thanks in advance.

JPDeni

QuoteHow can i make the string "thiungs tagged with" in $poptags .= ' title="'.$value.' things tagged with '.$key.'"'; language selectable?

Not a clue. What would a link look like? What would it link to? (I'm assuming that by "selectable" you mean a link.)

FragaCampos

When you hover over a tag, it shows the string "X things tagged with <tag>". I would like to change that string with the forum's language. I have three languages in my forum and would like to show that string on each of them.

I know which string to change, but i don't know how  :'(


JPDeni

I'm sorry. I didn't see the word "language" in your previous post.

You need to translate "things tagged with" in those languages, yes? The thing to do would be to open up the Themes/default/languages/index.language.php file. (Substitute language for the languages that you want to define.)

Add a line to each file with the text


$txt['tagcloud'] = 'things tagged with';


In each one, use the same code, but translate the things tagged with part.

In the block code, change


global $db_prefix, $scripturl;


to


global $db_prefix, $scripturl, $txt;


Where it prints out the text use


$poptags .= ' title="'.$value.' ' . $txt['tagcloud'] . ' '. $key . '"';

FragaCampos

Thank you so very much for your help, JPDeny. It worked beautifully.
Even with the tagcloud from the mod itself.

Cheers  ;)

This website is proudly hosted on Crocweb Cloud Website Hosting.