Home Page News

Able to display a content box on the home page with recent news.

this is already there

Settings-> Addons-> [tick] News & emails

No I meant where the welcome information is displayed - in the middle section.

Site Info - Right hand column,



Appearance

Nothing in Appearance settings has to do with showing any news on the front page in the middle where the welcome text is.



I’m talking like how [URL]MTGO Traders Magic the Gathering Online Shop MTGO store has their news on their front page. I want it in a content box, not a side box.

There I managed to do it myself. Had to make a mod for it. I already searched topcoderpro.com for one and it’s not there.



You can see what I was talking about more clearly now here:

[url]http://www.youtipgaming.com/store/[/url]

I understand what you wanted now.

Unfortunately I didn’t have the time to go over it for you.



Much appreciating your contribution :wink:

I’ve decided to list all my mods at [URL=“http://www.youtipgaming.com/mods/”]http://mods.youtipgaming.com/[/URL]

Thanks for the mod. I tried installing on 135 sp4 and had problems with errors especially with :



REPLACE



{include file=“welcome.tpl”}





WITH



{if $mode ne “catalog”}










{if $settings.Addons.news_opts.news_items_on_welcome_page != ‘0’}



{/if}





{include file=“welcome.tpl”}

{[LISTMANIA]}

{if $settings.Addons.listmania == “Y”}

{include file=“addons/listmania/listboxes.tpl” box=$smarty.const.LM_CENTRAL order=$smarty.const.LM_BEFORE_MAIN_CONTENT}

{include file=“addons/listmania/listboxes.tpl” box=$smarty.const.LM_CENTRAL order=$smarty.const.LM_AFTER_MAIN_CONTENT}

{/if}

{[/LISTMANIA]}



{include file=“addons/news_and_emails/home_news.tpl”}



{else}

{include file=“welcome.tpl”}

{/if}



I get an unclosed /{else} at line 162 started at line 132

Great mod! Looking 4 this



My dedicated server does not have phpmyadmin, also I am not good at modifying SQL.



Can this lines


[QUOTE]INSERT INTO cscart_settings (option_id,option_name,section_id,subsection_id,option_type,value,position,is_global) VALUES (900000,‘news_items_on_welcome_page’,‘Addons’,‘news_opts’,‘I’,‘5’,600,‘Y’);

INSERT INTO cscart_settings_descriptions (object_id,description,object_type,lang_code,object_string_id) VALUES (900000,‘Number of news items on Welcome page’,‘O’,‘EN’,‘’);[/QUOTE]



be simply injected from admin backend, database update?

The upgrade center is no longer in use since 1.3.4. Is there any other way to add the SQL?

Is it possibly interfering with another mod? There have been so many other successful attempts.


[quote name=‘roban’]Thanks for the mod. I tried installing on 135 sp4 and had problems with errors especially with :



REPLACE



{include file=“welcome.tpl”}





WITH



{if $mode ne “catalog”}










{if $settings.Addons.news_opts.news_items_on_welcome_page != ‘0’}



{/if}





{include file=“welcome.tpl”}

{[LISTMANIA]}

{if $settings.Addons.listmania == “Y”}

{include file=“addons/listmania/listboxes.tpl” box=$smarty.const.LM_CENTRAL order=$smarty.const.LM_BEFORE_MAIN_CONTENT}

{include file=“addons/listmania/listboxes.tpl” box=$smarty.const.LM_CENTRAL order=$smarty.const.LM_AFTER_MAIN_CONTENT}

{/if}

{[/LISTMANIA]}



{include file=“addons/news_and_emails/home_news.tpl”}



{else}

{include file=“welcome.tpl”}

{/if}



I get an unclosed /{else} at line 162 started at line 132[/quote]

Matt,

I believe you can still update the database from the upgrade center (using the lower input box)



For example, I do this on occasion, (when I am working from home for example)



[URL=“CS-Cart Documentation — CS-Cart 4.15.x documentation”]CS-Cart Documentation — CS-Cart 4.15.x documentation

Ah. I haven’t used it because of that message in the center, but if you can, you can.

You can find the upgrade centre under “DB Upgrade/ Restore”



It’s hyperlinked text next to “Logs” & “PHP information”

Yeah, I knew that, but I’ve just never used it.

So can I run these lines there ?

[quote name=‘Darius’]So can I run these lines there ?[/quote]



Should be able to without an issue.

Installed this finally. It was not working for me in two columns. So I modified content.tpl a bit.



Great mod, thank you.