PDA

View Full Version : scrolling news block addon for vbAdvanced


tomshawk
12 Jan 2004, 23:50
Updated Instruction file: The block now looks like the rest of the homepage and not just a box.

Updated Instruction file for changing newsfeed from rss to JavaScript

Thank you SnowBot for helping me figure out I forgot to do that ;)

This is an addon for vbAdvanced, I dont see a board for portal add-ons, so I hope this will do.

This is a scrolling moreover newsfeed center block for your homepage

This hack was Originally conceived by cadalist for vbPortal
http://www.vbportal.com/forums/showthread.php?s=&threadid=7954 (http://www.vbportal.com/forums/showthread.php?s=&threadid=7954), (sorry only premium members of vbPortal can visit it)

I've tryed to contact cadalist, but it appears he does not visit vbPortal anymore At least according to managment there, also his site does not exist anymore globaltronix.com (http://globaltronix.com/) At least it did not at the time of posting this.

It has been adapted to work with vbAdvanced by me, Tomshawk
First thing you need to do, if you want to use this

Go here (http://w.moreover.com/) and sign up for an account, otherwise you will be breaking moreover copyright, (It's worth it to give your users the content though)

Instructions in the zip file

screenshot: Sorry kind of hard to screenshot something scrolling http://www.vbulletin.nl/community/images/smilies/tongue.gif

Demo: See it in action here http://www.tomshawk.com (http://www.tomshawk.com/)

I hope you like

Xenon
13 Jan 2004, 00:18
*moved into addon section*

tomshawk
13 Jan 2004, 00:31
*moved into addon section*
Thank you Xenon, I was not sure ;)

SnowBot
13 Jan 2004, 01:35
Great adition to a great portal :) top work Tony, THANKS

/me installs

tomshawk
13 Jan 2004, 01:37
Great adition to a great portal :) top work Tony, THANKS

* SnowBot installsIt's Tom, and Your quite Welcome :D I'm glad you like it

SnowBot
13 Jan 2004, 02:19
It's Tom, and Your quite Welcome :D I'm glad you like it
hehehe :) yer i knew that, its 3.20am and i guess the old brain isnt working to good.

BTW can this be put on another vb page like forumhome ?

tomshawk
13 Jan 2004, 02:29
hehehe :) yer i knew that, its 3.20am and i guess the old brain isnt working to good.

BTW can this be put on another vb page like forumhome ?
I wouldn't want to say for sure without testing it first, but at first glance, I'd say yes.

I'd recommend putting the



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



from step 5

above

<! --main-->

in the forumhome template

SnowBot
13 Jan 2004, 05:49
I tried changing the URL for another feen but cant seemto solve it.

this is the feed id like but when i put that in the template nothing happens
http://p.moreover.com/cgi-local/page?c=Jokes&o=rss (http://p.moreover.com/cgi-local/page?c=Jokes&o=rss)

The one you have works fine, i noticed that your url / rss does not have the =rss

tomshawk
13 Jan 2004, 07:03
I tried changing the URL for another feen but cant seemto solve it.

this is the feed id like but when i put that in the template nothing happens
http://p.moreover.com/cgi-local/page?c=Jokes&o=rss (http://p.moreover.com/cgi-local/page?c=Jokes&o=rss)

The one you have works fine, i noticed that your url / rss does not have the =rss
Good catch SnowBot

Take your link

http://p.moreover.com/cgi-local/page?c=Jokes&o=rss

remove the "rss" at the end and replace it with "js"

The first time you place the link it needs to end with "&n=20" 20 being the number of headlines you want it to scroll through

the second time you place it, it should just end in "js"

So, the first time it should look like this

http://p.moreover.com/cgi-local/page?c=Jokes&o=js&n=20

The second time, it should look like this

http://p.moreover.com/cgi-local/page?c=Jokes&o=js

Thank you, It's kind of late, I'll update the instruction file tomorrow

Thank you

SnowBot
13 Jan 2004, 07:36
Thats great :0 all working, nice addition to a great portal

TOP Work

SnowBot
13 Jan 2004, 12:31
Is there a way to add another to the Custom Block 1 template ?

tomshawk
13 Jan 2004, 13:50
Is there a way to add another to the Custom Block 1 template ?
Snowbot, If there is, I dont know, I'll play with it, though getting the alignment right is going to be difficult

Updated instruction file from rss to JS feeds mistake, Thank you SnowBot

tomshawk
13 Jan 2004, 14:24
Question, why is it on this forum, it does not state the times installed, and it does not show the (install / uninstall) button?

wolfman
13 Jan 2004, 21:45
Is this ment to work only with http://w.moreover.com/ or is there another source that can be used?

tomshawk
14 Jan 2004, 02:28
Is this ment to work only with http://w.moreover.com/ or is there another source that can be used?
Sorry, I tryed another source, and it did not work

jluerken
14 Jan 2004, 06:59
I have an general news forum where my admins can post information for all users. It would be nice if this hack can be changed the way that its scrolling the posts from this forum instead of news from an .rss file.

Is this possible for you tomshawk?

tomshawk
14 Jan 2004, 07:20
I have an general news forum where my admins can post information for all users. It would be nice if this hack can be changed the way that its scrolling the posts from this forum instead of news from an .rss file.

Is this possible for you tomshawk?
Sorry, No, I've tryed it, It does not work! :(

The Quibbler
15 Jan 2004, 00:12
What about .rdf files?

tomshawk
15 Jan 2004, 00:36
What about .rdf files?
I'm pretty sure it will only work with JS files from moreover.com

but I'll look into it ;)

Princeton
17 Jan 2004, 15:44
the javascript news feed from moreover is a bit slow ... it makes your site download "slow". If something goes wrong with the connection to moreover ... your site will take ages to load. If this happens you will loose readers/members.

I recommend you use rss/xml feeds. Unlike, js feeds the "news info" can be serialized/parsed and saved within your server. Thus, retrieving information will be much faster.

A few suggestions regarding your site...
I take it from it's placement you hold "Silicon Valley News" news of high priority as it is the first thing people see. If you want more emphasis on your own content than I suggest moving the block to the side or get rid of it.

tomshawk
17 Jan 2004, 16:03
the javascript news feed from moreover is a bit slow ... it makes your site download "slow". If something goes wrong with the connection to moreover ... your site will take ages to load. If this happens you will loose readers/members.

I recommend you use rss/xml feeds. Unlike, js feeds the "news info" can be serialized/parsed and saved within your server. Thus, retrieving information will be much faster.

A few suggestions regarding your site...
I take it from it's placement you hold "Silicon Valley News" news of high priority as it is the first thing people see. If you want more emphasis on your own content than I suggest moving the block to the side or get rid of it.
Thank you for your comments.

1) I have tryed the rss feeds with no luck in this script

2) Nobody has released a hack for either rss or XML of these yet. People have released Output hacks, Actually the External.php will do it, but none to import from said file.

3) I dont know how to change the format to a side block, as it would look really bad with the text wrapping down the page over and over 3 or 4 times, so the placement is needed, though I was thinking of moving it below the newsbits taking it to the bottom of the page.

If you know how to adjust this file or make a rss import feed, please post it, as I want it for a few things ;)

Take care and have a good day

tomshawk
19 Jan 2004, 05:31
Updated Instruction file: The block now looks like the rest of the homepage and not just a box. ;)

rinkrat
19 Jan 2004, 05:52
Works great as a side block!
http://www.letsgokings.com

tomshawk
19 Jan 2004, 05:56
Works great as a side block!
http://www.letsgokings.com (http://www.letsgokings.com/)kewl, did you have to change anything?

I could have sworn I tryed it, and it didn't look right all wrapped around ;)

eitherway, nice mod :p

Nevermind

I figured it out

for new installations or updating old installations, do the install as shown in the first post, then follow these instructions below if you'd rather have it as a side block

Open index_moreover

Find this:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



replace with:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



still in index_moreover

Find this:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Replace with this:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



In the index template

Find the "$moreover" call

cut it from above the "$newsbits" call and paste it in the side tables where ever you feel comfortable I pasted it under custom2 for example

Symbian.info
13 Mar 2004, 20:22
for new installations or updating old installations, do the install as shown in the first post, then follow these instructions below if you'd rather have it as a side block

cut it from above the "$newsbits" call and paste it in the side tables where ever you feel comfortable I pasted it under custom2 for example

De side blok is not ok (way to big, same size as middel blocks. any updates on this becasue Tomshawk use something else on his site!

tomshawk
13 Mar 2004, 21:42
De side blok is not ok (way to big, same size as middel blocks. any updates on this becasue Tomshawk use something else on his site!
Yes, I removed the block because it was slowing down my homepage to much.

but it still works.

Do you have a link to your forums so I can possibly help you out with it. ;)

Symbian.info
13 Mar 2004, 21:49
Yes, I removed the block because it was slowing down my homepage to much.

but it still works.

Do you have a link to your forums so I can possibly help you out with it. ;)
www.pdatotaal.info


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


That are fixed width. so thats no good..
Also why this link?:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


You can't open that..

I del that line and put it put in de midde

But what system do you use now?? That side block looks nice!

tomshawk
14 Mar 2004, 07:15
www.pdatotaal.info (http://www.pdatotaal.info/)


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

that is actually part of the code snippet direct from the gentlemen at vbportal where I got the original hack. I'd put that part back in if you removed it.




Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


You can't open that..

I del that line and put it put in de midde

But what system do you use now?? That side block looks nice!
That line is the one pulling the info from moreover, you can change it with a link from here http://w.moreover.com/categories/category_list_rss.html which is in the instructions file, but you need something there otherwise it will be blank ;) Like it is now

I changed over to carp http://www.mouken.com/rss/ for speed and this system doesn't have a problem with rss or XML. which most people use more frequently.

Good luck

PennylessZ28
25 Nov 2004, 07:07
I got it installed as a module in vbAdvanced CMPS

However, how can I make it scroll continously up instead of it poping up one item at a time?

Oh, mine is here www.hr3rdgen.org