Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > Template Shares
Reply
Thread Tools
  #1  
Old 22nd June 2012, 03:08
David244us David244us is offline
Banned
 
Join Date: Aug 2011
Mozambique
Posts: 43
Default 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 <img src="/_image/go.png" alt="" title="" border="0" class="inlineimg" />searchcloud</a></li> 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.
Reply With Quote
  #2  
Old 24th June 2012, 01:11
firefly007's Avatar
firefly007 firefly007 is offline
SUPPORT GURU
 
Join Date: Jun 2010
P2P
Posts: 721
Default
Quote:
Originally Posted by David244us View Post
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 <img src="/_image/go.png" alt="" title="" border="0" class="inlineimg" />searchcloud</a></li> 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!

<img src="/_image/go.png" alt="" title="" border="0" class="inlineimg" />searchcloud</a></li>

</a> and </li> ???????

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.
__________________




Please Support Majority Report


You can contact me on Skype live:phesadent.elect but please let me know first.


If you are ever need me desperately then please email me at dan.oak44@gmail.com and I will contact u within a week.


Due to free time I'm able to help interested member's with their tracker.

Please Note!
Depending on your requests I will charge you for my assistance for Tracker installs and mods.
All my mods are custom and prices will very depending on the request.
I'm able to install any tracker and mods including themes.

Please PM me

Reply With Quote
  #3  
Old 24th June 2012, 01:55
David244us David244us is offline
Banned
 
Join Date: Aug 2011
Mozambique
Posts: 43
Default
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[] = ' <a href="' . $BASEURL . '/browse.php?do=search&amp;search_type=t_both&amp;ca tegory=0&amp;keywords=' . urlencode ($tags[$__count]) . '&amp;tags=true"><font style="color: ' . select_random_color () . '; font-size: ' . select_random_font_size () . 'px; font-family: arial;">' . $tags[$__count] . '</font></a> ';
++$__count;
}while (!($__count < count ($tags)));

return implode ('&nbsp;', $__tags);
}

require_once 'global.php';
gzip ();
dbconn ();
define ('TT_VERSION', '1.1.1 ');
if (!defined ('IN_SCRIPT_TSSEv56'))
{
exit ('<font face=\'verdana\' size=\'2\' color=\'darkred\'><b>Error!</b> Direct initialization of this file is not allowed.</font>');
}

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 '
<table align="center" border="0" cellpadding="5" cellspacing="0" width="100%" style="table-layout:fixed;">
<tbody>
<tr>
<td class="thead" align="center">' . $SITENAME . ' - Search Cloud</td>
</tr>
<tr>
<td style="line-height: 25px;">
<div align="justify">
' . $show_tags . '
</div>
</td>
</tr>
</tbody>
</table>
';
stdfoot ();
exit ();
?>
Reply With Quote
Reply

Tags
cloud , search


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT +2. The time now is 17:04. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.