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,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,917
  • Total Topics: 21,308
  • Online today: 884
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 448
  • Total: 448

Recent topics for SMF2

Started by IchBin, February 22, 2010, 07:53:26 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

RoarinRow

Cool, thanks Mick!  I updated my code.   :up:

SMF 2.0 RC3
TP 1.0 beta 5-1
Wordpress 3.0

shane is my name

I am seriosuly stumped. lets say you wanted to use the feature written in this code that would show "last 5 topics started by user"... What would the code look like now?  I have uncommented, and deleted things, but can not get it to do anything but last 20 posts...

Im just trying to learn, so thats why im asking...
:)

shane is my name

There may be something wrong with the code...
I love the RECENT TOPICS part of this code,
So I'm only posting as an FYI...  Every since I used this in a block on my front page, I would randomly get an Internal Server Error page show up when i try to go to front page. I didn't think it had anything to do with this code at first.. until just now when i decided i wanted to show 10 recent and not 20 recent... So I changed the 20 to 10 like below... 
if (empty($settings['number_recent_posts']))
      $number_recent_posts = 10;


But once i did that, then I got the Internal Server Error page 100% of the time instead of randomly...  that doesnt seem logical to me, that just a number change would cause such an error, and maybe Im wrong... but I turned the block on and off, testing , and each time it was on, i got the error code... and when its off, evreything is normal again.

Just an FYI..


IchBin

I don't have any problem like that when running it on my site. Have you checked your server log to see what the error was when you get this?

shane is my name

Im learning more and more everyday.  :)
Ok so I never knew about a server log, but I just logged onto CPanel and found it... and I found this error:

Quote[Tue Apr 13 19:56:38 2010] [error] [client 74.101.59.3] File does not exist: /public_html/hiphopforums/500.shtml
[Tue Apr 13 19:56:38 2010] [error] [client 74.101.59.3] Premature end of script headers: /public_html/hiphopforums/index.php

Any clue on what that means? I guess the first one means that i need a 500.shtml error file, right? Im guessing.. im not that good at this,,.  lol.
but what about premature end of script headers? that sounds more complicated. lol

IchBin

You must have something else going on. Premature end of script headers means that SMF is sending it's output to the browser before it sends the content-type. I'm not sure what to tell you at this point.

shane is my name

OK thanks, I'll try and ask this over at SMF forum, since it seems nothing to do with tinyportal. 

IchBin

Well I suppose it could be something that was done with TP when it installed or something, but I wouldn't know without looking myself. Even then, I've never really dealt with this problem much.

shane is my name

thats true it might be TP,...  Ive already posted in SMF.. shoudl I just wait and see if they can help, or should i post a topic here too?  I just dont know if people will think im double posting...

IchBin

I don't see a problem with posting here to start a different topic here for your issue. Don't think too many people here know much about your problem though. :)

This website is proudly hosted on Crocweb Cloud Website Hosting.