![]() |
Webprocafe.com - Latest posts in html site
1 Attachment(s)
If you are running a static site with vbulletin, this will pull the last 15 post titles from vbulletin using javascript and display the linked titles on your normal html site or any other page you want it to.. here it is working http://webprocafe.com/latest.html
Please feel free to adjust the styles and play with it how you like, but the result will be a list of your latest titles posted Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
this is nice..
can i add this code just under my domain.. not under forum.. i tried but itz not working but when i added like forum/text.html /// itz working.. :) |
Hello!
how and where adjust numbers of threads - i get 15 threads with names and 45 - named - undefined - reg macc |
Nice, thanks.
|
|
Nice, thanks!
|
Quote:
________ Lincoln Mkx History |
Installed mate, thanks
|
Quote:
Quote:
Code:
src="external.php?type=js"> Code:
src="/forums/external.php?type=js"> also, you need to change this Code:
document.writeln("<a href=\"showthread.php?t="+threads[x].threadid+"\">"+threads[x].title+"</a><br />"); Code:
document.writeln("<a href=\"forums\showthread.php?t="+threads[x].threadid+"\">"+threads[x].title+" </a><br />"); |
thanks,,
|
your welcome
|
Does this work on different domains?
|
it would, but you need to change the address in the javascript to the address you require
|
I done that but it didnt work.... Basically my site is www.xboxer360.com/forum and we just merged forums with www.gameshare.co.uk so I tryed to install that code on GameShare but it doesnt display any information?
|
because its javascript, you need to change the address to be javascript based.. i think this is it
change Code:
document.writeln("<a href=\"showthread.php?t="+threads[x].threadid+"\">"+threads[x].title+"</a><br />"); Code:
document.writeln("<a href=\"http:\/\/www.gameshare.co.uk\/showthread.php?t="+threads[x].threadid+"\">"+threads[x].title+"</a><br />"); if it dont work, i guess its not possible to do |
got an error now saying 'threads' is undefined
|
where is your rss feed located ?
|
I dont know if I have one?
|
you will have, but the question is, is it switched on, if you find it, it will look like this http://webprocafe.com/external.php.. i have re-written the url for that, you will have to either activate your or find it... the javascript wont work without it and having an rss feed is a good thing..
|
ok well I fixed it, thanks :) but the url's are wrong... the urls point to http://www.xboxer360.com/showthread.php?t=1889 and not http://www.xboxer360.com/forum/showthread.php?t=1889
|
try swapping it with this
Code:
document.writeln("<a href=\"http:\/\/www.xboxer360.com\/forum\/showthread.php?t="+threads[x].threadid+"\">"+threads[x].title+"</a><br />"); |
How can I have something like this with a URL of an RSS feed?
|
Java scripts do not content support the search engin
|
What about permissions - could this show posts to users that they would normally not see?
Like for example, I have a moderators forum that regular members don't know of, can't see and can't access. Would regular members see posts from that forum? |
Doesn't work for me.
|
thanks will try it out ;)
|
nice working thanks
|
All times are GMT. The time now is 06:25 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|