TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,966
  • Latest: safir45
Stats
  • Total Posts: 195,993
  • Total Topics: 21,324
  • Online today: 208
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 157
  • Total: 157

please help

Started by drsquash, February 07, 2006, 08:22:02 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

drsquash

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




IchBin

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.

drsquash

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

IchBin

Did you look at an SSI box type in the block settings? You can do a top posters block that way.

G6Cad

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.

IchBin

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.....

IchBin

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>';
?>


G6Cad

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

This website is proudly hosted on Crocweb Cloud Website Hosting.