Please or Register to create posts and topics.

Please add hooks for design

Hi Thomas

If it is possible to add hooks:

forum-element.php

echo '</div>';
  hook
    echo '<div class="forum-poster">'.$this->get_lastpost($lastpost_data).'</div>';
echo '</div>';

 

topic-element.php

<small><?php echo sprintf(_n('%s View', '%s Views', $thread->views, 'asgaros-forum'), $count_views_i18n); ?></small>
    </div>
  hook
    <div class="topic-poster"><?php echo $this->get_lastpost($lastpost_data, 'thread'); ?></div>
</div>

Hook or filter to replace the icon

This is just an offer šŸ™‚

Hello Yworld,

I added two new hooks for custom columns:

  • asgarosforum_custom_forum_column
  • asgarosforum_custom_topic_column

You can find the changeset here:

https://github.com/Asgaros/asgaros-forum/commit/2a51b355eeb8dc9bdfc204d40ed7a416c5fbd6df

It will be also included in the upcoming release.

If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!

Thank you very much!

 

Quote from Asgaros on April 22, 2017, 7:32 pm

Hello Yworld,

I added two new hooks for custom columns:

  • asgarosforum_custom_forum_column
  • asgarosforum_custom_topic_column

You can find the changeset here:

https://github.com/Asgaros/asgaros-forum/commit/2a51b355eeb8dc9bdfc204d40ed7a416c5fbd6df

It will be also included in the upcoming release.

Hey, I’m sorry for the newbie question but… Could you give me an example of where and how this hooks would be used? Maybe there’s some further documentation I can read?

HiĀ Fillipe,

Avatar and advertising:

function FunctionForumColumnAdvertisement($forum_id) {
  
        $forums_ads ='<div>Your code</div>';
 }
 return $forums_ads;
}
add_action('asgarosforum_custom_forum_column', 'ForumColumnAdvertisement', 10, 1);
function ForumColumnAdvertisement($forum_id) {
  echo FunctionForumColumnAdvertisement($forum_id);
}

transmit – $forum_id