[CDB] Topic Index

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!
Anti-Spam Guide
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)
MagicalFire
Registered User
Posts: 22
Joined: Mon Feb 06, 2012 5:38 pm

Re: [DEV] Topic Index

Post by MagicalFire » Sat Oct 15, 2016 8:34 am

Hello, I found an error
after adding the link in the post duplicate it

User avatar
DavidIQ
Customisations Team Leader
Customisations Team Leader
Posts: 16981
Joined: Thu Jan 06, 2005 1:30 pm
Location: Fishkill, NY
Name: David Colón
Contact:

Re: [DEV] Topic Index

Post by DavidIQ » Thu Jan 12, 2017 5:59 am

So a client really wants to continue using this extension so I've had to modify it because it's disabling one of the template events on the viewtopic page causing 3 of their other extensions to not function properly. Here are the changes in old style MOD format :ugeek: :

Delete the following files:
  • styles/all/template/event/viewtopic_body_postrow_post_details_before.html
  • styles/all/template/event/viewtopic_body_postrow_post_notices_before.html

Open styles/all/template/official_topic_index.html:

Find:

Code: Select all

<div class="content" id="{S_ISTYLE}">
Replace with:

Code: Select all

<div id="{S_ISTYLE}">

Open event/listener.php:

Find:

Code: Select all

$ilimiter	= $this->request->variable('ilimit', '');
Add after:

Code: Select all

$official_topic_index = $post_row['MESSAGE'];
Find:

Code: Select all

					$this->template->assign_vars(array(
						'S_ISTYLE'	=> (!empty($this->config['oindex_overflow'])) ? 'content_index_flow' : 'content_index'
					));
Replace with:

Code: Select all

					$official_topic_index = $this->template
						->assign_vars(array(
							'S_ISTYLE'	=> (!empty($this->config['oindex_overflow'])) ? 'content_index_flow' : 'content_index'
						))
						->set_filenames(array(
							'topic_index'	=> '@dmzx_topicindex/official_topic_index.html',
						))
						->assign_display('topic_index');
Find:

Code: Select all

			'ILIST_IMG'		=> $iindex_bb_img,
Add after:

Code: Select all

			'MESSAGE'		=> $official_topic_index,

Open composer.json:

Find:

Code: Select all

	"version": "1.0.1",
Replace with:

Code: Select all

	"version": "1.0.2",

Purge cache and done. I'll leave the migration up to you. ;)
Apply to become a Jr. Extension Validator
My extensions | In need of phpBB services? | Was I helpful today?
No unsolicited PMs unless you're planning on asking for paid help.

User avatar
eunaumtenhoid
Registered User
Posts: 845
Joined: Wed Jun 03, 2009 12:46 am
Location: ????

Re: [DEV] Topic Index

Post by eunaumtenhoid » Thu Jan 12, 2017 12:17 pm

DavidIQ wrote:
Thu Jan 12, 2017 5:59 am
So a client really wants to continue using this extension so I've had to modify it because it's disabling one of the template events on the viewtopic page causing 3 of their other extensions to not function properly. Here are the changes in old style MOD format :ugeek: :
IT fixed bug of duplicate links?
My translations of the extensions for Brazilian Portuguese
https://github.com/phpBBTraducoes

User avatar
dmzx
Registered User
Posts: 757
Joined: Fri Sep 05, 2014 6:48 am
Location: The Netherlands
Contact:

Re: [DEV] Topic Index

Post by dmzx » Thu Jan 12, 2017 12:23 pm

DavidIQ wrote:
Thu Jan 12, 2017 5:59 am
So a client really wants to continue using this extension so I've had to modify it because it's disabling one of the template events on the viewtopic page causing 3 of their other extensions to not function properly. Here are the changes in old style MOD format :
Will look into this and thanks for you input!
Contact me on dmzx-web.net
 Need a Host or buy me a beer Donate and try binance.com

User avatar
DavidIQ
Customisations Team Leader
Customisations Team Leader
Posts: 16981
Joined: Thu Jan 06, 2005 1:30 pm
Location: Fishkill, NY
Name: David Colón
Contact:

Re: [DEV] Topic Index

Post by DavidIQ » Thu Jan 12, 2017 1:08 pm

eunaumtenhoid wrote:
Thu Jan 12, 2017 12:17 pm
IT fixed bug of duplicate links?
Nope. I did not look at anything else in this extension. I basically did this as a learning exercise for myself to see how the template system can be used within events to parse extension template files within the code instead of inserting into other templates. Any other bugs will be up to dmzx to investigate.
Apply to become a Jr. Extension Validator
My extensions | In need of phpBB services? | Was I helpful today?
No unsolicited PMs unless you're planning on asking for paid help.

