SMFHacks.com
Modifications/Themes => Modifications Talk => Topic started by: SMFHacks on May 20, 2006, 11:01:36 pm
-
This is an easy fix. I haven't used it yet but should work in theory. You will need to set the loadavg_forum setting in the smf_settings table to the value you want.
Next open Load.php in the sources folder
And find the reloadSettings() function
Find This code
if (!empty($modSettings['loadavg_forum']) && !empty($modSettings['load_average']) && $modSettings['load_average'] >= $modSettings['loadavg_forum'])
db_fatal_error(true);
Replace the line
db_fatal_error(true);
With
header('Location: http://www.yourpathto.com/archive.php');
And that's it. Now if your board starts to get busy now redirects it to the lofiversion and allows your server to handle the traffic better.
-
I dont seem to be able to get the lofiversion mod to work.
It gives error when I try to access the archive.php
http://www.simpleboards.org/forums/archive.php
I am using 1.1RC2.
-
Any mods installed? It's going to be a little tricky to figure out what is wrong.
See if you get some logs on archive.php.
-
Wow, very fast reply.
Here are my mods:
1. Reason For Editing Mod 1.11
2. SMF 1.0.7 / 1.1 RC2 Update 1.0
3. SMF Archive 1.0
4. Global Headers Footers 1.0
5. Googlebot & Spiders Mod
I dont see any error logs on archive.php
-
Hmm not sure. I tested in on my linux test board as well.
-
installed this, and noticed a bit of a security breach.. I have a few hidden forums - only viewable by a certain group - and when installing the archive mod the hidden section titles show up for guests.
example based on this forum:
Mod/Hack Forum <- viewable to guests via archive.php but hidden on regular forum index
-> Mod/Hack Talk } doesn't show for guests
-> Mod/Hack Showcase } doesn't show for guests
I really don't want regular users to see that there is a hidden area.. can this be fixed?
-
What version of SMF are you running? If it was 1.0.7 I will check it out sometime this week.
SMFHacks.com
-
Fixed hidden boards, topics, and catagories from being shown in the archive.
SMFHacks.com
-
I've just downloaded and installed this mod. Where would be a good place to link to archives as I don't think this mod automatically creates a link to the archives.php page anywhere on the site, does it?
-
I would just link it from the main board index. Probably in the footer.
SMFHacks.com
-
The mod works except that the posts cannot be seen. I get this error when clicking the actual post:
Unknown column 'm.ID_BOARD' in 'on clause'
Also, is it possible to edit the archive page so that I can add my forum logo or change the font type and color?
-
What version of SMF are you using?
Yes it is possible to edit the archive page. Logo you will just need to look into archive.php and look for the main html start area
For colors and fonts you can just edit the archive.css file.
-
SMF 1.1RC2
In case you want to know, the mods installed in the forum are:
1. SMF 1.0.7 / 1.1 RC2 Update 1.0
2. Spam-me-not 1.0.2
3. Spoiler Tag 0.2.5
4. Enhanced Quick Reply TBA
5. Googlebot & Spiders Mod 1.0.5
6. Merge Double Posts 1.05
7. Reason For Editing Mod 1.12
8. Search Topic 1.0
9. SMFShop 2.1
10. Bookmark Mod By Leipe Po 1.2
11. Users Online Today Mod 1.4.0 Beta 2
12. Smilielimit 1.0
13. Shop Item: Change Display Name CSS 0.1
14. SMF Archive 1.1
15. Signature Lines 1.0
-
I'm getting a 500 error when I try using this mod. Copied to the root of my forum as instructed.
SMF 1.1RC2 + TinyPortal 0.8.6
Any help would be appreciated.
-
That's the one error that I have no idea what causes check apache logs if you can.
-
I figured it out..
That very important execute bit needs to be flipped. Just a permission issue. Allowed execute permissions on archive.php and everything is all good now.
Sorry about that.. :-[
-
Thanks! Caused I seen some other people have an error like that. Now I know how to solve xD.
-
The mod works except that the posts cannot be seen. I get this error when clicking the actual post:
Unknown column 'm.ID_BOARD' in 'on clause'
Any solution to this issue? My SMF Archive still doesn't work because of this error. Do you think downloading the new mod file would solve this problem?
Also, how do you set up permissions for the Archive? It doesn't follow the actual permissions of the board. My Mods folder, which is normally a private folder, is open to the public in the Archive version.
-
I would redownload the mod and try it again since you last used it.
I thought I fixed those problems in a later release.
-
I've been looking at another SMF Archive mod. This one is different from the SMF Archive Mod in this site right?
http://www.webdigity.com/index.php/topic,2433.0.SMF+%26amp%3B+SEO+-+Archive+for+SMF.html
-
Yeah that is a different mod.