Welcome, Guest. Please Login or Register.
April 26, 2025, 04:23:58 PM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  Development  |  Completed mods  |  [BETA] Archives - Tested « previous next »
Pages: [1] 2 Reply Ignore Print
Author Topic: [BETA] Archives - Tested  (Read 3857 times)
Joseph Fung
Global Moderator
YaBB God
*****
Posts: 4512


Keep smiling: it makes others nervous.

WWW
[BETA] Archives - Tested
« on: January 03, 2003, 11:16:43 AM »
Reply with quote

I tested both the 1.4.1 and 1.5.0 versions of this mod and they appeared to intall fine on my computer.

THIS IS A BETA MOD.

PLEASE don't install this on production sites.  If you do, and there are problems, I will mock you heartlessly ;D

Also, when you archive a topic you can not "un-archive" it.  This is non-reversable.

This mod will create an archiving system.  The archives are stored as php pages
that are non-spiderable (sorry people).  They will still respond to most forum layout and preference settings including modifications to the template.

The archives maintain 3 levels of security - world readable, members only and admins/global mods.

The archives are searchable on the subject of the first topic, and on keywords the archiver can set on archiving.  These key words can be changed at any time.
The security settings can be changed at any time.

Keywords are limited to 255 characters worth of text

Only admins and global moderators can archive topics.

It's easy to install, but there are a number of files you need to upload.  The readme.txt is short, but explains what to do.
Logged

Eloya
Full Member
***
Posts: 127


Magistrat

nschunter@eloya.net WWW
Re:[BETA] Archives - Tested
« Reply #1 on: January 03, 2003, 01:21:56 PM »
Reply with quote

Okay, I've one bug:

My archive is in /home/www/web1/html/Archiv .
If I move a thread with only one page, everything went fine. But if I move a page wit multiple pages (2 or more, tested it a few times) then I get this message if I trie to select the now archived thread in the archive:

Parse error: parse error in /home/www/web1/html/Archiv/118_0.php on line 13
On line 13 in the archived thread there is always a:

      <td><b><?php echo $txt[139]; ?>:</b><?php echo $modSettings['compactTopicPagesEnable'] ? " [<B>1</B>] <a class="navPages" href="<?php echo $cgi?>;action=archives;sa=display;sortBy=<?php echo $sortBy?>;dir=<?php echo $dir?>;topic=118;start=15">2</a> " : " <b>1</b> <a href="<?php echo $cgi?>;action=archives;sa=display;sortBy=<?php echo $sortBy?>;dir=<?php echo $dir?>;topic=118;start=15">2</a> <a href="<?php echo $cgi?>;action=archives;sa=display;sortBy=<?php echo $sortBy?>;dir=<?php echo $dir?>;topic=118;start=15">&#187;</a> "; ?></font></td>
      <td align=right><input type=text size=30 name=searchstring value="<?php echo htmlspecialchars($searchstring); ?>"> <input type=button value="<?php echo $txt['archives21']; ?>" onclick="window.location.href='<?php echo $cgi?>;action=archives;sa=search;searchstring='+URLEncode(searchstring.value);"></td>

This error appears regardless of the page I cklick on. Here's an example:

http://www.travar.de/koops/priv_eloya/index.php?board=;action=archives

Try to click an ED-CHAT, it will throw up this message ;)

Greetings,

Nico

PS: If this works I'll give you a tablet full of beer - or a other liquid of your choice *gggg*
We've currently about 80.000 Posts waiting for archiving *fg*
Logged

"Der Unterschied zwischen Magie und Alltag ist die Betrachtungsweise!"
http://www.travar.de
Joseph Fung
Global Moderator
YaBB God
*****
Posts: 4512


Keep smiling: it makes others nervous.

WWW
Re:[BETA] Archives - Tested
« Reply #2 on: January 03, 2003, 02:32:55 PM »
Reply with quote

Ahh - stupid mistake on my part.

I fixed the Archives.php  here's the new version. I also updated the zip file attached to the first post for all those people who will download it later ;D
Logged

Eloya
Full Member
***
Posts: 127


Magistrat

nschunter@eloya.net WWW
Re:[BETA] Archives - Tested
« Reply #3 on: January 03, 2003, 02:43:08 PM »
Reply with quote

Could you point out where the error was?

Greetings,

Nico
Logged

"Der Unterschied zwischen Magie und Alltag ist die Betrachtungsweise!"
http://www.travar.de
Eloya
Full Member
***
Posts: 127


Magistrat

nschunter@eloya.net WWW
Re:[BETA] Archives - Tested
« Reply #4 on: January 03, 2003, 03:02:55 PM »
Reply with quote

Found it with Ultraedit ;) Works fine now - but the search funktion will not work *gggg*

Nico
Logged

"Der Unterschied zwischen Magie und Alltag ist die Betrachtungsweise!"
http://www.travar.de
Joseph Fung
Global Moderator
YaBB God
*****
Posts: 4512


Keep smiling: it makes others nervous.

WWW
Re:[BETA] Archives - Tested
« Reply #5 on: January 03, 2003, 03:06:00 PM »
Reply with quote

where is your urlencode.js file? did you put it in the right place? ;D
Logged

Joseph Fung
Global Moderator
YaBB God
*****
Posts: 4512


Keep smiling: it makes others nervous.

WWW
Re:[BETA] Archives - Tested
« Reply #6 on: January 03, 2003, 03:07:09 PM »
Reply with quote

btw, could you send me that german translation so I can package it with the final mod?
Logged

Eloya
Full Member
***
Posts: 127


Magistrat

nschunter@eloya.net WWW
Re:[BETA] Archives - Tested
« Reply #7 on: January 03, 2003, 03:12:58 PM »
Reply with quote

My mistake - I forgot to upload it *smiles*  ;D

Here's the translation into German:

<Edit file>
german.lng
</Edit file>

<Search for>
if ($MenuType == 1)
{
   $menusep = ' | ';
</Search for>

<Add after>
   $img['archives'] = 'Archiv';
</Add after>

<Search for>
}
else
{
   $menusep = ' ';
</Search for>

<Add after>
   $img['archives'] = "<img src=\"$imagesdir/menu_ar.gif\" alt=\"$txt[2]\" border=\"0\">";
</Add after>

<Search for>
if ($MenuType == 1)
{
   $menusep = ' | ';
</Search for>

<Add before>

$txt['archives1'] = 'Archiv';
$txt['archives2'] = 'Archivierungsoptionen setzen';
$txt['archives3'] = 'Jedermann kann lesen';
$txt['archives4'] = 'Es dürfen nur registrierte Mitglieder lesen';
$txt['archives5'] = 'Nur Administratoren und Globale Moderatoren ';
$txt['archives6'] = 'Sorry, nur registrierte Mitglieder können diesen archivierten Beitrag lesen.';
$txt['archives7'] = 'Sorry, nur Administratoren und Globale Moderatoren können diesen archivierten Beitrag lesen.';
$txt['archives8'] = 'Sicherheitslevel';
$txt['archives9'] = 'Schlüsselworte';
$txt['archives10'] = 'Beispiele: java, programming, programmers, c++';
$txt['archives11'] = 'Bevor dieser Beitrag archiviert werden kann musst du den Sicherheitslevel und die Schlüsselworte setzen. Bedenke das diese Punkt auch nachträglich geändert werden können.';
$txt['archives12'] = 'Ins Archiv verschieben';
$txt['archives13'] = 'Archivierungs - Report';
$txt['archives14'] = 'Gehe zu dieser Seite';
$txt['archives15'] = 'Zurück zu ';
$txt['archives16'] = 'Folgende Archivseiten wurden erstellt.  Du kannst eine Seite direkt anwählen oder wieder zurückgehen.';
$txt['archives17'] = 'Sorry, aber es gibt keine archivierten Beiträge für dich.';
$txt['archives18'] = '[Hier klicken um die Einstellungen für diesen archivierten Beitrag zu ändern]';
$txt['archives19'] = 'Einstellungen speichern';
$txt['archives20'] = 'Abbrechen';
$txt['archives21'] = 'Archiv durchsuchen';
$txt['archives22'] = 'Es tut uns leid, deine Suche ergab kein Ergebnis.';
$txt['archives23'] = 'Nur berechtigte Benutzer';

</Add before>

Greetings,

Nico
« Last Edit: January 03, 2003, 03:20:41 PM by Eloya » Logged

"Der Unterschied zwischen Magie und Alltag ist die Betrachtungsweise!"
http://www.travar.de
klumy
Sr. Member
****
Posts: 432


Re:[BETA] Archives - Tested
« Reply #8 on: January 03, 2003, 03:19:31 PM »
Reply with quote

@Eloya

There is a small translation bug at the end.

- Instead of

"deine Sucher ergab kein Ergebnis"

is must be

"deine Suche ergab kein Ergebnis"


- tt['archives5'] wasn't translated

it must be Administratoren; Globale Moderatoren
Logged
Eloya
Full Member
***
Posts: 127


Magistrat

nschunter@eloya.net WWW
Re:[BETA] Archives - Tested
« Reply #9 on: January 03, 2003, 03:20:54 PM »
Reply with quote

DONE ;)

I've corrected it.
Logged

"Der Unterschied zwischen Magie und Alltag ist die Betrachtungsweise!"
http://www.travar.de
Eloya
Full Member
***
Posts: 127


Magistrat

nschunter@eloya.net WWW
Re:[BETA] Archives - Tested
« Reply #10 on: January 03, 2003, 03:33:42 PM »
Reply with quote

And one more ;)

Under http://www.travar.de/koops/priv_eloya/index.php?board=7;action=archives i've a lot of archived threads. If I click now on page two he directs me to a board in the forum ;)

Greetings,

Nico
Logged

"Der Unterschied zwischen Magie und Alltag ist die Betrachtungsweise!"
http://www.travar.de
Eloya
Full Member
***
Posts: 127


Magistrat

nschunter@eloya.net WWW
Re:[BETA] Archives - Tested
« Reply #11 on: January 03, 2003, 03:38:03 PM »
Reply with quote

Corrected. You must replace your action=messageindex throughout the entire file with action=archives ;)

Greetings,

Nico
Logged

"Der Unterschied zwischen Magie und Alltag ist die Betrachtungsweise!"
http://www.travar.de
klumy
Sr. Member
****
Posts: 432


Re:[BETA] Archives - Tested
« Reply #12 on: January 03, 2003, 03:49:14 PM »
Reply with quote

I've a question.
What does happen, if you archive a thread "Testthread". And someone link to the old location of "testthread" before it has been moved to the archive.

Will there be an specific error message like this, if you click on the old link of "testthread"?

"The thread, you have been looking for has been archived. Please search at the archive for it"

Or better: Will you directly linked to the archived topic
Logged
Eloya
Full Member
***
Posts: 127


Magistrat

nschunter@eloya.net WWW
Re:[BETA] Archives - Tested
« Reply #13 on: January 03, 2003, 03:51:45 PM »
Reply with quote

Defintely no. Although this would be a nice feature I think the preferences of this mod should be to move informations out of your DB. People who are looking for an old thread can search the archive. But as an option, for importan threads, this would be fine!

Nico
Logged

"Der Unterschied zwischen Magie und Alltag ist die Betrachtungsweise!"
http://www.travar.de
Joseph Fung
Global Moderator
YaBB God
*****
Posts: 4512


Keep smiling: it makes others nervous.

WWW
Re:[BETA] Archives - Tested
« Reply #14 on: January 03, 2003, 04:55:14 PM »
Reply with quote

Thanks - I updated the zip with the changes to Archive.php as well as the german translations.

Regarding the bookmarking of archived topics, no there won't be any such error message.  It's the same as when you've bookmarked a topic that is moved.

If you are concerned about it, you could change the error message in your langage file to suggest the topic was moved or archived. It's $txt[472]
Logged

Pages: [1] 2 Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  [BETA] Archives - Tested « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.013 seconds with 16 queries.