Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by (Guest)
Developer Last Online: Jan 1970 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 03-14-2001 Last Update: Never Installs: 1
 
No support by the author.

Description:
This hack will automatically refresh index.php page after 1, 2, 3, 5 or 10 minute(s) or it can be turned off in a user profile.

vBulletin versions supported:
2.0 Beta 3

Files to edit:
member.php, index.php

Templates to modify:
2 - forumhome, modifyoptions, modifycoppa, registeradult, registercoppa

Number of new queries:
0

Number of new templates:
1

Size:
1,52KB

Demo:
N/A

Known bugs and issues:
No known.

Instructions:
Included in the attached ZIP file.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 05-27-2001, 08:44 AM
lichtflits's Avatar
lichtflits lichtflits is offline
 
Join Date: Feb 2002
Location: The Netherlands
Posts: 58
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

works this hack also in the full 2.0 version?
Reply With Quote
  #23  
Old 05-27-2001, 04:56 PM
PeF
Guest
 
Posts: n/a
Default

I'm between jobs and I currently don't have time to rewrite those hacks. They'll be available within 14 days.
Reply With Quote
  #24  
Old 05-31-2001, 10:57 PM
JGraham9382
Guest
 
Posts: n/a
Default

Just a little note...something else you could do is add:

<META HTTP-EQUIV="Refresh" content="180;URL=#">

to your header. It seems to work very well for me, the only problem that I have had, is that when I get people that take over 3 minutes to write a post it refreshes and they have to hit the back button (They can pick up where they left off)....but other than that it pretty much does the same thing. You can change the content="X to however many seconds you want. Just something that I thought was a lot quicker.
Reply With Quote
  #25  
Old 06-01-2001, 09:40 AM
Spawn182 Spawn182 is offline
 
Join Date: Oct 2001
Location: Germany
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Added an autoupdate template to forumdisplay and forumhome, works great for me.

What's the function of "$session[sessionhash]" in this line of code

<meta http-equiv="Refresh" content="$refreshtime; URL=index.php?s=$session[sessionhash]">

THX
Reply With Quote
  #26  
Old 06-03-2001, 03:09 AM
webhost's Avatar
webhost webhost is offline
 
Join Date: Oct 2001
Location: St. Louis
Posts: 577
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Where do I place script in this template, it does not look like ther rest. Here is the coppa file.

<p>To print out a new permissions form, please click the button below:</p>

<form action="member.php" method="post">
<input type="hidden" name="s" value="$session[sessionhash]">
<input type="hidden" name="action" value="coppaform">
<input type="hidden" name="username" value="$username">
<input type="hidden" name="password" value="$password">
<input type="submit" class="bginput" value="Display permissions form" accesskey="s">
</form>

<p>When you make changes to this profile, you Parent/Guardian will be notified by email.
If you are over the age of 13, you should not be seeing this message.
Please contact the <a href="mailto:$webmasteremail">administrator</a> with your username,
and your account will be changed.</p>

Here is the code that needs to be included,

<TR bgcolor="{firstaltcolor}">
<td><normalfont><b>Automatic refresh</b></normalfont><br><smallfont>Automatic refresh of the main forum page in minutes. If you don't want this feature, select off.</smallfont></TD>
<TD valign=top><select name="autorefresh">
<option value="-1" $autorefreshdefaultselected>Off</option>
<option value="60" $autorefresh60selected>1 minute</option>
<option value="120" $autorefresh120selected>2 minutes</option>
<option value="180" $autorefresh180selected>3 minutes</option>
<option value="240" $autorefresh240selected>4 minutes</option>
<option value="300" $autorefresh300selected>5 minutes</option>
<option value="600" $autorefresh600selected>10 minutes</option>
</select> </TD>
</tr>
Reply With Quote
  #27  
Old 06-03-2001, 03:57 AM
webhost's Avatar
webhost webhost is offline
 
Join Date: Oct 2001
Location: St. Louis
Posts: 577
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have everything done except the modifycoppa template, I have uploaded and ran the file update.php and deleted it. It shows up now under users options, I select say 5 minutes and when I hit submit I get this error.

There seems to have been a slight problem with the database. Please try again by pressing the refresh button in your browser.

An E-Mail has been dispatched to our Technical Staff, who you can also contact if the problem persists.

We apologise for any inconvenience.

I went and looked at my database the autorefresh field is in the user table.
Setup like this.

Field-autorefresh
type-smallint
length/set- 6
not null
default -1

I can change the default in my database and go back to the forum and it works but when I change it inside the vb option page I get the error.

any suggestions are help would be appreciated.

Joey

Report this
Reply With Quote
  #28  
Old 06-03-2001, 05:36 AM
webhost's Avatar
webhost webhost is offline
 
Join Date: Oct 2001
Location: St. Louis
Posts: 577
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok got it working. I still need some help with modification of the modifycoppa template though if someone could help?

Joey
Reply With Quote
  #29  
Old 06-19-2001, 11:20 AM
PeF
Guest
 
Posts: n/a
Default

I'm forced to say I have to leave this community for some time due to my new job and some projects I work for (and of course my personal life). This all means I won't be able to rewrite my hacks as promised so if anyone is interested in the rewrite, just go ahead. You'll find links to my old hacks in my signature.
I apologize for any inconveniences.
Reply With Quote
  #30  
Old 07-19-2001, 03:49 PM
ztsky
Guest
 
Posts: n/a
Default

this don't need a hack ,just a template edit.
in header template:
add this code:
<meta http-equiv="refresh" content="100">

content="100" is the time in second that you can set for refresh.
Reply With Quote
  #31  
Old 07-19-2001, 03:53 PM
webhost's Avatar
webhost webhost is offline
 
Join Date: Oct 2001
Location: St. Louis
Posts: 577
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes you could do that but this hack gives the member the option of setting there own refresh time not the board owner. I like that better, no one can get pissed off at you that way.
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 01:35 AM.


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.05422 seconds
  • Memory Usage 2,296KB
  • Queries Executed 25 (?)
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)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (6)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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_imicons
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete