Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Project U-232 (http://www.bvlist.com/forumdisplay.php?f=80)
-   -   Mousover in torrent-details and last_torrent.block (http://www.bvlist.com/showthread.php?t=12196)

steven2007 14th December 2019 20:00

Mousover in torrent-details and last_torrent.block
 
Hello everybody,
can someone help me and tell me how I can best modify the Mousover in the torrent details and in the last torrent block so that the text is not over the poster but next to it?
So a new facelift, comme the catalogue
Thanks in advance:cool:

firefly007 14th December 2019 21:11

I cant quite remember how u232 implements this but I'm sure its JavaScript.

one way you can do this is with CSS. First add a class to it and then add the appropriate property.

steven2007 14th December 2019 22:33

the code in latest torrent look like this
PHP Code:

$HTMLOUT.= "            <tbody><tr>            <td class='text-center'><img src='pic/caticons/{$CURUSER['categorie_icon']}/" htmlsafechars($top5torrentarr["cat_pic"]) . "' alt='" htmlsafechars($top5torrentarr["cat_name"]) . "' title='" htmlsafechars($top5torrentarr["cat_name"]) . "' /></td>            <td><a href="{$INSTALLER09['baseurl']}/details.php?id=" . (int)$top5torrentarr['id'] . "&hit=1" onmouseover="Tip('<b>{$lang['index_ltst_name']}" . htmlsafechars($top5torrentarr['name']) . "</b><b><center>{$lang['index_ltst_seeder']}" . (int)$top5torrentarr['seeders'] . "</center></b><b><center>{$lang['index_ltst_leecher']}" . (int)$top5torrentarr['leechers'] . "</center></b>$poster');" onmouseout="UnTip();">{$torrname}</a></td>          <td class='text-center'><span class='badge'>" . (int)$top5torrentarr['seeders'] . "</span></td>          <td class='text-center'><span class='badge'>" . (int)$top5torrentarr['leechers'] . "</span></td>          <td class='text-center'><span class='badge'>$thealth</span></td>            </tr></tbody>";        } 


the only thing i could do was center the ad for seeder and leecher.
However, adding a color fails

firefly007 14th December 2019 22:51

That wont help me much. I will need to install the version what version are u using V5?

steven2007 14th December 2019 23:23

yes its version 5:sos::chch:

Bump: this is orginal

https://ibb.co/Yd3wzB5


and this with center
https://ibb.co/rmHStDF

and in catalogue looks like this

https://ibb.co/Wz468fH

Napon 15th December 2019 00:01

PHP Code:

$name substr$name035 ); 


PHP Code:

" . htmlspecialchars($name) . " 

or

PHP Code:

function CutName ($txt$len){
    
$len 55;
    return (
strlen($txt) > $len substr($txt0$len-1) . '...':$txt);


PHP Code:

" . CutName($dispname, 55) . " 


steven2007 15th December 2019 08:38

thanks Napon,I have absolutely no plan where to put it:chch:

Napon 15th December 2019 11:07

top one 1 the latest_torrents_scroll block


botton one for torrenttable_functions

firefly007 15th December 2019 12:33

Ah! Now I get the problem.. Use what Napon posted but I'm not sure about adding a whole new function because if memory serves 232 should have a function like that in one of the function files. Also if I were u I would use a combination of the two, meaning the cut function and CSS, this way u wont loose so much text. Ok so I would reduce the font size a bit.

steven2007 17th December 2019 04:49

i have played a little bit ,looks now like this


https://ibb.co/CJ5zwgN


All times are GMT +2. The time now is 17:28.

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