Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Last x Threads Marquee using External Data Provider Details »»
Last x Threads Marquee using External Data Provider
Version: 1.00, by cabledr cabledr is offline
Developer Last Online: Oct 2014 Show Printable Version Email this Page

Category: Forum Home Enhancements - Version: 4.0.0 Beta 3 Rating:
Released: 11-23-2009 Last Update: Never Installs: 23
Template Edits
Re-useable Code Translations  
No support by the author.

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
hazem_aliraqi

Comments
  #12  
Old 11-26-2009, 11:32 AM
maximutt maximutt is offline
 
Join Date: Nov 2007
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by cabledr View Post
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.
Reply With Quote
  #13  
Old 11-26-2009, 11:39 AM
cabledr cabledr is offline
 
Join Date: Feb 2008
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well thanks for sharing thats my mod finished i guess
Reply With Quote
  #14  
Old 11-26-2009, 12:10 PM
maximutt maximutt is offline
 
Join Date: Nov 2007
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #15  
Old 11-26-2009, 12:15 PM
cabledr cabledr is offline
 
Join Date: Feb 2008
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #16  
Old 11-26-2009, 12:20 PM
maximutt maximutt is offline
 
Join Date: Nov 2007
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #17  
Old 12-08-2009, 11:12 AM
parveznpt parveznpt is offline
 
Join Date: Jul 2009
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks......... for this mod


www.shiaforums.com
Reply With Quote
  #18  
Old 12-13-2009, 05:24 PM
alfanni alfanni is offline
 
Join Date: Oct 2009
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

It would be nice of you to mention aisais and thank him for sharing with us his code.
Reply With Quote
  #19  
Old 12-20-2009, 12:13 AM
sa3sa3 sa3sa3 is offline
 
Join Date: Dec 2009
Location: Saudi Arabia
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 ?
Reply With Quote
  #20  
Old 01-29-2010, 06:46 PM
kofoid kofoid is offline
 
Join Date: Dec 2005
Location: Colorado
Posts: 291
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am getting the same thing - it only shows "latest posts"

Any tips?
Reply With Quote
  #21  
Old 02-01-2010, 01:16 PM
starman? starman? is offline
 
Join Date: Apr 2008
Posts: 181
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Your forums have to be viewable to guests/unregistered users.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:40 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04879 seconds
  • Memory Usage 2,326KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (3)bbcode_html
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (1)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete