<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FluxBB.org Forums - List of Hooks?]]></title>
	<link rel="self" href="http://fluxbb.org/forums/feed/atom/topic/2151/"/>
	<updated>2008-12-09T14:51:25Z</updated>
	<generator>FluxBB</generator>
	<id>http://fluxbb.org/forums/topic/2151/list-of-hooks/</id>
		<entry>
			<title type="html"><![CDATA[Re: List of Hooks?]]></title>
			<link rel="alternate" href="http://fluxbb.org/forums/post/18605/#p18605"/>
			<content type="html"><![CDATA[I didn't mean to say it was bad. In fact I like it :)]]></content>
			<author>
				<name><![CDATA[Pedro]]></name>
				<uri>http://fluxbb.org/forums/user/101/</uri>
			</author>
			<updated>2008-12-09T14:51:25Z</updated>
			<id>http://fluxbb.org/forums/post/18605/#p18605</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: List of Hooks?]]></title>
			<link rel="alternate" href="http://fluxbb.org/forums/post/18561/#p18561"/>
			<content type="html"><![CDATA[It doesn't mean they'll all be used, and there'll be another tidy up of them before beta 3 (once Paul finishes with the markup) so it may be reduced a bit after that.]]></content>
			<author>
				<name><![CDATA[Connor]]></name>
				<uri>http://fluxbb.org/forums/user/3/</uri>
			</author>
			<updated>2008-12-08T18:18:22Z</updated>
			<id>http://fluxbb.org/forums/post/18561/#p18561</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: List of Hooks?]]></title>
			<link rel="alternate" href="http://fluxbb.org/forums/post/18560/#p18560"/>
			<content type="html"><![CDATA[Both are awesome. Everybody loves Unix tools!
Connor, I find yours more 1337, like with sed and all, and smaller.

Anyways... mighty lord... 1000+ hooks!!! I thought they were like 50 or so.]]></content>
			<author>
				<name><![CDATA[Pedro]]></name>
				<uri>http://fluxbb.org/forums/user/101/</uri>
			</author>
			<updated>2008-12-08T18:15:30Z</updated>
			<id>http://fluxbb.org/forums/post/18560/#p18560</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: List of Hooks?]]></title>
			<link rel="alternate" href="http://fluxbb.org/forums/post/18537/#p18537"/>
			<content type="html"><![CDATA[@Connor : it's so cool :)]]></content>
			<author>
				<name><![CDATA[vnpenguin]]></name>
				<uri>http://fluxbb.org/forums/user/751/</uri>
			</author>
			<updated>2008-12-07T08:35:09Z</updated>
			<id>http://fluxbb.org/forums/post/18537/#p18537</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: List of Hooks?]]></title>
			<link rel="alternate" href="http://fluxbb.org/forums/post/18532/#p18532"/>
			<content type="html"><![CDATA[Damn, replied before I could write it :( my slightly less l33t version:
[code]grep -R get_hook ./* | sed "s/:.*get_hook..\([^']*\).*/: \1/"[/code]]]></content>
			<author>
				<name><![CDATA[Connor]]></name>
				<uri>http://fluxbb.org/forums/user/3/</uri>
			</author>
			<updated>2008-12-06T19:52:27Z</updated>
			<id>http://fluxbb.org/forums/post/18532/#p18532</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: List of Hooks?]]></title>
			<link rel="alternate" href="http://fluxbb.org/forums/post/18531/#p18531"/>
			<content type="html"><![CDATA[@Gizzmo: haha, it takes me about 30sec to do that :)
[code]
find . -name "*.php" | while read f;do echo "=== FILE: $f ==========">>/tmp/toto.txt;grep "get_hook" "$f" >> /tmp/toto.txt;done
[/code]

and with a small Perl code to parse the file toto.txt

[code]
#!/usr/bin/perl
$i=0;
while(<>){
        if(m/get_hook\('([a-z_]+)'\)/){
                printf "  %s\n",$1;
                $i++;
        } else {
                print $_;
        }
}
printf "Total hooks = %d\n",$i;
[/code]

:)]]></content>
			<author>
				<name><![CDATA[vnpenguin]]></name>
				<uri>http://fluxbb.org/forums/user/751/</uri>
			</author>
			<updated>2008-12-06T19:45:37Z</updated>
			<id>http://fluxbb.org/forums/post/18531/#p18531</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: List of Hooks?]]></title>
			<link rel="alternate" href="http://fluxbb.org/forums/post/18530/#p18530"/>
			<content type="html"><![CDATA[[quote=vnpenguin]Here is the list of all [b]1624[/b] hooks in 1.3-dev-r718: [url=http://forum.vnoss.org/pub/fluxbb-1.3-dev-r718-hooks-list.txt]fluxbb-1.3-dev-r718-hooks-list.txt[/url][/quote]

damn how long did it take you to make that list? and how did you make it?]]></content>
			<author>
				<name><![CDATA[Gizzmo]]></name>
				<uri>http://fluxbb.org/forums/user/10/</uri>
			</author>
			<updated>2008-12-06T19:38:15Z</updated>
			<id>http://fluxbb.org/forums/post/18530/#p18530</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: List of Hooks?]]></title>
			<link rel="alternate" href="http://fluxbb.org/forums/post/18528/#p18528"/>
			<content type="html"><![CDATA[Here is the list of all [b]1624[/b] hooks in 1.3-dev-r718: [url=http://forum.vnoss.org/pub/fluxbb-1.3-dev-r718-hooks-list.txt]fluxbb-1.3-dev-r718-hooks-list.txt[/url]]]></content>
			<author>
				<name><![CDATA[vnpenguin]]></name>
				<uri>http://fluxbb.org/forums/user/751/</uri>
			</author>
			<updated>2008-12-06T19:33:41Z</updated>
			<id>http://fluxbb.org/forums/post/18528/#p18528</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: List of Hooks?]]></title>
			<link rel="alternate" href="http://fluxbb.org/forums/post/17009/#p17009"/>
			<content type="html"><![CDATA[I think I can find a solution.

I was looking at it the wrong way: I was going to try and insert custom reports into the flux report table. Instead I am just going to create a second (custom) report table, and using hooks in the administration report.php file include my custom reports below the forum ones.]]></content>
			<author>
				<name><![CDATA[crhayes]]></name>
				<uri>http://fluxbb.org/forums/user/2173/</uri>
			</author>
			<updated>2008-10-24T21:21:51Z</updated>
			<id>http://fluxbb.org/forums/post/17009/#p17009</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: List of Hooks?]]></title>
			<link rel="alternate" href="http://fluxbb.org/forums/post/17008/#p17008"/>
			<content type="html"><![CDATA[Okay thanks.

Would these hooks be in v1.3?

I currently have the latest version of PunBB, which I know is similar but not the same to flux. I am going to get flux set up  soon...

Edit: Okay I see in v1.3 there are many hooks. Is there a way to skip from hook to hook? For example, if I want to skip a block of code because I am going to 'hook in' my own?]]></content>
			<author>
				<name><![CDATA[crhayes]]></name>
				<uri>http://fluxbb.org/forums/user/2173/</uri>
			</author>
			<updated>2008-10-24T20:50:05Z</updated>
			<id>http://fluxbb.org/forums/post/17008/#p17008</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: List of Hooks?]]></title>
			<link rel="alternate" href="http://fluxbb.org/forums/post/17007/#p17007"/>
			<content type="html"><![CDATA[All the hooks to do that should be in place.]]></content>
			<author>
				<name><![CDATA[elbekko]]></name>
				<uri>http://fluxbb.org/forums/user/6/</uri>
			</author>
			<updated>2008-10-24T20:48:04Z</updated>
			<id>http://fluxbb.org/forums/post/17007/#p17007</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: List of Hooks?]]></title>
			<link rel="alternate" href="http://fluxbb.org/forums/post/17006/#p17006"/>
			<content type="html"><![CDATA[btw ... in the current revision 716 there are 1625 hooks. So, a list would be very long xD

I agree with Reines that it is best to just search the SVN version for "$hook = get_hook(" in all files.]]></content>
			<author>
				<name><![CDATA[eisbaer04]]></name>
				<uri>http://fluxbb.org/forums/user/1157/</uri>
			</author>
			<updated>2008-10-24T20:31:01Z</updated>
			<id>http://fluxbb.org/forums/post/17006/#p17006</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: List of Hooks?]]></title>
			<link rel="alternate" href="http://fluxbb.org/forums/post/17004/#p17004"/>
			<content type="html"><![CDATA[Okay cool thanks. I have another couple of questions then, lol.

One thing I am going to try and accomplish is to add some extra fields to the user table, and change the look of the profile. I am guessing the easiest way to do this is just to change the actual code of the profile page? I doubt there are any hooks that would allow me to do this?

Also, I would like to integrate error reporting from my custom site into the forum database. For example, my site contains business profile pages with information stored in a seperate table (I created). Members will be able to comment on these pages, and those comments will be allowed to be reported. I would like to incorporate the "report system" into the fluxbb system, so that administrators can manage both the site and the forum from the same administration panel.

The way it looks to me, I will need a variable to specify whether either a business page or a forum post is being reported (as they may have ID's that overlap). Are there any hooks that would allow me to create a function to differentiate between what is being reported?

Hopefully you understand where I am coming from, and thanks!
-Chris

Edit: I just looked through the misc.php file, and I know how I could make this work by altering the code. However, I am worried that this could cause problems in later editions. It would be better to use an extension wouldn't it?]]></content>
			<author>
				<name><![CDATA[crhayes]]></name>
				<uri>http://fluxbb.org/forums/user/2173/</uri>
			</author>
			<updated>2008-10-24T20:23:49Z</updated>
			<id>http://fluxbb.org/forums/post/17004/#p17004</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: List of Hooks?]]></title>
			<link rel="alternate" href="http://fluxbb.org/forums/post/17003/#p17003"/>
			<content type="html"><![CDATA[The easiest way is to just look through the files that you need to hook into and see if there is one in the right place. We could make a list of hooks names, but describing where each one occurs would take quite a lot of effort and can be hard to do in plain english anyway.

If there are any hooks that you need that don't exist then you can just request them and assuming they makes sense we can add them in for you.]]></content>
			<author>
				<name><![CDATA[Reines]]></name>
				<uri>http://fluxbb.org/forums/user/91/</uri>
			</author>
			<updated>2008-10-24T20:14:15Z</updated>
			<id>http://fluxbb.org/forums/post/17003/#p17003</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[List of Hooks?]]></title>
			<link rel="alternate" href="http://fluxbb.org/forums/post/17000/#p17000"/>
			<content type="html"><![CDATA[Hello everyone, I am looking for forum software to integrate into a site I am making. Flux looks good so far, but there is some fucntionalty I will need to add (such as more profile fields and a few extra administrative options). I have been searching the site trying to find a list of hooks currently available for creating extensions, but I can't find any info!

Could someone please help?

Thanks,
Chris]]></content>
			<author>
				<name><![CDATA[crhayes]]></name>
				<uri>http://fluxbb.org/forums/user/2173/</uri>
			</author>
			<updated>2008-10-24T19:49:57Z</updated>
			<id>http://fluxbb.org/forums/post/17000/#p17000</id>
		</entry>
</feed>