User avatar
dmzx
Registered User
Posts: 757
Joined: Fri Sep 05, 2014 6:48 am
Location: The Netherlands
Contact:

Re: [3.1][3.2][DEV] Topic Index

Post by dmzx » Fri Jan 13, 2017 4:21 pm

First post updated.
Contact me on dmzx-web.net
 Need a Host or buy me a beer Donate and try binance.com

User avatar
eunaumtenhoid
Registered User
Posts: 845
Joined: Wed Jun 03, 2009 12:46 am
Location: ????

Re: [3.1][3.2][DEV] Topic Index

Post by eunaumtenhoid » Sat Jan 14, 2017 1:09 am

dmzx wrote:
Fri Jan 13, 2017 4:21 pm
First post updated.
DONT fixed bug of url?
My translations of the extensions for Brazilian Portuguese
https://github.com/phpBBTraducoes

User avatar
dmzx
Registered User
Posts: 757
Joined: Fri Sep 05, 2014 6:48 am
Location: The Netherlands
Contact:

Re: [3.1][3.2][DEV] Topic Index

Post by dmzx » Sat Jan 14, 2017 1:12 am

Did you try?
Contact me on dmzx-web.net
 Need a Host or buy me a beer Donate and try binance.com

User avatar
dmzx
Registered User
Posts: 757
Joined: Fri Sep 05, 2014 6:48 am
Location: The Netherlands
Contact:

Re: [3.1][3.2][DEV] Topic Index

Post by dmzx » Sun Jan 22, 2017 2:29 pm

First post updated.
Contact me on dmzx-web.net
 Need a Host or buy me a beer Donate and try binance.com

User avatar
eunaumtenhoid
Registered User
Posts: 845
Joined: Wed Jun 03, 2009 12:46 am
Location: ????

Re: [3.1][3.2][DEV] Topic Index

Post by eunaumtenhoid » Sun Jan 22, 2017 3:05 pm

dmzx wrote:
Sat Jan 14, 2017 1:12 am
Did you try?
is perfect ty dude
My translations of the extensions for Brazilian Portuguese
https://github.com/phpBBTraducoes

User avatar
eunaumtenhoid
Registered User
Posts: 845
Joined: Wed Jun 03, 2009 12:46 am
Location: ????

Re: [3.1][3.2][DEV] Topic Index

Post by eunaumtenhoid » Mon Feb 06, 2017 12:13 am

IDEA possible:

add subcategory?

eg

extensions:
abd - develo - complete
My translations of the extensions for Brazilian Portuguese
https://github.com/phpBBTraducoes

User avatar
DevMakoto
Registered User
Posts: 65
Joined: Tue Jun 23, 2015 3:38 pm
Name: Carlos Mayorga
Contact:

Re: [3.1][3.2][DEV] Topic Index

Post by DevMakoto » Mon Feb 06, 2017 12:27 am

eunaumtenhoid wrote:
Mon Feb 06, 2017 12:13 am
IDEA possible:

add subcategory?

eg

extensions:
abd - develo - complete
Is generated the list according to the topics of a forum and as the forums do not have those options I doubt that it can be shown, but it is not impossible xD

Tarantino
Registered User
Posts: 730
Joined: Sat Feb 18, 2012 1:51 pm
Contact:

Re: [3.1][3.2][DEV] Topic Index

Post by Tarantino » Sat Mar 11, 2017 12:11 pm

Is it compatible with Topic Description extension?
If not, please add that option. That is very useful.

Does this support subforuns? Let say I have 1 forum (blocked) with 10 subforuns. And I will have inside each sub forum 1 topic index. But I want too to add a topic index that will gather all topics from all subforuns. Is it possible?

Best regards

User avatar
dmzx
Registered User
Posts: 757
Joined: Fri Sep 05, 2014 6:48 am
Location: The Netherlands
Contact:

Re: [3.1][3.2][DEV] Topic Index

Post by dmzx » Thu Apr 13, 2017 7:16 pm

First post updated.
Contact me on dmzx-web.net
 Need a Host or buy me a beer Donate and try binance.com

User avatar
dmzx
Registered User
Posts: 757
Joined: Fri Sep 05, 2014 6:48 am
Location: The Netherlands
Contact:

Re: [CDB] Topic Index

Post by dmzx » Mon May 15, 2017 11:56 am

This extension has been validated and released.

--> Extension support <--
Contact me on dmzx-web.net
 Need a Host or buy me a beer Donate and try binance.com

Locked

Return to “Extensions in Development”