Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online
4 registered (alissarose, KuKuKaChu, Dunny, id242), 40 Guests and 14 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 06/05/06
Posts: 469
Top Posters (30 Days)
Ruben 51
Gizmo 24
DennyP 24
Dunny 15
SteveS 14
AllenAyres 12
SD 10
dbremer 10
drkknght00 9
doug 8
Latest Photos
OK Corral Shoot Out
Testing
Basildon Train Station
Basildon Town Centre looking from the rounderbout
Basildon Town Square
Page 1 of 2 1 2 >
Topic Options
#189524 - 07/01/07 03:17 PM Building Islands - External Use
Trixie Offline
member
Registered: 05/10/07
Posts: 154
Loc: Rye, Co - USA
Hi. I'm uncertain how to get my portal islands to work correctly outside the community program. I suppose the same process would pertain to any portal layout island needing to be built outside of the message board program.

I'm creating a 3-column newsletter from my website at this link: Newsletter Archives and want to use the "Recent Topics" and "Public Calendar" islands to appear on the 1st and 3rd columns of the newsletter.

I know to get the code for external use, I go to
cp -> portal layout -> make sure the checkbox is checked for these islands and update the page, and then click on the "external use" link to find my code.

It was easy for me to know WHERE to place the html code within my html webpage. But I'm not sure WHERE to place the php code.

I understand the instructions say my webpage needs to be php enabled. Does this mean I just need to change the .htm extention to .php instead? That would be easy-enough to do.

But then in a later paragraph, it reads:
Inserting the php code above will insert the following HTML into it's place. As you can see there are 2 CSS classes you'll want to define for the included HTML, those being tdheader and alt-1. You can modify the properties of the table itself in the code above.:

Can't I just go to a language file for our calendar and copy the same tdheader and alt-1 code specifics?

Thanks for any help. I realize I could be way off-base here; but definitely need to know how to fix this.
_________________________
Top
Express Hosting
Express Hosting "We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
#189527 - 07/01/07 03:30 PM Re: Building Islands - External Use [Re: Trixie]
Mark S Offline
Carpal Tunnel
Registered: 07/04/06
Posts: 4447
Loc: Liverpool : England : UK
First your going to have to have php enabled.

make a new page and end it with the .php

For testing copy the bit of code into that page.
After where you see <body>
 PHP:

<?php
echo "Hi i'm Trixie";
?>



Upload the page and let us know if you can see it.

I guess you should as you wouldn't be able to run your forums.

1 Step at a time ;\)
_________________________
Version v7.5.6 smile smile < Threads satisfaction status
People who inspire me Rick Gizmo Ian David jgeoff ntdoc
Oooo i hear 8 is coming? just after 7 my friend.
Top
#189536 - 07/01/07 04:10 PM Re: Building Islands - External Use [Re: Mark S]
Trixie Offline
member
Registered: 05/10/07
Posts: 154
Loc: Rye, Co - USA
Thanks.

I created a php webpage called "testingCode.php." Inside this webpage, I used html coding and inserted the calendar php code after the <body> html code.

I then pulled it up at this link http://www.shorthandclasses.com/testingCode.php after uploading and got the calendar...but it's all spread out across the webpage!

Step 1 worked. I used the "view source" and could see that the php code was converted into html code after the webpage with the php extension was uploaded. Cool! I'm catching on slowly. Thanks. Now what?

Don't I now need to place a link at the position in the webpage where I want the calendar to appear so that it goes to the calendar php file?


Edited by Trixie (07/01/07 04:33 PM)
_________________________
Top
#189541 - 07/01/07 05:44 PM Re: Building Islands - External Use [Re: Trixie]
Mark S Offline
Carpal Tunnel
Registered: 07/04/06
Posts: 4447
Loc: Liverpool : England : UK
Change

<table width="100%">

to

<table width="25%">
_________________________
Version v7.5.6 smile smile < Threads satisfaction status
People who inspire me Rick Gizmo Ian David jgeoff ntdoc
Oooo i hear 8 is coming? just after 7 my friend.
Top
#189542 - 07/01/07 06:18 PM Re: Building Islands - External Use [Re: Mark S]
Trixie Offline
member
Registered: 05/10/07
Posts: 154
Loc: Rye, Co - USA
All done. Looks normal and very nice in the php file. \:\)

My newsletter still shows June month instead of July. I guess we're still doing steps. This is fun. What's next? \:\)


