News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Page Reload Mod

Started by Mick., November 25, 2008, 09:04:08 AM

Previous topic - Next topic

barryc

1.1.7 Aqua theme does not work. But if I switch to the core theme it does.  :-\ Any Ideas?

Marcus Forsberg

Welcome to SMF, barryc!

Yes, one idea. :) Attach index.template.php, located in ./Themes/aqua/ and I will do the proper edits for you :)

Happy holidays
Nascar

barryc

Ok I will give me a few minutes to find what it is your asking for.

barryc

Thanks for the welcome and the help,,,I have tried for days to figure it out,,,I just have nt  had enough experience yet.

Marcus Forsberg

Try this file.

Happy holidays
Nascar

barryc

Wow,,,,,,,That took all of 10 minutes,,,it works great. If you ever have a broken home appliance you can always come see us. appliancerepairhelp dot net,,its free. I don t know what else to say. I m shocked and happy.  :D

I really appreciate the help.
Thank you.

Marcus Forsberg

I'm just glad to be able to help :)

barryc

Oh thats just perfect,,,working great. Now there is one for aqua 1.1.7. woohooo.

cleanfiles

Quote from: Nas on December 27, 2008, 05:12:41 AM
Which SMF version are you using, cleanfiles?
Im using smf 1.1.7 thanks. :)

Marcus Forsberg

index.template.php:

Code (Find) Select
// No refreshing if you are in any of these actions
$no_refresh_actions = array('admin', 'ban', 'boardrecount', 'cleanperms', 'detailedversion', 'dumpdb', 'featuresettings', 'featuresettings2', 'findmember', 'maintain', 'manageattachments', 'manageboards', 'managecalendar', 'managesearch', 'membergroups', 'modlog', 'news', 'optimizetables', 'packageget', 'packages', 'permissions', 'pgdownload', 'postsettings', 'regcenter', 'repairboards', 'reports', 'serversettings', 'serversettings2', 'smileys', 'viewErrorLog', 'viewmembers', 'post', 'profile');

// We are good to go - If the refreshing is enabled, and we are not in any of the above actions, that is.
   if (!empty($modSettings['reload_time']) && !in_array($context['current_action'], $no_refresh_actions))
header("Refresh: {$modSettings['reload_time']}; url={$scripturl}?{$_SERVER['QUERY_STRING']}");


Code (Replace whit) Select


// Only refresh if you are in one of these actions
$refresh_actions = array('who');

// We are good to go - If the refreshing is enabled, and we are in any of the above actions, that is.
   if (!empty($modSettings['reload_time']) && in_array($context['current_action'], $refresh_actions))
header("Refresh: {$modSettings['reload_time']}; url={$scripturl}?{$_SERVER['QUERY_STRING']}");


Add other actions into array('who');, like:
array('who', 'profile');

If you like to refresh other actions.


cleanfiles

Thanks for the reply, before I start though, by the looks of the changes there i need the mod installed first then make these changes right? :)

Marcus Forsberg


cleanfiles

Ok I installed the mod and made the edits to the theme, then made your changes and it works just right on Firefox and IE. Thank you, now I can get rid of the Firefox plugin. Great work and great support. :)

Marcus Forsberg


ttuu

I want users to be able to configure themselves to run if the auto-refresh or not.
Is that possible?

Marcus Forsberg

Should be. Bump me if I don't respond within a week.

ttuu

Quote from: Nas on February 08, 2009, 03:08:15 AM
Should be. Bump me if I don't respond within a week.
any news?

TW1ST3D

Quote from: cleanfiles on December 26, 2008, 09:57:17 PM
Can this be used to reload the Whos online page only? Thats the only page I would like to use something like this.

X 2
Running 2.0 Gold.......SMF Rocks!!

billis_2

Hi. :)

Any way to the Quick Reply?
Do not refresh when posted with Quick Reply!

ttuu

Quote from: Nas on February 08, 2009, 03:08:15 AM
Should be. Bump me if I don't respond within a week.
Forget it?

Advertisement: