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: 195,815
  • Total Topics: 21,284
  • Online today: 562
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 281
  • Total: 281

Display webpage in section where forum index usually appears

Started by Inge Jones, April 19, 2012, 12:14:36 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Inge Jones

If a user clicks a particular option in a TinyPortal menu block, I would like a webpage (basically this would be the html pages section of my site) to open in place of where the forum index or posts usually appear - so that the page is still framed by the TP panels that are usually around the forum.

Is this possible?

WillyP


Inge Jones

I am not sure I follow - how do I make sure this opens in the area where the forum would normally be displayed, rather than in a dedicated block to the side or above?  Or, if that can't be done an alternative is to dynamically open a block above the forum to display it, one that is not usually there until the user clicks the menu option I am planning to provide.

WillyP

Articles are displayed in the area the forum would be in if you were in the forum. Then set up the article and blocks however you want to show block when viewing the article.

Inge Jones

I think from the your reply you may be assuming I know more about what I am doing than I actually do :D  Please could you take a look at my site at http://dino.drealm.info/den/denforum/index.php?action=forum

I have a site in two halves, effectively.  The forum/portal half, and the html content pages half, each hosted on a different server.   My downloadable content is on html pages, while I take feedback and support questions about that content on the forum site.

Now if you look on the right hand panel there is a menu block called The Sims 2, and in that menu an option called Downloads.  When I click that, the page comes up in the same window, but it completely replaces my forum and portal interface.

What I was hoping to make it do was appear in the space usually occupied by the forum board index, but without losing the right hand TinyPortal panel from the window, so that it is easy for the user to seamlessly return to checking forum posts after finding the download they want.

So basically I was asking for someway to write the link for the menu option "Downloads" that would tell the page to open in a particular frame - ie the one that usually displays the board index.

lurkalot

Quote from: Inge Jones on April 19, 2012, 08:35:05 PM

What I was hoping to make it do was appear in the space usually occupied by the forum board index, but without losing the right hand TinyPortal panel from the window, so that it is easy for the user to seamlessly return to checking forum posts after finding the download they want.


Like WillyP said, just add  a html article, and paste the code in from your downloads page.  like I did here as a test.  http://cctestsite.info/forums/index.php?page=downloads  The images are missing, as I haven't edited the links, but you get the idea.

Inge Jones

What am I meant to be seeing at that link?  Which menu option do I click to get the effect?  I was looking for something like a target= to put into the menu option link, so basically if there is a name for that central panel where the forum goes, I would go target=forumpanelframe

My current code for that menu item is "http://www.drealm.info/simlogical/sl/Sims2Pages/Sims2.htm", so I was looking to make it "http://www.drealm.info/simlogical/sl/Sims2Pages/Sims2.htm  target=forumpanel" or something like that - if I knew the name of forumpanel.

WillyP

Ok, lets explain like this.

Open a new html article, or edit an existing one. And open your standalone download page in your text editor. Copy everything between... but not including.. the body tags. Paste that in the article. Then you have some url's that look like this:

""../Sims2Downloads/Sims2_Doors/Ladies.jpg""

The two dots at the beginning will (most likely) have to be replace with the full url, in this case:

http://www.drealm.info/simlogical/sl/Sims2Downloads/Sims2_Doors/Ladies.jpg

EDIT: I guess if you wanted to keep the background style, include the body tags when you copy/paste, but then change them to div:

Body tags:
<body background="../images/page_elements/1010.gif" leftmargin="20">
</body>

Change to:
<div style="background: url (http://www.drealm.info/simlogical/sl/images/page_elements/1010.gif); margin-left:20px;">
</div>


lurkalot

Quote from: Inge Jones on April 19, 2012, 09:37:29 PM

What am I meant to be seeing at that link? 


Sorry, I had it hidded from guests.  Try again http://cctestsite.info/forums/index.php?page=downloads  I've also adjusted a couple of the image links, so you can see them working.

Lesmond


This website is proudly hosted on Crocweb Cloud Website Hosting.