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,970
  • Latest: bynw
Stats
  • Total Posts: 196,031
  • Total Topics: 21,335
  • Online today: 270
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 351
  • Total: 351

A few questions...

Started by neon401, September 22, 2008, 09:30:37 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

neon401

Well, this guy certainly managed to do it: http://www.thebitbox.us/revelryandhonor.com/index.php?page=15
He says he's using it in an iframe, so I'll try that. How do I make the scroll bars greyed out like him? Or even better, remove them? (I'm using dynamic iframe and the dkp stuff is on the same server). Also, how do I make clicked links open in the same frame, not a new window, like on the forementioned site?

Ianedres

If you have allow_url_fopen off in your php.ini configuration file, using the http:// method to reference the file will not work. See this link for more info...

From php.net: If "URL fopen wrappers" are enabled in PHP (which they are in the default configuration), you can specify the file to be included using a URL (via HTTP or other supported wrapper - see List of Supported Protocols/Wrappers for a list of protocols) instead of a local pathname. If the target server interprets the target file as PHP code, variables may be passed to the included file using a URL request string as used with HTTP GET. This is not strictly speaking the same thing as including the file and having it inherit the parent file's variable scope; the script is actually being run on the remote server and the result is then being included into the local script.

If you still want to include the file, you will have to reference it correctly using the relative path- which is from where TinyPortal is running, up/down the directory tree to the root directory, and then back down the directory to where the included file is stored.

This can be a daunting task in itself, to figure out how to go about that. One simple, but not recommended solution, is to put the file in the same directory as your forum.

Otherwise, you will need a path such as '../wow/bosskills.php' or similar as it reflects on your system. This would tell php to go up one directory, over to the 'wow' directory, and then locate 'bosskills.php' to run.

If you are see nothing at all, or a second loading of your homepage in the php block you're working on, this is from your server not being able to locate the file and following its '404 - not found' instructions; it either displays nothing, or redirects to your index.php for your site.

Your questions are now HTML-related at this point, pass the scope of support for TinyPortal. You will have to make the necessary changes to the script itself to enact those changes in the IFRAME call, as TP does not control any aspect of the scrollbars at that point, and add the TARGET="_self" to each <a href=... tag to open the links in the same window.

This website is proudly hosted on Crocweb Cloud Website Hosting.