Page 1 of 1

Newbie Questions - http://canadacup.floorballcanada.com

Posted: Thu 26. Jan 2006, 01:01
by JuhaMikkola
Hello PHPWCMS Users

I have inherited a website designed in PHPWCMS. There are three different sites but the first one I am trying to learn is at http://canadacup.floorballcanada.com

I understand basic HTML and have learned a lot on my own in the past day or two. However I don't really understand how PHPWCMS displays the news articles and how I can control where they show up.

Take the index page for example at:
http://www.floorballcanada.com/canadacup/

- How do I get the news articles I have entered to show up at the top right hand column of this page? I would think this would happen in the templates section of the admin control but I'm not sure how I define where/how to display the news.

For ****, the news articles DO show up here:
http://floorballcanada.com/canadacup/in ... 14,0,0,1,0
But not at the top of the column as I would like.

- How can I create a page that would NOT have content in the middle but just provide a list of all of the news articles as the content? This would be considered a NEWS page.

- How can I include images in my news articles?

I really appreciate your help!

Thanks,

Juha

Posted: Thu 26. Jan 2006, 02:01
by JuhaMikkola
Hello Everyone,

As you may notice by checking out the site, I figured out how to make the News articles appear on the main page.

How do I get the news articles to appear at the top of the right hand side column?

I am still hoping to get some advice on how to create a "News" page as well.

Thanks!

Juha

Posted: Sat 28. Jan 2006, 05:55
by JuhaMikkola
Can someone PLEASE help me get the news articles to go to the TOP of the column on my pages? I don't understand how to do that.

See this:
http://floorballcanada.com/canadacup/in ... 11,0,0,1,0

The news is centered vertically in the middle of the page which looks horrible.

Thanks for your help.

Juha

Posted: Sat 28. Jan 2006, 07:07
by Pappnase
hello

create an table for the left template row with align=top

Posted: Sat 28. Jan 2006, 07:45
by JuhaMikkola
Pappnase wrote:hello

create an table for the left template row with align=top
Hi Pappnase,

Thanks for the response. Unfortunately I'm not sure what you mean... as the news content is in the RIGHT hand side of the template not in the LEFT hand side.

When I first tried to edit the template the RIGHT hand side content was COMPLETELY EMPTY. I created a new blank table there with align="top" property but it did nothing... I also changed the property of the left hand side table to include this alignment just in case but no luck.

Can you please help me out? Thanks so much in advance.

All the best,

Juha

PS; here is left template code

<table width="130" border="0" cellspacing="0" cellpadding="0" align="top">
<tr>
<td><table width="130" border="0" cellspacing="0" cellpadding="0">
<tr bgcolor="#CC0000">
<td width="20" bgcolor="#FFFFFF">&nbsp;</td>
<td bgcolor="#FFFFFF"><table width="110" border="0" cellspacing="0" cellpadding="0">
<tr>
<td></td>
</tr>
<tr>
<td><img src="http://www.floorballcanada.com/canadacu ... enu_01.jpg" width="110" height="32"></td>
</tr>
<tr>
<td><a href="http://www.floorballcanada.com/canadacu ... html"><img src="http://www.floorballcanada.com/canadacu ... enu_02.jpg" width="110" height="9" border="0"></a></td>
</tr>
<tr>
<td><img src="http://www.floorballcanada.com/canadacu ... enu_03.jpg" width="110" height="10"></td>
</tr>
<tr>
<td><a href="http://floorballcanada.com/canadacup/in ... ,1,0"><img src="http://www.floorballcanada.com/canadacu ... enu_04.jpg" width="110" height="9" border="0"></a></td>
</tr>
<tr>
<td><img src="http://www.floorballcanada.com/canadacu ... enu_05.jpg" width="110" height="10"></td>
</tr>
<tr>
<td><a href="http://floorballcanada.com/canadacup/in ... ,1,0"><img src="http://www.floorballcanada.com/canadacu ... enu_06.jpg" width="110" height="9" border="0"></a></td>
</tr>
<tr>
<td><img src="http://www.floorballcanada.com/canadacu ... enu_07.jpg" width="110" height="10"></td>
</tr>
<tr>
<td><a href="http://floorballcanada.com/canadacup/in ... ,1,0"><img src="http://www.floorballcanada.com/canadacu ... enu_08.jpg" width="110" height="21" border="0"></a></td>
</tr>
<tr>
<td><img src="http://www.floorballcanada.com/canadacu ... enu_09.jpg" width="110" height="10"></td>
</tr>
<tr>
<td><a href="photos.html"><img src="http://www.floorballcanada.com/canadacu ... enu_10.jpg" width="110" height="9" border="0"></a></td>
</tr>
<tr>
<td><img src="http://www.floorballcanada.com/canadacu ... enu_11.jpg" width="110" height="10"></td>
</tr>
<tr>
<td><a href="http://floorballcanada.com/canadacup/in ... ,1,0"><img src="http://www.floorballcanada.com/canadacu ... enu_12.jpg" width="110" height="9" border="0"></a></td>
</tr>
<tr>
<td><img src="http://www.floorballcanada.com/canadacu ... enu_13.jpg" width="110" height="10"></td>
</tr>
<tr>
<td><a href="http://floorballcanada.com/canadacup/in ... ,1,0"><img src="http://www.floorballcanada.com/canadacu ... enu_14.jpg" width="110" height="9" border="0"></a></td>
</tr>
<tr>
<td><img src="http://www.floorballcanada.com/canadacu ... enu_15.jpg" width="110" height="10"></td>
</tr>
<tr>
<td><a href="http://floorballcanada.com/canadacup/in ... ,1,0"><img src="http://www.floorballcanada.com/canadacu ... enu_16.jpg" width="110" height="21" border="0"></a></td>
</tr>
<tr>
<td><img src="http://www.floorballcanada.com/canadacu ... enu_17.jpg" width="110" height="10"></td>
</tr>
<tr>
<td><a href="http://floorballcanada.com/canadacup/in ... ,1,0"><img src="http://www.floorballcanada.com/canadacu ... enu_18.jpg" width="110" height="21" border="0"></a></td>
</tr>
<tr>
<td><img src="http://www.floorballcanada.com/canadacu ... enu_19.jpg" width="110" height="22"></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20">&nbsp;</td>
<td><div align="center"><img src="http://www.floorballcanada.com/canadacu ... Gbb_jn.jpg" width="91" height="52"></div></td>
</tr>
<tr>
<td width="20"><img src="http://www.floorballcanada.com/canadacu ... spacer.jpg" width="5" height="5"></td>
<td><div align="center"><span class="style4"><a href="http://floorballcanada.com//phpbb/viewf ... 0">MESSAGE BOARD </a></span></div></td>
</tr>
<tr>
<td width="20">&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td width="20">&nbsp;</td>
<td><div align="center"><a href="http://sports.groups.yahoo.com/group/ca ... join"><img src="http://www.floorballcanada.com/canadacu ... o_join.jpg" width="91" height="52" border="0"></a></div></td>
</tr>
<tr>
<td><img src="http://www.floorballcanada.com/canadacu ... spacer.jpg" width="5" height="5"></td>
<td><div align="center" class="style4"><a href="http://sports.groups.yahoo.com/group/ca ... in">CANADA CUP </a></div></td>
</tr>
<tr>
<td><img src="http://www.floorballcanada.com/canadacu ... spacer.jpg" width="5" height="5"></td>
<td><div align="center"><span class="style4"><a href="http://sports.groups.yahoo.com/group/ca ... n">MAILING LIST</a> </span></div></td>
</tr>
</table></td>
</tr>
<tr>
<td><center>
<a href="http://sports.groups.yahoo.com/group/canadacup/join"> </a>
</center></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr><td>
<a target="_blank" href="http://www.czechopen.cz/">
<img src="http://www.czechopen.cz/images/baner.gif"
alt="International Floorball Tournament" height=60 width=130><br></a>
</tr></td>
<tr>
<td>&nbsp;</td>
</tr>

<tr><td>
<a target="_blank" href="http://www.praguegames.cz/">
<img src="http://www.praguegames.cz/images/baner.gif"
alt="International Youth Floorball Tournament" height=60 width=130></a>
</tr></td>
</table>

here is right template code after I added the table
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="top">
<tr>
<td>&nbsp;</td>
</tr>
</table>

