|
|||||||
![]() |
Forum Index > glFusion > glFusion Support |
|
|
What's New in the Center Block?
|
|||
| | | Printable Version |
|
deklan | ||||||||
|
Is there a way to get my What's New block displayed in the center block or in a static page somehow? |
![]() Junior Group Comfort Level:: 0 ![]()
Registered: 06/22/08 |
||||||||
|
|||||||||
|
Mark | ||||||||
|
You can put What's New in a center block by using a Static Page. PHP Formatted Code echo COM_whatsNewBlock();
glFusion - Enhanced Content Management |
![]() Admin Group Comfort Level:: +104 ![]() ![]()
Registered: 10/21/05 |
||||||||
|
|||||||||
|
Geiss | ||||||||
Is there a way to get my What's New block displayed in the center block or in a static page somehow?
PHP Formatted Code echo COM_whatsNewBlock();
so that the full titles (and as an enhancement request, I think the intro text should maybe be displayed as well) are displayed in a prominent and inviting way.
I'd even like to have some graphics associated with the stories but it seems to me that glfusion is a long way from being able to do that.
|
![]() Admin Group Comfort Level:: +57 ![]() ![]()
Registered: 02/15/07 |
||||||||
|
|||||||||
|
deklan | ||||||||
|
Thanks for the detailed instructions, but alas, I can't get it to work. I have the centerblock enabled. |
![]() Junior Group Comfort Level:: 0 ![]()
Registered: 06/22/08 |
||||||||
|
|||||||||
|
Geiss | ||||||||
|
Make sure your Post Mode is set to HTML Formatted, not the Advanced Editor when entering PHP code. If you use the Advanced Editor, it wraps it in a < p > tag which throws the error.
|
![]() Admin Group Comfort Level:: +57 ![]() ![]()
Registered: 02/15/07 |
||||||||
|
|||||||||
|
jmucchiello | ||||||||
Quote by: GeissMake sure your Post Mode is set to HTML Formatted, not the Advanced Editor when entering PHP code. If you use the Advanced Editor, it wraps it in a < p > tag which throws the error. Any way to detect that setting before launching the advanced editor (feature request perhaps I have no idea as I don't use the advanced editor anywhere). |
![]() Active Member Group Comfort Level:: +2 ![]()
Registered: 05/15/07 |
||||||||
|
|||||||||
|
Geiss | ||||||||
Any way to detect that setting before launching the advanced editor (feature request perhaps I have no idea as I don't use the advanced editor anywhere).
|
![]() Admin Group Comfort Level:: +57 ![]() ![]()
Registered: 02/15/07 |
||||||||
|
|||||||||
|
Anonymous: deklan | ||||||||
|
Sorry but this still isn't working with HTML mode. I've tried both versions of the run PHP setting. I read the descriptions on these but can't make much sense of them to know which one I should be using. Here's my HTML code with the PHP script at the end: PHP Formatted Code <p> </p><p style="text-align: center"><a target="_self" href="http://www.freespeak.tv/index.php?topic=ExternalNews"><img height="200" alt="External News" hspace="5" width="200" vspace="5" src="http://www.freespeak.tv/images/library/image/ExternalNews.jpg" /></a><a target="_self" href="http://www.freespeak.tv/index.php?topic=OpEd"><img height="200" alt="Opinion Editorials" hspace="5" width="200" align="baseline" vspace="5" src="http://www.freespeak.tv/images/library/image/OpinionEditorials.jpg" /></a><a target="_self" href="http://www.freespeak.tv/index.php?topic=NewsI-Views"><img height="200" alt="News and I-Views" hspace="5" width="200" vspace="5" src="http://www.freespeak.tv/images/library/image/I-Views(1).jpg" /></a></p> echo COM_whatsNewBlock(); |
|
||||||||
|
|||||||||
|
Mark | ||||||||
|
You really can't mix HTML and PHP without some special magic PHP Formatted Code echo '<p> </p> <p style="text-align: center"><a target="_self" href="http://www.freespeak.tv/index.php?topic=ExternalNews"><img height="200" alt="External News" hspace="5" width="200" vspace="5" src="http://www.freespeak.tv/images/library/image/ExternalNews.jpg" /></a><a target="_self" href="http://www.freespeak.tv/index.php?topic=OpEd"><img height="200" alt="Opinion Editorials" hspace="5" width="200" align="baseline" vspace="5" src="http://www.freespeak.tv/images/library/image/OpinionEditorials.jpg" /></a><a target="_self" href="http://www.freespeak.tv/index.php?topic=NewsI-Views"><img height="200" alt="News and I-Views" hspace="5" width="200" vspace="5" src="http://www.freespeak.tv/images/library/image/I-Views(1).jpg" /></a></p>'; echo COM_whatsNewBlock();
glFusion - Enhanced Content Management |
![]() Admin Group Comfort Level:: +104 ![]() ![]()
Registered: 10/21/05 |
||||||||
|
|||||||||
|
Anonymous: deklan | ||||||||
|
Tried both PHP settings and nothing displays at all. No errors, just nothing (except my ads, which, do you think might be causing problems?) |
|
||||||||
|
|||||||||
|
Mark | ||||||||
|
Very odd, I took the code that I posted for you, put it in a static page and what I get is 3 big icons (your links) and below the What's new block. I'm not sure what would prevent it from displaying on your site.... Here is a screen shot of what my page looks like (click on the picture for a larger image): glFusion - Enhanced Content Management |
![]() Admin Group Comfort Level:: +104 ![]() ![]()
Registered: 10/21/05 |
||||||||
|
|||||||||
|
Anonymous: deklan | ||||||||
|
I tried the exact settings you have but it still won't work. I noticed you have an option to make page searchable. I don't. |
|
||||||||
|
|||||||||
|
jasonhackwith | ||||||||
|
The way that Geeklog/glFusion handles the display of blocks has always been a frustration to me, especially the display of the "What's New" block. Here's a little more information on setting this up. PHP Formatted Code echo COM_whatsNewBlock('','Latest Posts');
PHP Formatted Code echo COM_whatsNewBlock('','What\'s New');
PHP Formatted Code echo COM_whatsNewBlock('/help/whatsnew.html','Latest Posts');
PHP Formatted Code <div class="homepage-container"> <table cellpadding="0" cellspacing="0" border="0" width"100%"><tr> <td class="homepage-left" valign="top"><div class="story-featured"><h1>Welcome to ITF!</h1></div>[whatsnew:homepage-rss Latest Posts]<div style="width:98%;clear:both;"> </div><h2>Upcoming Events</h2>[calendar:homepage-cal]<div style="width:98%;clear:both;"> </div></td> <td class="homepage-right" style="text-align:center;" valign="top"><div class="homepage-media" style="font-size:.8em;"><h1>Featured Media: <small><a href="/media/album.php?aid=10&page=1">watch more</a></small></h1><h2 style="width:460px">Nick Vujicic's Testimony: Life Without Limbs</h2><div style="text-align:left;color:white;padding:5px;"><div style="padding:5px;clear:all;background-color:#fec25a;color:black;margin:5px;">[video:20080607141340913 autoplay:0]What an incredible man of God... what a testimony. You can find out more about Nick at <a href="http://www.lifewithoutlimbs.org">LifeWithoutLimbs.org</a>.— Jason</div></div><br style="clear:both;"></div><h2 style="text-align:left;">Popular Articles</h2><div style="width:98%;clear:both;text-align:left;">[poparticles:homepage-rss]</div><p align="center">· <a href="/directory.php">Browse Article Directory</a></p></td> </tr> </table> <div class="homepage-footer"><div class="story-body"><p>[image:20070505113634344 align:left border:0 width:95 link:2]Who are we? We are a group of desperate people hungry after a dangerous God. Sinners all, we seek the Sinless. Stagnant, we seek the Author of real change. Suffering, we seek the only Source of true comfort.</p> <p>We aren't satisfied with the status quo, the safety of empty tradition, or the pat answers of those who try to deny that suffering exists. We don't want a program, a package, or another parcel of empty promises. We want God Himself. · [staticpage:community read more]</a></p></div></div> </div>
"Beauty... is the shadow of God on the universe." ~ Gabriela Mistral -- DesolacĂon
|
![]() Active Member Group Comfort Level:: +7 ![]() ![]()
Registered: 02/12/06 |
||||||||
|
|||||||||
|
jmucchiello | ||||||||
Quote by: jasonhackwithThe way that Geeklog/glFusion handles the display of blocks has always been a frustration to me, especially the display of the "What's New" block. Here's a little more information on setting this up. I agree. I wish the builtin blocks were just phpblock_blockname style blocks. That would solve lots of stupid issues with them. |
![]() Active Member Group Comfort Level:: +2 ![]()
Registered: 05/15/07 |
||||||||
|
|||||||||
|
| All times are CDT. The time is now 11:43 am. |
|
|