Support ⇒ Explain Please :: Archives ⇒ How to have 2 news side by side? :: Archived ⇒ Community Forums ⇒ CPG Dragonfly™ CMS
Forum IndexExplain Please

Archived ⇒ How to have 2 news side by side?


The shown copyright notices are in violation with GPL and CPG-Nuke

There's no way you can use "NSN Center 4 Blocks" in CPG and PHP nuke

So just used the mentioned theme structure
cpgnuke.com/Forums/vie...html#38521

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Fedora 25 / Apache 2.4.27 / MariaDB 10.1.26 / PHP 7.1.10 / Mercurial


Licensing questions aside, can someone tell me a little more exactly where inside the theme I posted back there I should include the code?

Andreas Rönnqvist
www.omegaproject.se
[OmegaProject] Founder

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Linux/Apache 2.0.52(Unix)/4.0.23/4.3.10-2/Dragonfly 9.0.6.1


themes/dragonfly/template/news/index.html
as i told before then you get something like this
<!-- DEFINE $LEFT_ARTICLE = true --> <table><tr> <!-- BEGIN newstopic --> <td> <a href="{newstopic.U_NEWTOPIC}"><img src="{newstopic.IMG_TOPIC}" alt="{newstopic.S_TOPIC}" border="0" align="right" /></a> <span class="legend">{newstopic.S_TITLE}</span><br /> <font size="2" color="#000000">{newstopic.S_STORY} <!-- IF newstopic.S_NOTES --> <br /><br /><b>{newstopic.S_NOTE}</b> <i>{newstopic.S_NOTES}</i> <!-- ENDIF --> </font><br /><br /> <font size="1" color="#035D8A">{newstopic.S_POSTEDBY} {newstopic.S_INFORMANT} {newstopic.S_TIME}</font><br /> <div align="right"><span class="storyfoot">{newstopic.S_MORELINK}</span></div> </td> <!-- IF $LEFT_ARTICLE --> <!-- DEFINE $LEFT_ARTICLE = false --> <!-- ELSE --> </tr><tr> <!-- DEFINE $LEFT_ARTICLE = true --> <!-- ENDIF --> <!-- END newstopic --> </tr></table>

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Fedora 25 / Apache 2.4.27 / MariaDB 10.1.26 / PHP 7.1.10 / Mercurial


I've been trying to work this into my theme and i don't have a clue how to do this.

How would i do it in this page?...

<!-- BEGIN newsempty --> <table class="newsindex"><tr><td> <center><font class="title">{newsempty.S_SITENAME}</font><br /><br /> {newsempty.S_NOTOPIC}<br /><br /> [ <a href="{newsempty.U_NEWSINDEX}">{newsempty.S_GONEWS}</a> | <a href="{newsempty.U_TOPICS}">{newsempty.S_SELECT}</a> ]</center> </td></tr></table><br /> <!-- END newsempty --> <!-- BEGIN newscat --> <table class="newsindex"><tr><td> <center><font class="title">{newscat.S_SITENAME}: {newscat.S_TOPIC_T}</font><br /><br /> <form action="{newscat.U_SEARCH}" method="post" {I18N}> <input type="hidden" name="topic" value="{newscat.I_TOPIC}" /> {newscat.S_SEARCHON}: <input type="name" name="search" size="30" maxlength="255" />   <input type="submit" value="{newscat.S_SEARCH}" /> </form> [ <a href="{newscat.U_HOME}">{newscat.S_GOHOME}</a> | <a href="{newscat.U_TOPICS}">{newscat.S_SELECT}</a> ]</center> </td></tr></table><br /> <!-- END newscat --> <!-- BEGIN newstopic --> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="23"> <img src="themes/noobt/images/blocks/ntnew_r1_c1.gif" alt="" width="23" height="41" /></td> <td width="100%" class="block-center-title"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td><font size="3"><b> {newstopic.S_TITLE}</b></font></td> </tr> </table></td> <td width="23"> <img src="themes/noobt/images/blocks/ntnew_r1_c3.gif" alt="" width="23" height="41" /></td> </tr> <tr valign="top"> <td class="block-center-leftside"> <img src="themes/noobt/images/blocks/ntnew_r2_c1.gif" alt="" width="23" height="11" /></td> <td bgcolor="#BDC1DB"><a href="{newstopic.U_NEWTOPIC}"> <img src="{newstopic.IMG_TOPIC}" alt="{newstopic.S_TOPIC}" border="0" align="right" /></a> <br /> <font size="1" color="#035D8A">{newstopic.S_POSTEDBY} {newstopic.S_INFORMANT} {newstopic.S_ON} {newstopic.S_TIME} {newstopic.S_READS}</font><br /><br /> <font size="2" color="#000000">{newstopic.S_STORY} <!-- IF newstopic.S_NOTES --> <br /><br /><b>{newstopic.S_NOTE}</b> <i>{newstopic.S_NOTES}</i> <!-- ENDIF --> </font><br /><br /> <font size="2">{newstopic.S_MORELINK}</font></td> <td class="block-center-rightside"> <img src="themes/noobt/images/blocks/ntnew_r2_c3.gif" alt="" width="23" height="11" /></td> </tr> <tr> <td width="23"><img src="themes/noobt/images/blocks/ntnew_r4_c1.gif" alt="" width="23" height="20" /></td> <td class="block-center-bottom"></td> <td width="23"><img src="themes/noobt/images/blocks/ntnew_r4_c3.gif" alt="" width="23" height="20" /></td> </tr> </table><br /> <!-- END newstopic -->

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
XP / 2.0 / 5.1 / 5.2 / none


That's why I always try to get permission for my ports first. A simple email is all it takes. The authors rarely say no. They just want to be notified of any use of their scripts so they can watch them grow basically. Smile

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Linux/1.3.33/4.4/4.3.11


I'm sure some clever wang can write a similar module for us from the ground up. No license required.

Add something like the ability to adjust the number of blocks from like two to four to six or something like that. Make it our own.

- |\\/|ystic

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Ubuntu 14.04.1/Apache 2/5.5.38/5.5.9/9.4.0.0


No-one can help t3los and thus me?

Andreas Rönnqvist
www.omegaproject.se
[OmegaProject] Founder

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Linux/Apache 2.0.52(Unix)/4.0.23/4.3.10-2/Dragonfly 9.0.6.1


I would really like to know how to do this also. With the news being the main page it would be nice to be able to change it up a bit.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Linux / Apache 1.3.33 / MySQL 4.0.22 / PHP 4.3.9 / CVS


hi... i'm new here, but i've used phpnuke for years.

speaking of different news story layouts, is there a layout for cpg-nuke that looks kinda like a cnn.com layout?

and is there one for a store layout?

i need to build 2 such sites and it'd be great if i could just use a template and edit them.

thanks and cheers.

Smile

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
FreeBSD6.2Stable: Apache2.2 gd enabled, mysql 4.1.14, php4.4.6, DF9.0.6.1 // Slack10: Apache1.3.81, gd enabled, mysql 4.0.20, php4.3.7, DF0.9.030


If you modified that code, would it not use side by side for all of your news? It be nice to just use side by side for certain articles, rather then modifying it for the whole site. I wonder if that could be a feature in an update, where you can write 2 stories and then check both them and click join or something like that. Then they would go side by side. That be pretty sweet!

be glad of life because it gives you the chance to love and to work and to play and to look up at the stars

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Linux / 1.3.33 (Unix) / 4.1.13-standard / 4.3.10/ 9.0.5.0


This is fantastic, cheers DJ Maze.

Is it possible to have half of the news with two columns, and half with one?

So you would have, for example:

NEWS
NEWS
NEWS
NEWS - NEWS
NEWS - NEWS
NEWS - NEWS

If you go to www.spurs.co.uk/index.asp you can get a better idea of what I'm on about, though there's only one main story there.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Linux/Apache 2.0.50/MySQL 4.0.18 /PHP 4.3.9/CPG 8.2b


Right, the way I'm trying to do this at the moment is to use Phoenix's Latest News centre block to display the top 5 or so stories, then have the rest displayed in 2 columns. At the moment though, the latest news block shows the newest five stories, and then the news below starts from these again.

i.e.

Story 1
Story 2
Story 3
Story 4
<-End of latest news block start of news module->
Story 1 - Story 2
Story 3 - Story 4

What I'd really like it to do is this

Story 1
Story 2
Story 3
Story 4
Story 5 - Story 6
Story 7 - Story 8
Story 9 - Story 10

etc. etc. etc.

If anyone has any better ideas on how I can achieve this result, or any pointers on how to do it the way I'm trying to, I'd be most grateful.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Linux/Apache 2.0.50/MySQL 4.0.18 /PHP 4.3.9/CPG 8.2b


For those of you following this (probably no-one) I've now managed to get one story at the top by itself, and then rest in two columns. Like so:


Story 1
Story 2 - Story 3
Story 4 - Story 5

etc.

The way I did this was changed DJMaze's code slightly, I'm not 100% sure of what I've done but its working Very Happy ,hopefully I can be advised of any ways I can put more stories up the top, or how to make my code better. I'll keep posting my progress in here. Cool

<!-- DEFINE $LEFT_ARTICLE = false --> <table align="center"><tr> <!-- BEGIN newstopic --> <td width="50%"> <a href="{newstopic.U_NEWTOPIC}"><img src="{newstopic.IMG_TOPIC}" alt="{newstopic.S_TOPIC}" border="0" align="right" /></a> <span class="legend">{newstopic.S_TITLE}</span> <font size="2" color="#000000">{newstopic.S_STORY} <!-- IF newstopic.S_NOTES --> <br /><br /><b>{newstopic.S_NOTE}</b> <i>{newstopic.S_NOTES}</i> <!-- ENDIF --> </font><br /> <font size="1" color="#035D8A">{newstopic.S_POSTEDBY} {newstopic.S_INFORMANT} {newstopic.S_TIME}</font> <div align="right"><span class="storyfoot">{newstopic.S_MORELINK}</span></div> </td> <!-- IF $LEFT_ARTICLE --> <!-- DEFINE $LEFT_ARTICLE = false --> <!-- ELSE --> </tr></table><table><tr> <!-- DEFINE $LEFT_ARTICLE = true --> <!-- ENDIF --> <!-- END newstopic --> </tr></table>

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Linux/Apache 2.0.50/MySQL 4.0.18 /PHP 4.3.9/CPG 8.2b


Cool, you'd be surprised how many follow threads without replying to them, its worth keeping us upto date with the progress, i'd like to see something like this available, and the more info you provide the more likely for someone to come up with an easy and self explanatory method for those of us that are real novices.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
XP / 2.0 / 5.1 / 5.2 / none


Yes, I am following this thread closely....for example Smile

J.
j e r u v y a t y a h o o d o t c o m

Need help? Look here: www.dragonflycms.org/W...d=112.html
Need to chat? Look for me on irc.freenode.net

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Ubuntu7.10/Debian3.1 - 2.2.3/1.3.37 - 5.0.38/4.0.27 - 5.2.1/4.4.7 - CVS/9.1.2}

All times are UTC