View Single Post
  #412  
Old 06-27-2002, 05:42 PM
Marv Marv is offline
 
Join Date: Jun 2002
Location: Germany
Posts: 372
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hi,

meanwhile the script is up & running. Okay..gateway.php still doesn?t tell me "All done" after it?s finished but that?s no problem at all - beside that it works perfectly and gets the job done. That?s what matters.

May be someone could assist me with a minor problem. 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[/] gateway.php instead of executing the file..)

As someone mentioned a few posts before you could use opera and the built-in refresh-option or do it seperatly in a html-file like this
Code:
<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&ouml;nnen die eingebettete Seite &uuml;ber den folgenden Verweis
aufrufen: <a href="http://www.yourdomain.com/forums/gateway.php">manuelle Newsserver-Abfrage</a></p>
</iframe>
</body>
</html>
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..

Meanwhile I?m quite sure this belongs to the request-Forum, but I`ll leave it in here also. May be someone?s stumbling over this posting and.... :classic:

Regards,
Marv.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01202 seconds
  • Memory Usage 1,771KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete