How to have 2 news side by side?
Go to page 1, 2, 3, 4  Next  :| |:
-> Explain Please

#1: How to have 2 news side by side? Author: AndreasLocation: Gävle, Sweden PostPosted: 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?

#2: Re: How to have 2 news side by side? Author: DJ MazeLocation: http://tinyurl.com/5z8dmv PostPosted: 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

#3: Re: How to have 2 news side by side? Author: AndreasLocation: Gävle, Sweden PostPosted: 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... Smile

#4: Re: How to have 2 news side by side? Author: DJ MazeLocation: http://tinyurl.com/5z8dmv PostPosted: Mon Dec 20, 2004 5:50 am
    ----
Just inside the template

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

#5: Re: How to have 2 news side by side? Author: AndreasLocation: Gävle, Sweden PostPosted: 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" />&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 -->

#6: Re: How to have 2 news side by side? Author: JeruvyLocation: Canada PostPosted: Tue Dec 21, 2004 12:56 am
    ----
Like I stated in the other thread, have you checked out the 'quad module'?

#7: Re: How to have 2 news side by side? Author: AndreasLocation: Gävle, Sweden PostPosted: Wed Dec 22, 2004 5:27 am
    ----
No, where do I find this module?

#8: Re: How to have 2 news side by side? Author: Stephen PostPosted: Wed Dec 22, 2004 5:39 am
    ----
I searched for 'quad module' on google and ended up right back here Laughing

#9: Re: How to have 2 news side by side? Author: NEMINI PostPosted: 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.

#10: Re: How to have 2 news side by side? Author: xfsunolesLocation: Melbourne, Florida PostPosted: Wed Dec 22, 2004 6:20 am
    ----
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

#11: Re: How to have 2 news side by side? Author: bigern75Location: River Valley - FS AR PostPosted: 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

#12: Re: How to have 2 news side by side? Author: PhoenixLocation: Netizen PostPosted: 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.

#13: Re: How to have 2 news side by side? Author: bigern75Location: River Valley - FS AR PostPosted: Wed Dec 22, 2004 3:43 pm
    ----
Thats why I posted that Wink

#14: Re: How to have 2 news side by side? Author: PhoenixLocation: Netizen PostPosted: 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.

#15: Re: How to have 2 news side by side? Author: bigern75Location: River Valley - FS AR PostPosted: Wed Dec 22, 2004 3:58 pm
    ----
i wondered about that.



-> Explain Please

All times are GMT

Go to page 1, 2, 3, 4  Next  :| |:
Page 1 of 4