View Full Version : Newsfeed with Selector menu on vbAdvanced CMPS


tomshawk
27th October 2004, 09:20 AM
Hello Everyone

This little mod, is great if you want to incorporate news feeds into the vbAdvanced homepage

There is the one Prerequisite: I use the freeware version of carp,
but, if you have another aggregator you can modify this mod to use your own ;)

Carp
http://www.geckotribe.com/rss/carp/

you can download the free version here:
http://www.geckotribe.com/rss/carp/docs/download.php

Install Instructions:
http://www.geckotribe.com/rss/carp/docs/install.php

within the zip file is an instruction.txt file that should explain everything.

Demo:
http://www.tech-unity.com

Update:

Updated the Instruction.txt file, to comment on the carp path, at the moment it points to mine, not yours, Sorry.

tomshawk
29th October 2004, 03:17 AM
Updated the instructions in the zip file, to comment on the carp path. ;)

Brian
24th June 2005, 12:26 AM
Hi Tom,

I'm not sure whether you do provide support for this Mod...? (That's what I scared to ask) Frankly speaking I've installed this Mod for quite numbers of weeks (From vBa), been trying hard to figure out by myself but just fail to do so.. Therefore I really wish you could help me out on this.

Any help are much appreciated.

Thanks in advance. :)

tomshawk
24th June 2005, 05:59 AM
Hi Tom,

I'm not sure whether you do provide support for this Mod...? (That's what I scared to ask) Frankly speaking I've installed this Mod for quite numbers of weeks (From vBa), been trying hard to figure out by myself but just fail to do so.. Therefore I really wish you could help me out on this.

Any help are much appreciated.

Thanks in advance. :)

I'd be happy to help Mr. Brian
Can I get a link to your site so I can see what you have, for starters?

Then, if you want, a temp admin account and temp ftp access.

I can try to walk you threw it here if that would be more comfortable ;)
Maybe, describe what errors you are getting ;)
Also, what version of vbAdvanced are you running?

Brian
24th June 2005, 09:59 AM
Thanks for your response tom,

Well, as you can see that the fee isn't working..

P.S: You've got a mail.

tomshawk
24th June 2005, 10:32 AM
Thanks for your response tom,

Well, as you can see that the fee isn't working..

P.S: You've got a mail.

Hello Brian,

Yes, it definately does not work

And its giving an error I have never seen before. I'm gonna have to do some reading, but...

Can you make me up a quick temp admin account and ftp account, so I can check a few things out.
Obviously PM it to me :p

I'm heading to bed now, but I will look into this tomorrow ;)

Take care for now

Brian
24th June 2005, 10:50 AM
Not sure whether there's anything wrong with my feed1.php

here's my code:

<html>
<body>
<div id="datacontainer" style="position:absolute;left:1px;top:10px;width:100%" onMouseover="scrollspeed=0" onMouseout="scrollspeed=cache">
<?php
require_once "/home/public_html/forums/carp/carp.php";
// Show 3 items
CarpConf('maxitems',10);
// surround the item link with a DIV
// CarpConf('bilink','<div style="background:#cccccc; width:210px; padding:2px; border:1px solid #333333;">');
// CarpConf('ailink','</div>');
// get rid of the underline under the links
// CarpConf('ilinkstyle','text-decoration:none');
// set the CSS classes of the channel and item links
CarpConf('clinkclass','h2');
CarpConf('ilinkclass','h3');
CarpConf('linktarget',1);
// Display it
CarpCacheShow('http://news.bbc.co.uk/sport1/hi/football/default.stm);
?>
<!-- END SCROLLER CONTENT -->
</div>
<script type="text/javascript">
/***********************************************
* IFRAME Scroller script- © Dynamic Drive DHTML code library (www.dynamicdrive.com (http://www.dynamicdrive.com))
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/
//Specify speed of scroll. Larger=faster (ie: 5)
var scrollspeed=cache=2
//Specify intial delay before scroller starts scrolling (in miliseconds):
var initialdelay=500
function initializeScroller(){
dataobj=document.all? document.all.datacontainer : document.getElementById("datacontainer")
dataobj.style.top="5px"
setTimeout("getdataheight()", initialdelay)
}
function getdataheight(){
thelength=dataobj.offsetHeight
if (thelength==0)
setTimeout("getdataheight()",10)
else
scrollDiv()
}
function scrollDiv(){
dataobj.style.top=parseInt(dataobj.style.top)-scrollspeed+"px"
if (parseInt(dataobj.style.top)<thelength*(-1))
dataobj.style.top="5px"
setTimeout("scrollDiv()",40)
}
if (window.addEventListener)
window.addEventListener("load", initializeScroller, false)
else if (window.attachEvent)
window.attachEvent("onload", initializeScroller)
else
window.onload=initializeScroller
</script>
</body>
</html>

tomshawk
25th June 2005, 12:27 AM
I think this may be the problem!


require_once "/home/public_html/forums/carp/carp.php";

double check that path, as the domain name is usually in there as well, like this

require_once "/home/techunit/public_html/forums/carp/carp.php";

This is the path I would have set on my site, if I had carp under the forums folder like you do.

Brian
25th June 2005, 09:43 AM
Did you receive my PM?

tomshawk
25th June 2005, 05:02 PM
Did you receive my PM?

Yes, I got your PM

I fixed the feeds problem, the first 3 are now working ;)
You have not created files for the other 2 yet ;)

For the future, when you dont know your forums path, I uploaded a utility to your site so you can find out what it is. ;)

You can run it and see that path with this link
http://www.soccermamak.com/forumpath.php

I also uploaded a quick carp test file you may want to delete
http://www.soccermamak.com/brian.php

Take care and enjoy ;)

Brian
26th June 2005, 06:00 PM
Cool.. Thanks a lot bro. :)