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

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 196,004
  • Total Topics: 21,330
  • Online today: 69
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 78
  • Total: 78

Do PHP blocks work?

Started by WorpeX, July 24, 2011, 07:58:22 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

WorpeX

Perhaps I'm doing something wrong, but I can't get any kind of PHP to show up in PHP blocks. Regardless of whether that is custom coding, or one of the snippets that you can plug in. Nothing works. It doesn't display an error message either, it just... doesn't output anything. It's as if the block were empty, but it isn't.

Link to my site: ffamasters.com/league
SMF version: Newest one, SMF 2
TP version: Newest one also, just installed yesterday
Default Forum Language: english
Theme name and version: Simply Blue, newest version
Browser Name and Version: Firefox 5
Mods installed: Just TinyPortal
Related Error messages: No error message, just doesn't output anything.

WillyP

Have you tried saving the block as php block, then adding your code, then save again?

WorpeX

Yes I have. The 'Standings' block on the homepage is a php block. As you said, I saved it as a php block, then I entered in one of the php code snippets and saved it again. Still, it doesn't do anything. Even with code provided by tinyportal.

WorpeX

huh, I switched the block from the left to the right and it works now... interesting.  ???

WillyP

That is odd, maybe a previous block did something to the php. Any errors in the server logs?

ZarPrime

WorpeX,

You have some kind of an error, either in that block or in another one on your FrontPage.  I can tell this because neither your SMF copyright nor your TinyPortal copyright are showing up at the bottom like it is on your Forum BoardIndex.

Leave that block in the right panel for now but go in to the edit screen for it and turn it off and save.  Then go back to the FrontPage and see if the copyrights show up.  If they show up, then the error is in the code for that block.  In that case, post the code here so that one of our coders can look at it to see if they can figure out what is wrong with it.

ZarPrime

ZarPrime

WorpeX,

You haven't responded back and I just looked at your site and it seems that the Standings block is working fine in your right panel.  I will assume that you have fixed the problem so I will now mark this topic solved.  If that is not the case, please feel free to post back.

ZarPrime

This website is proudly hosted on Crocweb Cloud Website Hosting.