Home
Download
Add-ons
Help
Forum
Organisation
Project
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
May 24, 2012, 11:25:36 PM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search:
Advanced search
Interested in joining the WebsiteBaker team?
For more Information read
here
or on our
new website
.
155473
Posts in
21708
Topics by
7734
Members
Latest Member:
rofroodoOvego
WebsiteBaker Community Forum
English
Help & Support
(Moderators:
Argos
,
badknight
)
News item help
Pages: [
1
]
Go Down
Author
Topic: News item help (Read 1116 times)
applepie
Offline
Posts: 342
News item help
«
on:
December 10, 2008, 12:26:51 PM »
Hi, how do I get the news item to show the title and the short description only?This is the code on my index file:
<?php display_news_items(0, 8, 50, 2,
' News', 'show full news text', 'uups, no news available',
true, '<a><img>', false, ' (h:i, d.m.Y)'); ?>
Thanks.
Logged
erpe
Offline
Posts: 2077
Re: News item help
«
Reply #1 on:
December 10, 2008, 05:20:04 PM »
Please have a look at the
anynews help file
rgds
erpe
Logged
stories about
be part of the Tutorials-Project
visit the jQuery-Showroom
applepie
Offline
Posts: 342
Re: News item help
«
Reply #2 on:
December 10, 2008, 05:47:21 PM »
Quote from: erpe on December 10, 2008, 05:20:04 PM
Please have a look at the
anynews help file
Ok, i know I havent done it right. My page came out blank when I tried to change the codes on my index file. Grr... do you mind pasting the right code here? Thanks.
Logged
erpe
Offline
Posts: 2077
Re: News item help
«
Reply #3 on:
December 10, 2008, 07:07:21 PM »
It is not a matter of code but a matter of css.
Read the help me file.
Look at your html code output.
Wrap the code in a div or class and then format this in the css file for example:
Code:
.news hr {display:none;}
.news a {display:none;}
rgds
erpe
Logged
stories about
be part of the Tutorials-Project
visit the jQuery-Showroom
applepie
Offline
Posts: 342
Re: News item help
«
Reply #4 on:
December 11, 2008, 01:10:42 AM »
Quote from: erpe on December 10, 2008, 07:07:21 PM
It is not a matter of code but a matter of css.
Read the help me file.
Look at your html code output.
Wrap the code in a div or class and then format this in the css file for example:
Code:
.news hr {display:none;}
.news a {display:none;}
Ok, maybe I am think. Hands up. The help file mentioned code page. I am not sure what code page or code module the author is referring to.
Logged
erpe
Offline
Posts: 2077
Re: News item help
«
Reply #5 on:
December 11, 2008, 09:05:08 AM »
Quote
<?php display_news_items(0, 8, 50, 2,
' News', 'show full news text', 'uups, no news available',
true, '<a><img>', false, ' (h:i, d.m.Y)'); ?>
You can place the above code in your index.php at the place, where you want the news items to be shown, so your code must be
Code:
<div id="news">
<?php display_news_items
(
0
,
8
,
50
,
2
,
' News'
,
'show full news text'
,
'uups, no news available'
,
true
,
'<a><img>'
,
false
,
' (h:i, d.m.Y)'
);
?>
</div>
or you can put the code (on top of this post) in a page or section "code" or "code2" in your backend to get the news displayed.
Hope this helps.
rgds
erpe
Logged
stories about
be part of the Tutorials-Project
visit the jQuery-Showroom
applepie
Offline
Posts: 342
Re: News item help
«
Reply #6 on:
December 11, 2008, 05:17:01 PM »
Quote from: erpe on December 11, 2008, 09:05:08 AM
Quote
<?php display_news_items(0, 8, 50, 2,
' News', 'show full news text', 'uups, no news available',
true, '<a><img>', false, ' (h:i, d.m.Y)'); ?>
You can place the above code in your index.php at the place, where you want the news items to be shown, so your code must be
Code:
<div id="news">
<?php display_news_items
(
0
,
8
,
50
,
2
,
' News'
,
'show full news text'
,
'uups, no news available'
,
true
,
'<a><img>'
,
false
,
' (h:i, d.m.Y)'
);
?>
</div>
or you can put the code (on top of this post) in a page or section "code" or "code2" in your backend to get the news displayed.
Hi, I dont see the difference what I have done. The news is showing fine. All I want to do is to show the title and short description of the news on my home. At the memont it is showing the titles of my news only. Does that make sense? I odnt undestand what you mean by Code or Code2. What are you referring to? The index page which the news code?
Logged
vyni
Offline
Posts: 566
Re: News item help
«
Reply #7 on:
December 12, 2008, 12:36:12 AM »
Hi there,
Your mistake lies in Your call
display_news_items(0, 8, 50, 2,...... will show a list only
display_news_items(0, 8, 50,
1
,...... will show details with title, description and link
that´s the reason.
regards from Himberg, still near Vienna
Logged
PS: Falls jemand eine Idee hat was zu tun ist und mir das erklären könnt - geh bitte davon aus dass ich ahnungslos bin, was php und so betrifft. Ich kann grad was lesen, kopieren und einfügen, ungefähr verfolgen und glauben.
applepie
Offline
Posts: 342
Re: News item help
«
Reply #8 on:
December 16, 2008, 10:59:23 PM »
Quote from: vyni on December 12, 2008, 12:36:12 AM
Hi there,
Your mistake lies in Your call
Thanks, mate. You have been very helpful.
Cheers
Logged
applepie
Offline
Posts: 342
Re: News item help
«
Reply #9 on:
December 19, 2008, 02:30:42 PM »
Vyni have been really helpful and helped me to resolved most of my problem. This is another question I have. Can someone show me how can I replaced <hr> with dotted lines? My news item is separated by <hr> and I would like to replace it with dotted lines, eg:
#news a:hover {color:red;}
#news h2 {margin-bottom: 10px; font-size: 1.2em; font-weight: bold;}
#news hr {margin-top:-10px; margin-bottom:10px; color:#666666;}
Thanks.
Logged
applepie
Offline
Posts: 342
Re: News item help
«
Reply #10 on:
December 19, 2008, 10:00:37 PM »
Hello, is the anybody out there? No one knows the answer?
Logged
kweitzel
Forum administrator
Offline
Posts: 6975
Re: News item help
«
Reply #11 on:
December 20, 2008, 09:29:36 AM »
You can style it via CSS, you could even give it a backgroundimage ...
http://www.sovavsiti.cz/css/hr.html
cheers
Klaus
Quote from: applepie on December 19, 2008, 10:00:37 PM
Hello, is the anybody out there? No one knows the answer?
Logged
WebsiteBaker Org e.V. - for WebsiteBaker
Pages: [
1
]
Go Up
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> General Announcements
=> Security Announcements
=> Documentation
=> WebsiteBaker Website Showcase
=> Guest Area & Off-Topic
-----------------------------
English
-----------------------------
=> WebsiteBaker 2.9
===> Announcements
===> Help/Support
=====> Modules / Extensions
===> Suggestions
===> Software bugs
=> Help & Support
=> Modules
=> Droplets (PHP code for use with Droplet module) & Snippets (raw PHP code)
=> jQuery
=> Templates, Menus & Design
=> WebsiteBaker Language Files
=> WebsiteBaker 2.x discussion
=> WebsiteBaker 3
=> Archive (posts up to 2007)
-----------------------------
Deutsch (German)
-----------------------------
=> Ankündigungen
=> WebsiteBaker 2.9
===> Ankündigungen
===> Hilfe/Support
=====> Module / Extensions
===> Vorschläge
===> Softwarefehler
===> Erfahrungs und Testberichte
=> Hilfe/Support
=> Module & Snippets
=> Templates & Design
=> Tutorials
=> jQuery
=> Diskussion über WB
=> Off-Topic
=> Archiv für Themen bis 2007
-----------------------------
Nederlands (Dutch)
-----------------------------
=> Aankondigingen
=> Hulp & Ondersteuning
=> Niet-Terzake (Off Topic)
-----------------------------
Francais (French)
-----------------------------
=> Help/Support
-----------------------------
Italiano (Italian)
-----------------------------
=> Help/Support
-----------------------------
Bakery (WB shop module)
-----------------------------
=> Bakery English
=> Bakery Deutsch
-----------------------------
KeepInTouch (Multi Contact Module)
-----------------------------
=> KeepInTouch English
=> KeepInTouch Deutsch
Loading...