Page 1 of 3

[RC] Archive

Posted: Wed Jun 18, 2014 4:27 pm
by o0johntam0o
Extension Name: Archive

Author: o0johntam0o

Extension Description: An archive version for your forum (Faster in loading pages).

Extension Version: x.x.x

Requirements: php >=5.3.3; phpbb 3.1.3

Features:
  • View forum in the fastest way (like Archive page in vBB).
  • It can be useful for mobile browser or search engines.
Screenshots: https://www.phpbb.com/customise/db/mod/ ... rchive_ii/

Demo URL: *

Demo Username: *

Demo Password: *

Extension Download: https://github.com/o0johntam0o/phpBB-Ex ... master.zip

Repository: https://github.com/o0johntam0o/phpBB-Extension-Archive

Re: [ALPHA] Archive

Posted: Sat Jun 21, 2014 2:44 pm
by o0johntam0o
Archive Extension is ready for testing.

Re: [ALPHA] Archive

Posted: Mon Jul 14, 2014 8:37 pm
by o0johntam0o
Release version 0.0.1

Re: [ALPHA] Archive

Posted: Mon Oct 06, 2014 6:51 am
by lws96
How does this affect the database size, for instance? How is it different from simply creating a section called "Archive" and moving posts there? Is there some automated thing that happens to allow posts to be moved to the "Archives" ?

Re: [ALPHA] Archive

Posted: Wed Oct 08, 2014 12:32 pm
by o0johntam0o
Hi lws96,
This extension will create 5 rows in the "config" table and 2 rows in the "modules" table, that's all.
No post to be moved.

Re: [BETA] Archive

Posted: Sun Nov 09, 2014 8:33 am
by MattF
Why XHTML? phpBB 3.1 is HTML5.

Re: [BETA] Archive

Posted: Sun Nov 09, 2014 9:25 am
by draky
Really simple : what is the purpose of this extension ?
Not a taunt, just asking because I can't see the interest...

Re: [BETA] Archive

Posted: Sun Nov 09, 2014 10:28 am
by o0johntam0o
VSE wrote:Why XHTML? phpBB 3.1 is HTML5.
It's my mistake :D
draky wrote:Really simple : what is the purpose of this extension ?
Not a taunt, just asking because I can't see the interest...
See its features, draky :)

Re: [BETA] Archive

Posted: Sun Nov 09, 2014 10:36 pm
by ekdikeo
That doesn't really describe what it does, at all.

Re: [BETA] Archive

Posted: Tue Nov 11, 2014 5:43 am
by wkuzma
when I enabled your ext I got this error
when I went to look at my system
I had to manually delete your ext to get back into the board.
Fatal error: Can't use function return value in write context in /public_html/new/ext/o0johntam0o/archive/event/viewonline_listener.php on line 65

Re: [BETA] Archive

Posted: Wed Nov 12, 2014 1:35 pm
by o0johntam0o
wkuzma wrote:when I enabled your ext I got this error
when I went to look at my system
I had to manually delete your ext to get back into the board.
Fatal error: Can't use function return value in write context in /public_html/new/ext/o0johntam0o/archive/event/viewonline_listener.php on line 65
Please follow the instructions below:
1. Disable the extension
2. Delete the extension’s data
3. Delete the extension’s files from the filesystem
4. Upload the new files (https://github.com/o0johntam0o/phpBB-Ex ... master.zip)
5. Enable the extension

Note: Please make sure that you're working on phpBB 3.1.1

Re: [BETA] Archive

Posted: Wed Nov 12, 2014 4:57 pm
by wkuzma
o0johntam0o wrote:
wkuzma wrote:when I enabled your ext I got this error
when I went to look at my system
I had to manually delete your ext to get back into the board.
Fatal error: Can't use function return value in write context in /public_html/new/ext/o0johntam0o/archive/event/viewonline_listener.php on line 65
Please follow the instructions below:
1. Disable the extension
2. Delete the extension’s data
3. Delete the extension’s files from the filesystem
4. Upload the new files (https://github.com/o0johntam0o/phpBB-Ex ... master.zip)
5. Enable the extension

Note: Please make sure that you're working on phpBB 3.1.1
did what you posted and still recieved error
Fatal error: Can't use function return value in write context in /public_html/new/ext/o0johntam0o/archive/event/viewonline_listener.php on line 65
I started by clearing the cache then used the ext upload to install your extension then disabled it and deleted all data then used ftp program to delete all your files reuploaded the new one in the link and still recieved the error after enabling it.
Oh and yes the phpbb version is 3.1.1

Re: [BETA] Archive

Posted: Thu Nov 13, 2014 1:25 am
by o0johntam0o
Please try this:
Open: ext/o0johntam0o/archive/event/viewonline_listener.php
Find: if (substr($session_page, 8, 7) === 'archive')
Before-add: Return 0;

Not sure what happen, I'll correct it later.

Re: [BETA] Archive

Posted: Fri Nov 14, 2014 12:44 am
by wkuzma
o0johntam0o wrote:Please try this:
Open: ext/o0johntam0o/archive/event/viewonline_listener.php
Find: if (substr($session_page, 8, 7) === 'archive')
Before-add: Return 0;

Not sure what happen, I'll correct it later.
I added that and still received the error
I was able to remove the error by removing this section
protected function check_ext_page($session_page)
{

if (substr($session_page, 8, 7) === 'archive')
{
if (empty(substr($session_page, 15 , 1)) || substr($session_page, 15 , 1) == '?' || substr($session_page, 15 , 1) == '/')
{
return 1;
}
}

return 0;
}
I have no idea what that section does but removing it allowed me to get back into the board
and see what your ext is doing The achive button seems to be working and showing forums and messages in the forums. It looks good and I like it.

Re: [BETA] Archive

Posted: Fri Nov 14, 2014 1:36 am
by wkuzma
I have a suggestion
when a post has pictures in it using achive shows
!cid_001e01c7ec8f$bccbf4b0$2f01a8c0@user18xwfkrieb.jpg

can that be replaced with See full story to view picture?
or add that to the end of the picture string?