Zen Cart Logo
Forums / All Other Contributions/Addons / News & Article Management [Support]

News & Article Management [Support]

Views: 135,123

Results 181 to 200 of 451
31 Jan 2008, 08:53
#181
stuntsmovie_com avatar

stuntsmovie_com

New Zenner

Join Date:
Oct 2006
Posts:
57
Plugin Contributions:
0

News & Article Management [Support]

Hi guys,

I have a quick question. What file do I have to edit to make the writing "Motorcycle News" smaller on this page:
http://www.xtreme-stunts.com/index.php?main_page=news_archive

Thanks a lot!!

31 Jan 2008, 09:02
#182
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: News & Article Management [Support]

StuntsMovie.com:

I have a quick question. What file do I have to edit to make the writing "Motorcycle News" smaller on this page:
**http://www.xtreme-stunts.com/index.php?main_page=news_archive**That size is currently controlled by the h1 tag styling in your stylesheet.css. Personally though, I'd override this by adding something like .newsHeader h1 {font-size:??} to your stylesheet_news.css

31 Jan 2008, 21:44
#183
sgflowers avatar

sgflowers

Totally Zenned

Join Date:
Jan 2004
Posts:
508
Plugin Contributions:
0

Re: News & Article Management [Support]

Hi,
how can i reduce the size of the "zen cart news" header at the top of the articles and possibly change spacing

what file is thta driven by - it is overwriting the date

31 Jan 2008, 22:26
#184
sgflowers avatar

sgflowers

Totally Zenned

Join Date:
Jan 2004
Posts:
508
Plugin Contributions:
0

Re: News & Article Management [Support]

sgflowers:

Hi,
how can i reduce the size of the "zen cart news" header at the top of the articles and possibly change spacing

what file is thta driven by - it is overwriting the date

NEVER MIND - should have gone to the end of the threads LOL

03 Feb 2008, 06:33
#185
stuntsmovie_com avatar

stuntsmovie_com

New Zenner

Join Date:
Oct 2006
Posts:
57
Plugin Contributions:
0

Re: News & Article Management [Support]

kuroi:

That size is currently controlled by the h1 tag styling in your stylesheet.css. Personally though, I'd override this by adding something like .newsHeader h1 {font-size:??} to your stylesheet_news.css

I tried to add this line to my stylesheet_news.css. It looks as below. Do I have to edit out the old .newsHeader line because it didn't change anything?

Thanks again for your patience and help!

/* News */
.newsHeadlineText { text-align: center; width: 100%; height: 15px; font-size: .9em; background: #e5edf5; border-left: 1px solid #9a9a9a; border-right: 1px solid #9a9a9a; border-top: 1px solid #9a9a9a; border-bottom: 5px solid #9a9a9a; padding: 3px 0 0 0; margin: 0;}
.newsHeadlineText IMG { vertical-align: middle; }
.newsHeader { background: #FFFFFF; height: 30px; font-size: 24px; text-align: center; padding: 0; margin: 10px 0 0 0; }

.newsHeader h1 {font-size: 8}

p.articleHeading { font-weight: bold; margin: 0; padding: 0; }
span.articleHeading { font-weight: bold; }

p.articleByLine { font-size: .9em; padding: 0 0 0 20px; margin: 0; }
p.articleByLine SPAN.author { font-style: normal; }
p.articleByLine SPAN.comments { font-style: italic; }
p.articleByLine A { text-decoration: underline; }

div.articleTextBlock { clear: both; padding: 0; margin: 0; }
div.articleText, p.articleText { margin: 0; padding: 0; }

IMG.articleImage { border: 3px double #9a9a9a; background: #FFFFFF; padding: 0; margin: 10px 10px 10px 10px; }

p.newsListingDate { font-weight: bold; text-align: center; margin: 0; padding: 0; }

ul.articleLinkList { list-style-type: none; line-height: 1.5em; padding: 10px 0 0 0; margin: 0; }
ul.archiveLinkList { list-style-type: none; line-height: 1.5em; padding: 0; margin: 0; }
ul.articleLinkList li, ul.archiveLinkList li { background-image: url("../images/icons/news_link.gif"); background-repeat: no-repeat; background-position: 17px 2px; padding: 0 0 0 35px; }
ul.articleLinkList li.articleStoreLink { background-image: url("../images/icons/news_link_2.gif"); background-repeat: no-repeat; background-position: 17px 4px; padding: 0 0 0 35px; }
ul.articleLinkList li.articleProductLink { background-image: url("../images/icons/cart.gif"); background-repeat: no-repeat; background-position: 17px 0px; padding: 0 0 0 35px; }
ul.articleLinkList a, ul.archiveLinkList a { text-decoration: underline; }

.commentsHeading { background: #f2f1ee; padding: 3px; }
.commentsBody { background: #FFFFFF; padding: 3px; }
p.backLink { float: right; margin: 0; padding: 0; clear: right; }
.commentsAuthor { text-align: left; float: left; margin: 0; width: 45%; }
.commentsSubject { font-weight: bold; }
.commentsDate { text-align: right; float: right; padding: 0; margin: 0; }
div.commentsBody p { clear: both; padding: 0 10px 10px 10px; margin: 0; }

fieldset.commentsFieldSet { text-align: left; background: #f2f1ee; border: 1px solid #e7e6e0; padding: 1em; margin: 10px 0 0 0; }
fieldset.commentsFieldSet legend { padding: 0.2em 0.5em; border: 1px solid #c96e29; background: #fff; color: #000; text-align: right;}
fieldset.commentsFieldSet label { display: block; text-align: left; margin: 3px;}
fieldset.commentsFieldSet label input { display: block; }
.commentsSubmit { text-align: right; }

.splitSolid { height: 1px; background: #000000; padding: 0; margin: 0; }
.splitSolidGray { height: 1px; background: #9a9a9a; padding: 0; margin: 0; }
.clearSplit { height: 10px; padding: 0; margin: 0; }
.splitSolid hr, .splitSolidGray hr, .clearSplit hr { display: none; }

.clearboth { clear: both; height: 1px; width: 100%; }
.clearboth hr { display: none; }

03 Feb 2008, 10:01
#186
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: News & Article Management [Support]

StuntsMovie.com:

I tried to add this line to my stylesheet_news.css. It looks as below. Do I have to edit out the old .newsHeader line because it didn't change anything?Please don't post whole stylesheets. It just clutters up the forum. The reason that this isn't having an effect for you is because you didn't specify any units (e.g. px, em, pt, %) so browsers don't know what to do with the line you added and so just ignore it.

06 Feb 2008, 18:42
#187
kimsonvu avatar

kimsonvu

Zen Follower

Join Date:
Aug 2006
Location:
HCMC
Posts:
263
Plugin Contributions:
0

Re: News & Article Management [Support]

Hello all,

I would like to this modules display the title of articles not date when click into News [More] . How to do this ?

Some image:

KIMSON

Thanks you!

13 Feb 2008, 06:28
#188
libragear avatar

libragear

New Zenner

Join Date:
Feb 2008
Posts:
29
Plugin Contributions:
0

Re: News & Article Management [Support]

Hi there happy Zenners. :) I have been playing around with this mod. I thought it just wasn't working at first until I typed =news into the address box and found that it was in fact working there.

So my dillemma is, I followed the directions on Dream Scape" website in the optional install where you add this:

<?php include(DIR_WS_MODULES . zen_get_module_directory(FILENAME_NEWS_SUMMARY_MODULE)); ?>

into tpl_index_default.php.

I did not just copy the page they provided since it was suggested somewhere in this thread not to. It is not showing up on the main page at all. I added it right below the php snippet for the greeting. I was carful to make sure that it wasn't in the middle on some other elements line of code. I did not install the other optional meta thing.

I am using the current version of ZC and would think that if it was incompatable that it wouldn't work at all wouldn't it?

Any way here are my links:

http://www.libragear.com/zencart/index.php?main_page=
http://www.libragear.com/zencart/index.php?main_page=news

Code on the tpl page to follow...

Thanks a bunch folks. :) Happy Zen.

13 Feb 2008, 06:34
#189
libragear avatar

libragear

New Zenner

Join Date:
Feb 2008
Posts:
29
Plugin Contributions:
0

Re: News & Article Management [Support]

Hi all. :) I guess my last post didn't show up. hmm... sorry if this ends up being a double post. Anyway I am having trouble with this mod not showing up on my main page. It seems to be working fine at its address, but that is not where I want is. Of course right. It never is. :P I followed the directions on Dream Scape's website to put this line of code where you want it.

Here is the code snippet from tpl_index_default.php. Thanks again guys. :)

<?php if (DEFINE_MAIN_PAGE_STATUS >= 1 and DEFINE_MAIN_PAGE_STATUS <= 2) { ?> <?php /** * get the Define Main Page Text */ ?> <div id="indexDefaultMainContent" class="content"><?php require($define_page); ?></div> <?php } ?>

**<?php include(DIR_WS_MODULES . zen_get_module_directory(FILENAME_NEWS_SUMMARY_MODULE)); ?>

<?php } ?>** <?php $show_display_category = $db->Execute(SQL_SHOW_PRODUCT_INFO_MAIN); while (!$show_display_category->EOF) { ?>

So I guess my quandary is what am I missing?

Here is a link to the site and the news:

http://www.libragear.com/zencart/index.php?main_page=

http://www.libragear.com/zencart/index.php?main_page=news

Thanks in advance everyone. Have a great night. :)

Kate

13 Feb 2008, 12:57
#190
kruna avatar

kruna

Zen Follower

Join Date:
Sep 2006
Posts:
405
Plugin Contributions:
0

Re: News & Article Management [Support]

Hi libragear,

I had teh same thing and I was never aware that it should/could be different. Anyway I solved the problem by adding it as a link with EZ-Pages.
May not be what you are looking for, but still a solution, you can see it it in my signature, where it says NOTICIAS

regards,
kruna

13 Feb 2008, 15:25
#191
libragear avatar

libragear

New Zenner

Join Date:
Feb 2008
Posts:
29
Plugin Contributions:
0

Re: News & Article Management [Support]

Hi Kruna. :) Thanks for answering. Not quite what I was looking for, but a nice work around. I like it. :) I think I will borrow it. Thanks again. :) Have a great day.

And PS if anyone can still answer the original ? Feel free. :) waves

Kate

13 Feb 2008, 18:07
#192
libragear avatar

libragear

New Zenner

Join Date:
Feb 2008
Posts:
29
Plugin Contributions:
0

Re: News & Article Management [Support]

I got it to work on the Main page. :) YAY! Just so that anyone reading this wont run into the same thing:

The install directions tell you to put this line of code:

<?php include(DIR_WS_MODULES . zen_get_module_directory(FILENAME_NEWS_SUMMARY_MODULE)); ?>

somewhere in this file:

includes/templates/template_default/templates/tpl_index_default.php

The file you need to put it in is actually tpl_index_categories.php. :) I am still playing around with placement but everything works great for now. :)

http://www.libragear.com/zencart/

Have a wonderful and codey day!

Kate

16 Feb 2008, 12:47
#193
furrypotato avatar

furrypotato

New Zenner

Join Date:
Aug 2004
Posts:
31
Plugin Contributions:
0

Re: News & Article Management [Support]

libragear:

I got it to work on the Main page. :) YAY! Just so that anyone reading this wont run into the same thing:

The install directions tell you to put this line of code:

<?php include(DIR_WS_MODULES . zen_get_module_directory(FILENAME_NEWS_SUMMARY_MODULE)); ?>
> 
> somewhere in this file:
> 
> 
> 
> The file you need to put it in is actually tpl_index_categories.php. :) I am still playing around with placement but everything works great for now. :)
> 
> [http://www.libragear.com/zencart/](http://www.libragear.com/zencart/)
> 
> Have a wonderful and codey day!
> 
> Kate



My luck is in !  I was just checking the forum to see if there was a way of placing the news page within my main page  and here it is already !  
I intend to have my main page content divided into 2 or even 3 columns with the  news in one of those columns  and your little line of code is just what i was looking for.

Fantastic and cheers !!

Dylan
16 Feb 2008, 15:44
#194
mat123slade avatar

mat123slade

Zen Follower

Join Date:
Nov 2005
Location:
France - Limoges
Posts:
90
Plugin Contributions:
0

Re: News & Article Management [Support]

Hi,

I'm trying to concentrate on personalising the display on the news_summary and also on the news default...

I'm having trouble to add a div around the image as I would like to personnalise just the image style on both these places. I'm not very familiar with php so unable to add the code that will display my div around the image.

Not looking for someone to hold my hand from A to Z... but could you point me out in the right direction...

I have tried modifying :
IMG.articleImage { border: 3px double #9a9a9a; padding: 0; margin: 10px 10px 10px 10px;}

in the css but this doesn't have any effect on my image display

I can't give a direct link to a specific news, because I will be playing around with these... But basicaly you can see the news and access it on my home page here : https://www.NetJuggler.net

Any advice would be greatly appreciated. Thanks in advance.

16 Feb 2008, 16:46
#195
libragear avatar

libragear

New Zenner

Join Date:
Feb 2008
Posts:
29
Plugin Contributions:
0

Re: News & Article Management [Support]

Furrypotato:

My luck is in ! I was just checking the forum to see if there was a way of placing the news page within my main page and here it is already !
I intend to have my main page content divided into 2 or even 3 columns with the news in one of those columns and your little line of code is just what i was looking for.

Fantastic and cheers !!

Dylan

Glad I could help. Just a side note though, when I turned the category table in the center column off I ended up having to put that line of code back in tpl_index_default.php. It worked like a charm. :). Good luck.

Kate

17 Feb 2008, 10:31
#196
furrypotato avatar

furrypotato

New Zenner

Join Date:
Aug 2004
Posts:
31
Plugin Contributions:
0

Re: News & Article Management [Support]

libragear:

Glad I could help. Just a side note though, when I turned the category table in the center column off I ended up having to put that line of code back in tpl_index_default.php. It worked like a charm. :). Good luck.

Kate

One more question - is there a quick way of me putting the main news page into my front page in a similar way ?
ie - is there a main news page equivalent to FILENAME_NEWS_SUMMARY_MODULE that I can substitute ?

Or does it gt more complex if I was to put teh news page into it ?

Dylan

17 Feb 2008, 14:47
#197
steveyork136 avatar

steveyork136

New Zenner

Join Date:
Nov 2005
Posts:
84
Plugin Contributions:
0

Re: News & Article Management [Support]

does anyone know of a quick way of getting more than one "main" story showing on the homepage.

by main story i mean showning image, headline and intro text.

I looked through the thread and couldn't find the answer, although its a long thread and I could have missed it.

almost forgot... this is a brilliant contribution thanks Joshua

17 Feb 2008, 20:49
#198
libragear avatar

libragear

New Zenner

Join Date:
Feb 2008
Posts:
29
Plugin Contributions:
0

Re: News & Article Management [Support]

steveyork136:

does anyone know of a quick way of getting more than one "main" story showing on the homepage.

Hey Steve. :) I spent the morning searching for an answer, On one of the beginning pages of this post Joshua states that you cannot do this without reprogramming the mod. sigh I was hoping the answer was yes also. The only workaround I see is to make several posts a day, then at least the links show up there. lol. not very practical. There is an archive link though so people can see what came in the past. LA!

Of course I am a fledgling in PHP, so there may be a way..

:) Kate

17 Feb 2008, 21:47
#199
steveyork136 avatar

steveyork136

New Zenner

Join Date:
Nov 2005
Posts:
84
Plugin Contributions:
0

Re: News & Article Management [Support]

Thanks for the info Kate, I was hoping someone had done this and might save me the work, but as they haven't I guess I'll have a crack at it myself.

If I do find a way I will post my solution for others.

24 Feb 2008, 09:33
#200
steveyork136 avatar

steveyork136

New Zenner

Join Date:
Nov 2005
Posts:
84
Plugin Contributions:
0

Re: News & Article Management [Support]

OK so I've had a go at changing the news summary on the homepage and I've got something working, but before you look please bear in mind my enthusiasm far out weighs my skill so the coding is probably not the best ever seen.

Please bear in mind the following
The amount of news items is set in the query (limit 5).
It gets the last few articles added(5 in code) not sorted by date.
I haven't done anything with the languages, so if you need translations, you'll need to code them in.
There isn't any links to the news archive as the original, but you could add a simple href link if needed.
There is no styling on it so you would need to add divs and class as required.
It works for me, but that doesn't mean it will for you, please test extensively before using on live shop.

That said I hope this helps somebody, and maybe give someone more talented than me a starting point to improve and tweak the code.
This code replaced the code in the includes/modules/news_summary.php file

<?php // this query uses part of the original news query, just simplified, if you need different languages that coding needs adding, to alter the amount of stories shown change the limit 5 to number required $comments = $db->Execute("select n.article_id, nt.news_article_name, nt.news_article_shorttext, n.news_image, nt.news_image_text from " . TABLE_NEWS_ARTICLES . " n left join " . TABLE_NEWS_ARTICLES_TEXT . " nt on n.article_id = nt.article_id where n.news_status = '1' order by n.article_id desc limit 5 "); while (!$comments->EOF) { // article_id is used for testing comment out when you ready to send this live echo $comments->fields['article_id'];?><br /><?
echo $comments->fields['news_article_name'];?><br /><?
echo $comments->fields['news_article_shorttext'];?><br /><?


// get image for story
if ((zen_not_null($comments->fields['news_image'])) && file_exists(DIR_FS_CATALOG . DIR_WS_IMAGES . $comments->fields['news_image'])) {
$articleImage = zen_image(DIR_WS_IMAGES . $comments->fields['news_image'], $comments->fields['news_image_text'], '', '', ' ');
echo $articleImage;
}	


// get the url for the article and attach to a simple read more link
$articleLink = zen_href_link(FILENAME_NEWS_ARTICLE, 'article_id=' . $comments->fields['article_id']);
	?>
	<a href="<? echo $articleLink;?> ">Read more</a>
<?
// bit of space between articles, if you do this properly with css you can style this better
?><br /><br /><?

		$comments->MoveNext();
}

// need to add link to rest of news here if required

?>