Link to the mod (https://custom.simplemachines.org/index.php?mod=339)
SMF Archive
https://www.smfhacks.com
By:vbgamer45
Requirements: SMF 2.1.x SMF 2.0.X SMF 1.1.x may work with other versions as well.
Install via package manager:
For SMF 1.1.
Just copy archive.php and archive.css to your forum's root directory and your done!!
Access it via your http://www.yourdomain.com/forums/archive.php for SMF 1.1.X
For SMF 2.1 and SMF 2.0.x
Access it via your http://www.yourdomain.com/forums/archive2.php for SMF 2.0.X
License: Links in the template footer must remain. To remove you need to order copyright removal
http://www.smfhacks.com/copyright_removal.php
Other mods at SMFHacks.com
SMF Gallery
SMF Store
SMF Classifieds
Download System
Newsletter Pro
EzPortal
everyone should have lo fi
great mod, installed with out a problem
ty
The only other thing I suggest is maybe putting a link on the theme you are using to the archive.
only use one theme ;)
to many mods to edit other themes
ty for your advice much apreciated
another great mod.. thanks!!
Great mod! But I have 2 suggestions:
1) Link on the footnote to archive (on the index.php)
2) Admins (and moderators) can select thread to be only visible on the archive. This is with big forums with a lot of old threads..., and avoid new members to reply VERY OLD threads...
HecKel
What does it do?
it strips out all the images and shows your forum as only text
its great for faster searching of a forum and surfing it
and as said by vbgamer45
Allows search engines to help spider your forum easier.
So it does mirror the text-part of the forum into an Archive on the same Server / Database?
Quote from: URPG on November 01, 2006, 07:06:55 PM
So it does mirror the text-part of the forum into an Archive on the same Server / Database?
Yes, just a different way to display the forum information
Could it be made to backup into another database? Then it would be more then just a text-only mirror, it would be a real backup too.
Quote from: URPG on November 02, 2006, 06:22:10 AM
Could it be made to backup into another database? Then it would be more then just a text-only mirror, it would be a real backup too.
That would require a lot of work.
It was just an idea of mine to have a backup in another database, maybe even on another server... would improve uptime as well as data safety...
But I am not a coder, it's up to you guys to know how much work it is and if it can be done...
how i can change the path, i want it to be in the folder archive,i dont want it to be in the forum folder...
You would need to change in Archive.php
require_once(dirname(__FILE__) . '/Settings.php');
To
require_once('../Settings.php');
Quote from: vbgamer45 on December 11, 2006, 05:36:41 PM
You would need to change in Archive.php
require_once(dirname(__FILE__) . '/Settings.php');
To
require_once('../Settings.php');
Quote
Warning: require_once(../Settings.php) [function.require-once]: failed to open stream: No such file or directory in /home/*****/public_html/arhiva/archive.php on line 9
Is the forum in the root directory of public_html?
No, forum is in directory "forum"
Well then u need to change it to
require_once('../forum/Settings.php');
I installed successfully into my fresh SMF 1.1 final but encounter 'Internal Server Error' when I try to access the archive.php file..
My forum directory is in forum and both Settings.php and archive.php are in forum directory root. What's wrong?
My web server error log shows:
Premature end of script headers: /home/smf/public_html/forum/archive.php
Thank you!
Quote from: vbgamer45 on December 11, 2006, 07:57:12 PM
Well then u need to change it to
require_once('../forum/Settings.php');
When I go to the page http://forum.***.org/archive.php?board=69.0
the page works fine.
But i click on the some adress link is
http://forum.***.org/archive.php?board=48.0
http://forum.***.org/archive.php?board=69.0
...
...
...
How can I made to be like this:
http://archive.***.org/archive.php?board=69.0
Quote from: Marko_ on December 12, 2006, 10:01:52 AM
Quote from: vbgamer45 on December 11, 2006, 07:57:12 PM
Well then u need to change it to
require_once('../forum/Settings.php');
When I go to the page http://forum.kupus.org/archive.php?board=69.0
the page works fine.
But i click on the some adress link is
http://forum.***.org/archive.php?board=48.0
http://forum.***.org/archive.php?board=69.0
...
...
...
How can I made to be like this:
http://archive.***.org/archive.php?board=69.0
That's a little tricky to do then. You would need to change all the links in the script to point to http://archive.***.org/archive.php?board=69.0 currently it picks up the forum link from the forum itself.
What I need to change?
Anything that contains
<a href="' . $boardurl . '/archive.php?
You would change it to the url that you want to use.
tnx ;)
Quote from: clemenzo on December 12, 2006, 09:29:40 AM
I installed successfully into my fresh SMF 1.1 final but encounter 'Internal Server Error' when I try to access the archive.php file..
My forum directory is in forum and both Settings.php and archive.php are in forum directory root. What's wrong?
My web server error log shows:
Premature end of script headers: /home/smf/public_html/forum/archive.php
Thank you!
Hi vbgamer45,
I hope you didn't miss my question.. :)
Thanks!
Hmm try to add in Archive.php
Find
define('SMF', '1');
Add before
header('Content-Type: text/html');
And see if that helps
Unfortunately no.. :(
This is one of the hardest errors to figure out.
Try to chmod the archive.php file to 755
http://www.google.com/search?hl=en&lr=&q=Premature+end+of+script+headers++php&btnG=Search
Viola! That fixed it! Thanks vbgamer45!
I tried removing the header('Content-Type: text/html');
and it still works!
What fixed it? I want to know heh did you do the permission thing?
Yup, 755 fixed it
http://arhiva.kupus.org/index.php?topic=680.0
mod dont work with smf 1.1.1
Hmm, I've installed this on my 1.1.1 forum and it's working ok, though in every post there's an error before the actual post.
Have a look for yourself: http://rmrk.net/archive.php
Any idea? my mods are:
Mod Name Version
1. YouTube BBCode
2. Spoiler Tag
3. SMF 1.1.1 Update Package
4. SMF Archive
6. Profile Comments
7. Signature Settings Mod
Though I'm not sure if any of these have anything to do with it.
Hmm, I will update it in a bit for 1.1.1
German Umlauts are broken...board runs in utf-8, but archive makes it iso
I get an error:
Notice: Undefined index: server in /var/www/forum/Sources/Subs.php on line 1770
Notice: Undefined index: server in /var/www/forum/Sources/Subs.php on line 2496
see http://chaosempire.info/forum/archive.php?topic=13788.0
this thread contains pictures...scroll down
the ACTion commands for memberlist and so on..are not complete act instead of action
great mod.. thanks!!
I just wanted to say thanks vbgamer45, for the wonderful archive mod. Works great on my installation. Best regards!
Hmm, would it be possible to restrict Spiders only to the archive version?
Isaac, you would need to create/modify your robots.txt located in your forums' root. You can actually find quite a few dicussions here on the SMF board about good ways to create one.
Quote from: Skunkie on January 12, 2007, 11:31:47 PM
Isaac, you would need to create/modify your robots.txt located in your forums' root. You can actually find quite a few dicussions here on the SMF board about good ways to create one.
I know that, I was hoping someone knew the exact code to be used. I'll look into it more though.
I will gladly share what I have done.
User-agent: msnbot
Disallow: /attachments/
Disallow: /avatars/
Disallow: /Packages/
Disallow: /pjirc/
Disallow: /Smileys/
Disallow: /Sources/
Disallow: /Themes/
Disallow: /index,php/
Disallow: /index.php?*
User-agent: Slurp
Allow: /archive.php
Disallow: /
User-agent: Googlebot
Disallow: /
Allow: /archive.php
User-agent: *
Disallow: /attachments/
Disallow: /avatars/
Disallow: /Packages/
Disallow: /pjirc/
Disallow: /Smileys/
Disallow: /Sources/
Disallow: /Themes/
I specified Yahoo (Slurp) and Google to get notified of archive.php seeing as they recognize the "Allow" specifier. MSN recognizes wildcards, so I use that to direct it to using the index.php only which will then link to my archive.php.
This covers the 3 major search engines that I am worried about site rank on. So the other bots can index what they like as long as they stay out of my specified directories. ;)
I hope this was helpful in some way.
Does restricting bots to just the archive page and not the forum pages affects the google ads being shown on the forum pages?
Quote from: clemenzo on February 15, 2007, 10:27:11 AM
Does restricting bots to just the archive page and not the forum pages affects the google ads being shown on the forum pages?
I know that google at least uses seperate bots for normal search indexing and indexing for ads.
The adsense bot (mediapartners-google, or something similar) isn't specified in Skunkie's robots.txt, though it would follow the rules from the last part and stay out of those certain directories. Either way, it'd still be able to see all of the useful information on your fourm without any problems. :)
Keep in mind the adsense bot only crawls your site when you have adsense on your forums.
I see.. I do have adsense in my forums and would give this try when I have the time.. Thank you!
I would suggest not restricting the adsense bot to just the archive unless that is the only place you have your ads.
It is against Google's rules to not allow the adsense bot to crawl places where you have ads.
How can you make it so it doesn't display the hidden boards based on permission? I only want the this archive mod to show boards I have given only 'Guests' to view.
mod dont work with smf 1.1.1 :(
http://viwo.eu/forum/archive.php?topic=1278.0
I've had it working on SMF 1.1.1 without problems...I'll try it on 1.1.2 but I think it's fine on that too.
It's fine on SMF 1.1.2...worked perfectly.
Marko...please consider letting us see your /sources/subs.php file You may well have another mod installed that is causing your problems.
I got similar errors, though I just edited the script and disabled the error reporting. It works fine: http://rmrk.net/archive.php
i installed this mod in 2 forums running SMF 1.1.2
and both give me errors
forum1
Notice: Undefined index: server in /var/www/forum/Sources/Subs.php on line 1776
Notice: Undefined index: server in /var/www/forum/Sources/Subs.php on line 2502
forum2
Notice: Undefined index: server in /home/gourgi/public_html/forum/Sources/Subs.php on line 1696
Notice: Undefined index: server in /home/gourgi/public_html/forum/Sources/Subs.php on line 2422
i attached both forum's Subs.php if someone can help me
Gourgi, I had the same problem, though I just changed error reporting to:
error_reporting(0);
And now it works fine :)
thanks Silverline
Quote from: Silverline on March 19, 2007, 10:00:43 AM
Gourgi, I had the same problem, though I just changed error reporting to:
error_reporting(0);
And now it works fine :)
WOW ! Thanks Silverline !!! :D
That did the work :D
I'm very thankful for your quick reply ;)
Quote from: RoarinRow on February 16, 2007, 09:54:53 PM
How can you make it so it doesn't display the hidden boards based on permission? I only want the this archive mod to show boards I have given only 'Guests' to view.
Me too, is this possible?
Quote from: katoona on June 12, 2007, 06:01:08 AM
Quote from: RoarinRow on February 16, 2007, 09:54:53 PM
How can you make it so it doesn't display the hidden boards based on permission? I only want the this archive mod to show boards I have given only 'Guests' to view.
Me too, is this possible?
If you have the rights you can see...but if you logout you don't.
I just wonder why, if I click on |Help |Search| Member List| it redirects to main page of the forum (/forum/index.php), not in lo version.
The remaining works fine. I didn,t linked yet neither in footer nor in header. Could it be for it?
Edit: solved!! Just replaced the commands "act=" in "action=" . It works like a charm
Hi... I try to create a multi-language archive, but always give me an error... How must I?
I try to insert some tag content in a language file, but not work... so, I try to create a Archive language, but always not work... Thanks a lot for reply
P.S.: Sorry for my bad English ;_;!
Sorry if I say silly things and maybe it isn't what you were looking for.
That's what I did:
Quote<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta name="description" content="' . $title . '" />
<title>' . $title . '</title>
<link rel="stylesheet" type="text/css" href="archive.css" />
</head>
<body>
<div id="header">
<div id="fullver">Full Version: <a href="' . $url . '">' . $title . '</a>
</div>
<div id="menu" align="center"><a href="' . $boardurl . '/index.php?action=help">Help</a> <a href="' . $boardurl . '/index.php?action=search">Ricerca</a> <a href="' . $boardurl . '/index.php?action=mlist">Utenti</a>
</div>
</div>';
The red words are the words you may change...in your language
Thanks, but I need if a person is English view this in English and if another person is Italian, view this in Italian... Sorry, before I'm not explain good ^^"
Yeah multilanguage is not currently built into this mod.
Oh... Okay!So, I create double file, one in Italian and secondi in English! Anyway, thanks a lot for reply and this mod ^_^!
Can I change then for this Mod or another Mod of you the language for my forum myself? So other languages insert?
What should I change to show my characters that are in UTF-8?
I did this, but didn't work:
Quote<meta http-equiv="Content-Type" content="text/html; charset=', $context['character_set'], '" />
I use brazilian-utf8 as default language in my SMF.
That's what I did with the same "to be or not to be".
Find the line and place change like the red string
Quote<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="' . $title . '" />
<title>' . $title . '</title>
<link rel="stylesheet" type="text/css" href="archive.css" />
Let me know if it works.
It solved my problem. Thanks, tatore, great mod!
As per the mod read me file the only access to this system you have by default is via http://www.yourdomain.com/forums/archive.php though putting it into the main navigation bar wouldn't be at all difficult. Other than that your forum will work exactly as it did prior to you adding the mod.
If I link to the archive.php page from my main forum then everyone will be able to see the boards I have set up for admin/mods only. I know that they can't access what's in there, but I'd prefer it if visibility of these restricted boards could be removed. Is there any way?
The mod should be checking based on board permissions
Installed the mod. It is working perfectly except for one thing. When viewing a message displayed within the archive, I get two errors. I have posted them below.
Quote
Notice: Undefined index: server in /home/content/t/o/s/xxxxxxxxx/html/forum/Sources/Subs.php on line 1696
Notice: Undefined index: server in /home/content/t/o/s/xxxxxxxxx/html/forum/Sources/Subs.php on line 2429
(note: I inserted the XXX to mask actual name)
Regardless of what you view, the same errors appear at the top of the message and then the actual post appears as it should. I also looked ad Subs.php on both of the indicated lines and was not sure what, if anything to change. I am still new to all this PHP coding stuff.
Any input would be greatly appreciated.
I'm also getting the error:
Notice: Undefined index: server in /home/xxxx/public/forum/Sources/Subs.php on line 1708
at the top of every post in the lo-fi version, and sometimes error:
Notice: Undefined index: server in /home/xxxx/public/forum/Sources/Subs.php on line 2443
at the top of some of the posts also.
Any idea how to get rid of that? not only does it look unsightly, but it's revealing the full root path of my server!
Quote from: fgoc on April 11, 2008, 12:24:31 PM
I'm also getting the error:
Notice: Undefined index: server in /home/xxxx/public/forum/Sources/Subs.php on line 1708
at the top of every post in the lo-fi version, and sometimes error:
Notice: Undefined index: server in /home/xxxx/public/forum/Sources/Subs.php on line 2443
at the top of some of the posts also.
Any idea how to get rid of that? not only does it look unsightly, but it's revealing the full root path of my server!
SMF Archive 1.2 released.
Released an update that should fix that error.
hi, nice mod, thx
it would be nice to have a "stair" structure to preserve main board and child one.
is it possible?
It does not seem like a pain to update to SMF2.0 but is it possible?
I will update the mod to SMF 2.0 final once it is released right now it would take a lot of time since there are many changes in SMF 2.0
I am having problem with this mod, with SMF 1.1.5 is not working.
look: http://www.ackronic.net/ackws/smf/archive.php
when you enter inside a board is blank.
I removed the SMF update to 1.1.5 (downgrading to 1.1.4) and Archive is working, adding once again, archive isn't working. (only admin can see Archive, logged I have no problems, I can see all)
thx for this mod ;)
EDIT: I am using the last Archive version, I downloaded once again now to be sure, and the problem is still there
Yep, im also having problems with archive.php and smf 1.1.5, in fact im having the same issue as you :(
When looking at boards, the page just stays blank..
If you login, you can see the archive, but once you logout, the problem appears again... :(
Quote from: Pratt on May 08, 2008, 03:48:23 PM
Yep, im also having problems with archive.php and smf 1.1.5, in fact im having the same issue as you :(
When looking at boards, the page just stays blank..
If you login, you can see the archive, but once you logout, the problem appears again... :(
Fixed I believe redownload the latest version of the mod.
Thanks You!! It works perfectly!
Would love to be able to pull just one category into the archive format instead of all of the forums. We are doing some archives right now, and have moved all the forums that we are no longer keeping active (they are going to a new site) into one category, so would be great to be able to pull just one category of content with the archive.php file something in the url like archive.php?cat=53 to pull just category 53 would be great.
I try an install of the last version in smf 1.1.6 and went I go to see the .../archive.php page appear the source code of the file instead the lofi version of the forum,
and the title of the page that appear is "' . $title . '" only, instead the title of the forum.
in the page appear:
"' . $mbname . ''; //Show Pages List $totalpages = (int) $row['numTopics'] / $maxtopics; if($total.....................
and the rest code until the end where appear:
"'; archive_footer(); } function archive_header($title, $url) { global $boardurl; echo '
Full Version: ' . $title . '
Help Search Member List
'; } function archive_footer() { // Link back to SMF Hacks must remain. // http://www.smfhacks.com/copyright_removal.php echo '
SMF Archive Funded by SMF For Free Free Forum Hosting
SMF Hacks
'; } ?>"
I install it in a test version of my forum and in a new install of 1.1.6 and happen the same to me
the install is in local, with easyphp, (php 5.2.0 and mySQL 5.0.27)
Quote from: Frozt on October 03, 2008, 07:19:34 AM
...and the title of the page that appear is "' . $title . '" only, instead the title of the forum.
in the page appear:
"' . $mbname . ''; //Show Pages List $totalpages = (int) $row['numTopics'] / $maxtopics; if($total.....................
and the rest code until the end where appear....
I've got exactly the same problem on a new install.. and it's because the author used shorttags (thats a no no!) 1 line change, first line in the file
change it from:
<?
to instead be:
<?php
Works great after that, thanks for a great mod :)
Fixed thanks!
I had a problem but had to edit the archive.php file
basically when you go to the archive version on website and when i clicked on help, search, member list it would take me to homepage.
I looked at file and notice you had index.php?act=help (and so on)
if you look the act should be action.
not sure if this is a mis-typing error but i had to alter act to action for it to take me to correct pages.
Mathew
Quote from: genieuk on October 27, 2008, 08:20:40 PM
I had a problem but had to edit the archive.php file
basically when you go to the archive version on website and when i clicked on help, search, member list it would take me to homepage.
I looked at file and notice you had index.php?act=help (and so on)
if you look the act should be action.
not sure if this is a mis-typing error but i had to alter act to action for it to take me to correct pages.
Mathew
Fixed and reuploaded. Can't believe no one ever saw that before...
Quote from: vbgamer45 on October 27, 2008, 08:25:08 PM
Fixed and reuploaded. Can't believe no one ever saw that before...
LOL, Well I like to fully test everything i install and try to help by letting mod authors know if i may have found a bug or error. I am not a programmer but I have learnt allot since being on SMF forum. ;D
Regards,
Mathew
Maybe I'm an idiot...and it may be true...
I used the Package Manager to upload this mod. It uploaded the files to my forum's root directory.
I try to go to the archive page located at http://www.saviourpc.com/forums/archive.php but the page cannot be found.
I'm using 1.1.6...
Am I a moron, or did I miss something here?
I can't uninstall the mod, because there's no uninstaller...the only thing I can do is delete the files from the forum's root directory.
Yet...the mod still shows up as an installed package...and I should contact the mod creator for assistance.
Any help?
Much appreciated...
I would check the file permissions make sure the file is set to 755
I've already deleted the mod from "Browse Packages", but it still shows up in "Installed Packages". There's an "Uninstall" link, but it won't let me uninstall it.
Do I just re-upload the mod and apply it again?
Then make sure the archive.php file is set to chmod 755?
I'm at a loss here...
Thanks for the help.
Steve
You can just upload archive.php to your forum's root directory then chmod it.
Done and working...
Thx!
vbgamer45 any update for SMF 2.0??
Thanks
Not yet this one is a little tricky
wait, how do you view, ive tried archive.php
Visit it by going to http://www.yourforum.com/archive.php after you have it installed.
hi,
thank you for the mod.
i am using Arabic-utf8 language and there is a problem
see the image
http://img205.imageshack.us/img205/4548/errorkr4.png (http://img205.imageshack.us/img205/4548/errorkr4.png)
the Arabic is appear as strange symbols
i am also want to make the page from (right to left) and translate the English up right.
ok dudes,
i modified archive.php and css file and added some extra look.
1) Edit archive.php, edit "Your copyright", replace it with your own.
2) Upload both css and php files, overwrite the orignal files.
3) CHMOD archive.php to 755
Refresh the page and see :)
Quote from: islam2hamy on November 27, 2008, 07:22:21 AM
hi,
thank you for the mod.
i am using Arabic-utf8 language and there is a problem
see the image
http://img205.imageshack.us/img205/4548/errorkr4.png (http://img205.imageshack.us/img205/4548/errorkr4.png)
the Arabic is appear as strange symbols
i am also want to make the page from (right to left) and translate the English up right.
??
I do not want google and other robots crawling the forum on the site I am working on. This seems to be a great alternative but I need to put it outside the forum folder. (new 1.1.7 board)
I would like to put it in a folder named archive in the root of the site that robots will have access to. The forum is in a folder named forum.
I have not used the mod yet because the path mentioned below that would need to be changed does not exist in the current 1.1 version downloaded a couple days ago of this mod. Crimson editor can not find Settings.php and I do not see it reading over the file.
Since the post below giving directions for changing the path is a couple of years old I guess this was modded out with newer versions of the mod. Could someone tell me what I would need to change in the current mod to run the archive file in public_html/archive the forum is in public_html/forum.
Thank you
Quote from: vbgamer45 on December 11, 2006, 05:36:41 PM
You would need to change in Archive.php
require_once(dirname(__FILE__) . '/Settings.php');
To
require_once('../Settings.php');
Hi
when i have installed the following mod at the top of the archieve i am getting the following errors, how do i fix this and make them go away.
Notice: Undefined index: lang_locale in /home/cxtxtsju/public_html/forum/Sources/Subs.php on line 875
Notice: Undefined index: lang_locale in /home/cxtxtsju/public_html/forum/Sources/Subs.php on line 875
Notice: Undefined index: lang_locale in /home/cxtxtsju/public_html/forum/Sources/Subs.php on line 875
Notice: Undefined index: lang_locale in /home/cxtxtsju/public_html/forum/Sources/Subs.php on line 875
Figured it out
thx
Quote from: SilentMoon on December 29, 2008, 07:36:19 AM
I do not want google and other robots crawling the forum on the site I am working on. This seems to be a great alternative but I need to put it outside the forum folder. (new 1.1.7 board)
I would like to put it in a folder named archive in the root of the site that robots will have access to. The forum is in a folder named forum.
I have not used the mod yet because the path mentioned below that would need to be changed does not exist in the current 1.1 version downloaded a couple days ago of this mod. Crimson editor can not find Settings.php and I do not see it reading over the file.
Since the post below giving directions for changing the path is a couple of years old I guess this was modded out with newer versions of the mod. Could someone tell me what I would need to change in the current mod to run the archive file in public_html/archive the forum is in public_html/forum.
Thank you
Quote from: vbgamer45 on December 11, 2006, 05:36:41 PM
You would need to change in Archive.php
require_once(dirname(__FILE__) . '/Settings.php');
To
require_once('../Settings.php');
great mod but update to smf 2 please XD its kinda necessary on my site
Quote from: minos on January 22, 2009, 06:56:27 PM
great mod but update to smf 2 please XD its kinda necessary on my site
I will once SMF 2.0 final is released
Would be really nice,
if you would already release it for
the 2.0B4 version,
as many people are already using it and it is not much different from
the final version....
Also simplemachines.org itsself
uses it ! ;)
Quote from: vbgamer45 on January 22, 2009, 08:14:09 PM
Quote from: minos on January 22, 2009, 06:56:27 PM
great mod but update to smf 2 please XD its kinda necessary on my site
I will once SMF 2.0 final is released
Maybe with SMF 2.0 RC1?? :)
Maybe if i got time.
I am a dummy so i don't know how to add this to my site
Just use the package manger then
visit
http://www.yoursite.com/archive.php
I just installed this and have a pretty big problem. Whenever I try to access the archive it throws 50 pages of errors each time in my logs and the archive is just a blank page. This is the error:
http://rejectsreststop.com/forum/index.php
Database Error: No database selected
File: /home/rejectsr/public_html/forum/Sources/Subs.php
Line: 3617
Can someone tell me what I should do to fix this?
I'm on 1.1.10. The archive is installed in the same folder as my forum and I made sure to CHMOD the file permissions to 755 and still nothing but the errors. It's weird as I popped this on my test board and it worked just fine.
EDIT: I just noticed something odd. I reupped archive.php and as soon as its up the file changes size. It goes up at 8150 and after it's up it changes to 7888. I have tried this a few times and it repeats every time. Anyone have a clue as to why this happens? -- Fixed this by uploading via cpanel instead of Filezilla. I tried about 10 times but it finally worked. I still have the same issue above however.
Bump hoping someone can suggest something to possibly fix this.
Still having this issue. I installed another mod which moved the error down a few lines but this is what's causing the error in the code:
This was previously on line 3617 as stated above. New mod moved it to line 3625 but it's the same code.
ORDER BY mem.realName ASC", __FILE__, __LINE__);
I won't upload another copy of my subs.php unless someone asks for it.
Haven't looked at this mod in months might have time next week
New release now supports SMF 2.0
I'm having Turkish character problem. How do I fix this problem?
version 2.0 rc1.2
ok. I found the solution
in the archive2.php
I found
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
and changed
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-9" />
thanks for 2.0
Still getting the same errors above. I removed the old version and tried 2.0 and still the same. Any ideas?
Open archive.php
Find
//Get the topic ID
@$topic = (int) $_GET['topic'];
add after
[code]
mysql_select_db($db_name, $db_connection);
Quote from: vbgamer45 on August 16, 2009, 07:03:58 PM
Open archive.php
Find
//Get the topic ID
@$topic = (int) $_GET['topic'];
add after
[code]
mysql_select_db($db_name, $db_connection);
Still the same problem/errors. I'm going to ftp the new files once again and try the above once more.
EDIT: uploaded the 2 files once again via cpanel, made sure permissions are at 777 and applied the above change. Still no archive page and the same 50 pages of errors as above.
Not sure what would cause works fine on my site
It works on my test board also. Not sure what's different between the 2.
EDIT: Is it possible that it has something to do with the flashchat integration mod? Looking at the code here is where the error is tripped from:
// Get the FlashChat database config (for the prefix)
include($boarddir . '/chat/inc/config.srv.php');
// Load all the users currently in the chat
$result = db_query("
SELECT
fc.userid, fc.state, fc.color, fc.lang, fc.roomid,
fr.name AS roomName, fr.ispublic,
mem.realName, mem.memberName, mem.showOnline, mg.onlineColor,
mg.ID_GROUP, mg.groupName
FROM {$GLOBALS['fc_config']['db']['pref']}connections AS fc
LEFT JOIN {$db_prefix}members AS mem ON (mem.ID_MEMBER = fc.userid)
LEFT JOIN {$db_prefix}membergroups AS mg ON (mg.ID_GROUP = IF(mem.ID_GROUP = 0, mem.ID_POST_GROUP, mem.ID_GROUP))
LEFT JOIN {$GLOBALS['fc_config']['db']['pref']}rooms AS fr ON (fc.roomid = fr.id)
WHERE fc.userid IS NOT NULL
AND mem.ID_MEMBER != 0
ORDER BY mem.realName ASC", __FILE__, __LINE__);
$context['users_chat'] = array();
$context['list_users_chat'] = array();
$context['num_chat'] = mysql_num_rows($result);
this is where the error pops:
ORDER BY mem.realName ASC", __FILE__, __LINE__);
Works fine with the Index, but as I use SEO4SMF and the forum uses pretty urls with a .html extension, so the mod doesnt function with that, you are redirected.
Can I solve this problem?
Thanks!
SEO4SMF is not being updated anymore it seems so probably will not add support for that.
thanks very nice ;)
SMF 2.0 RC1.2 demo (http://www.forumsende.com/forumlife/archives.php)
Updated for SMF 2.0 RC2
thanks thanks and thanks! very userfull ;))))
Glad you enjoy the mod!
Quote from: vbgamer45 on December 12, 2006, 10:51:09 AM
This is one of the hardest errors to figure out.
Try to chmod the archive.php file to 755
hi vbgamers,
I'm using SMF2 RC2, I changed chmod to 755 but still got this error
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 mod_perl/2.0.4 Perl/v5.8.8 Server at www.ladangtuhan.com Port 80
Also check this post for help
http://www.simplemachines.org/community/index.php?topic=34270.0
How do you avoid duplicated content with this Mod ?
How do you make it, that Google will only crawl this text archive version
and not the main site ?
Do you add any noindex,nofollow meta tags to the main forum pages ?
Does not have support to avoid duplicate content. You can set it to not index these pages with a robots.txt if needed
very nice mod!
a nube's question if i may - once i change my robots.txt to index the archive instead of the actuall forum, do the links google stores for the results will also send visitors to the archive pages?
I would not suggest that if you are trying to have google index just the archive page instead of your forum you will probably loose traffic for a while
that's like my worst nightmare....
so i'm not exactly sure, if it's not for search bots, what is the purpose of this mod? don't get me wrong, it works great, i'm just figuring how i can get the best out of it.
Well it is for search engines but I would not advise restricting it via robots.txt
It could be used either to show the content quickly to search engines. Or with a little code to switch over to a lofi version if the server/forum is busy.
Updated for SMF 2.0 RC3!
Does this mod allow you to prune in the forum and recall from the archives as the name suggests?
No it is actually is just a lite weight version of the message board for search engines.
Is there a way of being able to prune posts and archive them???? So you can recall them if a forum member searches for those keywords in the search.
Not with this mod out of the scope of this mod.
http://www.mmobrowser.com/archive2.php ( 777 CHMOD )
But
When Open In Mobile It Also Only Show Text!!!
What To Do?
Don't understand?
Vbgamer, what code should i add to the robots.txt to stop google from indexing the archived texts ?
I searched for my topic on google and it took me to the archive page.
I want every indexed page to go to the main forum.
Quote from: John1 on June 21, 2010, 05:08:43 PM
Vbgamer, what code should i add to the robots.txt to stop google from indexing the archived texts ?
I searched for my topic on google and it took me to the archive page.
I want every indexed page to go to the main forum.
Your file should look like this:
User-agent: *
Disallow: /archive.php
If you're using SMF 2.0 you must change archive.php to archive2.php
thanks
OMG! I can't believe I haven't seen this before. Great mod vbgamer, gonna install this soon :)
Quote from: Nibogo on June 21, 2010, 06:34:57 PM
Quote from: John1 on June 21, 2010, 06:29:04 PM
thanks
You're welcome!
What about redirecting the already indexed archive pages to the main forum ? how do i do that ?
Is there a way to make the archive links go to the main forum if someone click on them ?
I believe there is a full version link on some of the pages.
Quote from: vbgamer45 on June 23, 2010, 08:57:36 AM
I believe there is a full version link on some of the pages.
I meant every clickable post link there going to the main forum.
You would have to edit it since that is not how the mod works.
Lol, edit like how many links VBgamer ?
What about redirecting the links to the main forum instead of linking them.
Just a redirecting code that will send people to the main related topic inside the main forum.
Not sure I made the mod long ago but should be simple if you take a look at it.
I dont know much about coding, just getting ideas from here.
hello there, I'm running this archive and also the Hide Post mod here: http://www.simplemachines.org/community/index.php?topic=58833.0
is there any way to prevent the hidden posts from the Hide Post mod from displaying on the archive?
If the mod is doing via bbc it would do it already if not would require modifying of the archive system.
I installed this module but when I run it nothing happens. Transferred me to the homepage of the forum. I checked permissions and tried with 777 but again the same happens.
Forum Version 2.0 RC5 http://www.fm-balkan.com
Anyone?
Could be a seo mod that rewrites url causing it to go back to homepage or something not sure.
I do not have any SEO mod installed.
Out of ideas maybe something in your .htaccess is redireting the url.
This is content of my .htacces file
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [QSA]
</IfModule>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php
That would mess it up not sure what mod that is from
What, then, to put in. htacces? I tried various combinations but none was successful.
You would have to remove that code or add a rule to skip archive.php I don't know .htaccess scripting without researching it.
It is possible to place a rapid response on each topic?
Or at least a link to answer?
Another question, is using CSS to place the response with different color, type and color but not color.
Hello my noble friend, I know you have many mods to support, but would know if you have the possibility to add a button for users to respond?
It is possible you would need to add a link for a reply button.
Generally though the archive is only used for search engines.
I updated the forum to 2.0 and i dont use this mod anymore but i get this error in my cpanel error log very often
[Mon Jul 11 03:29:09 2011] [error] [client 65.52.110.52] File does not exist: /home/site/public_html/forum/archive.php
any solutions?
a file (may be your template file) refer to this archive file and issue this error, usually you can find it out at your footer area in template . Check it which file call it, click on that error you can see wher the code need to fix!
You cant click on the error. Its just an error log. and the entire message is...
[Mon Jul 11 03:28:38 2011] [error] [client 207.46.13.132] File does not exist: /home/site/public_html/forum/archive.php
Nothing else. I donno what file is the cause. I changed the theme right after i updated to 2.0
i dont use the same theme which i used when i had this mod.
The file no longer exists and it is still visited by search engines causing the error to be logged in your server logs.
Gotcha. Thx.
If the error has no link, PLAYBOY's post may be the best answer!
And yes, it's just Microsoft crawler named msnbot:
http://www.google.com.vn/#q=207.46.13.132&hl=vi&prmd=ivns&ei=c78bTqHZNInymAXYk6TaBw&start=10&sa=N&fp=5a3e57672c349d50&biw=1014&bih=615
I am using smf 2 gold, to make it work, I had to edit the archive2.php replacing:include 'SSI.php';
with:if (file_exists(dirname(__FILE__) . '/SSI.php') && !defined('SMF'))
require_once(dirname(__FILE__) . '/SSI.php');
is it normal? why it wasn't working the other way? I was having Internal server error
The issue was the permission on the file I guess when you reuploaded it or edited it was ok.
If you use PrettyURLs, please fill /archive2.php in the box of PrettyURLs Settings ;)
How could I make the messages appear in separate div? And how do the number of messages have a line break not to expand the page?
Example: http://forum.clubedohardware.com.br/archive/eletronica/f39
I am not sure whether this question has been asked: will the archive in SMF 2.0 create a duplicate content which is bad for SEO? Is there a need to modify the robots.txt with this MOD?
It would be considered duplicate since it is the same content just with less theme stuff.
thank you vbgamer45, if that is the case, that would be bad for SEO? What would be the solution? Should I modify the robots.txt so that it won't be indexed by search robots?
If it creates a duplicate content, then it is best that this archive section is only for human consumption, not for search engines. Is there a better way to do it that would make this archive mod seo-friendly. I love this MOD.
Hi VBGamer,
I want to add a text on the title of each archived thread. Let's say, instead of the title itself, I want to put a prefix on it like: Archived Copy Only - Title of the thread Here.
I want this new title to be different from the Full Version. How shall I edit the archive2.php file?
I was wondering the same thing. Is it still a good idea to have this running? I still occasionally get search results that point to archive pages, but I have a feeling I would be better of redirecting this to the "real" forum.
Any thoughts?
Myself opinion: "Real forum is better, wap or mobile mode is for dial-up or slow connection, so this mod is not really neccessary, I have uninstalled it already a long time."
Can anyone please help me how to redirect pages with archive2.php?topic=* to the main forum site? I removed the mod but a lot of my site pages are still there in Google search results.
I know the redirection can be done via .htaccess. I am not just sure how to do it. Thanks for the help, friends at SMF.
just create a file archive2.php, use code PHP header() to redirect all to your homepage in side that file:
header( "Location: " . $your_homepage_url );
Thank you, Tomy. I also tried ErrorDocument 404 /index.php, which I placed in .htaccess. It works well so far.
Nice to know, can you show your solution in detail?
the mod works, im using the archive2.php file im using 2.0.2 but im getting this in the header space
Notice: Undefined index: user in /home/content/m/i/k/mikedijital/html/deggi5/Sources/Load.php(2331) : eval()'d code on line 479
Notice: Undefined index: user in /home/content/m/i/k/mikedijital/html/deggi5/Sources/Load.php(2331) : eval()'d code on line 549
Notice: Undefined index: user in /home/content/m/i/k/mikedijital/html/deggi5/Sources/Load.php(2331) : eval()'d code on line 479
Notice: Undefined index: user in /home/content/m/i/k/mikedijital/html/deggi5/Sources/Load.php(2331) : eval()'d code on line 549
here is the link
http://mikedijital.us/deggi5/archive2.php
in my load file
479 // Set up the $user_info array.
480 $user_info += array(
481 'id' => $id_member,
and
547 // Do we have any languages to validate this?
548 if (!empty($modSettings['userLanguage']) && (!empty($_GET['language']) || !empty($_SESSION['language'])))
549 $languages = getLanguages();
bump
Open archive2.php
Find
include 'SSI.php';
Add before
ini_set('display_errors', '0');
Thank you so much VBgamer,works like a charm! =)
Glad to help
for anyone reading this, this archive mod is a GREAT mod to promote for phone users! its so slim and quick, it loads up in a second, if your forum is mainly public, this is a great way to browse on a mobile device.
I add a menu button called PHONE and link it to this, or just tell users to go directly to www.yourforumurl.com/forum/archive.php
Great mod guys, been using it as a mobile device page since it came out for SMF 1
Hello,
how to add banners to the archive?
You have to edit the archive.php file in the root of your forum directory.
I know that :), but I do not know where to position the code and how to define it.
To stand at the top of the page, like this...
http://poljoinfo.com/archive/index.php/t-1399.html?s=45af8e201988bab774354f66a5688356
I found where, after this code fragment...
<div id="fullver">Full Version: <a href="' . $url . '">' . $title . '</a>
</div>
Glad you found where it is at
Minor update
2.0.1
!Removed some mysql_ functions from SMF 2.0 version
Can this MOD be used to archive a 2.0.15 forum permanently ?
Looking for a MOD to make existing forum read only and then convert to static html.
I could just make it read only and leave it in php, but in future, there should not be issues with upgrades of SMF/php/mysql etc.
So, static html would be better.
Planning to close forum and start something else.
But as many useful discussions were made in past, they should be made available for visitors and search engines in html format
No still requires php/mysql. You would need to write a script to save to html for each page.
SMF 2.0.x will be good up to 7.3 it looks like with new updates.
Got it.. but the idea is to permanently close down the forum and make it static html without having to worry about future updates of php/smf.
HTML will remain permanent.
There might be some tools that crawl and do it. Check out something like a https://www.httrack.com/
@Dblog: I downloaded this script from some post on this forum, but can't remember which post :-\. What I can remember is that the author was very brief in explaining what the script does and probably registered just to share the script (thank you nonetheless, whoever you are :)).
Major update
Version 3.0
+Added support for SMF 2.1.x
!Replaced text strings with language strings
!Fixed paging calculation
+Added extra paging on view topic page on bottom
+Adds link now to lofi version in the footer
Since updating the mod from version 2.0.1 to 3.0 on a SMF 2.0.19 board i noticed the following error in the error log of my board:
Database error: Unknown column 'b.member_groups' in 'where clause'
File: /var/www/archive2.php
Line: 81
Is this something to worry?
Edit: Seems this is happening for "Guest" users only.
Try this update
Version 3.0.1
!Hide unapproved topics/messages
!Fix member group error when viewing a board
It seems this worked, at least the errors are gone now and i didn't noticed any additional problems.
Thank you very much for this additional update.