| Author |
Message |
Andreas


Joined: Sep 03, 2004 Posts: 852 Location: Gävle, Sweden
|
Post subject: How to have 2 news side by side? Posted: Mon Dec 20, 2004 1:24 am |
|
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
Andreas's 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 |
|
| Back to top |
|
 |
DJ Maze


Joined: Apr 19, 2004 Posts: 5668 Location: http://tinyurl.com/5z8dmv
|
Post subject: Re: How to have 2 news side by side? Posted: Mon Dec 20, 2004 4:30 am |
|
Yes you can by using something like this
PHP:
<!-- 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
Code:
<!-- UNDEFINE $LAST_TOPIC -->
instead of the 2 <div> you can also use a <table> if your CSS knowledge is limited
DJ Maze's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Fedora 12 / 2.2.15 / 5.1.47 / 5.3.3 / CVS |
|
| Back to top |
|
 |
Andreas


Joined: Sep 03, 2004 Posts: 852 Location: Gävle, Sweden
|
Post subject: Re: How to have 2 news side by side? Posted: Mon Dec 20, 2004 5:43 am |
|
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...
_________________ Andreas Rönnqvist
www.omegaproject.se
[OmegaProject] Founder
Andreas's 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 |
|
| Back to top |
|
 |
DJ Maze


Joined: Apr 19, 2004 Posts: 5668 Location: http://tinyurl.com/5z8dmv
|
Post subject: Re: How to have 2 news side by side? Posted: Mon Dec 20, 2004 5:50 am |
|
Just inside the template
say: themes/dragonfly/template/news/index.html
DJ Maze's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Fedora 12 / 2.2.15 / 5.1.47 / 5.3.3 / CVS |
|
| Back to top |
|
 |
Andreas


Joined: Sep 03, 2004 Posts: 852 Location: Gävle, Sweden
|
Post subject: Re: How to have 2 news side by side? Posted: Mon Dec 20, 2004 10:32 pm |
|
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>...
Code:
<!-- 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
Andreas's 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 |
|
| Back to top |
|
 |
Jeruvy


Joined: Apr 23, 2004 Posts: 1433 Location: Canada
|
Post subject: Re: How to have 2 news side by side? Posted: Tue Dec 21, 2004 12:56 am |
|
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
Jeruvy's 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} |
|
| Back to top |
|
 |
Andreas


Joined: Sep 03, 2004 Posts: 852 Location: Gävle, Sweden
|
Post subject: Re: How to have 2 news side by side? Posted: Wed Dec 22, 2004 5:27 am |
|
No, where do I find this module?
_________________ Andreas Rönnqvist
www.omegaproject.se
[OmegaProject] Founder
Andreas's 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 |
|
| Back to top |
|
 |
Stephen


Joined: Apr 21, 2004 Posts: 734
|
Post subject: Re: How to have 2 news side by side? Posted: Wed Dec 22, 2004 5:39 am |
|
I searched for 'quad module' on google and ended up right back here
Stephen's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Cent OS :: 1.3.34 :: 4.1.13 :: 4.4.2 :: CVS |
|
| Back to top |
|
 |
NEMINI


Joined: Apr 22, 2004 Posts: 4551
|
Post subject: Re: How to have 2 news side by side? Posted: Wed Dec 22, 2004 5:47 am |
|
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
NEMINI's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) 1.3.34 (Unix)/4.1.18-standard/4.4.2 /9.1.0.8 CVS |
|
| Back to top |
|
 |
xfsunoles


Joined: Apr 30, 2004 Posts: 2502 Location: Melbourne, Florida
|
|
| Back to top |
|
 |
bigern75


Joined: Aug 18, 2004 Posts: 2102
|
Post subject: Re: How to have 2 news side by side? Posted: Wed Dec 22, 2004 3:17 pm |
|
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.
Quote:
/********************************************************/
/* 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
_________________ iPad 1 running iOS 5.1 b2
bigern75's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Linux/2.2.6/5.0.86/5.2.8/9.3.2 |
|
| Back to top |
|
 |
Phoenix


Joined: Apr 19, 2004 Posts: 8729 Location: Netizen
|
Post subject: Re: How to have 2 news side by side? Posted: Wed Dec 22, 2004 3:31 pm |
|
Quote:
/********************************************************/
/* 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, MyBB, vBulletin •
Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
 |
|
| Back to top |
|
 |
bigern75


Joined: Aug 18, 2004 Posts: 2102
|
Post subject: Re: How to have 2 news side by side? Posted: Wed Dec 22, 2004 3:43 pm |
|
Thats why I posted that
_________________ iPad 1 running iOS 5.1 b2
bigern75's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Linux/2.2.6/5.0.86/5.2.8/9.3.2 |
|
| Back to top |
|
 |
Phoenix


Joined: Apr 19, 2004 Posts: 8729 Location: Netizen
|
Post subject: Re: How to have 2 news side by side? Posted: Wed Dec 22, 2004 3:55 pm |
|
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, MyBB, vBulletin •
Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
 |
|
| Back to top |
|
 |
bigern75


Joined: Aug 18, 2004 Posts: 2102
|
Post subject: Re: How to have 2 news side by side? Posted: Wed Dec 22, 2004 3:58 pm |
|
i wondered about that.
_________________ iPad 1 running iOS 5.1 b2
bigern75's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Linux/2.2.6/5.0.86/5.2.8/9.3.2 |
|
| Back to top |
|
 |