vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Forum Home Enhancements - Last x Threads Marquee using External Data Provider (https://vborg.vbsupport.ru/showthread.php?t=228751)

cabledr 11-23-2009 10:00 PM

Last x Threads Marquee using External Data Provider
 
1 Attachment(s)
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 :
HTML Code:

{vb:raw navbar}
And below add :

HTML Code:

<!-- 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

HTML Code:

<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
Code:

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

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


All times are GMT. The time now is 10:12 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
  • Page Generation 0.01030 seconds
  • Memory Usage 1,738KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (3)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete