Please add hooks for design
Quote from Yworld on April 20, 2017, 9:41 amHi 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 š
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 š
Quote from Asgaros on April 22, 2017, 7:32 pmHello 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.
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.
Quote from Fillipe on August 1, 2017, 8:49 amQuote from Asgaros on April 22, 2017, 7:32 pmHello 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?
Quote from Asgaros on April 22, 2017, 7:32 pmHello 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?
Quote from Yworld on August 1, 2017, 8:59 amHiĀ 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
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