Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Template Shares (http://www.bvlist.com/forumdisplay.php?f=26)
-   -   search cloud (http://www.bvlist.com/showthread.php?t=8070)

David244us 22nd June 2012 03:08

search cloud
 
Hi m8teys me again lol, Wondering if someone can help me fixed the search cloud in one of my themes, I narrowed it down to this searchcloud Seems to be missing the < li class settings for it to function right? I'm new to this and been searching the forums but may have missed it so sorry if I did. Thanks everyone here.

firefly007 24th June 2012 01:11

Quote:

Originally Posted by David244us (Post 35372)
Hi m8teys me again lol, Wondering if someone can help me fixed the search cloud in one of my themes, I narrowed it down to this searchcloud Seems to be missing the < li class settings for it to function right? I'm new to this and been searching the forums but may have missed it so sorry if I did. Thanks everyone here.

Dude!

searchcloud

and ???????

I'm not sure on what the working line looks like but yours is incomplete.

can you give me the page or paragraph and tell me what you want it to look like.. Please give me the unedited one.

David244us 24th June 2012 01:55

Thanks m8 here is my site link if you want to look bud http://www.file-zone.tk/

Bump: this is my ts_tag code where the search cloud stuff is, if anyone sees the problem and can help ty m8teys as I'm so lost lol

function select_random_color ()
{
return sprintf ('#%02X%02X%02X', mt_rand (0, 255), mt_rand (0, 255), mt_rand (0, 255));
}

function select_random_font_size ()
{
global $__min;
global $__max;
return rand ($__min, $__max);
}

function generate_tags ($tags = array ())
{
global $BASEURL;
$__tags = array ();
$__count = 0;
do
{
$__tags[] = ' ' . $tags[$__count] . ' ';
++$__count;
}while (!($__count < count ($tags)));

return implode (' ', $__tags);
}

require_once 'global.php';
gzip ();
dbconn ();
define ('TT_VERSION', '1.1.1 ');
if (!defined ('IN_SCRIPT_TSSEv56'))
{
exit ('Error! Direct initialization of this file is not allowed.');
}

include_once INC_PATH . '/functions_security.php';
$show_tags = '';
$array_tags = array ();
$query = sql_query ('SELECT name, descr FROM torrents WHERE visible = \'yes\' ORDER BY RAND() LIMIT 10');
if (0 < mysql_num_rows ($query))
{
require TSDIR . '/admin/include/global_config.php';
if (((!$__min OR !$__max) OR !$sc_displaycharminimum))
{
$__min = 10;
$__max = 30;
$sc_displaycharminimum = 2;
}

while ($qtags = mysql_fetch_assoc ($query))
{
$qtags['name'] = preg_replace ('#[^a-z|A-Z]#', ' ', $qtags['name']);
$__temp = explode (' ', $qtags['name']);
foreach ($__temp as $__T)
{
if ($sc_displaycharminimum < strlen ($__T))
{
$array_tags[] = $__T;
continue;
}
}

$qtags['descr'] = preg_replace ('#[^a-z|A-Z]#', ' ', $qtags['descr']);
$__temp2 = explode (' ', $qtags['descr']);
foreach ($__temp2 as $__T2)
{
if ($sc_displaycharminimum < strlen ($__T2))
{
$array_tags[] = $__T2;
continue;
}
}
}

if (0 < count ($array_tags))
{
$show_tags = generate_tags ($array_tags);
}
else
{
$show_tags = $lang->global['nothingfound'];
}
}
else
{
$show_tags = $lang->global['nothingfound'];
}

stdhead ($SITENAME . ' - Search Cloud');
echo '









' . $SITENAME . ' - Search Cloud


' . $show_tags . '


';
stdfoot ();
exit ();
?>


All times are GMT +2. The time now is 23:25.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.