 |

ColinW-O
User
Feb 22, 2003, 7:10 AM
Post #26 of 36
(4581 views)
Shortcut
|
|
Re: [Lionel] Addon: latest articles news ticker
[In reply to]
|
Can't Post
|
|
Ok the headlines_.shtml IS there now and it STAYED there but still no updating :)
|
|
|  |
 |

Lionel
User
Feb 22, 2003, 7:12 AM
Post #27 of 36
(4581 views)
Shortcut
|
|
Re: [ColinW-O] Addon: latest articles news ticker
[In reply to]
|
Can't Post
|
|
ok, in your php add this right before the closing '}' copy("/path/to/newstickerdata.xml", "/to/newpath/newstickerdata.xml"); and that will solve your problem. Whenever you publish, if the file headlines exists (it will), then the first browser that opens the page will rename that file into newstickerdata.xml and will copy that file also into the specified directory. Make sure that you upload the newstick.swf in the directory that you want it display. Then you do not need to include it anymore, just embed it.
(This post was edited by Lionel on Feb 22, 2003, 7:16 AM)
|
|
|  |
 |

Lionel
User
Feb 22, 2003, 7:18 AM
Post #28 of 36
(4576 views)
Shortcut
|
|
Re: [Lionel] Addon: latest articles news ticker
[In reply to]
|
Can't Post
|
|
sorry... you still have to include it... I am off to sleep now...
|
|
|  |
 |

Lionel
User
Feb 22, 2003, 7:23 AM
Post #29 of 36
(4575 views)
Shortcut
|
|
Re: [Lionel] Addon: latest articles news ticker
[In reply to]
|
Can't Post
|
|
my complete code... adjust the path accordingly in the directory where you have headlines_.shtml for ticker.php: <?php $filename = '/var/www/magazine/headlines_.php'; if (file_exists($filename)) { rename("headlines_.php", "newstickerdata.xml"); copy("/var/www/magazine/newstickerdata.xml", "/var/www/newstickerdata.xml"); } ?> <html> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body bgcolor="#FFFFE1" text="#000000"><div align=center> <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="750" HEIGHT="22" id="newstic" ALIGN=""> <PARAM NAME=movie VALUE="newstic.swf"> <PARAM NAME=menu VALUE=false> <PARAM NAME=quality VALUE=high> <PARAM NAME=scale VALUE=noscale> <PARAM NAME=salign VALUE=LT> <PARAM NAME=wmode VALUE=opaque> <PARAM NAME=bgcolor VALUE=#FFFFE1> <EMBED src="newstic.swf" menu=false quality=high scale=noscale salign=LT wmode=opaque bgcolor=#FFFFE1 WIDTH="750" HEIGHT="22" NAME="newstic" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED> </OBJECT> </div><br> </body> </html> -------------------------------------------------------------------------------------- and for the shtml file outside the directory, place this where you want it display, making sure that the flash file is in that same directory also. <!--#include virtual="/magazine/tick.php" -->
(This post was edited by Lionel on Feb 22, 2003, 7:27 AM)
|
|
|  |
 |

ColinW-O
User
Feb 22, 2003, 7:45 AM
Post #30 of 36
(4569 views)
Shortcut
|
|
Re: [Lionel] Addon: latest articles news ticker
[In reply to]
|
Can't Post
|
|
You are THE MAN :) Thanks for the help dude, I really appreciate it. It updates just fine now. Colin
|
|
|  |
 |

Lionel
User
Feb 22, 2003, 7:52 AM
Post #31 of 36
(4568 views)
Shortcut
|
|
Re: [ColinW-O] Addon: latest articles news ticker
[In reply to]
|
Can't Post
|
|
you are welcome. My next hack is going to be major: auto-archive all the articles after one week, and if people want to see them, they will have to pay for it, and get access to one specific article for one week.
(This post was edited by Lionel on Feb 22, 2003, 7:52 AM)
|
|
|  |
 |

ColinW-O
User
Feb 22, 2003, 7:58 AM
Post #32 of 36
(4563 views)
Shortcut
|
|
Re: [Lionel] Addon: latest articles news ticker
[In reply to]
|
Can't Post
|
|
That's a good idea. But the question is, how many would pay for archives? I mean, people who have a site like mine or any other news site, they can just go and find for a different source and get it for free anyway. You have no idea how much viewership you lose when you take something free and turn it into subscription-based. I guess around 75% fly away.
|
|
|  |
 |

galileo
New User
Feb 24, 2003, 10:29 AM
Post #33 of 36
(4548 views)
Shortcut
|
|
Re: [ColinW-O] Addon: latest articles news ticker
[In reply to]
|
Can't Post
|
|
New Artman user, here. I've actually been "lofting" for several months reading and studying the forum. Figured it was time to introduce myself, even tho I'm still trying to carve out the time to implement my new Artman purchase. Lionel, great add-on! Altho, I agree with Colin about normal subscription viewership, I want to encourage you to work on the auto-archive/subscription feature. My team has been in an unroar over the issue of free access vs. subscription as we've driven into development of our new enterprise. In a nutshell, while subscriptions wouldn't be the primary income stream (advertising would), we all see it as an important "foundation/loyalty measure" income stream. The consensus we finally reached was a feature exactly as you propose - free access for a time period with subscription enabled archive. We have several "benefits/inducements" to encourage and build a loyalty index, but we all viewed your feature as the hammer to nailing down ownership by the subscribers. Very exciting post! Thank you, Lionel. Keep up the great work! Grace & Peace John
|
|
|  |
 |

Lionel
User
Feb 27, 2003, 8:29 PM
Post #34 of 36
(4529 views)
Shortcut
|
|
Re: [galileo] Addon: latest articles news ticker
[In reply to]
|
Can't Post
|
|
yup! definitely possible. Immensely easy! All you need is for interactivetools to let 'view.cgi' have it's own template.
|
|
|  |
 |

RobK_itools
Staff

Mar 1, 2003, 2:56 PM
Post #35 of 36
(4507 views)
Shortcut
|
|
Re: [Lionel] Addon: latest articles news ticker
[In reply to]
|
Can't Post
|
|
Hi Galileo, Thanks for the posts! Certainly your idea about the templates for the view.cgi is a great idea and I will most certainly pass it along to the developers. How ever in the mean time how about trying something like this. Create a new directory called "view" in the /cgi-bin/artman directory and then move the view.cgi script over to the new directory (e.g. /cgi-bin/artman/view/view.cgi). Also you must make a copy of your config.ini file and place it into the same directory that the vie.cgi is in or it will not run. Remember if you make any changes to your config.ini file you will have to make a new copy and replace the one in the /view directory. Using your preferred method of password protecting, protect the directory where the view.cgi script is now located. Lastly you would have to go into the setup options -> server tab and change the path to the view.cgi script in order to reflect the changes (e.g. htttp://www.yourwebsite.com/cgi-bin/artman/view/view.cgi). This should make it so that if someone wanted to view the archives they would have to have a user name and password. Try this and let me know if it works out for your intended use and in the meantime I will pass along your idea. P.S. If your looking for some password protection scripts here is a link to an awesome place to get them: http://www.cgiresourceindex.com/Programs_and_Scripts/Perl/Password_Protection/ Rob interactivetools.com
|
|
|  |
 |

Lionel
User
Mar 1, 2003, 3:42 PM
Post #36 of 36
(4502 views)
Shortcut
|
|
Re: [Cosmo] Addon: latest articles news ticker
[In reply to]
|
Can't Post
|
|
very nice suggestion, Cosmo. It works. They will all work. Unfortunately they will only give you just basic htaccess protection. What we are looking for is a way to include some html that will tell the user to go somewhere and pay the 2.50 to access that single archive article for one week. With htaccess, unless you are preset in the htaccess file, you will not be able to do that, and it will also give access to all articles, at all times.
|
|
|  |
|