Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

News panel

Asked Modified Viewed 4,718 times
L
lifeguard
L
  • Member, joined since
  • Contributed 113 posts on the community forums.
  • Started 27 threads in the forums
  • Started this discussions
asked
Member

Hi guys:)

i am looking for a panel wich displays the last 15 or 20 new news.
i know, there already some panels for news, but they will show random news, or title plus discription.

the only thing i want, is something like this:

news item 1 30
news item 2 34
news item 3 89

where news item is the title, and the numbers are the views or comments.

is this possible, or am i blind and stupid, or is there a mod like this?
0 replies

17 posts

C
Craig
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
answered
Fusioneer

I have coded a few news Panels

Basic Center News Panel
Extended News panel Page
FP News Panel

Maybe some more cant remember, have a look in the Addons DB and on my site. Even if it's an old panel look in all my Addons Downloads you might find something.
0 replies
L
lifeguard
L
  • Member, joined since
  • Contributed 113 posts on the community forums.
  • Started 27 threads in the forums
  • Started this discussions
answered
Member

Hey F C ,

I take a look in your DB, but the only one i found, was1 i used already.
and thats the one with the description.
I dont want al this information :) only the ttitle en views or comments...
Thnx for your help
0 replies
C
Craig
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
answered
Fusioneer

Isn't Basic Center News Panel what you are looking for and i can add comments to it if you want?

http://www.fangree.com/downloads.php?...nload_id=7
0 replies
L
lifeguard
L
  • Member, joined since
  • Contributed 113 posts on the community forums.
  • Started 27 threads in the forums
  • Started this discussions
answered
Member

Quote

Fangree_Craig wrote:

Isn't Basic Center News Panel what you are looking for and i can add comments to it if you want?

http://www.fangree.com/downloads.php?...nload_id=7

Hey F c,
Thats almost what i want. I download, and tweak it a little bit. (hope you don't mind)
Now its almost good. The only thing i want now, is a smaller font, like all of the panels....
0 replies
C
Craig
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
answered
Fusioneer

Just add to the classes small

eg. class='side small'
0 replies
L
lifeguard
L
  • Member, joined since
  • Contributed 113 posts on the community forums.
  • Started 27 threads in the forums
  • Started this discussions
answered
Member

Yes great!
But ehy is that ugly grey bar there? Is it possible to make this also like the rest?

p.s are you a girl? if yes, i come to kiss you for your great support. If no, then uhm....... uh.... forget it :D
0 replies
C
Craig
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
answered
Fusioneer

What ugly grey bar?

Yes I am a girl!
0 replies
L
lifeguard
L
  • Member, joined since
  • Contributed 113 posts on the community forums.
  • Started 27 threads in the forums
  • Started this discussions
answered
Member

Quote

Fangree_Craig wrote:

What ugly grey bar?

Yes I am a girl!

Aight give me your adres :D LMAO

grey bar, when you look at http://compu-web.nl/news.php
On the left you see Nieuws overzicht. Thats grey, and the rest is blue.....
0 replies
C
Craig
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
answered
Fusioneer

change opentable to openside and closetable to closeside.

PS. I am only joking you man, I am not a girl. I am man and all man!! :)
0 replies
L
lifeguard
L
  • Member, joined since
  • Contributed 113 posts on the community forums.
  • Started 27 threads in the forums
  • Started this discussions
answered
Member

Quote

Fangree_Craig wrote:

change opentable to openside and closetable to closeside.

PS. I am only joking you man, I am not a girl. I am man and all man!! :)


I know ;) but you are a great guy!
thanks for this wonderfull support
0 replies
C
Craig
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
answered
Fusioneer

No problem but not really given much support but anyway thanks no worries glad to help dude man.
0 replies
L
lifeguard
L
  • Member, joined since
  • Contributed 113 posts on the community forums.
  • Started 27 threads in the forums
  • Started this discussions
answered
Member

I think i need you one more time (today)

in my error log, i get this error

echo "<td width='2%' class='side small".$row_color."' style='text-align:center;white-space:nowrap'>".$data['news_reads']."</td>\n"; (rule 59)
and
echo "<td width='20%' class='side small".$row_color."'>"; (rule 53)

i think its something with $row_color ?
0 replies
C
Craig
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
answered
Fusioneer

Try it like...

class='".$row_color." small'
0 replies
L
lifeguard
L
  • Member, joined since
  • Contributed 113 posts on the community forums.
  • Started 27 threads in the forums
  • Started this discussions
answered
Member

Nope...
error log tell me this,

Undefined variable: row_color

look at this if you want http://pastebin.com/KHE1BNVY
its the file right now
0 replies
C
Craig
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
answered
Fusioneer

Yes after...

$rows = dbcount("(news_id)", DB_NEWS, "news_id!=''");


Add...

$row_color = ($i % 2 == 0 ? "tbl1" : "tbl2");
0 replies
L
lifeguard
L
  • Member, joined since
  • Contributed 113 posts on the community forums.
  • Started 27 threads in the forums
  • Started this discussions
answered
Member

Quote

Fangree_Craig wrote:

Yes after...

$rows = dbcount("(news_id)", DB_NEWS, "news_id!=''");


Add...

$row_color = ($i % 2 == 0 ? "tbl1" : "tbl2");

img1.etsystatic.com/il_fullxfull.222295605.jpg
Thank you!!
0 replies
C
Craig
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
answered
Fusioneer

Welcome!
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 17 posts
  • Votes 0 votes
  • Topic users 2 members

2 participants

C
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
L
L
  • Member, joined since
  • Contributed 113 posts on the community forums.
  • Started 27 threads in the forums
  • Started this discussions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet