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

Recent

Welcome to TinyPortal. Please login or sign up.

April 19, 2024, 11:38:57 AM

Login with username, password and session length
Members
  • Total Members: 3,885
  • Latest: Growner
Stats
  • Total Posts: 195,164
  • Total Topics: 21,219
  • Online today: 266
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 70
  • Total: 70

[Reguest] Tag Cloud snippet

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

Previous topic - Next topic

0 Members and 3 Guests are viewing this topic.

catchpen

OK spoke too soon, Please help -

Does anyone know how to implement a better word wrap on this? I have this on a narrow side panel and it doesn't obey the panel px settings in the TP admin page. The big font (which I did decrease max size to ~200) rolls off the side of the page or older versions of IE it increases the panel size for it to fit.

Thanks ahead,
C.P.

falguni1

I want to show tags from a single board like tag cloud from single board.

SteveW

Quote from: catchpen on October 26, 2007, 03:25:24 PM
Does anyone know how to implement a better word wrap on this? I have this on a narrow side panel and it doesn't obey the panel px settings in the TP admin page. The big font (which I did decrease max size to ~200) rolls off the side of the page or older versions of IE it increases the panel size for it to fit.

I'd also like to implement this. Is there a way of echoing the output so it is centered and justified?

Many thanks

falguni1

Quote from: falguni1 on January 09, 2008, 12:34:31 PM
I want to show tags from a single board like tag cloud from single board.

any help.

JPDeni

QuoteI want to show tags from a single board like tag cloud from single board.

I don't know what that means. Could you reword your request? Possibly an example of what you want would help.

falguni1

means
it shows tags from all boards

I want is there are two boards

both boards have tags.

show tags from only board 1.

falguni1


JPDeni

It depends on how the mod sets up the tables. I don't remember how things are set up. Does it include which board the tag is from in the database?

falguni1

will it help if I post the code from the file if you tell me which file you want to see.

I dont understand php much.

falguni1

tagsql.php


<?php
//SMFHacks.com
//Table SQL

//Create Tags Table
db_query("CREATE TABLE IF NOT EXISTS `{$db_prefix}tags`
(`ID_TAG` mediumint(8) NOT NULL auto_increment,
`tag` tinytext NOT NULL,
approved tinyint(4) NOT NULL default '0',
PRIMARY KEY  (`ID_TAG`))"
__FILE____LINE__);

//Create Tags Log
db_query("CREATE TABLE IF NOT EXISTS `{$db_prefix}tags_log`
(`ID` int(11) NOT NULL auto_increment,
`ID_TAG` mediumint(8) unsigned NOT NULL default '0',
ID_TOPIC mediumint(8) unsigned NOT NULL,
`ID_MEMBER` mediumint(8) unsigned NOT NULL default '0',
PRIMARY KEY  (`ID`))"
__FILE____LINE__);


//Insert the settings
db_query("REPLACE INTO {$db_prefix}settings VALUES ('smftags_set_mintaglength', '3')"__FILE____LINE__);
db_query("REPLACE INTO {$db_prefix}settings VALUES ('smftags_set_maxtaglength', '30')"__FILE____LINE__);
db_query("REPLACE INTO {$db_prefix}settings VALUES ('smftags_set_maxtags', '10')"__FILE____LINE__);


?>