tried it with the code update insterting class custom2ThemeHooks implements Gdn_IPlugin { again nothing happens on the page. I have the file called class.custom2themehooks.php and its in my theme's (titled custom2) main folder.
there is another theme hook in the folder, is that a problem? This theme hook is called class.embedfriendlythemehooks.php If I remove it and keep in my custom theme hook it prints the customtheme hook code at the top of the page. If I remove class.embedfriendlythemehooks.php and my customethemehook the page displays correctly. I'm not sure what the class.embedfriendlythemehooks.php does...
i think you can only have one themehooks in one folder. paste the code i gave you into the other theme hook and keep only on themehook in your theme folder. also make sure you donot declare your hook public function DiscussionsController_AfterDiscussionTabs_Handler($Sender) twice in your themehooks.php
Answers
class custom2ThemeHooks implements Gdn_IPlugin {
There was an error rendering this rich post.
class custom2ThemeHooks implements Gdn_IPlugin {
again nothing happens on the page.
I have the file called class.custom2themehooks.php and its in my theme's (titled custom2) main folder.
If I remove it and keep in my custom theme hook it prints the customtheme hook code at the top of the page. If I remove class.embedfriendlythemehooks.php and my customethemehook the page displays correctly. I'm not sure what the class.embedfriendlythemehooks.php does...
paste the code i gave you into the other theme hook and keep only on themehook in your theme folder.
also make sure you donot declare your hook
public function DiscussionsController_AfterDiscussionTabs_Handler($Sender)
twice in your themehooks.php
There was an error rendering this rich post.
There was an error rendering this rich post.