Edited by Trixie (07/01/07 06:21 PM)
_________________________
Top
#189543 - 07/01/07 06:27 PM Re: Building Islands - External Use [Re: Trixie]
Ian Offline
Registered: 06/05/06
Posts: 4337
Loc: Essex, UK
It is worth mentioning that 'external' means internal within your existing site - they will not work on an 'external site'
Top
#189546 - 07/01/07 06:33 PM Re: Building Islands - External Use [Re: Ian]
Mark S Offline
Carpal Tunnel
Registered: 07/04/06
Posts: 4447
Loc: Liverpool : England : UK
Shows july for me ;\)

Your going to have to hold the calendar in a Table
or DIV Tags.

Now your lost lol..

You need a layout now Trixie
Something to hold things in place, most places use
tables to achieve this. It can be complicated for a beginner
but achievable.
_________________________
Version v7.5.6 smile smile < Threads satisfaction status
People who inspire me Rick Gizmo Ian David jgeoff ntdoc
Oooo i hear 8 is coming? just after 7 my friend.
Top
#189548 - 07/01/07 06:38 PM Re: Building Islands - External Use [Re: Ian]
Trixie Offline
member
Registered: 05/10/07
Posts: 154
Loc: Rye, Co - USA
Thanks Ian. No worries. I'm trying to create this newsletter from the same website that the forums are sited on.

My calendar links from the newsletter go directly to the forum calendar but for some reason it's still showing June month instead of July.

It may be important to mention that I didn't know where to put the php code so I just copied the html code instead. It probably needs the php code to make the calendar automatically update. Just not sure where to paste it.

It may also be important to know that the newsletter program I bought came from http://www.webwisesage.com/addons/maxlist.html is a php newsletter generator program (which is also the same website that advertised this forum website).

I'm not sure what to do at this moment. Everything Mark has told me has worked fine and I like working in steps. Thanks.



Edited by Trixie (07/01/07 06:48 PM)
_________________________
Top
#189549 - 07/01/07 06:42 PM Re: Building Islands - External Use [Re: Mark S]
Trixie Offline
member
Registered: 05/10/07
Posts: 154
Loc: Rye, Co - USA
Hi Mark.

I know that the htm code for the calendar already comes within a table. Inside my newsletter layout (which is also 3 column table), I have added the html table code for the calendar.

For the testing link http://www.shorthandclasses.com/testingCode.php it DOES show a July month. However, in my html webpage's table, http://www.shorthandclasses.com/maxnews/articles/newsltr1_index.html it still shows June. When I click on any link within the June month, it DOES take me to the July calendar month on the forum. But I'm thinking it should also appear as July month from within my newsletter webpage.

I think I need to add the php code someplace but when I do this and upload it, it throws my 3 column table all out of wack!


Edited by Trixie (07/01/07 06:54 PM)
_________________________
Top
#189570 - 07/01/07 08:04 PM Re: Building Islands - External Use [Re: Trixie]
Mark S Offline
Carpal Tunnel
Registered: 07/04/06
Posts: 4447
Loc: Liverpool : England : UK
Post the screwy page and then we can check the code
for you from source.

I'm off to bed now 1am
hopefully someone can help you as i sleep ;\)
_________________________
Version v7.5.6 smile smile < Threads satisfaction status
People who inspire me Rick Gizmo Ian David jgeoff ntdoc
Oooo i hear 8 is coming? just after 7 my friend.
Top
#189575 - 07/01/07 08:07 PM Re: Building Islands - External Use [Re: Trixie]
NewZealandNZ Offline
journeyman
Registered: 07/01/07
Posts: 77
Loc: Rangiora, North Canterbury, Ne...
Hello All (and Rick)

7.1 looks great and can't wait to install it on our network

I used to be able to display Content Islands on the right homepage of each site within New Zealand's Information Network like you see on the sample sites listed below.

New Zealand's Information Network
Golden View Motel
Airport Garden Inn Hotel & Conference Centre

All I did is add this code

 Code:
<link rel="stylesheet" href="css/discussions.css" type="text/css" />
<table align="right">
<tr>
<td><script src="http://www.newzealandnz.co.nz/discussions/ContentIslands/1_html.js" language="Javascript1.3" type="text/javascript"></script>
</td>
</tr>
</table>


The pages I am using for the Websites is HTML and I cannot see how to use the new code given rss1.xml code to achieve the same result. If you look through the sample sites provided you will see I have made full use of the wrappers that you can display around each individual message board, the way we run our Network is as a group. Every Website within our Network has its own Message Board which points back to the main Message Board of New Zealand's Information Network.

It works really well, however, being able to have a content island on the top right hand side is a great way for each individual Website owner to get their Message Board seen and used. Any help much appreciated.

If you are clever enough to give me a hand in pulling the rss1.xml content from the file to display in a box I would be most grateful if you could post it here.

Feed URL: http://www.newzealandnz.co.nz/discussions2/cache/rss1.xml

Maybe

To use the HTML format as a Server Side Include:
 Code:
<link rel="stylesheet" href="css/discussions.css" type="text/css" />
<table align="right">
<tr>
<td><!--#include virtual="/usr/wwwroot/ddehek/newzealandnz/discussions2/cache/rss1.xml" -->
</td>
</tr>
</table>


or

To use the HTML format as a PHP Include:
 Code:
<link rel="stylesheet" href="css/discussions.css" type="text/css" />
<table align="right">
<tr>
<td>
<?
readfile("/usr/wwwroot/ddehek/newzealandnz/discussions2/cache/rss1.xml");
?>
</td>
</tr>
</table>
_________________________
Best Regards

Danny de Hek - Below is our Office Cam Image

Top
#189579 - 07/01/07 08:16 PM Re: Building Islands - External Use [Re: Mark S]
Trixie Offline
member
Registered: 05/10/07
Posts: 154
Loc: Rye, Co - USA
Thanks so much. I'll check back later okay? It's 6:15pm here and I need to clean 4 ferret cages before it gets to dark.

Here's my screwy page: http://www.shorthandclasses.com/maxnews/articles/newsltr1_index.html \:\)

Bye now.
_________________________
Top
#189587 - 07/01/07 09:10 PM Re: Building Islands - External Use [Re: Trixie]
Gizmo Offline

Registered: 06/05/06
Posts: 14995
Loc: Portland, OR; USA
Threads doesn't come with javascript islands (js); however you can use a php include to call content if you place it on another page; or you can parse an xml feed using an rss reader (which only works for forum data).

For the sidebar data, it takes a lot of customization to get things to display properly when you use the external use islands; I have a small item at UBBDev that shows how to do external use with content islands (who's online mainly), it's in the addons forum in the templates section.
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#189639 - 07/02/07 12:06 AM Re: Building Islands - External Use [Re: Gizmo]
Trixie Offline
member
Registered: 05/10/07
Posts: 154
Loc: Rye, Co - USA
Would the php include look something like this?

<php?
include ("http://www.shorthandclasses.com/newsltr-cal.php");
?>

So in my html webpage, I could insert this php include so it would go to the newsltr-cal.php file and get the php code to make it work correctly?
_________________________
Top
#189649 - 07/02/07 01:11 AM Re: Building Islands - External Use [Re: Trixie]
Gizmo Offline

Registered: 06/05/06
Posts: 14995
Loc: Portland, OR; USA
<?php include ("http://www.shorthandclasses.com/newsltr-cal.php"); ?>

Also, you CAN NOT use php code in an HTML page; .html/.htm/.shtm/.shtml are nor sent through the php parser in your webserver; generaly only .php pages are.
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#189650 - 07/02/07 01:12 AM Re: Building Islands - External Use [Re: Gizmo]
ntdoc Offline
Registered: 11/09/06
Posts: 3384
You could enable parsing but that would slow down all your pages and is not the correct way to run PHP pages.
Top
#189652 - 07/02/07 01:14 AM Re: Building Islands - External Use [Re: ntdoc]
Gizmo Offline

Registered: 06/05/06
Posts: 14995
Loc: Portland, OR; USA
Yes, I would highly advise against setting non .php pages to parse through php as a "quick fix"; that's dirty and can slow things down (as you'd be parsing things which don't really need parsed in the first place)
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
Page 1 of 2 1 2 >



Moderator:  AllenAyres, Harold, Ian, Ron M 
Shout Box

Today's Birthdays
No Birthdays
Recent Topics
Temporary Password email not being received
by
05/24/12 10:02 PM
Ability to "like" individual posts (not Facebook "likes)
by doug
05/23/12 09:03 AM
Island Permissions
by ThreadsUser
05/22/12 03:03 PM
streaming video
by prkrgrp
05/20/12 07:02 PM
New Posts Corrupted? Can someone help?
by PianoWorld
05/19/12 09:41 AM
Forum Stats
10490 Members
36 Forums
33841 Topics
181708 Posts

Max Online: 978 @ 06/24/07 11:19 PM
Random Image