Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 11230
Latest: chapinpratt
New This Month: 17
New This Week: 3
New Today: 1
Stats
Total Posts: 33694
Total Topics: 6009
Most Online Today: 106
Most Online Ever: 2482
(April 09, 2011, 06:02:45 pm)
Users Online
Members: 0
Guests: 64
Total: 64

Author Topic: SMF Archive switch to lofiversion.  (Read 16562 times)

0 Members and 1 Guest are viewing this topic.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 12303
    • View Profile
SMF Archive switch to lofiversion.
« on: May 20, 2006, 10: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
Code: [Select]
if (!empty($modSettings['loadavg_forum']) && !empty($modSettings['load_average']) && $modSettings['load_average'] >= $modSettings['loadavg_forum'])
db_fatal_error(true);
Replace the line
Code: [Select]
db_fatal_error(true);With
Code: [Select]
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.
Get your Forum Ranked! at http://www.forumrankings.net - find out how your forum compares with others! Also contests/promotions for verified sites.

Offline solidghost

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: SMF Archive switch to lofiversion.
« Reply #1 on: June 05, 2006, 07:04:05 am »
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.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 12303
    • View Profile
Re: SMF Archive switch to lofiversion.
« Reply #2 on: June 05, 2006, 07:59:36 am »
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.
Get your Forum Ranked! at http://www.forumrankings.net - find out how your forum compares with others! Also contests/promotions for verified sites.

Offline solidghost

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: SMF Archive switch to lofiversion.
« Reply #3 on: June 05, 2006, 08:22:38 am »
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

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 12303
    • View Profile
Re: SMF Archive switch to lofiversion.
« Reply #4 on: June 05, 2006, 12:17:02 pm »
Hmm not sure. I tested in on my linux test board as well.
Get your Forum Ranked! at http://www.forumrankings.net - find out how your forum compares with others! Also contests/promotions for verified sites.

Offline cotdagoo

  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: SMF Archive switch to lofiversion.
« Reply #5 on: June 18, 2006, 09:37:34 am »
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?

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 12303
    • View Profile
Re: SMF Archive switch to lofiversion.
« Reply #6 on: June 18, 2006, 09:52:49 am »
What version of SMF are you running? If it was 1.0.7 I will check it out sometime this week.

SMFHacks.com
Get your Forum Ranked! at http://www.forumrankings.net - find out how your forum compares with others! Also contests/promotions for verified sites.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 12303
    • View Profile
Re: SMF Archive switch to lofiversion.
« Reply #7 on: June 20, 2006, 07:15:31 am »
Fixed hidden boards, topics, and catagories from being shown in the archive.

SMFHacks.com
Get your Forum Ranked! at http://www.forumrankings.net - find out how your forum compares with others! Also contests/promotions for verified sites.

Offline forumposters

  • Newbie
  • *
  • Posts: 4
    • View Profile
    • Forum Posters
Re: SMF Archive switch to lofiversion.
« Reply #8 on: June 21, 2006, 11:23:04 am »
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?

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 12303
    • View Profile
Re: SMF Archive switch to lofiversion.
« Reply #9 on: June 21, 2006, 11:58:16 am »
I would just link it from the main board index. Probably in the footer.

SMFHacks.com
Get your Forum Ranked! at http://www.forumrankings.net - find out how your forum compares with others! Also contests/promotions for verified sites.

Offline boyboy

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: SMF Archive switch to lofiversion.
« Reply #10 on: July 12, 2006, 10:27:29 am »
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?

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 12303
    • View Profile
Re: SMF Archive switch to lofiversion.
« Reply #11 on: July 12, 2006, 10:33:36 am »
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.
Get your Forum Ranked! at http://www.forumrankings.net - find out how your forum compares with others! Also contests/promotions for verified sites.

Offline boyboy

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: SMF Archive switch to lofiversion.
« Reply #12 on: July 12, 2006, 11:03:41 am »
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    

Offline m771401

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: SMF Archive switch to lofiversion.
« Reply #13 on: August 24, 2006, 04:20:55 pm »
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.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 12303
    • View Profile
Re: SMF Archive switch to lofiversion.
« Reply #14 on: August 24, 2006, 04:22:13 pm »
That's the one error that I have no idea what causes check apache logs if you can.
Get your Forum Ranked! at http://www.forumrankings.net - find out how your forum compares with others! Also contests/promotions for verified sites.

 

+- Recent Topics

Are comments made on images paginated or are they all displayed on one page? by shuban
Today at 08:13:40 am

Price has been changed! by elbeer
October 21, 2014, 09:52:21 am

No thumbnail coming from this Youtube video by shuban
October 19, 2014, 12:05:59 pm

Member not able to upload by SMFHacks
October 18, 2014, 11:20:38 pm

Gallery block spitting out errors. by shuban
October 18, 2014, 11:55:28 am

Zoom support by Michel68
October 15, 2014, 11:58:42 am

Problem in uploading videos by SMFHacks
October 14, 2014, 10:46:56 am

This is an interesting mode. by Labradoodle-360
October 14, 2014, 08:35:43 am

Convert phpbb Gallery? by SMFHacks
October 13, 2014, 05:47:24 am

My Listings by SMFHacks
October 12, 2014, 01:40:43 pm

Powered by EzPortal