[RC] Archive

A place for Extension Authors to post and receive feedback on Extensions still in development. No Extensions within this forum should be used within a live environment!
Suggested Hosts
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: Extensions Development rules

IMPORTANT FOR NEEDED EVENTS!!!
If you need an event for your extension please read this for the steps to follow to request the event(s)
User avatar
o0johntam0o
Registered User
Posts: 228
Joined: Thu Sep 23, 2010 3:53 pm
Location: Viet Nam
Name: Tam
Contact:

[RC] Archive

Post 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
Last edited by o0johntam0o on Thu Aug 20, 2015 1:26 pm, edited 7 times in total.
User avatar
o0johntam0o
Registered User
Posts: 228
Joined: Thu Sep 23, 2010 3:53 pm
Location: Viet Nam
Name: Tam
Contact:

Re: [ALPHA] Archive

Post by o0johntam0o »

Archive Extension is ready for testing.
User avatar
o0johntam0o
Registered User
Posts: 228
Joined: Thu Sep 23, 2010 3:53 pm
Location: Viet Nam
Name: Tam
Contact:

Re: [ALPHA] Archive

Post by o0johntam0o »

Release version 0.0.1
lws96
Registered User
Posts: 100
Joined: Wed Aug 05, 2009 4:39 am

Re: [ALPHA] Archive

Post 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" ?
User avatar
o0johntam0o
Registered User
Posts: 228
Joined: Thu Sep 23, 2010 3:53 pm
Location: Viet Nam
Name: Tam
Contact:

Re: [ALPHA] Archive

Post 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.
User avatar
MattF
Extensions Development Coordinator
Extensions Development Coordinator
Posts: 5284
Joined: Sat Jan 17, 2009 9:37 am
Location: Los Angeles, CA
Name: Matt Friedman
Contact:

Re: [BETA] Archive

Post by MattF »

Why XHTML? phpBB 3.1 is HTML5.
Formerly known as VSEMy ExtensionsPlease do not PM me for support.
User avatar
draky
Registered User
Posts: 250
Joined: Tue Dec 10, 2002 2:04 pm
Location: France
Name: Gilles W.
Contact:

Re: [BETA] Archive

Post by draky »

Really simple : what is the purpose of this extension ?
Not a taunt, just asking because I can't see the interest...
User avatar
o0johntam0o
Registered User
Posts: 228
Joined: Thu Sep 23, 2010 3:53 pm
Location: Viet Nam
Name: Tam
Contact:

Re: [BETA] Archive

Post 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 :)
ekdikeo
Registered User
Posts: 30
Joined: Tue Oct 28, 2014 8:56 pm

Re: [BETA] Archive

Post by ekdikeo »

That doesn't really describe what it does, at all.
User avatar
wkuzma
Registered User
Posts: 392
Joined: Sun Sep 02, 2007 10:18 pm
Contact:

Re: [BETA] Archive

Post 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
User avatar
o0johntam0o
Registered User
Posts: 228
Joined: Thu Sep 23, 2010 3:53 pm
Location: Viet Nam
Name: Tam
Contact:

Re: [BETA] Archive

Post 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
User avatar
wkuzma
Registered User
Posts: 392
Joined: Sun Sep 02, 2007 10:18 pm
Contact:

Re: [BETA] Archive

Post 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
User avatar
o0johntam0o
Registered User
Posts: 228
Joined: Thu Sep 23, 2010 3:53 pm
Location: Viet Nam
Name: Tam
Contact:

Re: [BETA] Archive

Post 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.
User avatar
wkuzma
Registered User
Posts: 392
Joined: Sun Sep 02, 2007 10:18 pm
Contact:

Re: [BETA] Archive

Post 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.
User avatar
wkuzma
Registered User
Posts: 392
Joined: Sun Sep 02, 2007 10:18 pm
Contact:

Re: [BETA] Archive

Post 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?
Post Reply

Return to “Extensions in Development”