Previous Thread
Next Thread
Print Thread
Hop To
Joined: May 2007
Posts: 145
member
member
Joined: May 2007
Posts: 145
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.



[Linked Image from shorthandclasses.com]
Joined: Jul 2006
Posts: 4,057
Joined: Jul 2006
Posts: 4,057
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 Code


<?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 wink


BOOM !! Version v7.6.1.1
People who inspire me Isaac ME Gizmo
Joined: May 2007
Posts: 145
member
member
Joined: May 2007
Posts: 145
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?

Last edited by Trixie; 07/01/2007 4:33 PM.

[Linked Image from shorthandclasses.com]
Joined: Jul 2006
Posts: 4,057
Joined: Jul 2006
Posts: 4,057
Change

<table width="100%">

to

<table width="25%">


BOOM !! Version v7.6.1.1
People who inspire me Isaac ME Gizmo
Joined: May 2007
Posts: 145
member
member
Joined: May 2007
Posts: 145
All done. Looks normal and very nice in the php file. smile

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

Last edited by Trixie; 07/01/2007 6:21 PM.

[Linked Image from shorthandclasses.com]
Joined: Jun 2006
Posts: 3,837
I
Ian Offline
Carpal Tunnel
Carpal Tunnel
I Offline
Joined: Jun 2006
Posts: 3,837
It is worth mentioning that 'external' means internal within your existing site - they will not work on an 'external site'


Joined: Jul 2006
Posts: 4,057
Joined: Jul 2006
Posts: 4,057
Shows july for me wink

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.



BOOM !! Version v7.6.1.1
People who inspire me Isaac ME Gizmo
Joined: May 2007
Posts: 145
member
member
Joined: May 2007
Posts: 145
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.


Last edited by Trixie; 07/01/2007 6:48 PM.

[Linked Image from shorthandclasses.com]
Joined: May 2007
Posts: 145
member
member
Joined: May 2007
Posts: 145
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!

Last edited by Trixie; 07/01/2007 6:54 PM.

[Linked Image from shorthandclasses.com]
Joined: Jul 2006
Posts: 4,057
Joined: Jul 2006
Posts: 4,057
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 wink


BOOM !! Version v7.6.1.1
People who inspire me Isaac ME Gizmo
Joined: Jul 2007
Posts: 70
journeyman
journeyman
Joined: Jul 2007
Posts: 70
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

[Linked Image from newzealandnz.co.nz]
Joined: May 2007
Posts: 145
member
member
Joined: May 2007
Posts: 145
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 smile

Bye now.


[Linked Image from shorthandclasses.com]
Joined: Jun 2006
Posts: 16,292
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,292
Likes: 116
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.


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: May 2007
Posts: 145
member
member
Joined: May 2007
Posts: 145
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?


[Linked Image from shorthandclasses.com]
Joined: Jun 2006
Posts: 16,292
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,292
Likes: 116
<?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.


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Nov 2006
Posts: 3,095
Likes: 1
Carpal Tunnel
Carpal Tunnel
Joined: Nov 2006
Posts: 3,095
Likes: 1
You could enable parsing but that would slow down all your pages and is not the correct way to run PHP pages.

Joined: Jun 2006
Posts: 16,292
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,292
Likes: 116
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)


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
spam issues
by ECNet - 03/19/2024 11:45 PM
Looking for a forum
by azr - 03/15/2024 11:26 PM
Editing Links in Post
by Outdoorking - 03/15/2024 9:31 AM
Question on barkrowler and the like
by Mors - 02/29/2024 6:51 PM
Member Permissions Help
by domspeak - 02/27/2024 6:31 PM
Who's Online Now
1 members (Ruben), 476 guests, and 111 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)