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,964
  • Latest: stylix
Stats
  • Total Posts: 195,933
  • Total Topics: 21,311
  • Online today: 1,107
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 509
  • Total: 509

Combo box question

Started by fugi, September 18, 2005, 09:56:23 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Moocat

are you sure you're using the right kind of block? make sure its javascript/html.

i don't think that (page in the center) can be done, because this isn't made using frames, but i could be wrong, and someone will post in 5 minutes with exactly how to do it. anyway, i've never seen it done before :P

iowamf

yep - its a block of javascript/html type.

The scroll bars work - but the action to jump to an external web-site doesn't work.

I hope you are right that somebody will post how to embed this into the portal rather than leaving the website.

Thanks

IchBin

IMO I think getting it to load in the center of the portal is not going to work unless you're able to setup your page with some type of frames. Especially if you're loading external websites. You could make it load the external site in a new window if you'd like. Here's a little example of how to do that. I know that's not what you're looking for, but I don't think it's "easily" possible for someone to make it load in TP. Just my $.02

http://www.mountaindragon.com/html/redirectjs1.htm

bloc

No, its not easy to "merge" another page into TP by simply giving a link. youc an of course set up a <iframe> in a article and go from there..but its not the same. Although..I have made articles capable of using php now, meaning you could "include" a page at least. Maybe that could be it?

iowamf

Greetings -

I've got the iframe working in articles to both local files & external sites - but I'm seeing some strangeness (hey, beta SMF & beta TP - it's expected) with articles disappearing if the code is the first part of the article.

I've got a work around by putting some brief text in the article and then the code ... note the "hello" and the "root1's blog" text:

<br>hello<iframe src="../inc/centerbloc.php" height="800" width="100%"></iframe>

<br>root1's blog<iframe src="http://fuchsmail.com/?q=blog/" height="1000" width="100%"></iframe>

sometimes I can get this to repeat if I enter the text in ASCII mode and hit "toggle view" in the editor.

It could easily be because my php/html skills are so bad I enter invalid code a lot ;-)

BTW, I'm trying the php include instead of the iframe - and can't get it to work.

<?php
include("../inc/centerbloc.html");
?>


can you use includes to pull in external web sites as well?

A quick stab at the syntax would be most appreciated.

Regards -


bloc

No, any php stuff will not work in articles. But next release of TP will have the option of php enabled articles.

iowamf

great - that explains it ...

I know this is off-topic, but could you *BRIEFLY*, in all your copious spare time, touch on how the usage of PHP vs HTML in the articles could impact the server & client in your tPortal implementation?

I'm especially interested in the potential differences between HTML iframes and PHP includes with respect to this thread.

Thanks & Regards -

iowamf

#17
oK
and the issue of articles disappearing with some text in front of them -
is that due to bad syntax?

bloc

Quote from: iowamf on September 28, 2005, 03:10:13 AM
oK
and the issue of articles disappearing with some text in front of them -
is that due to bad syntax?

I suspect that is something with the WYSIWYG editor...so it would be good if you checked if the same occur when you turn off the WYSIWYG editor alltogether. Just working with pure html code.

As for impact on the server...any extra calls/scripts you place in iframes etc..affects performance. But frames is essentially a separate request - meaning server just serves 2 pages to the same recipient simultanously. When you inlude files, it means loading it = extra load. I am no expert on this, but try to use require_once or include_once as much as possible, to avoid too much fetching.

other than that, its best to keep it simple , use targetted small scripts rather than big slow ones, and keep in mind that not all things needs be loaded - if they are not used right there and then.

iowamf

Quote from: Bloc on September 28, 2005, 09:50:55 AM
I suspect that is something with the WYSIWYG editor...so it would be good if you checked if the same occur when you turn off the WYSIWYG editor alltogether. Just working with pure html code.
Bingo - that worked ... there is a difference between:

  • turning WYSIWYG "off" in TPADMIN and
  • using the "Toggle View" to turn WYSIWYG "off"
when an article is pure HTML code (or at least begins with HTML code).


This website is proudly hosted on Crocweb Cloud Website Hosting.