Forums / Addon Sideboxes / News Box Manager

News Box Manager

Locked

Started by jeffd on 24 Aug 2006, 4:02 PM · Views: 2,995

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
24 Aug 2006, 4:02 PM
#1
jeffd avatar

jeffd

Totally Zenned

Join Date:
Sep 2004
Posts:
605
Plugin Contributions:
1

News Box Manager

I have made a couple of bug fixes to the News Box Manager contribution so that now all output is XHTML compliant. I will update the archive in the downloads area in the near future but for now I will post just the changes made for XHTML compliancy.

In the file includes/templates/YOUR_TEMPLATE/sideboxes/tpl_news_scroll_box.php locate the line that says:

$box_news_content[$i] = $display_news;

and replace it with:

$box_news_content[$i] = str_replace('</','<\/' , $display_news);

locate the line that says:

document.write(\'<div id="fscroller" class="ScrollerFrame" style="overflow:\'+foverflow+\';width:\'+fwidth+\';height:\'+fheight+\'"></div>\')

and replace with:

document.write(\'<div id="Scrollertitle"><\/div><div id="fscroller" class="ScrollerFrame" style="overflow:\'+foverflow+\';width:\'+fwidth+\';height:\'+fheight+\'"/>\')

In the file includes/languages/english/YOUR_TEMPLATE/more_news.php

Locate the block that says:

<table cellpadding="0px" cellspacing="30px" border="0px" height="100%" width="100%">
  <tr>
    <td valign=top width="100%" height="100%">
      <table cellpadding="0px" cellspacing="0px" border="0px">

and replace with:

<table cellpadding="0" cellspacing="30" border="0" width="100%">
  <tr>
    <td valign=top width="100%" height="100%">
      <table cellpadding="0" cellspacing="0" border="0">

This should assure all news output is XHTML compliant.

Enjoy!
Jeff

2 Sep 2006, 7:52 PM
#2
phid avatar

phid

Totally Zenned

Join Date:
Nov 2005
Location:
Narnia
Posts:
696
Plugin Contributions:
0

Re: News Box Manager

Jeff, I tried doing this and it wrapped the news sidebox border around the sidebox that was below it (see image). How do I fix this?

14 Jan 2007, 6:04 PM
#3
inksale avatar

inksale

Zen Follower

Join Date:
Jan 2005
Location:
Gold Country CA
Posts:
265
Plugin Contributions:
0

Re: News Box Manager

There is a mis-spelling included in this contribution.
On the bottom of the side box the Archive link says:

News Archiv

You can add the "e" to archive in the following 2 places.
tpl_news_scroll_box.php

Line 177
$content .= '<a href="' . zen_href_link('news_archiv', '', 'NONSSL') . '">News Archive</a>';

Line 195
$content .= '<a href="' . zen_href_link('news_archiv', '', 'NONSSL') . '">News Archive</a>';

My gene pool could use a little chlorine and a lifeguard.
Inksale.com
TeamFastEddy.com

20 Feb 2007, 7:37 AM
#4
maleborg avatar

maleborg

New Zenner

Join Date:
Oct 2006
Posts:
24
Plugin Contributions:
1

Re: News Box Manager

This is not really a typo, this is the german translation.

I just forgot to modified this text to be used in multilanguage :(

to solve this look at
http://www.zen-cart.com/forum/showthread.php?p=331997#post331997

Greets
MaleBorg