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

News & Article Management [Support]

Views: 135,521

Results 161 to 180 of 451
27 Sep 2007, 9:56 PM
#161
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

News & Article Management [Support]

motti:

Hi

Can some one help me please?

Some one spam my news and article, by posting abut 9 comments, with no sense words
http://www.tiledepot.us/index.php?main_page=news_comments&article_id=6

I try to see in my admin but could not find it anywhere

Thank you

admin -> catalog -> news & articles - articles (click the comment button)

One way to prevent this is to go to

admin -> configuration -> News & Articles Management

and set Comments Require Customer Login to true

NOTE: We are sorry that Clyde is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

27 Sep 2007, 10:17 PM
#162
motti avatar

motti

Zen Follower

Join Date:
Feb 2007
Location:
Los Angeles
Posts:
348
Plugin Contributions:
0

Re: News & Article Management [Support]

Hi Clyde

Work perfect

Thank you

27 Sep 2007, 11:48 PM
#163
laughingbuddha avatar

laughingbuddha

New Zenner

Join Date:
Jul 2007
Posts:
26
Plugin Contributions:
0

Re: News & Article Management [Support]

I was about to say the same thing :smartalec:

20 Oct 2007, 9:27 PM
#164
knuckle_101 avatar

knuckle_101

Totally Zenned

Join Date:
Dec 2005
Location:
Cincinnati Ohio
Posts:
1,034
Plugin Contributions:
3

Re: News & Article Management [Support]

oops wrong thread

PCI Certified Web Hosting - ControlScan, Security Metrics (Platinum Partner), McAfee, TrustKeeper
Business Class Web Hosting - Linux and cPanel Powered

25 Oct 2007, 6:56 PM
#165
ts232 avatar

ts232

Zen Follower

Join Date:
May 2006
Posts:
167
Plugin Contributions:
0

Re: News & Article Management [Support]

ideasgirl:

Well, apparently something is wrong, this is my patch:

News Scroller Config

INSERT INTO configuration VALUES ('', 'News Sidebox Scroller Days', 'NEWS_SCROLLER_NUMBER_OF_DAYS', '7', 'The news sidebox scroller will only contain news from the past xx news days', '2504', '100', NULL, now(), NULL, NULL),
('', 'News Sidebox Scroller Height', 'NEWS_SCROLLER_HEIGHT', '250', 'The height of the news sidebox scroller box', '2504', '101', NULL, now(), NULL, NULL),
('', 'News Sidebox Scroller Amount', 'NEWS_SCROLLER_AMOUNT', '2', 'The amount to scroll by', '2504', '102', NULL, now(), NULL, NULL),
('', 'News Sidebox Scroller Delay', 'NEWS_SCROLLER_DELAY', '100', 'The amount of delay when scrolling', '2504', '103', NULL, now(), NULL, NULL);
UPDATE configuration, configuration_group SET configuration.configuration_group_id = configuration_group.configuration_group_id WHERE configuration_group.configuration_group_title = 'News & Articles Management' AND configuration.configuration_group_id = '2504';

> 
> but it stops while processing.

I had the same problem, for me the solution was to modify the UPDATE part of the query tio include the zen_ prefix.  I did this in phpMyAdmin, but you could probably also do it useing the Admin->SQL Update option.  The correct sql should be:

UPDATE zen_configuration, zen_configuration_group SET zen_configuration.configuration_group_id = zen_configuration_group.configuration_group_id WHERE zen_configuration_group.configuration_group_title = 'News & Articles Management' AND zen_configuration.configuration_group_id = '2504'


PLEASE, backup your DB before you try it!

--
Author of Stock vs. Sales Report

30 Oct 2007, 2:04 PM
#166
kthompson avatar

kthompson

New Zenner

Join Date:
Jul 2007
Location:
Minneapolis, MN, United States
Posts:
71
Plugin Contributions:
0

Re: News & Article Management [Support]

Does this work with v. 1.37?

I dont care what it says next to my name. I've been Zenned!

30 Oct 2007, 2:11 PM
#167
ts232 avatar

ts232

Zen Follower

Join Date:
May 2006
Posts:
167
Plugin Contributions:
0

Re: News & Article Management [Support]

KThompson:

Does this work with v. 1.37?

it did for me.

--
Author of Stock vs. Sales Report

16 Nov 2007, 5:02 PM
#169
triplemoons avatar

triplemoons

New Zenner

Join Date:
Oct 2006
Location:
Hanover, PA
Posts:
71
Plugin Contributions:
0

Re: News & Article Management [Support]

<BUMP>

Still no solution for this???

.: Stef :.

24 Nov 2007, 10:30 AM
#170
kuroi avatar

kuroi

Totally Zenned

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

Re: News & Article Management [Support]

TripleMoons:

Anyone have the problem seen here:
http://shop.triplemoonsexotic.com/index.php?main_page=news
And have a fix for it?
I doubt that naybody else will have seen this, as it's most likely due to the combination of a template that dispenses with Zen Cart's core layout tables and relies instead on floats to hold everything else in place, and this mod which doesn't know anything about that need for floats.

This is further complicated by the apparent absence of a div wrapped around the main content to which to apply the missing float. It's difficult to tell whether this is due to the mod, or other changes that have been made, as you have rather a lot of validation errors on the site, many of which are adversely affecting each page's structure.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

25 Nov 2007, 5:14 AM
#171
triplemoons avatar

triplemoons

New Zenner

Join Date:
Oct 2006
Location:
Hanover, PA
Posts:
71
Plugin Contributions:
0

Re: News & Article Management [Support]

Ahhh, ok. So perhaps then I can't use this mod with this template?
Thanks for the reply! :)

.: Stef :.

25 Nov 2007, 5:44 PM
#172
laughingbuddha avatar

laughingbuddha

New Zenner

Join Date:
Jul 2007
Posts:
26
Plugin Contributions:
0

Re: News & Article Management [Support]

I could be 100% sure, but at a quick glance it appears to be an issue with your tables.

If you open the page in your browser and do View Source, then look for "Shipping is a necessary evil" you will see that the containing table is set with a width of 100%. This will always fill to the max space going over your gray border at the right hand side.

As for the Date and Zen Cart News title, you could always edit the code of the news app to put these in a table instead of DIV to meet your templates needs, and change the CSS to match your sites colour scheme.

I did this at this site for my client. http://www.themobilephonesite.co.uk/index.php?main_page=news

Matt

4 Dec 2007, 6:40 AM
#173
kimsonvu avatar

kimsonvu

Zen Follower

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

Re: News & Article Management [Support]

i have some question about this modules : I would like customer see all of recent news in past as name not date like now .

How to do that ? :lookaroun

From Hochiminh City - Vietnam !
Call me when you travel here : +840983038939
KIMSON

13 Dec 2007, 1:35 AM
#174
triplemoons avatar

triplemoons

New Zenner

Join Date:
Oct 2006
Location:
Hanover, PA
Posts:
71
Plugin Contributions:
0

Re: News & Article Management [Support]

laughingbuddha:

I could be 100% sure, but at a quick glance it appears to be an issue with your tables.

If you open the page in your browser and do View Source, then look for "Shipping is a necessary evil" you will see that the containing table is set with a width of 100%. This will always fill to the max space going over your gray border at the right hand side.

As for the Date and Zen Cart News title, you could always edit the code of the news app to put these in a table instead of DIV to meet your templates needs, and change the CSS to match your sites colour scheme.

I did this at this site for my client. http://www.themobilephonesite.co.uk/index.php?main_page=news

Matt

Thanks for the reply! :smile:
I've finally had time to sit down and take a look at this, and it's not the 100% table I inserted (the "Shipping is a necessary evil" part). I knocked it down to 75% and it's still doing it because it's the actual module.
What/where did you edit to make it fit on the site you linked?

.: Stef :.

2 Jan 2008, 7:59 PM
#175
bettysue avatar

bettysue

Inactive

Join Date:
May 2004
Posts:
747
Plugin Contributions:
0

Re: News & Article Management [Support]

I've been having a problem for a while and have tried about everything in the stylesheet I can think of with no luck. It's happening in 2 stores, one v1.37 and the other v1.38a.

:frusty:

Everything is aligned so far left, it is almost running off the center column. I have tried padding, margins, and several other things I've looked up about css.

If I've missed the fix in this rather long thread - my apologies.

Any help getting my news articles to go to the right would be greatly appreciated.

thank you,

betty

2 Jan 2008, 8:18 PM
#176
bombknex avatar

bombknex

New Zenner

Join Date:
Sep 2006
Location:
Madison, WI
Posts:
54
Plugin Contributions:
0

Re: News & Article Management [Support]

Hey bettysue, do you have a link so I can checkout your problem? I'll be able to help you much better that way.

  • Jonah
2 Jan 2008, 8:28 PM
#177
bettysue avatar

bettysue

Inactive

Join Date:
May 2004
Posts:
747
Plugin Contributions:
0

Re: News & Article Management [Support]

bombknex:

Hey bettysue, do you have a link so I can checkout your problem? I'll be able to help you much better that way.

  • Jonah

Sure Jonah, I appreciate it. Just don't laugh too hard when you see some of the padding I left on the stylesheet...little things out of desperation like a left padding of 120px..lol

http://www.carefreegolfstore.com/

thank you for your help, it is much appreciated!! btw This is the v1.38a store.

betty

2 Jan 2008, 10:23 PM
#178
bombknex avatar

bombknex

New Zenner

Join Date:
Sep 2006
Location:
Madison, WI
Posts:
54
Plugin Contributions:
0

Re: News & Article Management [Support]

It looks fine right now, aside from hugging the center column like you said is the problem. :)

There are a couple of ways I can think of to do this...

  1. The least involved would probably be to just create a wrapper div around where you put your news into the page template. For example, this code you insert into whatever page is going to display your news:
<?php include(DIR_WS_MODULES . zen_get_module_directory(FILENAME_NEWS_SUMMARY_MODULE)); ?>
```Instead of that, just wrap it in a div like so:

<div id="news"><?php include(DIR_WS_MODULES . zen_get_module_directory(FILENAME_NEWS_SUMMARY_MODULE)); ?></div> ```And then style the div with your desired margin/padding or whatever. You can even use the cascade to then style classes or items within the new div.
  1. The next option, a little more difficult and will require delving into PHP is to modify the news.php class. This is located @ includes/classes/news.php (and by the way, make sure you know all about overrides and backup your site before doing a lot of this type of stuff). It's not fully customizable but there are some things you can do... If you look at this code (starting at line 27):
function newsHeader($header, $date, $links_array = false) {
            $this->news_page .= '<div class="newsHeader"><h1>' . $header . '</h1></div>' . "\n";
            $this->news_page .= '<div class="newsHeadlineText">' . $date;

            if ($links_array && is_array($links_array)) {
                foreach ($links_array as $link) {
                    $this->news_page .= ' | <a href="' . $link['link'] . '">' . $link['text'] . '</a>';
                }
            }

            $this->news_page .= '</div>' . "\n";

            $this->clearSplit();

            return true;
        }
```...you can see where the markup is created for the news content. If you want you can change classes or add markup to customize the plugin more. For example before line 28 you could add your news wrapper div:

$this->news_page .= '<div class="newsHeader"><h1>' . $header . '</h1></div>' . "\n";


$this->news_page .= '[B]<div id="news">[/B]<div class="newsHeader"><h1>' . $header . '</h1></div>' . "\n";


3. And finally another option would be to try and setup or modify some of the style declarations for the news markup. Maybe you've already tried this, but, taking a look at the markup via View Source you'll see:

```html
<div class="newsHeader"><h1>Carefree Golf News</h1></div>
<div class="newsHeadlineText">THURSDAY 20 DECEMBER, 2007 | <a href="http://www.carefreegolfstore.com/index.php?main_page=news_rss"><img src="includes/templates/custom/images/icons/news_rss.gif" alt="RSS Feed" title=" RSS Feed " width="15" height="9" /></a></div>
<div class="clearSplit"><hr /></div>
<p class="articleHeading">Annual Fun Day Golf Tournament</p>
<p class="articleByLine"><span class="author">by Bill</span> | <span class="comments"><a href="http://www.carefreegolfstore.com/index.php?main_page=news_comments&article_id=1">post a comment</a></span></p>
<strong>Annual Fun Day Golf Tournament</strong> <br />
Monday, May 5th, 2008 <br />
Tatum Ranch Golf Course<br />
Shotgun Start: 12.30 p.m.<br />
Price includes:<br />
Dinner following the tournament, raffle prizes<br />
*A FREE FOURSOME of golf for each player<br />
(for a later date)<br />
Hole in One<br />
Donated by Midway Chevrolet<br />
<div class="clearboth"><hr /></div>
<ul class="articleLinkList">
  <li><a href="http://www.carefreegolfstore.com/index.php?main_page=redirect&action=url&goto=www.carefreecavecreek.org%2Fgolf.php" target="_blank">Complete Details</a></li>
</ul>
<div class="clearSplit"><hr /></div>
<div class="splitSolidGray"><hr /></div>
<div class="clearSplit"><hr /></div>
<div class="clearSplit"><hr /></div>
<p class="articleText"><a href="http://www.carefreegolfstore.com/index.php?main_page=news_archive">News archive</a></p>
```You can try setting styles for some of the classes in there. If you wanted to apply the same style to everything just wrap each class into one declaration:

.newsHeader,.newsHeadlineText
,.articleLinkList,.articleText { margin-left: 20px; padding: 20px; ... etc }


- Jonah
2 Jan 2008, 11:02 PM
#179
bettysue avatar

bettysue

Inactive

Join Date:
May 2004
Posts:
747
Plugin Contributions:
0

Re: News & Article Management [Support]

Wow Jonah...and I thought I had a headache before!!!!

Am I the only one having this problem??? I'm just using the default template. It may not look like it, but that's all it is.

As far as "whatever page is going to display the news" I would assume that would be the assorted news templates. Is that what you are referring to for the first solution?

For solution #2, I do know all about overrides, as I customize every store I do. What I don't know all about is php. Thus my problem, as usual. I can get partway there, but never quite all the way.

So I guess I'll have to try for solution Number one.

thank you,

betty

2 Jan 2008, 11:54 PM
#180
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: News & Article Management [Support]

Jonah had it right with the first suggestion, wrapping the complete News article(s) in a Wrapper and applying CSS to the Wrapper.

I'm not familiar with this Mod but I do wonder about this:

!-- eof upload alerts -->

<table width="100%" border="0" cellspacing="2" cellpadding="2">

<tr>

<td class="breadCrumb"> </td>

</tr>

</table>

<br /><br class="clearBoth />
Should give the same, blank space, effect.

Not sure about all the other styling changes suggested by Jonah but the first is where you would start.

The learning is in the doing.

Potent Products