TinyPortal

Development => Support => Topic started by: drsquash on February 07, 2006, 08:22:02 PM

Title: please help
Post by: drsquash on February 07, 2006, 08:22:02 PM
i need some major help i am using smf 1.1 r2 with Helios Multi design by Bloc (it rocks)
and i have the new  TP by Bloc (trying to figure it out). but here is my question i am building a website and i want to put (i guess its called) a block on a page in a table. the page is html made with front page. how can i add the block with the top ten users on the forums to this Html page in a Table??

EX.. here is a test page and i want to put the top ten useres in the orange border under the scrolling text?

http://www.drsquash.com/mainstart.htm

there are more blocks i want to add but if you could help me out on this i can figure out, i can figure out how to add the other blocks in outher cells in the table.
thanks



Title: Re: please help
Post by: IchBin on February 07, 2006, 08:59:59 PM
There are many ways you can do this. One way is to make your html page with your block in it. Then create a block in tinyportal (phpbox type). Inside that you need to put this code.
include('/path/to/your/file.html');

I don't know exactly what you mean by Top Ten users, so there might be some other ideas you can do.
Title: Re: please help
Post by: drsquash on February 08, 2006, 12:29:20 AM
sorry for confushion what i wish to do is

list the top ten forums poster in the box on my html page in a cell on my main  page
Title: Re: please help
Post by: IchBin on February 08, 2006, 07:43:09 PM
Did you look at an SSI box type in the block settings? You can do a top posters block that way.
Title: Re: please help
Post by: G6Cad on February 08, 2006, 08:01:49 PM
I think he mean that he have a frontpage, and the forum with the portal in back of the first page.
On the first page he want the top ten posters from the forum to show up, not within the forum page with the portal.

So what i get is that he want the forum to "talk" to the startpage of his site? and get the top ten posters to show on the first page.
Title: Re: please help
Post by: IchBin on February 09, 2006, 01:22:41 AM
In that case, I think you can make something like this in a block.

require_once("SSI.php");

echo  ssi_topPoster();


I am not sure how to format it though. That is all I know how to do.....
Title: Re: please help
Post by: IchBin on February 09, 2006, 01:54:15 AM
Ok, figured it out.

Here's how you can create a bullet list from the top 10 posters. You'll need to make sure the path to your SSI.php file is correct though.


<?php
require_once("../SSI.php");

$myresults = ssi_topPoster(10,'return');
echo
'<ul>';
      foreach(
$myresults as $single)
                   {
                     echo
'<li>'.$single['link'].'</li>';
                   }
echo
'</ul>';
?>
Title: Re: please help
Post by: G6Cad on February 11, 2006, 06:11:54 PM
QuoteYou'll need to make sure the path to your SSI.php file is correct though.

Seems like you just copyed ichBins code from the spot without making the right path in the code for your ssi.php

Esyest way is to loggin with your FTP program, and search for the ssi.php file and in the top you get the correct string for the path