vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Style and Graphics Requests (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=226)
-   -   Iphone Scroller (https://vborg.vbsupport.ru/showthread.php?t=261343)

basilrath 04-02-2011 03:33 PM

Iphone Scroller
 
Just as little addon i decided to add an "iphone4" scroller which looks as follows

http://www.tabletennistalk.co.uk/forum/forum.php

Obviously forum blocked and i have a little issue but have temporarily got around it but looks not as nice as one would like :(

the code within the forum block is :

PHP Code:

<style type="text/css"
#marquee{
positionrelative;
z-index600;
top: -28.50em;
left: -7.00px;
clearboth;
}
#flv-scroller{
positionrelative;
left25.95px;
}
#iphone{
positionrelative;
z-index600;
top15.00px;
left: -10.00px;
}
</
style

<
div id="iphone">
<
img src="/image/iphone-ttt.png" width="260">
</
div>


<
div id="marquee">
<
marquee width="240px" height="290px"  direction="up" scrolldelay="2" scrollamount="1.5" onmouseover="this.stop()" onmouseout="this.start()">

<
div id ="flv-scroller">
<
iframe title="YouTube video player" width="205" height="150" src="http://www.youtube.com/embed/wLfJ2ut1-zc" frameborder="0" allowfullscreen></iframe>
</
div>
<
br />

<
font face="arial narrow" size="2"><ul>
<
font color="#ffffff">Table Tennis Talk Live Stream 1 2 are active on site and open to view many matchesCheck them out -</font> <a href="/forum/ttt-stream.php"><font color="#ff0000">Stream 1</font></a><a href="/forum/ttt-stream2.php"><font color="#ff0000"Stream 2</font></a>

<
br /><br /><br />

<
a href="http://www.ittf.com/competitions/competitions2.asp?Competition_ID=2020&category=VWcup"target=_blank><font color="#ff0000">Volkswagen Cup 2011: <a href="/forum/ttt-stream.php">Stream 1</font><br /><font color="#ffffff">GuangzhouGuangzhou CHNMar 23 Mar 242011</a></font>
<
br />
<
font color="#ff0000">**COMPLETED MATCHES AVAILABLE NOW TO WATCH**</font>

<
br /><br /><br />

<
a href="http://www.ittf.com/competitions/competitions2.asp?Competition_ID=2019&category=pt"target=_blank><font color="#ff0000">Spanish Open 2011: <a href="/forum/ttt-stream.php">Stream 1</font><br /><font color="#ffffff">ITTF Pro TourAlmeriaESPApr 6 Apr 102011</a></font>
<
br />
<
font color="#ff0000">**Full Livestream schedule for this event:<a href="http://www.ittf.com/Protour_new/pdf/2011ESP/TVScheduleESP.pdf"target=_blank"> HERE</a>**</font>

<br /><br /><br />

<a href="
http://www.ittf.com/competitions/competitions2.asp?Competition_ID=1962&category=WTTC"target=_blank><font color="#ff0000">World Table Tennis Championsips 2011: <a href="/forum/ttt-stream.php">Stream 1</font><br /><font color="#ffffff">World Table Tennis Championships, Rotterdam, NED, May 8 - May 15</a></font>
<br />
<
font color="#ff0000">**Full Livestream schedule for this eventTBA</a>**</font>
<
br /><br />
<
center>
<
img src="/image/wttc-img.gif" width="204">
</
center>
<
br /><br /><br />

<
font color="#ffffff" size="1"><i>Full list of scheduled livestream on TTT <a href="/forum/content.php?443-ITTF-Events"target=_blank"> <font color="#ff0000">HERE</a></i></font>

<br /><br />
</
ul>
</
marquee>
</
div


The template rendering is the normal block_html
PHP Code:

<li>
    <
div class="block smaller">
        <
div class="blocksubhead">
            <
class="collapse" id="collapse_block_html_{vb:raw blockinfo.blockid}" href="{vb:raw relpath}#top"><img alt="" src="{vb:stylevar imgdir_button}/collapse_40b.png" id="collapseimg_html_{vb:raw blockinfo.blockid}"/></a>
            <
span class="blocktitle">{vb:raw blockinfo.title}</span>
        </
div>
        <
div class="widget_content blockbody floatcontainer">
        <
div id="block_html_{vb:raw blockinfo.blockid}" class="blockbody restore">
            {
vb:raw content}
        </
div>
        </
div>
    </
div>
    <
div class="underblock"></div>
</
li

The problem is when you use the above code you get
http://www.tabletennistalk.co.uk/image/Untitled-1.jpg



When you use
PHP Code:

<li>
    <
div class="block smaller">
        <
div class="blocksubhead">
            <
class="collapse" id="collapse_block_html_{vb:raw blockinfo.blockid}" href="{vb:raw relpath}#top"><img alt="" src="{vb:stylevar imgdir_button}/collapse_40b.png" id="collapseimg_html_{vb:raw blockinfo.blockid}"/></a>

            <
span class="blocktitle">{vb:raw blockinfo.title}</span>
        
        

        <
div id="block_html_{vb:raw blockinfo.blockid}" class="blockbody restore">

            {
vb:raw content}
        
    </
div>
    <
div class="underblock"></div>
</
li

It renders as it is now in the link which looks ok but isnt as you would like

As soon as you add a </div> it looks fine block wise but extends in depth below image?

Any ideas appreciated as other than that i sorta like how its turned out:)

x YNWA x 04-06-2011 11:56 PM

Cool. I wouldnt mind putting something like this on a site I am working on at the moment. Where did u get the iphone images etc from? Looks pretty cool :)

basilrath 04-07-2011 02:26 PM

it works fine as you can see and i may have reolved the issue

I have all the info if you want it and images

x YNWA x 04-17-2011 10:12 PM

Quote:

Originally Posted by basilrath (Post 2181987)
it works fine as you can see and i may have reolved the issue

I have all the info if you want it and images

Hi there
Yea it looks pretty cool. It might not fit in with my forum very well but no harm in having a look! Please do PM me detials :)

Nick


All times are GMT. The time now is 04:46 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01100 seconds
  • Memory Usage 1,778KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete