View Full Version : vB-marquee - scrolling "recent threads" for non-vb page
jcroft
02-26-2002, 10:00 PM
Ok, this is my first, and only "hack" (although it's really more of an add-on). It's VERY simple and may not even be worth releasing here, but I thought some people might be able to make use of it.
It is losley based on the Taskbar Ticker by wluke, so props to him.
It provides a scrolling marquee of your most recent threads on a non-vb page. You can easily include this file on your home page, or whereever you need the most recent threads listed.
As it uses the "marquee" tag, it only works in IE. Netscape users will see the list of threads, but it will not scroll.
To install: simply download the attached zip, and place the one file in your vB directory. Configure the variables to your liking, and include the file wherever you wish.
Online demo: http://forums.newbeetle.org/marquee.php
I'd love to hear comments, suggestions, and/or see your modifications to this script. Thanks!
Jeff
www.newbeetle.org
fonzerelli_79
02-27-2002, 09:40 PM
top hack mate
you can see what it looks like at http://www.manutdchat.com/content_for_your_site.php
im using an iframe though
i know you use the tag target="_blank" or target="new" in html but im not sure how to implement this in marquee.php so that when someone clicks on the link, a new window appears with the forum
jcroft
02-27-2002, 09:58 PM
Great! I'm so glad that someone made use of it. Using it in an IFRAM and letting people pull from your fedd is a GREAT idea. I might do that myself... :D
Try this in marquee.php for the target attribute...
On the lines with the links, look for the "href." Just BEFORE "href", type this:
target=\"_blank\"
Make sure you leave a space between the end of your taget attribute and the begining of the href.
Let me know if you need more detailed help...
Jeff
jcroft
02-27-2002, 10:33 PM
I went ahead and used fonzerelli's idea for my site, as well. This is a great idea!
Check it out: http://newbeetle.org/misc/today.php
Reeve of shinra
02-27-2002, 11:16 PM
just to let you know, ... there is a flash version of the newsfader which might make this work better with users using netsuck
Psychdrone
02-28-2002, 12:12 AM
Originally posted by Reeve of shinra
just to let you know, ... there is a flash version of the newsfader which might make this work better with users using netsuck
really show us;)
ZiRu$
02-28-2002, 12:42 AM
great idea and looks nice but i dont need it :)
Gamingforce
02-28-2002, 01:44 AM
Awesome job! I'm using it with the iframe method. I have a page up so anyone can easily include the code into their own site. Check it out:
http://www.gamingforce.com/forums/gffinclude.php
Thanks a bunch!
lordofgun
02-28-2002, 03:17 AM
:up: EXCELLENT! It's on my site www.billsinsider.com getting 4 million hits per month, so you're famous now! :D
Question: Can something similar be done for a news feature. For example, we could post some news on the message boards, and have it show up on a non-vb page in a similar style, but without the scroll? is there already a hack like that?
fonzerelli_79
02-28-2002, 08:00 AM
thanks jcroft - im at the computers at uni but ill sort it when i get home
once again, top hack mate!!
Lesane
02-28-2002, 09:46 AM
Nice Hack, Thanks :up:
ok ive installed today the only problem is that i have an invisble moderators forum, and ive asked some of my trusted users and they say they can still see these threads , obviously they cant read the actual threads , but they can still see the topics, access masks are on, and the forum is hidden from them , am i missing something as regards to the marquee config,
its not a major problem in that the users cant read the threads but the titles of some of the mods threads are enough to make you shudder :) so any advice would be appreciated :)
The Realist
02-28-2002, 12:32 PM
Same here, anyone know the answer!
Originally posted by xcal
ok ive installed today the only problem is that i have an invisble moderators forum, and ive asked some of my trusted users and they say they can still see these threads , obviously they cant read the actual threads , but they can still see the topics, access masks are on, and the forum is hidden from them , am i missing something as regards to the marquee config,
its not a major problem in that the users cant read the threads but the titles of some of the mods threads are enough to make you shudder :) so any advice would be appreciated :)
ok temporary fix
find this code in marquee.php
$latestposts = $DB_site->query("
SELECT threadid, forumid, title, replycount, lastposter, postuserid, postusername
FROM thread
ORDER BY lastpost
DESC LIMIT $number_threads"
change this line
FROM thread
to
FROM thread WHERE forumid !='8'
changing the value 8 for the forum you dont want to include, it seems to work for me, but is obviously not the best fix :)
fonzerelli_79
02-28-2002, 06:49 PM
got the tarket = blank working
cheers jcroft
fonzerelli_79
02-28-2002, 08:59 PM
thanks for that xcal, i noticed that too
ive got more than one forum i need to hide though
i used this
FROM thread WHERE forumid !='16' and forumid !='25' and forumid !='27'
im just learning sql so if theres a shorter way of doing this then please let me know - this method works though :)
lordofgun
03-02-2002, 11:59 PM
INCREDIBLE HACK! This hack has gotten my visitors' attention!!!
before i installed this recently, we averaged anywhere from 50-75 guests on our boards at once. THAT NUMBER HAS MORE THAN TRIPLED thanks to thyis hack!!! JUST AWESOME! our registration rate has also sped up significantly!
THANKS!
Mohamed
03-03-2002, 01:28 AM
nice work man :pleased: :greedy:
lordofgun
03-13-2002, 03:32 AM
QUESTION: How do i get this to refresh automatically every couple of minutes?
Thanks!
Abbas
03-25-2002, 08:56 AM
One problem I'm facing is that I've implemented this on my home page and at times, if a user doesnt go to the forums- just the home page, even then all threads are marked as already read. Any way to not make it think that you're on the forums?
http://www.tbreak.com
Thanks
Abbas
Mathiau
03-27-2002, 05:33 AM
great work m8, will likely use this for our site.
talon3dhq
03-29-2002, 01:56 AM
Great work!! Installed and looking good at www.3dhq.net
jjj0923
04-03-2002, 01:05 AM
do I just use $marquee to get it to display???
I don;t think so because that does not work....
HOW DO i GET THIS TO WORK?????
- jeff
great hack ;) but it works only in IE, right?
jjj0923
04-03-2002, 07:30 PM
many thanks to the fonz for heling me get this thing running using iframes, however my problem now is that the content of my clicks shows up in the iframe itself. how do I get it to show up in the parent window. I've tried using target="_parent", but to no avail.
- jeff
jarvis
04-04-2002, 02:23 AM
Awesome, awesome, awesome!!
Got it up and running at www.mhogaming.com!!
Thanks!!!!!!!! :)
NSeXcellent
04-06-2002, 03:48 AM
I cannot get the background of my iframe to change from white.. any clue what i'm doing wrong? Thats not the background of the marquee.. i mean the actual iframe that the marquee is embedded in... here's what I mean... http://www.sportsnimports.com/forums/marquis/index2.html
Also, what would I add to marquee in order for the links to conform to the stylesheet for the rest of the page?
Gutspiller
04-15-2002, 05:21 AM
Originally posted by fonzerelli_79
thanks for that xcal, i noticed that too
ive got more than one forum i need to hide though
i used this
FROM thread WHERE forumid !='16' and forumid !='25' and forumid !='27'
im just learning sql so if theres a shorter way of doing this then please let me know - this method works though :)
I used that modification to the hack and it works on blocking out some forums, but my test/spam forum still seems to be showing up. What gives? I have double checked my forum id's are correct and they all check out.
Any other ideas?
Thanks for any help.
jjj0923
04-15-2002, 11:18 AM
I've got this thing running great. I open it up in a little javascript window and using javascript allow people to click on link that change the display of the parent (forum) window that started it.
It's cool. I wish I could demonstrate it, but I added code that only allows forum member to view it, not visitors.
- jeff
Ninth Dimension
12-03-2002, 09:20 AM
Fantastic hack, I've taken it and messed about with it a little to suit my own needs, let me know what you think: http://savepoint.co.uk/webmaster.php
jjj0923
12-03-2002, 09:26 AM
I did some tricky things with it in the javascript like changing the contents of the window that instantiated it when someone clicks on a link inside the scrolling window....
- jeff
Ninth Dimension
12-03-2002, 09:33 AM
Originally posted by jjj0923
I did some tricky things with it in the javascript like changing the contents of the window that instantiated it when someone clicks on a link inside the scrolling window....
- jeff that sounds cool, i'm happy with what I've got so far, I've even got someone using it already :) http://www.fuchsiashockz.co.uk/index2.shtml
I really want this hack :( I even found out about it elsewhere and emailed jcroft but haven't heard back yet.
Anyway, I have tried installing it but am having some problems little no-php me can't deal with...
I had to change the line that calls global.php because my forums files are stored under a forums sub-dir. So I had it changed to -
require ('http://www.thecatsite.com/forums/global.php');
Now I can see the marquee but what scrolls there is an error message that says -
Fatal error: Call to a member function on a non-object in /home/www/thecatsite/marquee.php on line 72
Anyone has a solution???
I'm using 2.2.9 btw
PurpleCow
08-05-2003, 11:05 AM
Anyone got this working on 2.3.0 ?? I'd also be ineterested to use this hack !
Thank you
Oblivion Knight
08-05-2003, 01:56 PM
Today at 01:05 PM PurpleCow said this in Post #34 (https://vborg.vbsupport.ru/showthread.php?postid=423377#post423377)
Anyone got this working on 2.3.0 ?? I'd also be ineterested to use this hack !
Thank you It works fine as it is with 2.3.0 :)
I tried it out, but unfortunately it made my homepage look far too cluttered, no matter how much I customised the layout.
PurpleCow
08-06-2003, 04:38 AM
Okay, isn't it possible to use this hack to syndicate threads on third party sites.
If, yes, how to do it?
Also, what code should i use to include the marquee on my html page ??
Thank you
Are there any PHP/VB gurus around that can maybe help me with the bug? I can't get it to work properly... :(
Oblivion Knight
08-06-2003, 10:45 AM
Today at 06:38 AM PurpleCow said this in Post #36 (https://vborg.vbsupport.ru/showthread.php?postid=423685#post423685)
Okay, isn't it possible to use this hack to syndicate threads on third party sites.
If, yes, how to do it?
Also, what code should i use to include the marquee on my html page ??
Thank you
If you're calling this on a html page, your extension MUST be .shtm or .shtml.
Assuming you've uploaded marquee.php to the forums root, you'd use something similar to this code where you wanted to place it in your html page:
<!--#include file="forums/marquee.php"-->
Today at 08:45 AM Anat said this in Post #37 (https://vborg.vbsupport.ru/showthread.php?postid=423700#post423700)
Are there any PHP/VB gurus around that can maybe help me with the bug? I can't get it to work properly... :( A simple solution would be to upload marquee.php to the same directory as your forums root (where the required global.php is also located), and then to call the script from there..
Thanks Knight, but it's still not working. I uploaded the script to the forums directory and it's working fine there. Then I used the following code in my page (it's a PHP page anyway) -
<?php include ("forums/marquee.php");?>
So this is what it comes out like - www.thecatsite.com/index.php
Still the same error message. It does make some sense I think - I know very little PHP but from what I see the include simply copies and pastes the text found in that other file...
Ok problem fixed using iframe - I guess it doesn't work another way.
The scrips generates an error message on VB3 - anyone has a solution/upgrade?
ElecMoHwk
11-10-2004, 04:50 AM
I'm working on an update to it :) I'll pass it to you folks over there when I've got it done Anat.
sjenkins
11-18-2004, 08:33 AM
I'm a real newbie so could someone please help me. I put Marquee.php in the root directory but then what ? Do I have to add code somewhere ?
Nothing looks different...
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.