Home Private Messages Search
CPG Dragonfly™ CMS Dedicated Server & Bandwidth Sponsored by DedicatedNOW
Toggle Content
 
Forums ⇒ DragonflyCMS ⇒ Explain Please :: Archives ⇒ How to have 2 news side by side? :: Archived


How to have 2 news side by side? :: Archived
Ask questions and read explanations on how to use things/settings or why "X" is on page "Y."
Go to page 1, 2, 3, 4  Next
Post new topic    Revive this topic    Printer Friendly Page     Forum Index ⇒  Explain Please

Topic Archived View previous topic :: View next topic  
Author Message
Andreas
500+ Posts Club
500+ Posts Club

Offline Offline
Joined: Sep 03, 2004
Posts: 852
Location: Gävle, Sweden
PostPosted: Mon Dec 20, 2004 1:24 am
Post subject: 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

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
Developer

Offline Offline
Joined: Apr 19, 2004
Posts: 5683
Location: http://tinyurl.com/5z8dmv
PostPosted: Mon Dec 20, 2004 4:30 am
Post subject: Re: How to have 2 news side by side?

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 15 / 2.2.22 / 5.5.20 / 5.3.10 / CVS
Back to top
View user's profile Visit poster's website Yahoo Messenger Photo Gallery
Andreas
500+ Posts Club
500+ Posts Club

Offline Offline
Joined: Sep 03, 2004
Posts: 852
Location: Gävle, Sweden
PostPosted: Mon Dec 20, 2004 5:43 am
Post subject: Re: How to have 2 news side by side?

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
Developer

Offline Offline
Joined: Apr 19, 2004
Posts: 5683
Location: http://tinyurl.com/5z8dmv
PostPosted: Mon Dec 20, 2004 5:50 am
Post subject: Re: How to have 2 news side by side?

Just inside the template

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


DJ Maze's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Fedora 15 / 2.2.22 / 5.5.20 / 5.3.10 / CVS
Back to top
View user's profile Visit poster's website Yahoo Messenger Photo Gallery
Andreas
500+ Posts Club
500+ Posts Club

Offline Offline
Joined: Sep 03, 2004
Posts: 852
Location: Gävle, Sweden
PostPosted: Mon Dec 20, 2004 10:32 pm
Post subject: Re: How to have 2 news side by side?

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
Security Team

Offline Offline
Joined: Apr 23, 2004
Posts: 1432
Location: Canada
PostPosted: Tue Dec 21, 2004 12:56 am
Post subject: Re: How to have 2 news side by side?

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 Photo Gallery
Andreas
500+ Posts Club
500+ Posts Club

Offline Offline
Joined: Sep 03, 2004
Posts: 852
Location: Gävle, Sweden
PostPosted: Wed Dec 22, 2004 5:27 am
Post subject: Re: How to have 2 news side by side?

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
Silver Supporter

Offline Offline
Joined: Apr 21, 2004
Posts: 734

PostPosted: Wed Dec 22, 2004 5:39 am
Post subject: Re: How to have 2 news side by side?

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 Photo Gallery
NEMINI
Diamond Supporter
Diamond Supporter

Offline Offline
Joined: Apr 22, 2004
Posts: 4551

PostPosted: Wed Dec 22, 2004 5:47 am
Post subject: Re: How to have 2 news side by side?

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 Photo Gallery
xfsunoles
XHTML Specialist
XHTML Specialist

Offline Offline
Joined: Apr 30, 2004
Posts: 2502
Location: Melbourne, Florida
PostPosted: Wed Dec 22, 2004 6:20 am
Post subject: Re: How to have 2 news side by side?

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 Photo Gallery
bigern75
Platinum Supporter
Platinum Supporter

Offline Offline
Joined: Aug 18, 2004
Posts: 2102
Location: River Valley - FS AR
PostPosted: Wed Dec 22, 2004 3:17 pm
Post subject: Re: How to have 2 news side by side?

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

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
• Many Posts •
• Many Posts •

Offline Offline
Joined: Apr 19, 2004
Posts: 8799
Location: Netizen
PostPosted: Wed Dec 22, 2004 3:31 pm
Post subject: Re: How to have 2 news side by side?

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 Photo Gallery
bigern75
Platinum Supporter
Platinum Supporter

Offline Offline
Joined: Aug 18, 2004
Posts: 2102
Location: River Valley - FS AR
PostPosted: Wed Dec 22, 2004 3:43 pm
Post subject: Re: How to have 2 news side by side?

Thats why I posted that Wink

_________________
iPad 1

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
• Many Posts •
• Many Posts •

Offline Offline
Joined: Apr 19, 2004
Posts: 8799
Location: Netizen
PostPosted: Wed Dec 22, 2004 3:55 pm
Post subject: Re: How to have 2 news side by side?

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 Photo Gallery
bigern75
Platinum Supporter
Platinum Supporter

Offline Offline
Joined: Aug 18, 2004
Posts: 2102
Location: River Valley - FS AR
PostPosted: Wed Dec 22, 2004 3:58 pm
Post subject: Re: How to have 2 news side by side?

i wondered about that.

_________________
iPad 1

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    Revive this topic    Printer Friendly Page    Forum Index ⇒  Explain Please
Page 1 of 4
All times are GMT
Go to page 1, 2, 3, 4  Next

Archive Revive
Username:
This is an archived topic - your reply will not be appended here.
Instead, a new topic will be generated in the active forum.
The new topic will provide a reference link to this archived topic.
 
   Toggle Content User Info

Welcome Anonymous

Nickname
Password
(Register)

   Toggle Content Last CVS commits
· Fixed .ico Expires header.
· Removed domain name from cookies so subdomains wont access them anymore.
· CSS and JS, case insensitives.
· CSS and JS, send correct HTTP 1.1 headers and fixed issues where themes and...
· Further security class improvements.
· 301 redirects on LEO changes
· Option to force 3xx http status codes
· Validate googlebot.com and google.com crawlers.
· CCBot
· Rss with etag and atom.

читај повеќе...

   Toggle Content Community

Support for DragonflyCMS in a other languages:

Deutsch
Español

   Toggle Content X-links
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

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
Interactive software released under GNU GPL, Code Credits, Privacy Policy