The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Latest Threads on Forumhome with Ajax.
I am trying to add Ajax to Chris M's Latest Threads on Forumhome plugin because i found this is a great add on for forumhome. My problem i am not a coder at all maybe i can call myself as a beginner :smoke:
I've read a lot of tutorials about Ajax and here is the part which i am stuck at. The threadbits i am trying to get is a plugin and i need a php to recall the data. Is there a way to skip this part ? Code:
<script language="JavaScript" type="text/javascript"> var sendReq = getXmlHttpRequestObject(); var receiveReq = getXmlHttpRequestObject(); var lastMessage = 0; var mTimer; //Function for initializating the page. function startthreads() { document.getElementById('threadbits').focus(); getthreadbits(); } function getXmlHttpRequestObject() { if (window.XMLHttpRequest) { return new XMLHttpRequest(); } else if(window.ActiveXObject) { return new ActiveXObject("Microsoft.XMLHTTP"); } else { document.getElementById('p_status').innerHTML = 'Status: Cound not create XmlHttpRequest Object. Consider upgrading your browser.'; } } //Gets the current messages from the server function getthreadbits() { if (receiveReq.readyState == 4 || receiveReq.readyState == 0) { receiveReq.open("GET", 'whatinhere' + lastthread, true); receiveReq.onreadystatechange = handleReceivethreads; receiveReq.send(null); } }</script> Help will be really appriciated. |
#2
|
||||
|
||||
Any update on this modification? I'm very interested to hear more about this
|
#3
|
|||
|
|||
any news on this ?!
|
#4
|
|||
|
|||
want!
|
#5
|
|||
|
|||
ok, this should work
install https://vborg.vbsupport.ru/showthread.php?t=83230 Add a new plugin in global_start PHP Code:
Add a new plugin in ajax_start PHP Code:
HTML Code:
$threadbits HTML Code:
<div id="latest">$threadbits</div> HTML Code:
$vbphrase[latest_threads] HTML Code:
$vbphrase[latest_threads] [<a href="#collapseimg_forumhome_latestthreads" onclick="getlatest();">Reload Latest Threads</a>] |
#6
|
|||
|
|||
Is it possible to include the function in the Hack "Cyb - Forumstatistics" ?
|
#7
|
||||
|
||||
Can anyone confirm if this works?
I'm looking for a small Ajax latest threads ticker to place alongside the chatbox. Any ideas? |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|