Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

news posting

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #21  
Old 10-12-2007, 09:52 AM
 
smv smv is offline
 

Advanced Member
  
Join Date: Sep 2007
Posts: 51
 

Default Re: news posting

Hey is there a way to just show the subject as a link, and have like 5 news articles shown at a time by subject so people can click on them and be taken the the news article?
__________________
www.smartmarkvideo.com
Pro Version 4.3.1
Reply With Quote
  #22  
Old 11-04-2007, 03:23 PM
 
almenzies almenzies is offline
 

Advanced Member
  
Join Date: Nov 2005
Posts: 66
 

Default Re: news posting

Yeah that's really what I'm looking for too.

I tried changing

HTML Code:
if ($only_first) { $query .= " LIMIT 1"; }

to

HTML Code:
if ($only_first) { $query .= " LIMIT 5"; }


in modules/news_management/func.php as suggested in a previous post, but it had no effect!
__________________
http://www.ergofurniture.com.au
X-Cart Version 4.3.1
Reply With Quote
  #23  
Old 11-05-2007, 05:36 AM
 
smv smv is offline
 

Advanced Member
  
Join Date: Sep 2007
Posts: 51
 

Default Re: news posting

yeah, cause i mean if you have a huge news update it looks really bad in the little box. It'd be nice to just have headlines.
__________________
www.smartmarkvideo.com
Pro Version 4.3.1
Reply With Quote
  #24  
Old 11-05-2007, 04:02 PM
 
code4access code4access is offline
 

Newbie
  
Join Date: Oct 2007
Posts: 7
 

Default Re: news posting

Quote:
Originally Posted by mrkenzie
Here is what I did, you can check out the final product at:
www.techcentrichomes.com
.................
Good luck!

Hi mrkenzie, I like your solution and I had followed exactly your script, unfortunate i was not successful

I had total 3 news to display..

Problem 1. : when follow 100% the script, it display the text "news" only (or show only news_icon.gif without news subject which it shoud display as in your site)

Problem 2 : It did not shows all the 3 news i have, it shows only the last one, and it display repeately 12 times

I tried to change the script, if i quote out all "curr_message" in the scrpt, it solved problem1, but problem 2 remains same.

Kindly advise and help, thank you very much in advance and appreciated.
__________________
Version 4.1.9
Reply With Quote
  #25  
Old 02-04-2008, 07:10 AM
 
samz724 samz724 is offline
 

Advanced Member
  
Join Date: May 2007
Posts: 84
 

Exclamation Re: news posting

I 2nd this problem.. I would love to implement this, but i'm coming up w/ the same issue.

Any ideas? thanks


Quote:
Originally Posted by code4access
Hi mrkenzie, I like your solution and I had followed exactly your script, unfortunate i was not successful

I had total 3 news to display..

Problem 1. : when follow 100% the script, it display the text "news" only (or show only news_icon.gif without news subject which it shoud display as in your site)

Problem 2 : It did not shows all the 3 news i have, it shows only the last one, and it display repeately 12 times

I tried to change the script, if i quote out all "curr_message" in the scrpt, it solved problem1, but problem 2 remains same.

Kindly advise and help, thank you very much in advance and appreciated.
__________________
Samz
--------------------------------------
Heavily modified
X-Cart Gold v4.1.10
Reply With Quote
  #26  
Old 04-18-2008, 12:32 AM
  MythNReality's Avatar 
MythNReality MythNReality is offline
 

X-Adept
  
Join Date: Mar 2005
Location: S. Cali
Posts: 403
 

Default Re: news posting

Quote:
Originally Posted by code4access
Hi mrkenzie, I like your solution and I had followed exactly your script, unfortunate i was not successful


Follow the message #17 then you'll get what you want. That's how I did it, and works like magic. No need for BIG codes!

find: /today_news.tpl (from your admin panel)

Quote:
Originally Posted by ozchris

<a href="news.php" class="SmallNotes">{$news_message.subject}</a>
instead of the old
{$news_message.body}

Wow. my first xcart code change!
__________________
_____________
Capture Your Mini-Me Look!

- X-CART Gold (Current Version) V4.6
- Reboot
- CDSEO
Reply With Quote
  #27  
Old 10-25-2008, 07:52 AM
 
Paul H Paul H is offline
 

eXpert
  
Join Date: Sep 2005
Posts: 246
 

Default Re: news posting

I did the #17 mod and it works fine and cleans up the box nicely for long news messages.Just need to figure how to list several messages

I was a little confused with the news system but I think it works like this.
Create a news letter in the lists section to mail out to anyone who subscribes
and then create a message that displays on the site.
There is a tick box in the news list "show messages in site news" and another tick box
in "messages" "show as news"
but things don't seem to work quite like they should.

I'd of thought that just create a news item and then tick a box whether to display on the site would of been fine with no need for a separate message section but maybe I'm missing something ??
__________________
Xcart Gold 4.1.11-Gone
= 4.7.11-Live
Reply With Quote
  #28  
Old 11-10-2008, 02:55 PM
 
espresso espresso is offline
 

eXpert
  
Join Date: Apr 2007
Location: Ontario, Canada
Posts: 227
 

Default Re: news posting

Quote:
Originally Posted by balinor
Here's what I use:

open up today_news.tpl and replace this:

{$news_message.body}

with this:

{$news_message.body|truncate:114:"...":true}...read more

change the truncate value to shrink or expand as you like.

Just a side note that this will not work if you have HTML code in your news message body. Use plain text instead !
__________________
Rene
End user - merchant
In the upgrade process 4.6.6 to 5.4.x


Mods I miss in 5.4.x:
xCMS, Create-A-Sale, On-Sale AC, Kit Builder AC, Manufacturer-A-Z BCSE, Product-Bundle BCSE, Pre-Order BCSE, Customer Quotes BCSE
Reply With Quote
  #29  
Old 05-18-2009, 02:51 AM
 
conradp24 conradp24 is offline
 

Advanced Member
  
Join Date: Oct 2007
Posts: 83
 

Talking Re: news posting

Has anybody managed to resolve the issues of not being able to add multiple subject headings or even multiple news items to the main today_news.tpl?

I tried doing a [section loop] .... [/section] but this didn't work. I've been looking through the php files but can't seem to find what I need to resolve this ( although not a php coder as such )

Also my news doesn't display the send_date in this code: {$news_message.date|date_format:$config.Appearance .date_format}

If I change it to date it displays the current date??!

I would like to be able to display the news the same as mrkenzie but after working on it for two days I have to put up my hand and ask for help
__________________
Conradp24
X-Cart 4.1.12 CentOS Linux
Reply With Quote
  #30  
Old 05-20-2009, 12:10 AM
 
aurimasdulskis aurimasdulskis is offline
 

Advanced Member
  
Join Date: May 2009
Posts: 45
 

Default Re: news posting

Anyone can tell in which file i can manage news box? My template is home made and when i done to show news in main site page - it was not shown. I need to insert tags, but where? Thanks!
__________________
My X-cart version 4.1.11 GOLD
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 01:57 AM.

   

 
X-Cart forums © 2001-2020