here is header:
<table width="800" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td bgcolor="#000000"><table class="PFN" width="800" border="0" cellspacing="0" cellpadding="0">
<tr bgcolor="#ED2124">
<td width="176"><img src="http://www.floorballcanada.com/canadacup/imgs/pfn.jpg" width="176" height="14"></td>
<td width="622" align="left" bgcolor="#ED2124"><p class="style20"><a href="http://www.playfloorball.com/" class="pfn">PLAYFLOORBALL.COM</a><img src="http://www.floorballcanada.com/canadacu ... op_red.jpg" width="15" height="8"><a href="http://www.floorballcanada.com/canadacup/" class="pfn">CANADA CUP 2006</a> <img src="http://www.floorballcanada.com/canadacu ... op_red.jpg" width="15" height="8"><a href="http://www.floorballcanada.com/CFUL/" class="pfn">CFUL</a><img src="http://www.floorballcanada.com/canadacu ... op_red.jpg" width="15" height="1"><a href="http://www.floorballpro.com" class="pfn style5">FLOORBALLPRO.COM</a></p> </td>
<td width="2" align="right"><img src="http://www.floorballcanada.com/canadacup/imgs/pfn_r.jpg" width="2" height="14"></td>
</tr>
</table></td>
</tr>
<tr>
<td bgcolor="#000000"><img src="http://www.floorballcanada.com/canadacu ... _black.jpg" width="5" height="5"></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="2"><img src="http://www.floorballcanada.com/canadacup/imgs/top_l.jpg" width="2" height="2"></td>
<td width="796"><img src="http://www.floorballcanada.com/canadacu ... spacer.jpg" width="2" height="2"></td>
<td width="2"><img src="http://www.floorballcanada.com/canadacup/imgs/top_r.jpg" width="2" height="2"></td>
</tr>
</table></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="21%"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="http://floorballcanada.com/canadacup/spacer.jpg" width="10" height="5"></td>
<td><img src="http://www.floorballcanada.com/canadacu ... eblogo.gif" width="343" height="48" vspace="15"></td>
</tr>
</table></td>
<td width="79%"><div align="right" class="style6"><img src="http://www.floorballcanada.com/canadacup/imgs/date.jpg" width="250" height="50"></div></td>
</tr>
</table></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="5"><img src="http://www.floorballcanada.com/canadacu ... spacer.jpg" width="10" height="5"></td>
<td><span class="style6"><a href="index.php">HOME</a> / <a href="http://floorballcanada.com/canadacup/in ... CTATORS</a> / <a href="http://floorballcanada.com/canadacup/in ... ">MEDIA</a> / <a href="http://floorballcanada.com/canadacup/in ... PONSORS</a> / <a href="http://floorballcanada.com/canadacup/in ... CIPANTS</a> / <a href="http://floorballcanada.com/canadacup/in ... EFEREES</a> </span></td>
<td width="5">&nbsp;</td>
</tr>
</table></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="2"><img src="http://www.floorballcanada.com/canadacup/imgs/b_l.jpg" width="2" height="2"></td>
<td><img src="http://www.floorballcanada.com/canadacu ... spacer.jpg" width="2" height="2"></td>
<td width="2"><img src="http://www.floorballcanada.com/canadacup/imgs/b_r.jpg" width="2" height="2"></td>
</tr>
</table></td>
</tr>
<tr>
<td bgcolor="#000000"><img src="http://www.floorballcanada.com/canadacu ... _black.jpg" width="5" height="5"></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><img src="http://www.floorballcanada.com/canadacu ... ronttr.jpg" width="800" height="200"></td>
</tr>
<tr>
<td bgcolor="#000000"><img src="http://www.floorballcanada.com/canadacu ... _black.jpg" width="5" height="5"></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><img src="http://www.floorballcanada.com/canadacu ... _front.jpg" width="800" height="40"></td>
</tr>
</table>

