Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

[CONTRIBUTION] AJAX XML NEWS TICKER (GPL)


Freeman

Recommended Posts

This is a new support thread created for AJAX XML NEWS TICKER , released under GPL.

 

It is a simple news ticker with xml data loading from external file.

Very easy to install, take 3 min and has activate/deactivate function from Admin.

 

The contribution is located here:

http://addons.oscommerce.com/info/5590

 

Feel free to experiment and put bug/addon here! :thumbsup:

Freeman

Advice on forum are Free, Email or Pm to fix your site is work...which I charge for :)

-------------------

Link to comment
Share on other sites

Hi Azer,

With the installation info basically you have this one :

http://dynamicdrive.com/dynamicindex2/ajaxticker.htm

Implemented into the header of Oscommerce store.

External data i mean that it loads the text from XML and not from DB itself.

Try to install and test, and if you have trouble let me know here!

Advice on forum are Free, Email or Pm to fix your site is work...which I charge for :)

-------------------

Link to comment
Share on other sites

Please modify into stylesheet :

text-align: center;

(or in the file itself where it starts the css style declaration)

And let me know,

Cheers

Fab

Advice on forum are Free, Email or Pm to fix your site is work...which I charge for :)

-------------------

Link to comment
Share on other sites

Please modify into stylesheet :

text-align: center;

(or in the file itself where it starts the css style declaration)

And let me know,

Cheers

Fab

 

No effect im afraid. It was already in the stylesheet. Here it is:

 

/* Ajax Marquee */

#ajaxticker1{

width: 100%;

height: 5px;

border-bottom: none;

border-top: none;

padding: 2px;

background-color: #FFFF99;

text-align="center";

font: bold 13px Tahoma;

}

 

#ajaxticker1 div{ /*IE6 bug fix when text is bold and fade effect (alpha filter) is enabled. Style inner DIV with same color as outer DIV*/

background-color: #FFFF99;

text-align="center";

}

 

AND here is the code in header.php:

 

<?php

}

/* ADDED CODE BELOW FOR AJAX MARQUEE IN HEADER */

 

// BOF Scrolling Marquee

if (AJAX_MARQUEE == 'true') {

?>

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

<tr>

<td>

<?php include(DIR_WS_BOXES . 'ajax_ticker.php'); ?>

</td>

</tr>

</table>

 

<?php

} else {} // EOF Ajax Marquee

 

/* ADDED CODE ABOVE FOR AJAX MARQUEE IN HEADER */

 

if (isset($HTTP_GET_VARS['info_message']) && tep_not_null($HTTP_GET_VARS['info_message'])) {

?>

Edited by jarzom
Link to comment
Share on other sites

Hi Jar,

see the difference:

text-align: center;

you typed (and it's still my error cuz i wrote it bad in the contribution stylesheet!) :blush:

text-align="center";

Modify and it should work as expected,

Cheers

Fab

 

No effect im afraid. It was already in the stylesheet. Here it is:

 

/* Ajax Marquee */

#ajaxticker1{

width: 100%;

height: 5px;

border-bottom: none;

border-top: none;

padding: 2px;

background-color: #FFFF99;

text-align="center";

font: bold 13px Tahoma;

}

 

#ajaxticker1 div{ /*IE6 bug fix when text is bold and fade effect (alpha filter) is enabled. Style inner DIV with same color as outer DIV*/

background-color: #FFFF99;

text-align="center";

}

 

AND here is the code in header.php:

 

<?php

}

/* ADDED CODE BELOW FOR AJAX MARQUEE IN HEADER */

 

// BOF Scrolling Marquee

if (AJAX_MARQUEE == 'true') {

?>

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

<tr>

<td>

<?php include(DIR_WS_BOXES . 'ajax_ticker.php'); ?>

</td>

</tr>

</table>

 

<?php

} else {} // EOF Ajax Marquee

 

/* ADDED CODE ABOVE FOR AJAX MARQUEE IN HEADER */

 

if (isset($HTTP_GET_VARS['info_message']) && tep_not_null($HTTP_GET_VARS['info_message'])) {

?>

Advice on forum are Free, Email or Pm to fix your site is work...which I charge for :)

-------------------

Link to comment
Share on other sites

Hi Jar,

see the difference:

text-align: center;

you typed (and it's still my error cuz i wrote it bad in the contribution stylesheet!) :blush:

text-align="center";

Modify and it should work as expected,

Cheers

Fab

 

Hehehehe..... it works like a charm. Thanx alot man :-)

 

Great contrib !

Link to comment
Share on other sites

  • 3 weeks later...

AJAX NEWSTICKER 1.1

---------------------------

This is the beauty of Osource :)

Thanks to the user/modder of this handy script we've moved far from the start and now it's quite complete and useful for all!

------------------------------------------------------------------------------------------------------------------------------------------------

-Administration by Admin , you can modify the msg directly from the standard panel

-Real Multilanguage (based on Define Mainpage addon-->Cred to the author and to GGbig that made the CRE version of this little handy script)

-Updated and improved installation , divided between ADMIN and CATALOG to make it easyyyyyy to install

------------------------------------------------------------------------------------------------------------------------------------------------

Happy Xmas to everyone!

Advice on forum are Free, Email or Pm to fix your site is work...which I charge for :)

-------------------

Link to comment
Share on other sites

AJAX NEWSTICKER 1.1

---------------------------

This is the beauty of Osource :)

Thanks to the user/modder of this handy script we've moved far from the start and now it's quite complete and useful for all!

------------------------------------------------------------------------------------------------------------------------------------------------

-Administration by Admin , you can modify the msg directly from the standard panel

-Real Multilanguage (based on Define Mainpage addon-->Cred to the author and to GGbig that made the CRE version of this little handy script)

-Updated and improved installation , divided between ADMIN and CATALOG to make it easyyyyyy to install

------------------------------------------------------------------------------------------------------------------------------------------------

Happy Xmas to everyone!

 

 

Hi, and merry christmas

 

I have installed you new version, and in in the Admin part i get:

 

 

DEFINISCI TICKER

 

File does not exist.

 

Further more, it seems that it can't center again:

 

/* Ajax Marquee */

#ajaxticker1{

width: 100%;

height: 5px;

border-bottom: none;

border-top: none;

padding: 2px;

background-color: #ddc8aa;

text-align: center;

font: bold 13px Tahoma;

}

 

#ajaxticker1 div{ /*IE6 bug fix when text is bold and fade effect (alpha filter) is enabled. Style inner DIV with same color as outer DIV*/

background-color: #ddc8aa;

}

Link to comment
Share on other sites

Hi Jar,

into admin/define_ticker.php mod this line :

$HTTP_GET_VARS['filename'] = 'rugbysport.file'; // dans CATALOG

changing the

'rugbysport.file'

into

'tickercontent.ticker'

About centering it should work the same as before since no changes on the css have been made.

Can you please test and let me know?

After fixing this i will re-up the fixed one :)

Advice on forum are Free, Email or Pm to fix your site is work...which I charge for :)

-------------------

Link to comment
Share on other sites

Also into stylesheet.css in Catalog mod the :

#ajaxticker1{

Class to read :

#ajaxticker

(remove the number 1)

let me know

Cheers

Fab

Advice on forum are Free, Email or Pm to fix your site is work...which I charge for :)

-------------------

Link to comment
Share on other sites

Hi again.

 

Is there a way to handle national characters like eq: æ Æ ø Ø å Å

 

I have tried withe the corresponding html codes:

 

Å big Å Å Å

Æ big Æ Æ Æ

Ø big Ø Ø Ø

å small å å å

æ small æ æ æ

ø small ø ø ø

 

Regards jarzom

Link to comment
Share on other sites

mmh....to be honest i don't know about it, that should be html related/cyrillic support.... a bit lost :P

Advice on forum are Free, Email or Pm to fix your site is work...which I charge for :)

-------------------

Link to comment
Share on other sites

Hi Jar,

i can't reproduce the error....looks like it's working here also with Å stufff :P

Edited by Freeman

Advice on forum are Free, Email or Pm to fix your site is work...which I charge for :)

-------------------

Link to comment
Share on other sites

I have found out what causes the error. It is the WYSIWYG Editor 1.7 that removes the: Å Æ Ø å æ ø

 

If i edit directly in tickercontent.ticker (like the old days ;) ) i works perfect. I gues that i will keep on doing that . . .

 

regards

jarzom

Link to comment
Share on other sites

Hi Jar....sorry but still i have it working :(

I tested and it works....no errors about wysiwyg....currently i'm not having it enabled in my installation :P

Maybe that's why.

Advice on forum are Free, Email or Pm to fix your site is work...which I charge for :)

-------------------

Link to comment
Share on other sites

Hi Jar,

so i assume you are using HTML area on your shop? Right?

Then check the settings related to HTML area, i think you can still enter the symbols but directly from the HTMLAREA Toolbox and not typing directly into the Textarea (in this case it will not convert, just read as a normal text, and this is probably the reason because it's displaying like that),

Cheers

FAb

Advice on forum are Free, Email or Pm to fix your site is work...which I charge for :)

-------------------

Link to comment
Share on other sites

Hi again.

 

Is there a way to handle national characters like eq: æ Æ ø Ø å Å

 

I have tried withe the corresponding html codes:

 

Å big Å Å Å

Æ big Æ Æ Æ

Ø big Ø Ø Ø

å small å å å

æ small æ æ æ

ø small ø ø ø

 

Regards jarzom

 

 

Unfortunately the only way I can get the international characters to work is by editing the file directly and using the HTML codes, but if you open the WYSWYG editor it will change your file BACK to the nonworking format. I am using the newsticker in the header so maybe the problem is that the header does not have UTF-8 capability? In either case, here is an example of my working tickercontent.ticker with an international character.

 

<DIV class=message>

<DIV class=message>Tack för att du handla hos oss! </DIV></DIV>

 

It will display as:

 

Tack för att du handla hos oss!

 

If I change the tickercontent.ticker file and then open it in admin using the wyswyg editor I cannot use it. Hope someone posts a fix for this but the contribution is GREAT as it is and I don't mind the little extra work.

Edited by data2700
Link to comment
Share on other sites

How can I slow down the rate at which the text switches from one message to the next... I would like to allow my customers a little extra time to read the message but Im not sure where to make the change.

 

Thanks again for a great contribution!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...