How to have 2 news side by side?
Post new topic   Reply to topic   Printer Friendly Page     Forum IndexExplain Please
Author Message
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: Wed Dec 22, 2004 6:45 pm
Reply with quote

The shown copyright notices are in violation with GPL and CPG-Nuke

There's no way you can use "NSN Center 4 Blocks" in CPG and PHP nuke

So just used the mentioned theme structure
cpgnuke.com/Forums/vie...html#38521


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: Wed Dec 22, 2004 9:06 pm
Reply with quote

Licensing questions aside, can someone tell me a little more exactly where inside the theme I posted back there I should include the code?
_________________
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: Wed Dec 22, 2004 10:39 pm
Reply with quote

themes/dragonfly/template/news/index.html
as i told before then you get something like this
Code:
<!-- DEFINE $LEFT_ARTICLE = true -->
<table><tr>
<!-- BEGIN newstopic -->
<td>
<a href="{newstopic.U_NEWTOPIC}"><img src="{newstopic.IMG_TOPIC}" alt="{newstopic.S_TOPIC}" border="0" align="right" /></a>
<span class="legend">{newstopic.S_TITLE}</span><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="1" color="#035D8A">{newstopic.S_POSTEDBY} {newstopic.S_INFORMANT} {newstopic.S_TIME}</font><br />
  <div align="right"><span class="storyfoot">{newstopic.S_MORELINK}</span></div>
</td>
  <!-- IF $LEFT_ARTICLE -->
    <!-- DEFINE $LEFT_ARTICLE = false -->
  <!-- ELSE -->
    </tr><tr>
    <!-- DEFINE $LEFT_ARTICLE = true -->
  <!-- ENDIF -->
<!-- END newstopic -->
</tr></table>

_________________
There are two paths, the short one and the long one.
When you choose the short path you will notice it takes longer then the long path.
So READ the FAQ and Wiki first Razz

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


Joined: Sep 22, 2004
Posts: 2025
Location: Somewhere in the intertubes... lolz

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

I've been trying to work this into my theme and i don't have a clue how to do this.

How would i do it in this page?...

Code:
<!-- BEGIN newsempty -->

<table class="newsindex"><tr><td>

    <center><font class="title">{newsempty.S_SITENAME}</font><br /><br />

    {newsempty.S_NOTOPIC}<br /><br />

    [ <a href="{newsempty.U_NEWSINDEX}">{newsempty.S_GONEWS}</a> | <a href="{newsempty.U_TOPICS}">{newsempty.S_SELECT}</a> ]</center>

</td></tr></table><br />

<!-- END newsempty -->

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


t31os's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
XP / 2.0 / 5.1 / 5.2 / none
Back to top
View user's profile Visit poster's website
djdevon3
Gold Supporter


Joined: Aug 05, 2004
Posts: 4365

PostPost subject: Re: How to have 2 news side by side?
Posted: Tue Dec 28, 2004 10:30 am
Reply with quote

That's why I always try to get permission for my ports first. A simple email is all it takes. The authors rarely say no. They just want to be notified of any use of their scripts so they can watch them grow basically. Smile

djdevon3's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/1.3.33/4.4/4.3.11
Back to top
View user's profile Visit poster's website
Mystic
Diamond Supporter


Joined: Jun 25, 2004
Posts: 1309
Location: Spokane, WA USA

PostPost subject: Re: How to have 2 news side by side?
Posted: Tue Dec 28, 2004 5:18 pm
Reply with quote

I'm sure some clever wang can write a similar module for us from the ground up. No license required.

Add something like the ability to adjust the number of blocks from like two to four to six or something like that. Make it our own.

_________________
- |\/|ystic

Mystic's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux 2.4.28/Apache/4.0.22/4.3.11/9.0.6.1
Back to top
View user's profile ICQ Number AIM Address 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: Tue Dec 28, 2004 6:39 pm
Reply with quote

No-one can help t3los and thus me?
_________________
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
Smitty
Silver Supporter


Joined: Oct 17, 2004
Posts: 36
Location: Jackson Mo

PostPost subject: Re: How to have 2 news side by side?
Posted: Sun Mar 06, 2005 10:15 pm
Reply with quote

I would really like to know how to do this also. With the news being the main page it would be nice to be able to change it up a bit.

Smitty's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux / Apache 1.3.33 / MySQL 4.0.22 / PHP 4.3.9 / CVS
Back to top
View user's profile Visit poster's website ICQ Number
duffbeer
Newbie


Joined: Mar 26, 2005
Posts: 45
Location: the lair

PostPost subject: Re: How to have 2 news side by side?
Posted: Sun Mar 27, 2005 4:03 pm
Reply with quote

hi... i'm new here, but i've used phpnuke for years.

speaking of different news story layouts, is there a layout for cpg-nuke that looks kinda like a cnn.com layout?

and is there one for a store layout?

i need to build 2 such sites and it'd be great if i could just use a template and edit them.

thanks and cheers.

Smile


duffbeer's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
FreeBSD6.2Stable: Apache2.2 gd enabled, mysql 4.1.14, php4.4.6, DF9.0.6.1 // Slack10: Apache1.3.81, gd enabled, mysql 4.0.20, php4.3.7, DF0.9.030
Back to top
View user's profile Visit poster's website
j-kite
Heavy poster


Joined: Jan 10, 2005
Posts: 240
Location: Ontario

PostPost subject: Re: How to have 2 news side by side?
Posted: Mon Apr 04, 2005 3:57 pm
Reply with quote

If you modified that code, would it not use side by side for all of your news? It be nice to just use side by side for certain articles, rather then modifying it for the whole site. I wonder if that could be a feature in an update, where you can write 2 stories and then check both them and click join or something like that. Then they would go side by side. That be pretty sweet!
_________________
be glad of life because it gives you the chance to love and to work and to play and to look up at the stars

j-kite's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux / 1.3.33 (Unix) / 4.1.13-standard / 4.3.10/ 9.0.5.0
Back to top
View user's profile Visit poster's website MSN Messenger
medigangsta
Nice poster


Joined: Jul 16, 2004
Posts: 69

PostPost subject: Re: How to have 2 news side by side?
Posted: Fri Apr 22, 2005 6:53 pm
Reply with quote

This is fantastic, cheers DJ Maze.

Is it possible to have half of the news with two columns, and half with one?

So you would have, for example:

NEWS
NEWS
NEWS
NEWS - NEWS
NEWS - NEWS
NEWS - NEWS

If you go to www.spurs.co.uk/index.asp you can get a better idea of what I'm on about, though there's only one main story there.


medigangsta's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/Apache 2.0.50/MySQL 4.0.18 /PHP 4.3.9/CPG 8.2b
Back to top
View user's profile Visit poster's website
medigangsta
Nice poster


Joined: Jul 16, 2004
Posts: 69

PostPost subject: Re: How to have 2 news side by side?
Posted: Sat Apr 23, 2005 2:33 pm
Reply with quote

Right, the way I'm trying to do this at the moment is to use Phoenix's Latest News centre block to display the top 5 or so stories, then have the rest displayed in 2 columns. At the moment though, the latest news block shows the newest five stories, and then the news below starts from these again.

i.e.

Story 1
Story 2
Story 3
Story 4
<-End of latest news block start of news module->
Story 1 - Story 2
Story 3 - Story 4

What I'd really like it to do is this

Story 1
Story 2
Story 3
Story 4
Story 5 - Story 6
Story 7 - Story 8
Story 9 - Story 10

etc. etc. etc.

If anyone has any better ideas on how I can achieve this result, or any pointers on how to do it the way I'm trying to, I'd be most grateful.


medigangsta's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/Apache 2.0.50/MySQL 4.0.18 /PHP 4.3.9/CPG 8.2b
Back to top
View user's profile Visit poster's website
medigangsta
Nice poster


Joined: Jul 16, 2004
Posts: 69

PostPost subject: Re: How to have 2 news side by side?
Posted: Sat Apr 23, 2005 3:41 pm
Reply with quote

For those of you following this (probably no-one) I've now managed to get one story at the top by itself, and then rest in two columns. Like so:


Story 1
Story 2 - Story 3
Story 4 - Story 5

etc.

The way I did this was changed DJMaze's code slightly, I'm not 100% sure of what I've done but its working Very Happy ,hopefully I can be advised of any ways I can put more stories up the top, or how to make my code better. I'll keep posting my progress in here. Cool

Code:
<!-- DEFINE $LEFT_ARTICLE = false -->
<table align="center"><tr>
<!-- BEGIN newstopic -->
<td width="50%">
<a href="{newstopic.U_NEWTOPIC}"><img src="{newstopic.IMG_TOPIC}" alt="{newstopic.S_TOPIC}" border="0" align="right" /></a>
<span class="legend">{newstopic.S_TITLE}</span>
  <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 />
  <font size="1" color="#035D8A">{newstopic.S_POSTEDBY} {newstopic.S_INFORMANT} {newstopic.S_TIME}</font>
  <div align="right"><span class="storyfoot">{newstopic.S_MORELINK}</span></div>
</td>
  <!-- IF $LEFT_ARTICLE -->
    <!-- DEFINE $LEFT_ARTICLE = false -->
  <!-- ELSE -->
    </tr></table><table><tr>
    <!-- DEFINE $LEFT_ARTICLE = true -->
  <!-- ENDIF -->
<!-- END newstopic -->
</tr></table>


medigangsta's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/Apache 2.0.50/MySQL 4.0.18 /PHP 4.3.9/CPG 8.2b
Back to top
View user's profile Visit poster's website
t31os
Supporter


Joined: Sep 22, 2004
Posts: 2025
Location: Somewhere in the intertubes... lolz

PostPost subject: Re: How to have 2 news side by side?
Posted: Sat Apr 23, 2005 3:48 pm
Reply with quote

Cool, you'd be surprised how many follow threads without replying to them, its worth keeping us upto date with the progress, i'd like to see something like this available, and the more info you provide the more likely for someone to come up with an easy and self explanatory method for those of us that are real novices.

t31os's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
XP / 2.0 / 5.1 / 5.2 / none
Back to top
View user's profile Visit poster's website
Jeruvy
Security Team


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

PostPost subject: Re: How to have 2 news side by side?
Posted: Sat Apr 23, 2005 4:28 pm
Reply with quote

Yes, I am following this thread closely....for example Smile
_________________
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
Display posts from previous:   
Post new topic   Reply to topic   Printer Friendly Page     Forum IndexExplain Please All times are GMT
Go to page Previous  1, 2, 3, 4  Next
Page 2 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

Dedicated Server & Bandwidth Sponsored by DedicatedNOW
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 0.8551 seconds with 16 DB Queries in 0.1354 seconds
Memory Usage: 3.06 MB
Interactive software released under GNU GPL, Code Credits, Privacy Policy