TinyPortal

Development => Block Codes => Topic started by: mrbean17 on February 13, 2007, 12:01:25 AM

Title: Snippet Request for a Stat/User Online Box
Post by: mrbean17 on February 13, 2007, 12:01:25 AM
Anyone have a snippet for the box used on this site that combines the stat and users online box?

http://www.therisenguild.net/

Thanks
Title: Re: Snippet Request for a Stat/User Online Box
Post by: Ken. on February 13, 2007, 03:05:12 AM
Check 'Block Code Snippets', there is a combo box listed there.
Title: Re: Snippet Request for a Stat/User Online Box
Post by: mrbean17 on February 13, 2007, 03:10:47 AM
Quote from: ken.kimbrell on February 13, 2007, 03:05:12 AM
Check 'Block Code Snippets', there is a combo box listed there.

Happen to have a link? Not sure what to be searchin for ... tried combo box.

Thanks in advance
Title: Re: Snippet Request for a Stat/User Online Box
Post by: jacortina on February 13, 2007, 03:18:15 AM
Look for tabbed content block
Title: Re: Snippet Request for a Stat/User Online Box
Post by: RoarinRow on February 13, 2007, 03:25:41 AM
Quote from: mrbean17 on February 13, 2007, 03:10:47 AM
Quote from: ken.kimbrell on February 13, 2007, 03:05:12 AM
Check 'Block Code Snippets', there is a combo box listed there.

Happen to have a link? Not sure what to be searchin for ... tried combo box.

Thanks in advance

This is the left block I use from Aku:

echo'
<head>
<link rel="stylesheet" type="text/css" href="tabcontent.css" />

<script type="text/javascript" src="tabcontent.js">

/***********************************************
* Tab Content script- Ã,© Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

</script>
</head>

<ul id="maintab" class="shadetabs">
<li class="selected">
<a href="#" rel="tcontent1">User</a></li>
<li><a href="#" rel="tcontent2">Online</a></li>

</ul>

<div class="tabcontentstyle2">

<div id="tcontent1" class="tabcontent">';
TPortal_userbox();
echo'</div>

<div id="tcontent2" class="tabcontent">';
TPortal_statsbox();
echo'</div>

</div>

<script type="text/javascript">
//Start Tab Content script for UL with id="maintab" Separate multiple ids each with a comma.
initializetabcontent("maintab")
</script>';
Title: Re: Snippet Request for a Stat/User Online Box
Post by: ZarPrime on February 13, 2007, 08:17:56 AM
Quote from: mrbean17 on February 13, 2007, 12:01:25 AM
Anyone have a snippet for the box used on this site that combines the stat and users online box?

http://www.therisenguild.net/

Thanks

Mr. Bean, try this link ...
http://www.tinyportal.net/index.php?topic=11451.msg94799#msg94799 (http://www.tinyportal.net/index.php?topic=11451.msg94799#msg94799)

Suggest you use "Instructions for installation for User 2" even though the first one's a lot easier. ;)

ZarPrime
Title: Re: Snippet Request for a Stat/User Online Box
Post by: mrbean17 on February 13, 2007, 04:10:52 PM
RoarinRow, I tried what you posted, and that combined the stats and user box without a tabbed version ...

Thanks zarprime ... I'll give that a shot later, looks interesting.
Title: Re: Snippet Request for a Stat/User Online Box
Post by: jacortina on February 13, 2007, 04:15:37 PM
What type of block did you use.

That might need to be in a scriptbox (not sure; I don't use the tabbed).
Title: Re: Snippet Request for a Stat/User Online Box
Post by: mrbean17 on February 13, 2007, 05:55:59 PM
Quote from: J.A.Cortina on February 13, 2007, 04:15:37 PM
What type of block did you use.

That might need to be in a scriptbox (not sure; I don't use the tabbed).

Doesn't work in a scriptbox ... had to use phpbox. It works, but It's jsut not what i was looking for. The users and stat box basically become combined into a large block.
Title: Re: Snippet Request for a Stat/User Online Box
Post by: jacortina on February 13, 2007, 06:18:45 PM
Probably because you lack the tabcontent.js (and other) files.

See this thread:
http://www.tinyportal.net/index.php?topic=11451.0
Title: Re: Snippet Request for a Stat/User Online Box
Post by: marzi on February 13, 2007, 06:23:20 PM
I know Brian Wilson's site http://www.brianjwilson.com/  uses what you want and he is a big contributor on this site.
His handle/username here is brianjw
Title: Re: Snippet Request for a Stat/User Online Box
Post by: mrbean17 on February 13, 2007, 10:37:11 PM
Quote from: J.A.Cortina on February 13, 2007, 06:18:45 PM
Probably because you lack the tabcontent.js (and other) files.

See this thread:
http://www.tinyportal.net/index.php?topic=11451.0

Ahhh, that was it, awesome! I see that playing with the .css I can change the colors, but how do I remove the outside table border?

Thanks again!
Title: Re: Snippet Request for a Stat/User Online Box
Post by: brianjw on February 14, 2007, 12:47:44 AM
Wow thanks guys, but its mostly akus scripts i use on my site :)
To remove the outside table border you simply enter the css, and you find one of the border paddings and set it to 0.
I will update in a second, i am looking at my css ;)
Title: Re: Snippet Request for a Stat/User Online Box
Post by: brianjw on February 14, 2007, 12:53:22 AM
Nevermind :(
The code in the css is almost invincible. I played with all the borders and even set some to 0px none; and even just none;
have a look at the attached file :-\

Brianjw
QuoteBetter start working on that v-day block
Title: Re: Snippet Request for a Stat/User Online Box
Post by: mrbean17 on February 14, 2007, 03:21:43 AM
I see no attached file? :( But you weren't able to find a way to remove the border eh? No worries, not a huge deal ...
Title: Re: Snippet Request for a Stat/User Online Box
Post by: brianjw on February 14, 2007, 03:26:08 AM
Lol. whoops i forgot :) but I cannot really answer your question. Maybe a coder can help us, someone good with css ;)
Title: Re: Snippet Request for a Stat/User Online Box
Post by: akulion on February 14, 2007, 03:46:20 AM

.tabcontentstyle{ /*style of tab content oontainer*/
border: 1px solid gray;
width: 760px;
margin-bottom: 1em;
padding: 10px;
}


border: 1px solid gray;
controls the border color and width
Title: Re: Snippet Request for a Stat/User Online Box
Post by: mrbean17 on February 14, 2007, 06:09:38 PM
I changed it to:

.tabcontentstyle{ /*style of tab content oontainer*/
border: none;
width: 760px;
margin-bottom: 1em;
padding: 10px;
}

And yet it remains the same.
Title: Re: Snippet Request for a Stat/User Online Box
Post by: marzi on February 14, 2007, 07:35:19 PM
I have had that problem with .css files. I found that sometimes I had to clear the browser's cache or quit the browser and then restart it in order to see the changes.
Hope this helps.