
Announcement
Collapse
No announcement yet.
[RELEASE vB2.0] Auto Refresh 2.0
Collapse
X
-
3. New templates
************************************************
* forumhome_autorefresh
************************************************
<meta http-equiv="Refresh" content="$refreshtime; URL=index.php?s=$session[sessionhash]">
where do i put that?
Comment
-
You make a new template and put the appropriate code in it.Translations provided by Google.
Wayne Luke
The Rabid Badger - a vBulletin Cloud demonstration site.
vBulletin 5 API - Full / Mobile
Vote for your favorite feature requests and the bugs you want to see fixed.
Comment
-
Re: hi was just wondering
Originally posted by -=WTFxP=-
it says like this
6. Edit modifycoppa, registeradult and registercoppa the same way as modifyoptions
and my modifycoppa looks like this
<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 value="Display permissions form">
</form>
where should i put the code in there
im wondering the same thing... p.s. how do i set the refresh time after i do that above?
Comment
-
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.
Comment
-
Modifycoppa Template
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>
Comment
-
Help Please
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 thisLast edited by express; Sat 2nd Jun '01, 10:05pm.
Comment
-
Ok got it working. I still need some help with modification of the modifycoppa template though if someone could help?
Joey
Comment
-
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.
Comment
-
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.
Comment

Comment