Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   TBDev (http://www.bvlist.com/forumdisplay.php?f=20)
-   -   ballon tooltip poster+informations problem (http://www.bvlist.com/showthread.php?t=4608)

lovebeer 1st March 2010 19:30

ballon tooltip poster+informations problem
 
Hi, I started to edit my ballon tooltip but I'm lost.

This is what I've done:

http://www.imagehost.ro/pict/011928354b8bf943f40d7.JPG



And I want it to be aligned like here:

http://www.imagehost.ro/pict/011929334b8bf97d50e66.JPG


Here is my code for the ballon tooltip:

PHP Code:

$poster3 "<table border=0 class=embedded cellspacing=0><td border=0 class=embedded align=center width=150 height=220><b>$dispname</b><img src=$poster width=150 height=220></td><font size=1><td><DIV ALIGN=left><b><center>Added:</b>"str_replace(" "" "$row["added"]) ."$description<b>Files:</b>" $row["numfiles"] . "<b>Comments:</b>"$row["comments"] ."</center></font></td></DIV>";
         }
         else
$poster3 "<table border=1 class=embedded cellspacing=0><td border=1 class=embedded align=center width=150 height=220><b>$dispname</b><img src=poster.jpg width=150 height=220></td><font size=1><td><DIV ALIGN=left><b><center>Added:</b>"str_replace(" "" "$row["added"]) ."$description<b>Files:</b>" $row["numfiles"] . "<b>Comments:</b>"$row["comments"] ."</center></font></td></DIV>"

Please help me, I can't align it like there.

joeroberts 2nd March 2010 08:05

Quote:

Originally Posted by lovebeer (Post 21466)
Hi, I started to edit my ballon tooltip but I'm lost.

This is what I've done:
And I want it to be aligned like here:
Here is my code for the ballon tooltip:

Please help me, I can't align it like there.

that code is way off on being HTML compliant!
you opened with table and closed with DIV you also forgot to add the tr :read:
Im not realy sure how TBDev generates a date like today yesterday ........

or how you want or how it is generated for Ratings
so I cant help you there

If you could post that should be like $rating and $added or something like that

I could probly help you better but All I can do now is fix what you posted

But any way HTML wize this would be closer
HTML Code:

<table  border="1" class="embedded" cellspacing="0"><tr><td>lable</td></tr><tr><td border="1" class="embedded" align=center width="300" height="220"><table width="100%"><tr><td border="1" class="embedded" align=center width="150" height="220"><img src=poster.jpg width=150 height=220></td><td border="1" class="embedded" align=center width="150" height="220"><table><tr><td ALIGN=left><b>Added:</b></td><td ALIGN=right>11.11.2010</td></tr><tr><td><b>Files:</b></td><td ALIGN=right>111</td></tr><tr><td ALIGN=left><b>Comments:</b></td><td ALIGN=right>25</td></tr></table></td></tr></table></td></tr></table>

Zuby 2nd March 2010 11:11

doesn't work joe.
Code:

Parse error: syntax error, unexpected T_LNUMBER in /var/www/include/bittorrent.php on line 1160

joeroberts 2nd March 2010 12:35

that is html code M8 not php

PHP Code:

$poster3 "<table  border=\"1\" class=\"embedded\" cellspacing=\"0\"><tr><td>lable</td></tr><tr><td border=\"1\" class=\"embedded\" align=center width=\"300\" height=\"220\"><table width=\"100%\"><tr><td border=\"1\" class=\"embedded\" align=center width=\"150\" height=\"220\"><img src=poster.jpg width=150 height=220></td><td border=\"1\" class=\"embedded\" align=center width=\"150\" height=\"220\"><table><tr><td ALIGN=left><b>Added:</b></td><td ALIGN=right>11.11.2010</td></tr><tr><td><b>Files:</b></td><td ALIGN=right>111</td></tr><tr><td ALIGN=left><b>Comments:</b></td><td ALIGN=right>25</td></tr></table></td></tr></table></td></tr></table>"

is PHP
Just remember the text and images are hard coded as it was only ment to be a sample

this is what My code looks like in action http://p2p-evolution.com/test.html

lovebeer 2nd March 2010 17:35

I tried to fix it, but I can't do it.
I tried your code but the browse.php page looks like this now:

http://www.imagehost.ro/pict/021735324b8d3044c4453.JPG

joeroberts 3rd March 2010 03:50

Quote:

Originally Posted by lovebeer (Post 21484)
I tried to fix it, but I can't do it.
I tried your code but the browse.php page looks like this now:

http://www.imagehost.ro/pict/021735324b8d3044c4453.JPG

whos did you try?

Zuby 3rd March 2010 09:30

on my tracker it show same .. like lovebeer

joeroberts 3rd March 2010 13:46

can you show me the edited page please?

lovebeer 3rd March 2010 15:22

1 Attachment(s)
Here is my bittorrent.php, the poster code is at lines 1309-1313

joeroberts 3rd March 2010 15:30

change line
1312 to
PHP Code:

        $poster3 "<table  border=1 class=embedded cellspacing=0><tr><td>$dispname</td></tr><tr><td border=1 class=embedded align=center width=300 height=220><table width=100%><tr><td border=1 class=embedded align=center width=300 height=220><img src=poster.jpg width=150 height=220></td><td border=1 class=embedded align=center width=300 height=220><table><tr><td ALIGN=left><b>Added:</b></td><td ALIGN=right>"str_replace(" "" "$row["added"]) ."</td></tr><tr><td><b>Files:</b></td><td ALIGN=right>" $row["numfiles"] . "</td></tr><tr><td ALIGN=left><b>Comments:</b></td><td ALIGN=right>"$row["comments"] ."</td></tr></table></td></tr></table></td></tr></table>"

it was missing forward slashes


All times are GMT +2. The time now is 02:34.

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