TinyPortal

Development => Support => Older SMF versions => Topic started by: EagleTat2 on January 21, 2006, 03:33:42 PM

Title: TP scroller??
Post by: EagleTat2 on January 21, 2006, 03:33:42 PM
Hello again fellas I have another question! I am using TP on my forums and have a pretty big artical or file that I have displayed when you join the forum as you will see. I can't really condence it anymore without it being to small to read. Is it possible to have a scroll bar on the left so it dosen't take up the whole page.  I have looked every where in TPADMIN. As you can see the File is quite big. The only way I was able to get it to look right was to make it an article. If I am missing something please let me know. Any help will be appreciated.  Thank You

http://www.godzchozen.com/smf/index.php (http://www.godzchozen.com/smf/index.php)
Title: Re: TP scroller??
Post by: Rasyr on January 21, 2006, 03:40:55 PM
You could always place it in an IFRAME.

Basically, what you do is to create it as a separate html file, then use the IFRAME tag to create a little scrollable window within the the article itself, and set the attributes accordingly (i.e. what size you want it to be) and let it go.

You can find more information about using IFRAME at http://www.w3schools.com/tags/tag_iframe.asp

Title: Re: TP scroller??
Post by: EagleTat2 on January 21, 2006, 04:32:43 PM
Great thank you. Now would I add that file to say the articles section are could I add it to the news section. Just like a copy and paste? But again I thank you for the quick response...............LOL
Title: Re: TP scroller??
Post by: G6Cad on January 21, 2006, 05:37:05 PM
Quotehttp://www.w3schools.com/tags/tag_iframe.asp

Thank you very much for that link Rasyr.
that link can be very usefull in the future :)
Title: Re: TP scroller??
Post by: IchBin on January 21, 2006, 05:47:33 PM
You can add that code into an article surrounded by the iframe and it will give you the scrolling that you need.
Title: Re: TP scroller??
Post by: bloc on January 21, 2006, 07:28:46 PM
Using some css might also work. Try surrounding your html content by a div..like

<div style="height: 400px; overflow: auto;">..your content...</div>
Title: Re: TP scroller??
Post by: EagleTat2 on January 21, 2006, 07:59:14 PM
Great that sounds easier.........LOL I am not too good at coding.  Thanks alot fellas
Title: Re: TP scroller??
Post by: EagleTat2 on January 22, 2006, 01:36:58 AM
Hey Bloc that worked like a charm thanks alot man and also thanks IchBin I will deffinitly be doin some reading. I have to say that the Helios theam is just great. I went from Pro Boards which was good to Vbulletin which was really bad to SMF which is great. Thanks alot for the Theam and the help fellas.