Jump to content
Sign in to follow this  
dappamobiles

NewsBox Mod Update

Recommended Posts

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

Share this post


Link to post
Share on other sites

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??

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites
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 by Davey-D

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites
URL: ..........//mainnews.php
I 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

 

[

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites
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.

 

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


The sooner you fall behind, the more time you'll have to catch up.

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×