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,976
  • Latest: aicrazy
Stats
  • Total Posts: 196,164
  • Total Topics: 21,352
  • Online today: 625
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 277
  • Total: 278
  • @rjen

Can't import external page or get phpbox working

Started by Neil, July 09, 2007, 11:08:29 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Neil

phpbox doesn't seem to work for me, for some reason.  I just tried reuploading all the files, to no avail. 

I wouldn't mind too much, but I'm wanting to include an externally hosted html page, and the include function would be handy (as shown here). I'm trying an iframe with an htmlbox, but that doesn't seem to be working.  Perhaps I'm doing that wrong as I've not tried that function before. 

Anyway, any ideas?  Either on how to include this externally-hosted file into a block, or how to fix the phpbox's.  Thanks.

Oh, latest versions of both SMF and TinyPortal.

bloc

If you do a include or require in a phpbox, make sure the path is absolute..many times the path in the forum isn't what you think it is.

Using require will also create a error message..so if the path is wrong you will get a "can't find xxx" message. Include is less restrictive.

Neil

Thanks.

As for the phpbox problem, which is stopping me from using either include or require, I just switched back to the default theme after reading the stuff about posting guidelines.  And now the test block I stuck in seems to be working.  So it would seem that my home-made theme is causing some kind of conflict with my phpboxes.

Pretty sure I know what the issue is; it seems to be caused by the code snippet I got on here that prints messages depending on what time of day it is!

This website is proudly hosted on Crocweb Cloud Website Hosting.