Log in

View Full Version : Forum Home Enhancements - Last x Threads Marquee using External Data Provider


cabledr
11-23-2009, 10:00 PM
How to install:

First you have to activate External Source Provider.

Go to: Admin Control Panel > vBulletin Options > External Data Provider:
and choose JavaScript ( first choice ).

And i set the follow as below but not sure this has to be done

Thread Cutoff - 1

Thread Cache Lifespan - 1

Maximum External Records -15

Then on forumhome template find :

{vb:raw navbar}

And below add :

<!-- last x active threads -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
<tr>
<td class="tcat" colspan="2"><center>Latest Posts</center> </td>
</tr>
</thead>
<tr>

<!--Messages-->
<td class="alt2">
<marquee direction="left" scrollamount="6" onmouseover="this.scrollAmount=0" onmouseout="this.scrollAmount=6"><font size="2"><b>


<script type="text/javascript" src="http://www.your domain.co.uk/external.php?&type=js"></script>
<script language="" type="text/javascript">
<!--
for (x = 0; x < 5; x++)
{
document.writeln("*<a href=http://www.your domain.co.uk/showthread.php?t="+threads[x].threadid+">"+threads[x].title+"</a>&nbsp");
}
//-->
</script>





</b></font></marquee>

<!--/Messages-->
</td>
</tr>

</tr>
</table>
<br />
<!-- last x active threads -->

If you want welcome newest member below this add

<center><marquee behavior=slide width=25%:> <p>{vb:rawphrase welcome_to_our_newest_member_x, {vb:link member, {vb:raw newuserinfo}}, {vb:raw newuserinfo.username}}<p></marquee></center>

Directly below <!-- last x active threads -->

Remember to change your domain name to your one

I will be adding the code to select different forums today

example can be seen on test forum http://gadsx.co.uk/cj/forum.php

Kolbi
11-24-2009, 09:31 AM
Thank you!

Tagged!

SİMAR
11-24-2009, 09:28 PM
Thanks

fourat
11-25-2009, 06:14 AM
Nice .. thank you
Can we add last post user name ?

cabledr
11-25-2009, 09:13 AM
At the moment im still elarning the code if any one knows the variable to calll it i should be able to add it easy enough

Dr.osamA
11-25-2009, 07:32 PM
thxxx man

installed
________
BMW 327 (http://www.bmw-tech.org/wiki/BMW_327)

elwachiman
11-26-2009, 02:44 AM
thnks for this mod

maximutt
11-26-2009, 09:45 AM
Do you know if it's possible to change the default usergroup of the External Data Provider? By default, it is set to pull RSS feeds only from forums that are open to the public or unregistered users.

I'd like to be able to change the permissions of the RSS feed to a different usergroup that is available to registered users only.

Thanks so much. This mod looks great!

cabledr
11-26-2009, 10:38 AM
Not 100% sure but im sure you could add an <if> condition to say if in a certain group show <!-- last x active threads -->

i will have a look at this for you once i have finished working on my latest project :)

abdobasha2004
11-26-2009, 11:26 AM
this will be handy for the vbulletin cms suite

maximutt
11-26-2009, 11:32 AM
Not 100% sure but im sure you could add an <if> condition to say if in a certain group show <!-- last x active threads -->

i will have a look at this for you once i have finished working on my latest project :)

Oh hey! I found this old plugin which lets you set the usergroup of the External Data Provider in the AdminCP and it still works for vB4:

https://vborg.vbsupport.ru/showthread.php?t=127062

This should be standard in vB. Not sure why it isn't.

cabledr
11-26-2009, 11:39 AM
Well thanks for sharing thats my mod finished i guess :)

maximutt
11-26-2009, 12:10 PM
Haha, well there you go! On to the next one.

btw, someone's gotta tackle integrating InfernoShout Pro into vB4 as those guys went out of business and no longer support the product. I see on your site, you have it installed but it doesn't work to well. Yet. Hint! Hint! :)

cabledr
11-26-2009, 12:15 PM
The archive / detach wont work but thats not to hard also i cant releases it as i can not get hold of inferno for permissions to release it im currently working on my own shout box but not sure when / if i will release yet depends on success

maximutt
11-26-2009, 12:20 PM
I will see if I can help track down someone from Inferno next time I'm online.

Regardless, good luck on your own shoutbox! Looking forward to it! :)

parveznpt
12-08-2009, 11:12 AM
Thanks......... for this mod


www.shiaforums.com

alfanni
12-13-2009, 05:24 PM
I think decent coders protects the rights of other coders.
This mode is totally based on this mod: Last x Threads Marquee using External Data Provider (https://vborg.vbsupport.ru/showthread.php?t=185223)

It would be nice of you to mention aisais (https://vborg.vbsupport.ru/member.php?u=100761) and thank him for sharing with us his code.

sa3sa3
12-20-2009, 12:13 AM
Thanks. But, it is not working with me ??

I did the changes in both "the external data provider and in forumhome"
all what I get is the word "Latest Posts" only !

Any help ?

kofoid
01-29-2010, 06:46 PM
I am getting the same thing - it only shows "latest posts"

Any tips?

starman?
02-01-2010, 01:16 PM
Your forums have to be viewable to guests/unregistered users.

xug
02-03-2010, 01:40 AM
demo site suspended :)

Cableguy69
02-06-2010, 06:45 AM
You need to have these options enabled.

https://vborg.vbsupport.ru/attachment.php?attachmentid=109463&stc=1&d=1262951462

Thanks to MARCO1 for the image. https://vborg.vbsupport.ru/

alghazali
09-07-2010, 04:57 AM
Unfortunately, it does not work for me; I wonder, could it be cuz I am using 4.0.6 - though I doubt it. I am also getting the Last Posts, still.

Sulaiti
09-11-2010, 03:40 AM
Thanks

Small modification



<!-- last x active threads -->
<div id="wgo" class="collapse wgo_block">
<h2>
<span>Latest Posts</span>
</h2>
<!--Messages-->
<div id="wgo_legend" class="wgo_subblock">
<marquee direction="right" scrollamount="6" onmouseover="this.scrollAmount=0" onmouseout="this.scrollAmount=6"><b>
<script type="text/javascript" src="http://www.your domain.com/forum/external.php?&type=js"></script>
<script language="" type="text/javascript">
<!--
for (x = 0; x < 5; x++)
{
document.writeln("*<a href=http://www.your domain.com/forum/showthread.php?t="+threads[x].threadid+">"+threads[x].title+"</a>&nbsp");
}
//-->
</script>
</b></marquee>
</div>
<!--/Messages-->
</div>
<br />
<!-- last x active threads -->



Regards,

Harley D
10-24-2010, 02:13 AM
Nice update Sulaiti
works great, looks great.

p@ndu
02-25-2011, 08:57 AM
not working in my forum i did same as it said i am using 4.1.2

COL NIL SATIS
02-26-2011, 03:15 PM
any screenshots??

ahlynews
03-16-2011, 11:17 AM
doesn't work on 4.1.2 any updates ?

blowy
06-04-2011, 08:23 PM
it sohlud do as I have it working on vb4.1.3

the link has now changed to

www.gadsx.co.uk

insaneoz
06-04-2011, 09:12 PM
Demo isn't working.

Reycer
07-14-2011, 03:53 PM
If anyone is wondering it works fine in 4.1.4

Merenguista
07-14-2011, 06:24 PM
thanks

baghdad4ever
07-14-2011, 08:19 PM
is this cause server load in big forum?

8thos
07-26-2011, 05:41 AM
It works well.

hazem_aliraqi
08-30-2011, 07:13 AM
thank u

cabledr
10-26-2011, 02:01 PM
sorry i havent been around been extremly busy with other bits :)