footer:
<table width="800" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td bgcolor="#FFFFFF"><div align="right"><span class="style6"><a href="index.php">HOME</a> / <a href="index.php?id=8,9,0,0,1,0">SPECTATORS</a> / <a href="index.php?id=3,4,0,0,1,0">MEDIA</a> / <a href="index.php?id=4,5,0,0,1,0">SPONSORS</a> / <a href="index.php?id=7,8,0,0,1,0">PARTICIPANTS</a> / <a href="index.php?id=13,13,0,0,1,0">REFEREES</a><img src="http://www.floorballcanada.com/canadacu ... spacer.jpg" width="10" height="10"></span></div></td>
</tr>
<tr>
<td bgcolor="#FFFFFF">&nbsp;</td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><div align="right">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="2"><img src="http://www.floorballcanada.com/canadacup/imgs/b_l.jpg" width="2" height="2"></td>
<td><img src="http://www.floorballcanada.com/canadacu ... spacer.jpg" width="2" height="2"></td>
<td width="2"><img src="http://www.floorballcanada.com/canadacup/imgs/b_r.jpg" width="2" height="2"></td>
</tr>
</table>
</div></td>
</tr>
</table>
<div align="center">
<table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="spacer_black.jpg" width="5" height="10"></td>
</tr>
<tr>
<td><img src="http://www.floorballcanada.com/canadacu ... sors_f.jpg" width="800" height="116" border="0" usemap="#Map">
<map name="Map">
<area shape="rect" coords="5,4,123,40" href="http://www.europeanreporter.com/">
<area shape="rect" coords="135,5,307,32" href="http://www.thegrafik.com">
<area shape="rect" coords="320,6,476,33" href="http://www.atlantisdigital.ca/">
<area shape="rect" coords="493,8,650,36" href="http://www.floorballpro.com">
<area shape="rect" coords="666,7,796,39" href="http://www.bargainsgroup.com">
<area shape="rect" coords="615,60,789,104" href="http://www.boosterjuice.com/">
<area shape="rect" coords="543,57,592,109" href="http://www.hotelselby.com">
<area shape="rect" coords="445,60,527,107" href="http://www.iconprint.com/">
<area shape="rect" coords="390,56,426,109" href="http://homepage.mac.com/rpaavola">
<area shape="rect" coords="313,55,371,110" href="http://www.handofdoom.net">
<area shape="rect" coords="225,49,299,112" href="http://www.piccadillycircus.ca/">
<area shape="rect" coords="112,55,215,111" href="http://www.mullinspub.com/">
<area shape="rect" coords="1,66,106,108" href="http://www.campuscomputerstore.ca/utoronto/">
</map></td>
</tr>
<tr>
<td><img src="spacer_black.jpg" width="5" height="10"></td>
</tr>
<tr>
<td><img src="http://www.floorballcanada.com/canadacu ... rs_f_2.jpg" width="262" height="70" border="0" usemap="#Map3"><img src="http://www.floorballcanada.com/canadacup/imgs/recog.jpg" width="183" height="60" hspace="40" border="0" usemap="#Map2">
<map name="Map2">
<area shape="rect" coords="3,19,79,56" href="http://www.usafloorball.org/">
<area shape="rect" coords="94,19,175,58" href="http://www.canadafloorball.ca/">
</map>
<map name="Map2">
<area shape="rect" coords="3,19,79,56" href="http://www.usafloorball.org/">
<area shape="rect" coords="94,19,175,58" href="http://www.canadafloorball.ca/">
</map>
<map name="Map3">
<area shape="rect" coords="2,15,63,56" href="http://www.bosslogo.com">
<area shape="rect" coords="78,2,260,73" href="http://www.op.fi">
</map></td>
</tr>
<tr>
<td><div align="center"><a href="http://www.thegrafik.com"><img src="http://www.floorballcanada.com/canadacu ... rafted.jpg" width="200" height="21" vspace="5" border="0"></a></div></td>
</tr>
</table>
</div>
<map name="Map">
<area shape="rect" coords="5,4,123,40" href="http://www.europeanreporter.com/">
<area shape="rect" coords="135,5,307,32" href="http://www.thegrafik.com">
<area shape="rect" coords="320,6,476,33" href="http://www.atlantisdigital.ca/">
<area shape="rect" coords="493,8,650,36" href="http://www.floorballpro.com">
<area shape="rect" coords="666,7,796,39" href="http://www.bargainsgroup.com">
<area shape="rect" coords="615,60,789,104" href="http://www.boosterjuice.com/">
<area shape="rect" coords="543,57,592,109" href="http://www.hotelselby.com">
<area shape="rect" coords="445,60,527,107" href="http://www.iconprint.com/">
<area shape="rect" coords="390,56,426,109" href="http://homepage.mac.com/rpaavola">
<area shape="rect" coords="313,55,371,110" href="http://www.handofdoom.net">
<area shape="rect" coords="225,49,299,112" href="http://www.piccadillycircus.ca/">
<area shape="rect" coords="112,55,215,111" href="http://www.mullinspub.com/">
<area shape="rect" coords="1,66,106,108" href="http://www.campuscomputerstore.ca/utoronto/">
</map>
<map name="Map2">
<area shape="rect" coords="3,19,79,56" href="http://www.usafloorball.org/">
<area shape="rect" coords="94,19,175,58" href="http://www.canadafloorball.ca/">
</map>

