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?


Hi!

I am wondering how I can make two newsitems side by side instead of 1 by 1 as they are now.

I want the boxes like this:

NEWS - NEWS
NEWS - NEWS

Not like it's now:

NEWS
NEWS
NEWS

How do I do this and where?

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


Yes you can by using something like this<!-- DEFINE $LEFT_ARTICLE = true --> <!-- BEGIN newstopic --> <!-- IF $LEFT_ARTICLE --> <div class="newsarticle"> <!-- DEFINE $LEFT_ARTICLE = false --> <!-- ELSE $LEFT_ARTICLE --> <div class="newsarticle2"> <!-- DEFINE $LEFT_ARTICLE = true --> <!-- ENDIF -->

"DEFINE $LEFT_ARTICLE = VALUE" does it and then you use the value in the IF, ELSEIF, ELSE, ENDIF structure

Ofcourse you can also remove the define by using
<!-- UNDEFINE $LAST_TOPIC -->

instead of the 2 <div> you can also use a <table> if your CSS knowledge is limited

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


I take it that I am to edit the news.php file somewhere, right? I take this code and replace what exactly? Don't wanna screw up my site at the moment... Smile

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


Just inside the template

say: themes/dragonfly/template/news/index.html

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


Ok, I'd rather ask for help just incase. This is from my index.html file in News, what do I change. This theme seems to use <table>...

<!-- 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 -->

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


Like I stated in the other thread, have you checked out the 'quad module'?

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}


No, where do I find this module?

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 searched for 'quad module' on google and ended up right back here Laughing

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Cent OS :: 1.3.34 :: 4.1.13 :: 4.4.2 :: CVS


Here's a complete and useful answer :

The block is called 'NSN Center 4 Blocks' it was at one time available via the download section here but it is no longer available here. It is however available via bigtank.dk, but they do require a free reg to download it, I tried it once but could not get it to work, but you may have more luck with it then I did.

NEMINI.org, NEMINI.us, NEMINI.info, NYMINI.org

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
1.3.34 (Unix)/4.1.18-standard/4.4.2 /9.1.0.8 CVS


GMINI03 wrote
Here's a complete and useful answer :

The block is called 'NSN Center 4 Blocks' it was at one time available via the download section here but it is no longer available here. It is however available via bigtank.dk, but they do require a free reg to download it, I tried it once but could not get it to work, but you may have more luck with it then I did.


somebody could port it. Confused

Firefox is my Favorite Browser

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Apache/1.3.34 (Unix)/4.0.25-standard/4.4.1/CVS


I can get the nsn to show up on the frontpage either. I got it to work while in admin but it wont pick it up on the frontpage.
Heres the info from the readme about porting it.


/********************************************************/
/* NSN Center 4 Blocks for PHP-Nuke */
/* 27 March 2004 */
/* Hack de NSN Center Blocks */
/* de NukeScripts Network (webmaster@nukescripts.net) */
/* www.nukescripts.net */
/* Copyright © 2002-2003 par NukeScripts Network */
/* */
/* Realised by NukeScripts Francais */
/* www.nukescripts-francais.com */
/* Contact:webmaster@nukescripts-francais.com */
/* Copyright © 2002-2003 par NukeScripts Network */
/* Ported by mortal. www.bigtank.dk */
/********************************************************/
0. Copyright Notice
-------------------
- THIS PACKAGE IS NOT RELEASED AS GPL/GNU SCRIPTING.
- Our Package name and link MUST REMAIN in the credit footer of all NSN script
generated pages. Translations are permitted, not renaming.
- This package CAN NOT be ported without written permission.
- This package CAN NOT be mirrored without written permission.
- Use of this package requires that credits to the original PHPNuke remain in all
site generated page footers.
- The following are the only project licenses granted at this time (These projects
may reproduce and/or include our scripts).
1) The PHP-Nuke Project by Francisco Burzi
2) OFFICIAL NSN Regional sites

.::..::.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Linux/2.2.6/5.0.86/5.2.8/9.3.2



/********************************************************/
/* NSN Center 4 Blocks for PHP-Nuke */
/* 27 March 2004 */
/* Hack de NSN Center Blocks */
/* de NukeScripts Network (webmaster@nukescripts.net) */
/* www.nukescripts.net */
/* Copyright © 2002-2003 par NukeScripts Network */
/* */
/* Realised by NukeScripts Francais */
/* www.nukescripts-francais.com */
/* Contact:webmaster@nukescripts-francais.com */
/* Copyright © 2002-2003 par NukeScripts Network */
/* Ported by mortal. www.bigtank.dk */
/********************************************************/
0. Copyright Notice
-------------------
- THIS PACKAGE IS NOT RELEASED AS GPL/GNU SCRIPTING.
- Our Package name and link MUST REMAIN in the credit footer of all NSN script
generated pages. Translations are permitted, not renaming.
- This package CAN NOT be ported without written permission.
- This package CAN NOT be mirrored without written permission.
- Use of this package requires that credits to the original PHPNuke remain in all
site generated page footers.
- The following are the only project licenses granted at this time (These projects
may reproduce and/or include our scripts).
1) The PHP-Nuke Project by Francisco Burzi
2) OFFICIAL NSN Regional sites
Unless you have met the above license requirements, you do not have the right to port this, and I'm quite sure DJ would not sanction this. This particular part of the discussion should not be continued in this forum.

DonationsPro for DragonflyCMS & SMF

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):


Thats why I posted that Wink

.::..::.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Linux/2.2.6/5.0.86/5.2.8/9.3.2


Understood, and good to see someone appreciates what licensing means - problem is that there is no indication that mortal had approval. I would say it was removed from downloads because mortal required registration for download, but could equally have been because of the breach of license conditions.

DonationsPro for DragonflyCMS & SMF

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):


i wondered about that.

.::..::.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Linux/2.2.6/5.0.86/5.2.8/9.3.2

All times are UTC