How to have 2 news side by side?
Post new topic   Reply to topic   Printer Friendly Page     Forum IndexExplain Please
Author Message
Andreas
500+ Posts Club


Joined: Sep 03, 2004
Posts: 852
Location: Gävle, Sweden

PostPost subject: How to have 2 news side by side?
Posted: Mon Dec 20, 2004 1:24 am
Reply with quote

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
View user's profile Visit poster's website ICQ Number MSN Messenger Yahoo Messenger
DJ Maze
Developer


Joined: Apr 19, 2004
Posts: 5668
Location: http://tinyurl.com/5z8dmv

PostPost subject: Re: How to have 2 news side by side?
Posted: Mon Dec 20, 2004 4:30 am
Reply with quote

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
View user's profile Visit poster's website Yahoo Messenger
Andreas
500+ Posts Club


Joined: Sep 03, 2004
Posts: 852
Location: Gävle, Sweden

PostPost subject: Re: How to have 2 news side by side?
Posted: Mon Dec 20, 2004 5:43 am
Reply with quote

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

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
View user's profile Visit poster's website ICQ Number MSN Messenger Yahoo Messenger
DJ Maze
Developer


Joined: Apr 19, 2004
Posts: 5668
Location: http://tinyurl.com/5z8dmv

PostPost subject: Re: How to have 2 news side by side?
Posted: Mon Dec 20, 2004 5:50 am
Reply with quote

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
View user's profile Visit poster's website Yahoo Messenger
Andreas
500+ Posts Club


Joined: Sep 03, 2004
Posts: 852
Location: Gävle, Sweden

PostPost subject: Re: How to have 2 news side by side?
Posted: Mon Dec 20, 2004 10:32 pm
Reply with quote

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" />&nbsp;&nbsp;

    <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>&nbsp;{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
View user's profile Visit poster's website ICQ Number MSN Messenger Yahoo Messenger
Jeruvy
Security Team


Joined: Apr 23, 2004
Posts: 1433
Location: Canada

PostPost subject: Re: How to have 2 news side by side?
Posted: Tue Dec 21, 2004 12:56 am
Reply with quote

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
View user's profile ICQ Number Yahoo Messenger
Andreas
500+ Posts Club


Joined: Sep 03, 2004
Posts: 852
Location: Gävle, Sweden

PostPost subject: Re: How to have 2 news side by side?
Posted: Wed Dec 22, 2004 5:27 am
Reply with quote

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
View user's profile Visit poster's website ICQ Number MSN Messenger Yahoo Messenger
Stephen
Silver Supporter


Joined: Apr 21, 2004
Posts: 734

PostPost subject: Re: How to have 2 news side by side?
Posted: Wed Dec 22, 2004 5:39 am
Reply with quote

I searched for 'quad module' on google and ended up right back here Laughing

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
View user's profile Visit poster's website
NEMINI
Diamond Supporter


Joined: Apr 22, 2004
Posts: 4551

PostPost subject: Re: How to have 2 news side by side?
Posted: Wed Dec 22, 2004 5:47 am
Reply with quote

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
View user's profile Visit poster's website
xfsunoles
XHTML Specialist


Joined: Apr 30, 2004
Posts: 2502
Location: Melbourne, Florida

PostPost subject: Re: How to have 2 news side by side?
Posted: Wed Dec 22, 2004 6:20 am
Reply with quote

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

xfsunoles's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Apache/1.3.34 (Unix)/4.0.25-standard/4.4.1/CVS
Back to top
View user's profile Visit poster's website AIM Address MSN Messenger Yahoo Messenger
bigern75
Platinum Supporter


Joined: Aug 18, 2004
Posts: 2102

PostPost subject: Re: How to have 2 news side by side?
Posted: Wed Dec 22, 2004 3:17 pm
Reply with quote

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
View user's profile Visit poster's website
Phoenix
Site Admin


Joined: Apr 19, 2004
Posts: 8729
Location: Netizen

PostPost subject: Re: How to have 2 news side by side?
Posted: Wed Dec 22, 2004 3:31 pm
Reply with quote

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
View user's profile Visit poster's website
bigern75
Platinum Supporter


Joined: Aug 18, 2004
Posts: 2102

PostPost subject: Re: How to have 2 news side by side?
Posted: Wed Dec 22, 2004 3:43 pm
Reply with quote

Thats why I posted that Wink
_________________
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
View user's profile Visit poster's website
Phoenix
Site Admin


Joined: Apr 19, 2004
Posts: 8729
Location: Netizen

PostPost subject: Re: How to have 2 news side by side?
Posted: Wed Dec 22, 2004 3:55 pm
Reply with quote

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
View user's profile Visit poster's website
bigern75
Platinum Supporter


Joined: Aug 18, 2004
Posts: 2102

PostPost subject: Re: How to have 2 news side by side?
Posted: Wed Dec 22, 2004 3:58 pm
Reply with quote

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
View user's profile Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   Printer Friendly Page     Forum IndexExplain Please All times are GMT
Go to page 1, 2, 3, 4  Next
Page 1 of 4


Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

stopsoftwarepatents.eu petition banner
User Info [x]

Welcome Anonymous

Nickname
Password
(Register)

Last CVS commits [x]

Languages [x]

Community [x]

Support for DragonflyCMS in a other languages:

Deutsch
Español

X-links [x]
UltraEdit Browse Happy logo Firefox MySQL PostgreSQL Valid CSS! Valid XHTML 1.0! Unicode Encoded Badge NukeBiz Resources Raven DragonflyCMS Dedicated Now InsideSupport Lampe Berger

Preview theme [x]
Each user can view the site with a different theme.
Themes marked with a * also change the forum look.


You are seeing squares or questionmarks on this page?

All content of this website is copyrighted by the Creative Commons NC-SA
The logos and trademarks used on this site are the property of their respective owners
We are not responsible for comments posted by our users, as they are the property of the poster.
Our server runs on a P3 1.2GHz with 512MB RAM with no accelerators
Support GoPHP5.org
This page generated in 1.143 seconds with 16 DB Queries in 0.2295 seconds
Memory Usage: 3.07 MB
Interactive software released under GNU GPL, Code Credits, Privacy Policy