126

Re: Hook requests

A hook for replacing (changing) the textarea field. This can be very handy for wysiwyg text editor extensions. (for example where i 'm working on)

Re: Hook requests

Where exactly do you want us to add the hook? As I understand from your topic, you need the hook in post.php. But there are two hooks before ("po_pre_post_contents") and after ("po_pre_optional_fieldset") the output of the textarea field already.

128

Re: Hook requests

Slavok wrote:

Where exactly do you want us to add the hook? As I understand from your topic, you need the hook in post.php. But there are two hooks before ("po_pre_post_contents") and after ("po_pre_optional_fieldset") the output of the textarea field already.

Huh,

I didnt see them but i've seen them now. So to add a new custom field above the 'optional post settings' fieldset, i'll have to use the po_pre_optional_fieldset hook?

Thanks wink

129

Re: Hook requests

Need hook to punbb 1.3.3 :
1. adapt and put old script to auto update in extentions .
Some :
a) Easy bb code
b) Reputation system(wery neeeded!!!)
c) Hide link whith post count.
Senks wink

Re: Hook requests

Hello all!

It would be very usefull to extension developers to have a hook just when retrieved value of $p_message of a quoting message (arround line 268 - 269 in 'post.php' vesion 1.3.3).

It allows pre-processing of some bbCode, for example. The name can something like 'ps_qr_afer_get_message' or 'ps_qr_post_get_message'.


PS: Edit, I mistaken released and retrived, sorry.

Last edited by raistlin (2009-05-06 07:50:37)

Re: Hook requests

I have added the new hook to the core. It is called "po_modify_quote_info" by rules of naming hooks.

Re: Hook requests

Thanks a lot !

133

Re: Hook requests

Have some hooks for the spots before and after the topic 'RSS topic feed' and 'Subsribe' links been requested? I can't seem to find any around there (or then its well hidden for a punBB newbie like me). :S

134

Re: Hook requests

Is there any full list for hooks?

I'm searching a hook for modifying '<div class="main-head">'.

Want to write a extension which allows to open and close the divs for categories using Prototype and Scriptaculous.

Thanks.

Re: Hook requests

Leroy wrote:

Is there any full list for hooks?

No, there is not full list of the hooks.

Leroy wrote:

I'm searching a hook for modifying '<div class="main-head">'.

Describe in more details, what you want to have, please.

136

Re: Hook requests

Hello,

I need hooks in profile.php, in the moderator assignment section.

I develop an extension in order to moderate forum by group and I want to disable checkbox if the current forum is moderate by the user group. A hook for changing category title can be useful too.

Actually, it is more complicated, because the checklist and the category legend are directly print to the screen (with an echo)...

Thanks.

Re: Hook requests

I think it's a little bit late for adding new hooks because the final release of PunBB 1.3 was about a year ago smile

Hooks could be added in the next version of PunBB, 1.3.5. But noone knows the date of this release.

Please, write the lines numbers where you want to add hooks.

138

Re: Hook requests

And what about add this in the current svn version ? We can checkout.

About the hook, it is line 2642 but the code must be changed a little : the HTML strings need to be in a variable in order to change it with the hook.

Thanks.