Thanks!!

Posted: Sat 28. Jan 2006, 10:43
by DeXXus
If you view the source "rendered" you'll see this:

Code: Select all

<TD width=200><BR><SPAN class=contentHead>Latest News</SPAN>
It needs to become this:

Code: Select all

<TD vAlign=top width=200><BR><SPAN class=contentHead>Latest News</SPAN>
Also you are missing a closing javascript tag:

Code: Select all

<SCRIPT language=JavaScript type=text/JavaScript>
function openInPopup(aObj,w,h)
{
	window.open(aObj.href,aObj.target,"width="+w+",height="+h+",left=50,top=50,status=yes,directories=no,location=no,menubar=no,resizable=no,toolbar=no,scrollbars=no");
	return false;
}
<style type="text/css" media="all">
Should be:

Code: Select all

<SCRIPT language=JavaScript type=text/JavaScript>
function openInPopup(aObj,w,h)
{
	window.open(aObj.href,aObj.target,"width="+w+",height="+h+",left=50,top=50,status=yes,directories=no,location=no,menubar=no,resizable=no,toolbar=no,scrollbars=no");
	return false;
}
</SCRIPT>
<style type="text/css" media="all">

Posted: Wed 1. Feb 2006, 15:04
by JuhaMikkola
Hello,

Thanks to everyone for their help. I managed to figure out how to get the news articles to the top of the column on my own. I have yet to edit or add in the closing Javascript tag that was suggested in the previous post as I am not sure what it does.

As you know, I am new to PHP WCMS and I currently have a website with the news articles listed in the right column of each page on our website here: http://www.floorballcanada.com/canadacup/

(1) I am trying to find a way to get the news articles listed on a NEWS page where all of the news articles ever posted are listed in summary form for browsing. I would love to also include a photo with each news title as the author of the following website has done at International Diving Directory website: http://www.diving-industry.com/index.ph ... y_news_csc

Can anyone advise me on how I could set this up? I want to keep the latest articles posted on the right hand side of the site on all the regular pages.

(2) I am also hoping to include a large photo gallery on the website. Is there a way for me to use PHP WCMS to create a photo gallery with thumbnails and links to images? We have hundreds of photos.

Thanks,

Juha

Posted: Wed 1. Feb 2006, 17:38
by stelios
Hi JuhaMikkola,

This is how I did the http://www.diving-industry.com/index.ph ... y_news_csc

At the admin section I created a category named: NEWS

Now at Articles under NEWS I did an article :
News 2006
And a html CONTENT TYPE with this code:

Code: Select all

<TABLE bgcolor="#1F6EA2" height="15" width="100%">
<TR>
<TD class="breadcrumb" valign="center"><font color="FFFFFF">&nbsp;&nbsp;<b>February 2006</b></font></TD>
</TR>
</TABLE>

{RELATED_SUMMARY:99:99:news2006}
i.e. {RELATED_SUMMARY:number_of_related_articles:number_of_summaries_to_display:keyword}
Now when you write a new article include in the „keywords“ your „keyword“ i.e. „news2006“ at the example above.

Check this link for the {RELATED_SUMMARY} replacement tag
http://www.phpwcms.de/forum/viewtopic.p ... tedsummary

I hope I could help

Stelios