News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Get top five posters or posts on MY site.

Started by awsomejoe23, April 18, 2007, 12:01:35 AM

Previous topic - Next topic

awsomejoe23

Hey guys I'm quite new to php, and I'm still trying to understand the whole "get" operation. But my basic question is there a way, that on my site, I can show the top five posters in my forum, or the top five posts(by names)?

Thanks,


Joe

KGIII

Have you opened your forum and changed index.php to "ssi_examples.php" (in the address bar) and hit the enter button? If not then, well, I'd encourage you to do so.

My PC Support Forum
Please ask in-thread before PMing
                   SMF Help
                   Visit My Blog

How can we improve the support process?:
http://www.simplemachines.org/community/index.php?topic=163533.0

SMF vs. Godzilla? Who do you think will win?

awsomejoe23

#2
Wow thank you for that! Never knew about it. I have a few questions about it now though. Is it possible for me to let them log in and out at that page(for both forum and my page) while not taking them to the forum?

Thanks again,



Joe

EDIT when I try to add the functions I get this.
QuoteWarning: require(SSI.php) [function.require]: failed to open stream: No such file or directory in /home/awsomejo/public_html/template/page.php on line 1

Fatal error: require() [function.require]: Failed opening required 'SSI.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/awsomejo/public_html/template/page.php on line 1

Is it a problem that my page is on public_html/template/site.php
and my forum is public_html/forum/index.php?

metallica48423

make a second page as a login page, in it, call ssi_login(http://pagetoredirectto.com);

Not quite sure how to do this with quick login.
Justin O'Leary
Ex-Project Manager
Ex-Lead Support Specialist

QuoteMicrosoft wants us to "Imagine life without walls"...
I say, "If there are no walls, who needs Windows?"


Useful Links:
Online Manual!
How to Help us Help you
Search
Settings Repair Tool

awsomejoe23

I changed it and I still get
QuoteWarning: require(SSI.php) [function.require]: failed to open stream: No such file or directory in /home/awsomejo/public_html/template/ssi_login.php on line 1

Fatal error: require() [function.require]: Failed opening required 'SSI.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/awsomejo/public_html/template/ssi_login.php on line 1

metallica48423

check your path to SSI.php.  It is wrong, it can't find SSI.php

SSI.php is in your main forum directory

Quote
Is it a problem that my page is on public_html/template/site.php
and my forum is public_html/forum/index.php?

include('../forum/SSI.php');
Justin O'Leary
Ex-Project Manager
Ex-Lead Support Specialist

QuoteMicrosoft wants us to "Imagine life without walls"...
I say, "If there are no walls, who needs Windows?"


Useful Links:
Online Manual!
How to Help us Help you
Search
Settings Repair Tool

Advertisement: