You are not logged in.
- Topics: Active | Unanswered
Pages: 1
#1 2008-05-12 21:31:21
- Vovochka
- Member
- From: Ukraine
- Registered: 2008-05-10
- Posts: 165
- Website
merge hook names
Could you please add ability to write
<hook id="hook1,hook2">
</hook>Offline
#2 2008-05-12 21:33:13
- Smartys
- Former Developer
- Registered: 2008-04-27
- Posts: 3,117
- Website
Re: merge hook names
You should really give an example of why you think we should add this feature/why it would be useful to have. ![]()
Offline
#3 2008-05-12 21:34:55
- elbekko
- Former Developer

- From: Leuven, Belgium
- Registered: 2008-04-30
- Posts: 1,131
- Website
Re: merge hook names
I can give plenty. For example my smiley list extension.
Ben
SVN repository for my extensions - The thread
Quickmarks 0.5
“Question: How does a large software project get to be one year late? Answer: One day at a time!” - Fred Brooks
Offline
#4 2008-05-12 21:37:56
- Vovochka
- Member
- From: Ukraine
- Registered: 2008-05-10
- Posts: 165
- Website
Re: merge hook names
I can give plenty. For example my smiley list extension.
Aha! I'm just looking at it ![]()
Offline
#5 2008-05-12 21:41:34
- Vovochka
- Member
- From: Ukraine
- Registered: 2008-05-10
- Posts: 165
- Website
Re: merge hook names
And another situation:
You need code that is executed only on some pages. Now some mod writes put this code in function & place in co_common. So in moded forum there can be a lot of useless rubbish.
I would even say, it's better to be able to do like this:
<hook id="hook1,hook2">
</hook>
<hook id="hook2,hook3">
</hook>Offline
#6 2008-05-13 16:49:28
- Lamonte
- Member

- From: MO, USA
- Registered: 2008-05-12
- Posts: 244
- Website
Re: merge hook names
Ah nice idea (might use this idea for a project), I see what you mean, some extensions might need to be displayed on different pages without having duplicate content(e.g.: space wastage when your copying/pasting the code multiple times to work on different parts of a forum) which would be useful if you can allow multiple hooks for extensions
Clean Script - Programming Starting at just $5 | Web Development Blog | Mysql 5 Tutorials & Articles
Clean Script Webforum Powered By Flux (not official until Flux is Final
)
Offline
#7 2008-05-13 17:55:41
- Vovochka
- Member
- From: Ukraine
- Registered: 2008-05-10
- Posts: 165
- Website
Re: merge hook names
Connor is going to make it ![]()
http://fluxbb.org/trac/ticket/15
Thanks, Connor ![]()
Offline
#8 2008-05-13 18:13:57
- elbekko
- Former Developer

- From: Leuven, Belgium
- Registered: 2008-04-30
- Posts: 1,131
- Website
Re: merge hook names
Great ![]()
Ben
SVN repository for my extensions - The thread
Quickmarks 0.5
“Question: How does a large software project get to be one year late? Answer: One day at a time!” - Fred Brooks
Offline
#9 2008-05-13 18:55:44
- Connor
- Former Developer
- Registered: 2008-04-27
- Posts: 1,127
Re: merge hook names
Yeh, I'm just waiting so Smartys can commit code to add priorities to hooks ![]()
Offline
#10 2008-05-13 19:25:06
- Vovochka
- Member
- From: Ukraine
- Registered: 2008-05-10
- Posts: 165
- Website
Re: merge hook names
But aren't they already added?
http://fluxbb.org/trac/changeset/111
upd:
and even one misprint
http://fluxbb.org/trac/changeset/115
Last edited by Vovochka (2008-05-13 19:27:06)
Offline
#11 2008-05-13 20:06:40
- Connor
- Former Developer
- Registered: 2008-04-27
- Posts: 1,127
Re: merge hook names
Ok, i'm just being stupid then, I'll do that next.
Offline
#12 2008-05-14 09:35:59
- Vovochka
- Member
- From: Ukraine
- Registered: 2008-05-10
- Posts: 165
- Website
Re: merge hook names
This extension can't be installed ![]()
<?xml version="1.0" encoding="utf-8"?>
<extension engine="1.0">
<id>test</id>
<title>test</title>
<version>0</version>
<description>test</description>
<author>test</author>
<minversion>1.3 Beta</minversion>
<maxtestedon>1.3 Beta</maxtestedon>
<hooks>
<hook id="hd_viewforum_head,hd_viewtopic_head,hd_index_head"><![CDATA[
// test
]]></hook>
<hook id="hd_index_head"><![CDATA[
// he-he-he
]]></hook>
</hooks>
</extension>Offline
#13 2008-05-14 10:10:25
- shedrock
- Member

- From: Canada
- Registered: 2008-05-09
- Posts: 441
- Website
Re: merge hook names
[Please don't post off-topic: thanks]
Last edited by Smartys (2008-05-14 10:42:36)
Offline
#14 2008-05-14 11:00:25
- Connor
- Former Developer
- Registered: 2008-04-27
- Posts: 1,127
Re: merge hook names
This extension can't be installed
<?xml version="1.0" encoding="utf-8"?> <extension engine="1.0"> <id>test</id> <title>test</title> <version>0</version> <description>test</description> <author>test</author> <minversion>1.3 Beta</minversion> <maxtestedon>1.3 Beta</maxtestedon> <hooks> <hook id="hd_viewforum_head,hd_viewtopic_head,hd_index_head"><![CDATA[ // test ]]></hook> <hook id="hd_index_head"><![CDATA[ // he-he-he ]]></hook> </hooks> </extension>
No, you can only use each hook once in an extension
Offline
#15 2008-05-14 11:22:32
- Vovochka
- Member
- From: Ukraine
- Registered: 2008-05-10
- Posts: 165
- Website
Re: merge hook names
No, you can only use each hook once in an extension
I know. That's why I requested this feature ![]()
Offline
#16 2008-05-14 14:23:58
- Connor
- Former Developer
- Registered: 2008-04-27
- Posts: 1,127
Re: merge hook names
The answer is probably no
Offline
#17 2008-05-14 14:25:12
- Smartys
- Former Developer
- Registered: 2008-04-27
- Posts: 3,117
- Website
Re: merge hook names
No, that would complicate things a great deal. Personally, I don't see why a function can't just be used, but meh. ![]()
Offline
#18 2008-05-14 15:37:24
- Lamonte
- Member

- From: MO, USA
- Registered: 2008-05-12
- Posts: 244
- Website
Re: merge hook names
A function could be used, but still its extra code for a extra 3 lines -.-..(e.g. hook start function hookend,depending on your style of code)
Last edited by Lamonte (2008-05-14 15:37:42)
Clean Script - Programming Starting at just $5 | Web Development Blog | Mysql 5 Tutorials & Articles
Clean Script Webforum Powered By Flux (not official until Flux is Final
)
Offline
Pages: 1
