Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: SMFHacks.com Team on August 08, 2006, 08:01:32 PM

Title: SMF Archive
Post by: SMFHacks.com Team on August 08, 2006, 08:01:32 PM
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
Title: Re: SMF Archive
Post by: Assistance on August 10, 2006, 10:26:57 AM
everyone should have lo fi

great mod, installed with out a problem

ty
Title: Re: SMF Archive
Post by: vbgamer45 on August 10, 2006, 10:41:01 AM
The only other thing I suggest is maybe putting a link on the theme you are using to the archive.
Title: Re: SMF Archive
Post by: Assistance on August 10, 2006, 11:23:56 AM
only use one theme ;)
to many mods to edit other themes

ty for your advice much apreciated
Title: Re: SMF Archive
Post by: PrizeLive.com on August 11, 2006, 01:58:47 PM
another great mod.. thanks!!
Title: Re: SMF Archive
Post by: HecKel on October 24, 2006, 08:29:22 AM
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
Title: Re: SMF Archive
Post by: URPG on November 01, 2006, 04:58:06 AM
What does it do?
Title: Re: SMF Archive
Post by: Assistance on November 01, 2006, 05:45:19 PM
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.
Title: Re: SMF Archive
Post by: 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?
Title: Re: SMF Archive
Post by: vbgamer45 on November 01, 2006, 07:23:32 PM
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
Title: Re: SMF Archive
Post by: 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.
Title: Re: SMF Archive
Post by: vbgamer45 on November 02, 2006, 08:32:30 AM
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.
Title: Re: SMF Archive
Post by: URPG on November 02, 2006, 11:12:46 AM
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...
Title: Re: SMF Archive
Post by: MarkoWeb on December 11, 2006, 05:17:19 PM
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...
Title: Re: SMF Archive
Post by: 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');
Title: Re: SMF Archive
Post by: MarkoWeb on December 11, 2006, 06:35:14 PM
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
Title: Re: SMF Archive
Post by: vbgamer45 on December 11, 2006, 07:18:23 PM
Is the forum in the root directory of public_html?
Title: Re: SMF Archive
Post by: MarkoWeb on December 11, 2006, 07:24:14 PM
No, forum is in directory "forum"
Title: Re: SMF Archive
Post by: vbgamer45 on December 11, 2006, 07:57:12 PM
Well then u need to change it to
require_once('../forum/Settings.php');
Title: Re: SMF Archive
Post by: 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!
Title: Re: SMF Archive
Post by: MarkoWeb 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.***.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
Title: Re: SMF Archive
Post by: vbgamer45 on December 12, 2006, 10:13:41 AM
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.
Title: Re: SMF Archive
Post by: MarkoWeb on December 12, 2006, 10:26:35 AM
What I need to change?
Title: Re: SMF Archive
Post by: vbgamer45 on December 12, 2006, 10:28:55 AM
Anything that contains

<a href="' . $boardurl . '/archive.php?

You would change it to the url that you want to use.
Title: Re: SMF Archive
Post by: MarkoWeb on December 12, 2006, 10:33:14 AM
tnx ;)
Title: Re: SMF Archive
Post by: clemenzo on December 12, 2006, 10:34:33 AM
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!
Title: Re: SMF Archive
Post by: vbgamer45 on December 12, 2006, 10:39:41 AM
Hmm try to add in Archive.php
Find

define('SMF', '1');

Add before

header('Content-Type: text/html');


And see if that helps
Title: Re: SMF Archive
Post by: clemenzo on December 12, 2006, 10:48:03 AM
Unfortunately no.. :(
Title: Re: SMF Archive
Post by: 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


http://www.google.com/search?hl=en&lr=&q=Premature+end+of+script+headers++php&btnG=Search
Title: Re: SMF Archive
Post by: clemenzo on December 12, 2006, 11:03:19 AM
Viola! That fixed it! Thanks vbgamer45!

I tried removing the header('Content-Type: text/html'); and it still works!
Title: Re: SMF Archive
Post by: vbgamer45 on December 12, 2006, 11:09:30 AM
What fixed it? I want to know heh did you do the permission thing?
Title: Re: SMF Archive
Post by: clemenzo on December 12, 2006, 11:19:25 AM
Yup, 755 fixed it
Title: Re: SMF Archive
Post by: MarkoWeb on December 23, 2006, 08:15:05 AM
http://arhiva.kupus.org/index.php?topic=680.0
mod dont work with smf 1.1.1
Title: Re: SMF Archive
Post by: Roph on December 26, 2006, 11:57:59 AM
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.
Title: Re: SMF Archive
Post by: vbgamer45 on December 26, 2006, 12:10:20 PM
Hmm, I will update it in a bit for 1.1.1
Title: Re: SMF Archive
Post by: ChaosEnergy on December 30, 2006, 07:55:04 AM
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
Title: Re: SMF Archive
Post by: Member on January 09, 2007, 05:28:28 AM
great mod.. thanks!!
Title: Re: SMF Archive
Post by: Skunkie on January 10, 2007, 12:52:34 AM
I just wanted to say thanks vbgamer45, for the wonderful archive mod.  Works great on my installation.  Best regards!
Title: Re: SMF Archive
Post by: Isaac on January 12, 2007, 10:26:15 PM
Hmm, would it be possible to restrict Spiders only to the archive version?
Title: Re: SMF Archive
Post by: 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.
Title: Re: SMF Archive
Post by: Isaac on January 13, 2007, 09:28:47 PM
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.
Title: Re: SMF Archive
Post by: Skunkie on January 14, 2007, 04:55:06 AM
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.
Title: Re: SMF Archive
Post by: 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?
Title: Re: SMF Archive
Post by: Roph on February 15, 2007, 02:18:25 PM
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. :)
Title: Re: SMF Archive
Post by: Skunkie on February 16, 2007, 02:42:36 AM
Keep in mind the adsense bot only crawls your site when you have adsense on your forums.
Title: Re: SMF Archive
Post by: clemenzo on February 16, 2007, 10:24:31 AM
I see.. I do have adsense in my forums and would give this try when I have the time.. Thank you!
Title: Re: SMF Archive
Post by: Skunkie on February 16, 2007, 07:06:36 PM
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.
Title: Re: SMF Archive
Post by: 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.
Title: Re: SMF Archive
Post by: MarkoWeb on March 03, 2007, 01:05:49 PM
mod dont work with smf 1.1.1 :(
http://viwo.eu/forum/archive.php?topic=1278.0
Title: Re: SMF Archive
Post by: TrueSatan on March 03, 2007, 01:12:13 PM
 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.
Title: Re: SMF Archive
Post by: TrueSatan on March 03, 2007, 01:24:46 PM
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.
Title: Re: SMF Archive
Post by: Roph on March 04, 2007, 01:56:39 PM
I got similar errors, though I just edited the script and disabled the error reporting. It works fine: http://rmrk.net/archive.php
Title: Re: SMF Archive
Post by: Gourgi on March 19, 2007, 06:53:31 AM
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
Title: Re: SMF Archive
Post by: Roph 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 :)
Title: Re: SMF Archive
Post by: Gourgi on March 19, 2007, 01:08:49 PM
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   ;)
Title: Re: SMF Archive
Post by: 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?
Title: Re: SMF Archive
Post by: tatore on June 17, 2007, 08:48:34 AM
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.
Title: Re: SMF Archive
Post by: tatore on July 04, 2007, 09:17:42 AM
I just wonder why, if I click on&nbsp; |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
Title: Re: SMF Archive
Post by: Xenlarod on July 06, 2007, 07:14:13 AM
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 ;_;!
Title: Re: SMF Archive
Post by: tatore on July 06, 2007, 07:49:00 AM
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>&nbsp;<a href="' . $boardurl . '/index.php?action=search">Ricerca</a>&nbsp;<a href="' . $boardurl . '/index.php?action=mlist">Utenti</a>
      </div>
   </div>';
The red words are the words you may change...in your language
Title: Re: SMF Archive
Post by: Xenlarod on July 06, 2007, 07:56:44 AM
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 ^^"
Title: Re: SMF Archive
Post by: vbgamer45 on July 06, 2007, 08:02:39 AM
Yeah multilanguage is not currently built into this mod.
Title: Re: SMF Archive
Post by: Xenlarod on July 06, 2007, 08:03:54 AM
Oh... Okay!So, I create double file, one in Italian and secondi in English! Anyway, thanks a lot for reply and this mod ^_^!
Title: Re: SMF Archive
Post by: Troja on July 14, 2007, 01:44:19 PM
Can I change then for this Mod or another Mod of you the language for my forum myself? So other languages insert?
Title: Re: SMF Archive
Post by: Sakae on July 25, 2007, 01:51:07 PM
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.
Title: Re: SMF Archive
Post by: tatore on July 25, 2007, 02:12:28 PM
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.
Title: Re: SMF Archive
Post by: Sakae on July 29, 2007, 10:49:13 PM
It solved my problem. Thanks, tatore, great mod!
Title: Re: SMF Archive
Post by: TrueSatan on September 16, 2007, 01:58:46 PM
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.
Title: Re: SMF Archive
Post by: fgoc on January 09, 2008, 11:57:58 PM
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?
Title: Re: SMF Archive
Post by: vbgamer45 on January 10, 2008, 12:02:44 AM
The mod should be checking based on board permissions
Title: Re: SMF Archive
Post by: EagleTrades on March 01, 2008, 02:27:17 PM
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.
Title: Re: SMF Archive
Post by: 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!
Title: Re: SMF Archive
Post by: vbgamer45 on April 13, 2008, 10:12:39 AM
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.

Title: Re: SMF Archive
Post by: cellax on April 13, 2008, 06:21:06 PM
hi, nice mod, thx

it would be nice to have a "stair" structure to preserve main board and child one.

is it possible?
Title: Re: SMF Archive
Post by: shadow82x on April 27, 2008, 05:30:58 PM
It does not seem like a pain to update to SMF2.0 but is it possible?
Title: Re: SMF Archive
Post by: vbgamer45 on April 27, 2008, 05:33:04 PM
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
Title: Re: SMF Archive
Post by: cellax on May 03, 2008, 12:09:26 AM
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
Title: Re: SMF Archive
Post by: 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... :(
Title: Re: SMF Archive
Post by: vbgamer45 on May 08, 2008, 10:59:13 PM
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.
Title: Re: SMF Archive
Post by: Pratt on May 08, 2008, 11:24:17 PM
Thanks You!! It works perfectly!
Title: Re: SMF Archive
Post by: City Builder on May 19, 2008, 04:23:37 AM
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.
Title: Re: SMF Archive
Post by: Frozt on October 03, 2008, 07:19:34 AM
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)

Title: Re: SMF Archive
Post by: bmbr on October 27, 2008, 05:55:48 PM
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 :)
Title: Re: SMF Archive
Post by: vbgamer45 on October 27, 2008, 08:09:49 PM
Fixed thanks!
Title: Re: SMF Archive
Post by: 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
Title: Re: SMF Archive
Post by: vbgamer45 on October 27, 2008, 08:25:08 PM
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...
Title: Re: SMF Archive
Post by: genieuk on October 27, 2008, 08:31:38 PM
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
Title: Re: SMF Archive
Post by: The Saviour on November 01, 2008, 06:11:52 PM
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...
Title: Re: SMF Archive
Post by: vbgamer45 on November 01, 2008, 06:21:57 PM
I would check the file permissions make sure the file is set to 755
Title: Re: SMF Archive
Post by: The Saviour on November 02, 2008, 01:33:42 AM
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
Title: Re: SMF Archive
Post by: vbgamer45 on November 02, 2008, 01:38:33 AM
You can just upload archive.php to your forum's root directory then chmod it.
Title: Re: SMF Archive
Post by: The Saviour on November 02, 2008, 01:37:17 AM
Done and working...

Thx!
Title: Re: SMF Archive
Post by: Nibogo on November 22, 2008, 10:16:26 PM
vbgamer45 any update for SMF 2.0??

Thanks
Title: Re: SMF Archive
Post by: vbgamer45 on November 22, 2008, 11:34:46 PM
Not yet this one is a little tricky
Title: Re: SMF Archive
Post by: tyhgdgh on November 23, 2008, 04:01:32 AM
wait, how do you view, ive tried archive.php
Title: Re: SMF Archive
Post by: vbgamer45 on November 23, 2008, 01:59:43 PM
Visit it by going to http://www.yourforum.com/archive.php after you have it installed.
Title: Re: SMF Archive
Post by: 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.
Title: Re: SMF Archive
Post by: TechPrince on November 27, 2008, 04:19:01 PM
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 :)
Title: Re: SMF Archive
Post by: islam2hamy on November 30, 2008, 09:27:34 AM
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.

??
Title: Re: SMF Archive
Post by: 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');

Title: Re: SMF Archive
Post by: chrisb on December 29, 2008, 08:10:59 PM
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
Title: Re: SMF Archive
Post by: SilentMoon on January 01, 2009, 05:47:23 PM
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');

Title: Re: SMF Archive
Post by: minos on January 22, 2009, 06:56:27 PM
great mod but update to smf 2 please XD its  kinda necessary on my site
Title: Re: SMF Archive
Post by: 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
Title: Re: SMF Archive
Post by: hartiberlin on January 24, 2009, 06:21:59 PM
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 ! ;)
Title: Re: SMF Archive
Post by: Nibogo on February 07, 2009, 09:32:54 AM
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?? :)
Title: Re: SMF Archive
Post by: vbgamer45 on February 07, 2009, 11:28:36 AM
Maybe if i got time.
Title: Re: SMF Archive
Post by: kingkingston on May 21, 2009, 01:26:39 AM
I am a dummy so i don't know how to add this to my site
Title: Re: SMF Archive
Post by: vbgamer45 on May 21, 2009, 08:36:48 AM
Just use the package manger then
visit
http://www.yoursite.com/archive.php
Title: Re: SMF Archive
Post by: chrishicks on July 27, 2009, 12:51:26 AM
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.
Title: Re: SMF Archive
Post by: chrishicks on July 29, 2009, 02:55:21 PM
Bump hoping someone can suggest something to possibly fix this.
Title: Re: SMF Archive
Post by: chrishicks on July 31, 2009, 09:53:43 PM
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.
Title: Re: SMF Archive
Post by: vbgamer45 on July 31, 2009, 11:06:27 PM
Haven't looked at this mod in months might have time next week
Title: Re: SMF Archive now supports SMF 2.0!
Post by: vbgamer45 on August 16, 2009, 04:45:38 PM
New release now supports SMF 2.0
Title: Re: SMF Archive now supports SMF 2.0!
Post by: Tattoocu_Cartel on August 16, 2009, 06:22:00 PM
I'm having Turkish character problem. How do I fix this problem?

version 2.0 rc1.2
Title: Re: SMF Archive now supports SMF 2.0!
Post by: Tattoocu_Cartel on August 16, 2009, 06:26:15 PM
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
Title: Re: SMF Archive now supports SMF 2.0!
Post by: chrishicks on August 16, 2009, 06:52:26 PM
Still getting the same errors above. I removed the old version and tried 2.0 and still the same. Any ideas?
Title: Re: SMF Archive now supports SMF 2.0!
Post by: 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);
Title: Re: SMF Archive now supports SMF 2.0!
Post by: chrishicks on August 16, 2009, 07:10:39 PM
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.
Title: Re: SMF Archive now supports SMF 2.0!
Post by: vbgamer45 on August 16, 2009, 07:21:58 PM
Not sure what would cause works fine on my site
Title: Re: SMF Archive now supports SMF 2.0!
Post by: chrishicks on August 16, 2009, 07:24:11 PM
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__);
Title: Re: SMF Archive now supports SMF 2.0!
Post by: checkmater on August 25, 2009, 01:19:30 PM
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!
Title: Re: SMF Archive now supports SMF 2.0!
Post by: vbgamer45 on August 25, 2009, 02:30:18 PM
SEO4SMF is not being updated anymore it seems so probably will not add support for that.
Title: Re: SMF Archive now supports SMF 2.0!
Post by: nitkayni on August 31, 2009, 02:05:04 PM
thanks very nice  ;)

SMF 2.0 RC1.2   demo (http://www.forumsende.com/forumlife/archives.php)
Title: Re: SMF Archive now supports SMF 2.0 RC2!
Post by: vbgamer45 on November 08, 2009, 09:26:29 PM
Updated for SMF 2.0 RC2
Title: Re: SMF Archive now supports SMF 2.0 RC2!
Post by: kiano on December 10, 2009, 07:04:10 PM
thanks thanks and thanks! very userfull ;))))
Title: Re: SMF Archive now supports SMF 2.0 RC2!
Post by: vbgamer45 on December 10, 2009, 07:05:33 PM
Glad you enjoy the mod!
Title: Re: SMF Archive now supports SMF 2.0 RC2!
Post by: beltazar on December 10, 2009, 10:17:38 PM
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



Title: Re: SMF Archive now supports SMF 2.0 RC2!
Post by: vbgamer45 on December 10, 2009, 10:42:22 PM
Also check this post for help
http://www.simplemachines.org/community/index.php?topic=34270.0
Title: Re: SMF Archive now supports SMF 2.0 RC2!
Post by: hartiberlin on December 15, 2009, 02:54:14 PM
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 ?
Title: Re: SMF Archive now supports SMF 2.0 RC2!
Post by: vbgamer45 on December 15, 2009, 03:22:47 PM
Does not have support to avoid duplicate content. You can set it to not index these pages with a robots.txt if needed
Title: Re: SMF Archive now supports SMF 2.0 RC2!
Post by: IdanC on January 24, 2010, 09:17:03 AM
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?
Title: Re: SMF Archive now supports SMF 2.0 RC2!
Post by: vbgamer45 on January 24, 2010, 09:28:15 AM
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
Title: Re: SMF Archive now supports SMF 2.0 RC2!
Post by: IdanC on January 24, 2010, 09:33:20 AM
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.
Title: Re: SMF Archive now supports SMF 2.0 RC2!
Post by: vbgamer45 on January 24, 2010, 09:37:12 AM
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.
Title: Re: SMF Archive now supports SMF 2.0 RC3!
Post by: vbgamer45 on March 08, 2010, 07:25:02 PM
Updated for SMF 2.0 RC3!
Title: Re: SMF Archive now supports SMF 2.0 RC3!
Post by: aussieherps on March 28, 2010, 10:45:19 PM
Does this mod allow you to prune in the forum and recall from the archives as the name suggests?
Title: Re: SMF Archive now supports SMF 2.0 RC3!
Post by: vbgamer45 on March 28, 2010, 11:08:01 PM
No it is actually is  just a lite weight version of the message board for search engines.
Title: Re: SMF Archive now supports SMF 2.0 RC3!
Post by: aussieherps on March 29, 2010, 08:06:22 AM
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.
Title: Re: SMF Archive now supports SMF 2.0 RC3!
Post by: vbgamer45 on March 29, 2010, 09:31:19 AM
Not with this mod out of the scope of this mod.
Title: Re: SMF Archive now supports SMF 2.0 RC3!
Post by: Antes on May 20, 2010, 07:47:37 AM
http://www.mmobrowser.com/archive2.php ( 777 CHMOD )
Title: Re: SMF Archive now supports SMF 2.0 RC3!
Post by: OnlineFunCorner on June 20, 2010, 02:54:32 AM
But
When Open In Mobile It Also Only Show Text!!!
What To Do?
Title: Re: SMF Archive now supports SMF 2.0 RC3!
Post by: vbgamer45 on June 20, 2010, 07:50:29 AM
Don't understand?
Title: Re: SMF Archive now supports SMF 2.0 RC3!
Post by: 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.
Title: Re: SMF Archive now supports SMF 2.0 RC3!
Post by: Nibogo on June 21, 2010, 05:14:38 PM
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
Title: Re: SMF Archive now supports SMF 2.0 RC3!
Post by: John1 on June 21, 2010, 06:29:04 PM
thanks
Title: Re: SMF Archive now supports SMF 2.0 RC3!
Post by: Nibogo on June 21, 2010, 06:34:57 PM
Quote from: John1 on June 21, 2010, 06:29:04 PM
thanks

You're welcome!
Title: Re: SMF Archive now supports SMF 2.0 RC3!
Post by: rd on June 21, 2010, 06:37:37 PM
OMG! I can't believe I haven't seen this before. Great mod vbgamer, gonna install this soon :)
Title: Re: SMF Archive now supports SMF 2.0 RC3!
Post by: John1 on June 23, 2010, 04:40:18 AM
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 ?
Title: Re: SMF Archive now supports SMF 2.0 RC3!
Post by: John1 on June 23, 2010, 06:22:53 AM
Is there a way to make the archive links go to the main forum if someone click on them ?
Title: Re: SMF Archive now supports SMF 2.0 RC3!
Post by: vbgamer45 on June 23, 2010, 08:57:36 AM
I believe there is a full version link on some of the pages.
Title: Re: SMF Archive now supports SMF 2.0 RC3!
Post by: John1 on June 23, 2010, 10:14:42 AM
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.
Title: Re: SMF Archive now supports SMF 2.0 RC3!
Post by: vbgamer45 on June 23, 2010, 10:33:03 AM
You would have to edit it since that is not how the mod works.
Title: Re: SMF Archive now supports SMF 2.0 RC3!
Post by: John1 on June 23, 2010, 10:59:56 AM
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.
Title: Re: SMF Archive now supports SMF 2.0 RC3!
Post by: vbgamer45 on June 23, 2010, 11:08:15 AM
Not sure I made the mod long ago but should be simple if you take a look at it.
Title: Re: SMF Archive now supports SMF 2.0 RC3!
Post by: John1 on June 23, 2010, 11:11:25 AM
I dont know much about coding, just getting ideas from here.
Title: Re: SMF Archive now supports SMF 2.0 RC3!
Post by: jackulator on March 29, 2011, 06:05:41 PM
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?
Title: Re: SMF Archive now supports SMF 2.0 RC3!
Post by: vbgamer45 on March 29, 2011, 11:40:02 PM
If the mod is doing via bbc it would do it already if not would require modifying of the archive system.
Title: Re: SMF Archive now supports SMF 2.0 RC3!
Post by: Skipper. on April 06, 2011, 04:39:07 AM
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
Title: Re: SMF Archive now supports SMF 2.0 RC3!
Post by: Skipper. on April 08, 2011, 01:58:36 PM
Anyone?
Title: Re: SMF Archive now supports SMF 2.0 RC3!
Post by: vbgamer45 on April 08, 2011, 02:02:10 PM
Could be a seo mod that rewrites url causing it to go back to homepage or something not sure.
Title: Re: SMF Archive now supports SMF 2.0 RC3!
Post by: Skipper. on April 08, 2011, 03:18:41 PM
I do not have any SEO mod installed.
Title: Re: SMF Archive now supports SMF 2.0 RC3!
Post by: vbgamer45 on April 08, 2011, 03:36:17 PM
Out of ideas maybe something in your .htaccess is redireting the url.
Title: Re: SMF Archive now supports SMF 2.0 RC3!
Post by: Skipper. on April 08, 2011, 03:49:24 PM
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
Title: Re: SMF Archive now supports SMF 2.0 RC3!
Post by: vbgamer45 on April 08, 2011, 03:52:35 PM
That would mess it up not sure what mod that is from
Title: Re: SMF Archive now supports SMF 2.0 RC3!
Post by: Skipper. on April 09, 2011, 03:14:54 PM
What, then, to put in. htacces? I tried various combinations but none was successful.
Title: Re: SMF Archive now supports SMF 2.0 RC3!
Post by: vbgamer45 on April 09, 2011, 03:20:07 PM
You would have to remove that code or add a rule to skip archive.php I don't know .htaccess scripting without researching it.
Title: Re: SMF Archive now supports SMF 2.0
Post by: tectonny on June 23, 2011, 08:59:43 PM
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.
Title: Re: SMF Archive now supports SMF 2.0
Post by: tectonny on July 05, 2011, 08:40:25 PM
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?
Title: Re: SMF Archive now supports SMF 2.0
Post by: vbgamer45 on July 05, 2011, 08:44:36 PM
It is possible you would need to add a link for a reply button.
Generally though the archive is only used for search engines.
Title: Re: SMF Archive now supports SMF 2.0
Post by: PLAYBOY on July 11, 2011, 04:33:48 AM
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?
Title: Re: SMF Archive now supports SMF 2.0
Post by: Tomy Tran on July 11, 2011, 04:41:15 AM
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!
Title: Re: SMF Archive now supports SMF 2.0
Post by: PLAYBOY on July 11, 2011, 04:44:58 AM
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.
Title: Re: SMF Archive now supports SMF 2.0
Post by: vbgamer45 on July 11, 2011, 10:01:51 AM
The file no longer exists and it is still visited by search engines causing the error to be logged in your server logs.
Title: Re: SMF Archive now supports SMF 2.0
Post by: PLAYBOY on July 11, 2011, 10:03:03 AM
Gotcha. Thx.
Title: Re: SMF Archive now supports SMF 2.0
Post by: Tomy Tran on July 11, 2011, 11:34:15 PM
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
Title: Re: SMF Archive now supports SMF 2.0
Post by: cellax on July 13, 2011, 06:42:05 PM
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
Title: Re: SMF Archive now supports SMF 2.0
Post by: vbgamer45 on July 13, 2011, 08:09:36 PM
The issue was the permission on the file I guess when you reuploaded it or edited it was ok.
Title: Re: SMF Archive now supports SMF 2.0
Post by: Tomy Tran on July 15, 2011, 04:05:01 AM
If you use PrettyURLs, please fill /archive2.php in the box of PrettyURLs Settings ;)
Title: Re: SMF Archive now supports SMF 2.0
Post by: tectonny on July 15, 2011, 08:20:17 PM
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
Title: Re: SMF Archive now supports SMF 2.0
Post by: humbleworld on December 30, 2011, 05:18:21 PM
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?

Title: Re: SMF Archive now supports SMF 2.0
Post by: vbgamer45 on December 30, 2011, 05:22:25 PM
It would be considered duplicate since it is the same content just with less theme stuff.
Title: Re: SMF Archive now supports SMF 2.0
Post by: humbleworld on December 30, 2011, 05:52:52 PM
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.
Title: Re: SMF Archive now supports SMF 2.0
Post by: humbleworld on February 20, 2012, 11:43:32 AM
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?
Title: Re: SMF Archive now supports SMF 2.0
Post by: pbackx on May 03, 2012, 09:42:57 AM
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?
Title: Re: SMF Archive now supports SMF 2.0
Post by: Tomy Tran on May 03, 2012, 11:01:02 AM
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."
Title: Re: SMF Archive now supports SMF 2.0
Post by: humbleworld on July 07, 2012, 03:05:43 AM
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.
Title: Re: SMF Archive now supports SMF 2.0
Post by: Tomy Tran on July 08, 2012, 12:21:38 PM
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 );
Title: Re: SMF Archive now supports SMF 2.0
Post by: humbleworld on July 09, 2012, 10:50:12 AM
Thank you, Tomy. I also tried ErrorDocument 404 /index.php, which I placed in .htaccess. It works well so far.
Title: Re: SMF Archive now supports SMF 2.0
Post by: Tomy Tran on July 10, 2012, 12:18:27 AM
Nice to know, can you show your solution in detail?
Title: Re: SMF Archive now supports SMF 2.0
Post by: mikedijital on November 30, 2012, 10:49:15 PM
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();



Title: Re: SMF Archive now supports SMF 2.0
Post by: mikedijital on December 01, 2012, 07:17:36 PM
bump
Title: Re: SMF Archive now supports SMF 2.0
Post by: vbgamer45 on December 01, 2012, 07:24:17 PM
Open archive2.php

Find


include 'SSI.php';

Add before

ini_set('display_errors', '0');

Title: Re: SMF Archive now supports SMF 2.0
Post by: mikedijital on December 01, 2012, 07:28:04 PM
Thank you so much VBgamer,works like a charm!    =)
Title: Re: SMF Archive now supports SMF 2.0
Post by: vbgamer45 on December 01, 2012, 07:29:34 PM
Glad to help
Title: Re: SMF Archive now supports SMF 2.0
Post by: mikedijital on December 01, 2012, 09:08:31 PM
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
Title: Re: SMF Archive now supports SMF 2.0
Post by: pikeman on July 08, 2013, 03:49:27 PM
Hello,
how to add banners to the archive?
Title: Re: SMF Archive now supports SMF 2.0
Post by: vbgamer45 on July 08, 2013, 04:03:44 PM
You have to edit the archive.php file in the root of your forum directory.
Title: Re: SMF Archive now supports SMF 2.0
Post by: pikeman on July 08, 2013, 04:09:17 PM
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
Title: Re: SMF Archive now supports SMF 2.0
Post by: pikeman on July 09, 2013, 07:08:40 AM
I found where, after this code fragment...

<div id="fullver">Full Version: <a href="' . $url . '">' . $title . '</a>
</div>
Title: Re: SMF Archive now supports SMF 2.0
Post by: vbgamer45 on July 09, 2013, 09:28:05 AM
Glad you found where it is at
Title: Re: SMF Archive
Post by: SMFHacks.com Team on January 15, 2017, 01:14:27 PM
Minor update
2.0.1
!Removed some mysql_ functions from SMF 2.0 version
Title: Re: SMF Archive
Post by: Dblog on July 09, 2019, 11:27:49 PM
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
Title: Re: SMF Archive
Post by: vbgamer45 on July 09, 2019, 11:29:32 PM
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.
Title: Re: SMF Archive
Post by: Dblog on July 09, 2019, 11:33:43 PM
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.
Title: Re: SMF Archive
Post by: vbgamer45 on July 10, 2019, 07:10:17 AM
There might be some tools that crawl and do it. Check out something like a  https://www.httrack.com/
Title: Re: SMF Archive
Post by: GigaWatt on July 10, 2019, 08:00:01 AM
@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 :)).
Title: Re: SMF Archive
Post by: vbgamer45 on June 29, 2023, 01:02:16 AM
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
Title: Re: SMF Archive
Post by: Fisch.666 on September 02, 2023, 02:51:10 PM
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.
Title: Re: SMF Archive
Post by: vbgamer45 on September 02, 2023, 03:16:42 PM
Try this update

Version 3.0.1
!Hide unapproved topics/messages
!Fix member group error when viewing a board
Title: Re: SMF Archive
Post by: Fisch.666 on September 03, 2023, 05:12:52 AM
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.