|
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.
|
|
|
|
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
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
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.
|
|
|
|
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. My newsletter still shows June month instead of July. I guess we're still doing steps. This is fun. What's next?
Last edited by Trixie; 07/01/2007 6:21 PM.
|
|
|
|
Joined: Jun 2006
Posts: 3,837
Carpal Tunnel
|
Carpal Tunnel
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 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.
|
|
|
|
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.
|
|
|
|
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
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 CentreAll I did is add this 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.xmlMaybe To use the HTML format as a Server Side Include:
<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:
<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
|
|
|
|
Joined: Jun 2006
Posts: 16,299 Likes: 116
|
Joined: Jun 2006
Posts: 16,299 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.
|
|
|
|
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?
|
|
|
|
Joined: Jun 2006
Posts: 16,299 Likes: 116
|
Joined: Jun 2006
Posts: 16,299 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.
|
|
|
|
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,299 Likes: 116
|
Joined: Jun 2006
Posts: 16,299 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)
|
|
|
Bots
by Outdoorking - 04/13/2024 5:08 PM
|
|
|
|
|
|
0 members (),
872
guests, and
248
robots. |
Key:
Admin,
Global Mod,
Mod
|
|
|
|