The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
No idea how to use this in php..
Hi,
on our site we´ve got this Newsserver-script installed. Now I have a problem: I would like to include a function and I have no glue how to do that. Í´m just at the very beginning of working with php.files so may be someone could assist me with this? The hack I´m talking about is this one: <a href="https://vborg.vbsupport.ru/showthread.php?s=&threadid=37888&perpage=15&displa y=&pagenumber=1" target="_blank">https://vborg.vbsupport.ru/showt...=&pagenumber=1</a> gateway.php has to be run in your browser everytime you want to synchronize posts with the newsserver. (BTW: I have to do this with Opera or Netscape cause MSIE always wants to <i>download</i> gateway.php instead of executing the file..) As someone mentioned you could use opera and the built-in refresh-option or do it seperatly in a html-file like this <div style="margin:5px 10px"> <div class="smallfont" style="margin-bottom:2px">Code:</div> <pre class="alt2" dir="ltr" style=" margin: 0px; margin-top: 5px; padding: 4px; border: 1px inset; width: 650px; height: 338px; text-align: left; overflow: auto"><html><head><meta http-equiv="Content-Type" content="text/html; charset=windows-1252"><meta name="GENERATOR" content="Microsoft FrontPage 4.0"><meta name="ProgId" content="FrontPage.Editor.Document"><meta HTTP-EQUIV="Refresh" CONTENT="900"><meta NAME="Robots" CONTENT="NOINDEX,NOFOLLOW"><title>Iframe Newsgroup Synchronizer</title></head><body>Iframe Newsgroup-Synchronizer<iframe src="http://www.yourdomain.com/forums/gateway.php" width="100%" height="400" name="gateway.php in a box"><p>Ihr Browser kann leider keine eingebetteten Frames anzeigen:Sie können die eingebettete Seite über den folgenden Verweisaufrufen: <a href="http://www.yourdomain.com/forums/gateway.php">manuelle Newsserver-Abfrage</a></p></iframe></body></html></pre></div>or you could include a hidden link to the newsgroups forum (thanks for the idea firewars) which would cause a reload of the gateway.php . As said before, MSIE tries to donwload the file instead of executing - so a few members would be irritated what´s happening. We´re on a shared server and so we´re not allowed to run cronjobs. Is it possible to let this job be done by another php.file ? What I was thinking of: I guess the most users here - assumed 98 percent of all german bb´s are installed on shared web-servers - can´t do cronjobs. A solution to that could be to include a - let me call it - "pusher-option" which forces gateway.php to execute without any browser output. (in case the script won´t work proper vb´s db is already configged to send you an eMail-notification every time the error appears) To reduce bandwith and transfer-volume a new function should be added to this that gateway.php is only executable every 15 (or whatever) minutes. In practice it would happen like this: User clicks the newsgroup-forum-link --> this one opens the forum and at the same time is executing gateway.php in a hidden way (without output to the users browser). After that certain others are viewing this newsgroup-forum but only after [x]-minutes the gateway.php should be executed again by a click on the forum-link. Otherwise on Boards with a heavy user load your transfer-volume would increase rapidly - and it´s not necsessary to synchronize with the newsserver every 60 seconds and let the users wait another 30 seconds until gateway.php is through with this job until they can view the threads inside.. Dunno exactly which would be the apropriate forum for this so I put it in here and posted it in the thread where I´ve got the hack from. If this forum ist totally wrong please feel free to move this thread to wherever you think it´s in the right place. Regards, Marv. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|