Guest Posted October 18, 2003 Share Posted October 18, 2003 Hi, Sorry for the delay in releasing this mod however I have been on a much deserved break for the past couple of months. I have made big improvements to the NewsBox mod, the main changes have taken place in the define_mainnews.php file. I have rewritten the code and removed allot of uneccessary baggage that was in there from the original define_languages.php file, also I have improved the save file feature and added a simple file save confirmation message to inform the user that the file has been saved. The new version does not require any duplicate files or use the original messy file copy/unlink code. I have tested this version fully and can report there are no file permission errors now. Anyone wishing to use the mod can get from here: NewsBox v2.0 Follow the instructions in the install.txt file and make sure that the mainnews.php file (located in the [ROOT]/catalog/ folder) has been chmodded to allow you to read and write to the file (666 or 766). Thanks and all feedback appreciated, Taz :D Quote Link to comment Share on other sites More sharing options...
emiliano Posted October 18, 2003 Share Posted October 18, 2003 Where can i see it work? Quote patagonia, argentina Link to comment Share on other sites More sharing options...
sgflowers Posted October 19, 2003 Share Posted October 19, 2003 I had the same problem with the previous version i can't seem to get it to display the news file see on the mainpage www.secretgardenflowers.com any ideas?? Quote Link to comment Share on other sites More sharing options...
Guest Posted October 19, 2003 Share Posted October 19, 2003 kevin, I had the same problem, I was so glad to see that it was not just me. I think I have a solution . . . it worked for me anyway!!! Try this: In Catalog-includes-boxes- newsbox.php replace the following line: $info_box_contents[] = array('text' => '<iframe id="datamain" src=' . DIR_WS_CATALOG . '/' . FILENAME_MAINNEWS . ' width=130 height=150 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=1 scrolling=no></iframe>'); WITH: $info_box_contents[] = array('text' => '<iframe id="datamain" src=' . HTTP_SERVER . '/' . FILENAME_MAINNEWS . ' width=130 height=150 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=1 scrolling=no></iframe>'); Essentially all I have done is replace: DIR_WS_CATALOG with HTTP_SERVER I hope this works for you too!! Jarrod Quote Link to comment Share on other sites More sharing options...
azer Posted October 19, 2003 Share Posted October 19, 2003 any demo available ? Quote MS2 Link to comment Share on other sites More sharing options...
Ady Posted October 19, 2003 Share Posted October 19, 2003 Hi, I have installed this mod..and it looks great... However...I cant get it to work properly from the home page of my site. It displays the text in the box, but doesnt scroll..IE reports an error... Line 31 Char : 1 Error : Access is Denied Code : 0 URL: ..........//mainnews.php If I then click on *ANY* link on the page, it works with no problem, ie scrolling is perfect. Attributes for this file are set to 666. If I then click back to TOP, I get the same error again. Anyone got any ideas? Thanks Ady. Quote Link to comment Share on other sites More sharing options...
siteplanet Posted October 23, 2003 Share Posted October 23, 2003 Does anyone here have this mod working on MS2? I can get the box to show up with no errors, but it will not scroll. Any ideas? Quote Link to comment Share on other sites More sharing options...
Guest Posted October 26, 2003 Share Posted October 26, 2003 Hi, Just came back to check the replies to my mod... oh dear, there seem to be problems with some peoples sites while others report the mod as working. I have recently updated our site www.dappamobiles.com and installed a the new version of my NewsBox mod, again without any problems. I am assuming some certain servers are setup different or our site is configured differently that is affecting the operation of the NewsBox mod - take a look on our site to see the working version (v2.0) - unfortunately I cannot demo the admin section anymore as our site is now live. Judging by the errors some people are receiving I think the problem lies with server permissions - our current host ( www.aventurehosting.co.uk ) uses PHP 4.3.3, MySQL 4.015 and Perl 5 on a Linux box which I think is similar to the majority of the hosts out there. I had a chat a JavaScript guru and he suggests the problem may be due to other JavaScript code ineferring with the NewsBox, this would result in the NewsBox failing to scroll correctly; the JavaScript code is compliant with IE 4.01 to IE 6.01 browsers and has also been tested with Opera and Mozilla browsers. If you are receiving security errors then I would suggest you check your configuration files to make sure the correct paths are entered, especially the absolute paths to the OSC site (e.g. /home/public/mysite/oscommerce/catalog/ ). I appreciate the feedback so I can fix the bugs in the NewsBox as I want this to be a great mod and looking at past comments this is a mod that allot of people would like to use. Thanks in advance and sorry to those that have experienced problems, Taz Quote Link to comment Share on other sites More sharing options...
Guest Posted October 27, 2003 Share Posted October 27, 2003 (edited) Does anyone here have this mod working on MS2? I can get the box to show up with no errors, but it will not scroll. Any ideas? I have it working on www.grabbitt-now.co.uk/catalog on the bottom left The problem I have is that it is headed as Links and I cant find where to change the box Title, but it's probably me being dumb :unsure: I've gotta be honest though and admit I just followed the instructions without any problems. Edited October 27, 2003 by Davey-D Quote Link to comment Share on other sites More sharing options...
Guest Posted October 27, 2003 Share Posted October 27, 2003 whats that all about porn popups etc on the contribs page?? Do I download v2.0 or what? Quote Link to comment Share on other sites More sharing options...
Guest Posted October 27, 2003 Share Posted October 27, 2003 I downloaded and used 2.0 and it had no porn. I am not currently using the text with links that was supplied, but I don't remember anything unusual happening. It is working fine on my site and I have been able to add scrolling or stationary Flash and some images too. I have had some problems with the admin "Define Main News" scrubbing my mainnews.php file (the file that holds the html to be displayed). I think you have to be a bit careful when switching around multiple explorer windows etc. I just edit it in a text editor now. If you want, take a look at My Test Site Regards, Jarrod Quote Link to comment Share on other sites More sharing options...
Guest Posted October 27, 2003 Share Posted October 27, 2003 done it DEMO HERE: www.alternateclothing.com Quote Link to comment Share on other sites More sharing options...
Spaceboy Posted October 28, 2003 Share Posted October 28, 2003 I have upgraded my previous version to version 2. The MAIN problem about localisation has not been fixed in my sense. I still have 1 mainnews.php to edit so what to do when I have 3 languages in my case ? Else the mod has always been working fine but I had to add some fixes : - use of stylesheet (I hate that white background). People should ALWAYS use CSS to be compliant with the rest od the site. - width = 100% so that the scroll box fills up the complete infobox Now just that multi-language problem and we're all ok. Didier. Quote Published modified Contributions Link to comment Share on other sites More sharing options...
Spaceboy Posted November 4, 2003 Share Posted November 4, 2003 Just downloaded contribution "newsbox_html" that allows to have a mainnews.php file by language. It is a simple hack of the catalog/mainnews.php that does a "require" of the proper language file. Didier. Quote Published modified Contributions Link to comment Share on other sites More sharing options...
HQ Secure Posted March 12, 2004 Share Posted March 12, 2004 URL: ..........//mainnews.phpI found the where the double slash is being created:In Catalog-includes-boxes- newsbox.php $info_box_contents[] = array('text' => '<iframe id="datamain" src=' . DIR_WS_CATALOG . '/' . FILENAME_MAINNEWS . ' width=130 height=150 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=1 scrolling=no></iframe>'); Remove the slash! DIR_WS_CATALOG. '/' .FILENAME_MAINNEWS [ Quote Link to comment Share on other sites More sharing options...
aidan Posted December 18, 2004 Share Posted December 18, 2004 Is there any way of getting the define_news file to point to mainnews.php file in the /catalog/ directory instead of /catalog/includes/languages/english/ directory? Home page reads from catalog/mainnews.php and in my admin section it edits the file in catalog/includes/languages/english/ directory. If I set the homepage to read from the file ..../english/mainnews.php I get an error in the news box saying 'Warning you do not have pemission to access catalog/includes/languages/english/mainnews.php Quote Link to comment Share on other sites More sharing options...
c_karsan Posted February 10, 2005 Share Posted February 10, 2005 Hi, I have installed this mod..and it looks great... However...I cant get it to work properly from the home page of my site. It displays the text in the box, but doesnt scroll..IE reports an error... Line 31 Char : 1 Error : Access is Denied Code : 0 URL: ..........//mainnews.php If I then click on *ANY* link on the page, it works with no problem, ie scrolling is perfect. Attributes for this file are set to 666. If I then click back to TOP, I get the same error again. Anyone got any ideas? Thanks Ady. <{POST_SNAPBACK}> HI have the same problem as quote above and also an intermittent problem with newsbox. The scroll is starting but abruptly stopping soon after and looping in this manner (jerking motion) - this looks worse than just not scrolling. Clicking on any link seems to solve both problems. also the homepage error seems to happen only if you type in the www.(url).com in the address bar, (no problem if typing in (url).com). try it! (site not yet live) gadgetsquick With www in link gadgetsquick Without www in link Is there a setting anywhere in the code (this happens in Firefox too so Im assuming its code/hosting related not browser). Or will this come good if I go live Im very new to osc, php & sql (<1week) but have somehow managed to install the following Newsbox Add2Favourites Back button product description Purchase without account Shop By Price Worldpay Additional Images Show Recent History Shown incase any known interference between these modules. Also anyone know how to disable the right mouse button on the site? Best Regards Chet Quote The sooner you fall behind, the more time you'll have to catch up. Link to comment Share on other sites More sharing options...
shelby72 Posted December 5, 2008 Share Posted December 5, 2008 I have installed this contribution and am having the following errors also with IE: It displays the text in the box, but doesn't scroll. Line 24 Char : 1 Error : Access is Denied Code : 0 URL: ........../mainnews.php How do I fix this? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.