OK for anyone interested here is the change i did and it does seem to work.
My original code grabbed the topic id and then added 1 to it for the add, but thank goodness there was a var set up for the addurl carried over from the php file so i just used that instead.
But there was not one (var) for the viewall so i had to run thru the array one time to get the group id for the view all.
So here is the code... Daisy or anyone, if you see something i missed please reply.
Remember i use the macabre theme..
open up ow_plugins/forum/views/components/latest_topics_widget.html
first you will need to add some css to the top part of the file
SO AFTER THIS
.ow_forum_attachment_icon {
background-repeat: no-repeat;
cursor: pointer;
display: inline-block;
height: 17px;
width: 14px;
}
ADD THIS
/* added for the new button above the topics */
.my_topbtnstyle {
padding: 2px 7px;
margin-top: 5px;
font-size: 11px;
float: right;
white-space: nowrap;
border-radius: 5px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
background-color: #252424;
text-shadow: none;
display: inline-block;
color: #66ffff; /* this is the same color as your remark text setting in admin theme setting */
}
NOW SAVE THE FILE FOR THIS STEP
OPEN THE FILE AGAIN
AFTER THIS
<div class="ow_forum_entity_forum clearfix ow_smallmargin">
ADD THIS
<!-- added this for top button -->
{if $topicList}
<!-- you just need the group id from the first result -->
{foreach from=$topicList item=topvalue}
{$topgroupid = $topvalue.groupId}
<!-- you got what you need so stop the foreach -->
{break}
{/foreach}
{if $canAdd}
<!-- set up the links -->
<span class="my_topbtnstyle">
<!-- make sure you keep the blank spaces around the 8226 bullet symbol, they do parse -->
<a href="{$addTopicUrl}">Start new</a> • <a href="{$site_url}/forum/{$topgroupid}">View all</a>
</span>
<br />
<br />
{/if}
{/if}
<!-- end of add for top button -->
SAVE THE FILE
YOUR DONE !!! :)
now when you click on groups, then a group name, you should see a new menu above the topics listed, so that users do not have to go all the way to the bottom to use that menu. If there are no postings the new menu will not show so there will be no errors or bad links. The default core menu will be the only menu which is all you need on the bottom.
happy coding..