Forum link in Groups.

The groups mod is a cool tool. I do have one complaint. People coming into the groups may not notice the breadcrumb menu up top and may miss that there's a forum link for the specific group. Is there a simple way to add a 'Forum' button to the action block?

http://towtalk.net ... Hosted by Zarconia.net!
Quote · 17 Jan 2013

I can get you most of the way there if interested.  Just having trouble with the forum ID in the link.

https://dolphin-techs.com - Skype: Dolphin Techs
Quote · 17 Jan 2013


STEP 1 ------------
execute the following SQL statement :

INSERT INTO `sys_objects_actions` (`Caption`, `Icon`, `Url`, `Script`, `Eval`, `Order`, `Type`) VALUES
     ('{TitleForum}', 'globe', '{evalResult}', '', '$oConfig = $GLOBALS[''oBxGroupsModule'']->_oConfig; return BX_DOL_URL_ROOT . ''forum/groups/forum/{URI}-0.htm'';', '20', 'bx_groups')


STEP 2 ------------
In modules/boonex/groups/classes/BxGroupsPageView.php

Find :

     'IconJoin' => $isFan ? 'signout' : 'signin',

Just below, Add :

     'TitleForum' => _t('_bx_groups_action_title_forum'),



STEP 3 ------------
In admin panel, add the language key :
    _bx_groups_action_title_forum => View Forum

 
STEP 4 ------------
In admin panel, clear cache.

Paypal email is jeromemingo@gmail.com - http://www.boonex.com/market/posts/modzzz
Quote · 17 Jan 2013

That is pretty much what i had as well...  except i had to use /forum/groups for the URL because it wasn't returning the right group forum ID.

 

Thanks. 

https://dolphin-techs.com - Skype: Dolphin Techs
Quote · 17 Jan 2013

Massively Cool! Thanks guys!

http://towtalk.net ... Hosted by Zarconia.net!
Quote · 17 Jan 2013

Ok, seems to work but the butto is titled like this

{TitleForum}

Yup, rechecked everything. Went into db, all info is correct there, langauge key has been added, cache's cleared, forum recompiled, groups recompiled, even cleared my browser. The button does not say View Forum, instead it says {TitleForum}. I'm assuming it has to do with the BxGroupsPageView.php modification.

http://towtalk.net ... Hosted by Zarconia.net!
Quote · 17 Jan 2013

Now it just isn;t picking up the key. Button says '_bx_groups_action_title_forum'

 

http://towtalk.net ... Hosted by Zarconia.net!
Quote · 17 Jan 2013

 Yes, you have made some mistake in the BxGroupsPageView.php modification . Copy the section of code where you made the change and post here. Include some lines of code that are above and below where you added the modification.

Ok, seems to work but the butto is titled like this

{TitleForum}

Yup, rechecked everything. Went into db, all info is correct there, langauge key has been added, cache's cleared, forum recompiled, groups recompiled, even cleared my browser. The button does not say View Forum, instead it says {TitleForum}. I'm assuming it has to do with the BxGroupsPageView.php modification.

 

Paypal email is jeromemingo@gmail.com - http://www.boonex.com/market/posts/modzzz
Quote · 17 Jan 2013

'TitleEdit' => $this->_oMain->isAllowedEdit($this->aDataEntry) ? _t('_bx_groups_action_title_edit') : '',
                'TitleDelete' => $this->_oMain->isAllowedDelete($this->aDataEntry) ? _t('_bx_groups_action_title_delete') : '',
                'TitleJoin' => $this->_oMain->isAllowedJoin($this->aDataEntry) ? ($isFan ? _t('_bx_groups_action_title_leave') : _t('_bx_groups_action_title_join')) : '',
                'IconJoin' => $isFan ? 'signout' : 'signin',
                'TitleForum' => _t('_bx_groups_action_title_forum'),
                'TitleInvite' => $this->_oMain->isAllowedSendInvitation($this->aDataEntry) ? _t('_bx_groups_action_title_invite') : '',
                'TitleShare' => $this->_oMain->isAllowedShare($this->aDataEntry) ? _t('_bx_groups_action_title_share') : '',
                'TitleBroadcast' => $this->_oMain->isAllowedBroadcast($this->aDataEntry) ? _t('_bx_groups_action_title_broadcast') : '',
                'AddToFeatured' => $this->_oMain->isAllowedMarkAsFeatured($this->aDataEntry) ? ($this->aDataEntry['featured'] ? _t('_bx_groups_action_remove_from_featured') : _t('_bx_groups_action_add_to_featured')) : '',
             

http://towtalk.net ... Hosted by Zarconia.net!
Quote · 17 Jan 2013

Now it has changed.

_bx_groups_action_forum_title.png · 14.9K · 218 views
http://towtalk.net ... Hosted by Zarconia.net!
Quote · 17 Jan 2013

Oh crap. I just found the same entry in the db 3 times, lol. Gimme a minute to work it out. I am working in Plesk and it's really full of little bugs. I couldn't get the query to work in web admin but it appears it was working, just not reporting it completed.

http://towtalk.net ... Hosted by Zarconia.net!
Quote · 17 Jan 2013

Ok, got rid of the muliples. Still can't get it to use the language key definition.

http://towtalk.net ... Hosted by Zarconia.net!
Quote · 17 Jan 2013

this is what i added to my file.....

       'TitleUploadSounds' => $this->_oMain->isAllowedUploadSounds($this->aDataEntry) ? _t('_bx_groups_action_upload_sounds') : '',

                'TitleUploadFiles' => $this->_oMain->isAllowedUploadFiles($this->aDataEntry) ? _t('_bx_groups_action_upload_files') : '',

'TitleForum' => $this->_oMain->isAllowedPostInForum($this->aDataEntry) ? _t('_bx_groups_menu_view_forum') : '',

  

this is the database part

INSERT INTO `sys_objects_actions` (`ID`, `Caption`, `Icon`, `Url`, `Script`, `Eval`, `Order`, `Type`, `bDisplayInSubMenuHeader`) VALUES

('', '{TitleForum}', 'modules/boonex/forum/templates/base/images/icons/comments.png', 'forum/groups/', '', '', 14, 'bx_groups', 0);

 

but the thing is this will only give you the groups forum index .... 

https://dolphin-techs.com - Skype: Dolphin Techs
Quote · 18 Jan 2013

 Once the language key is added in admin, it should show. If you wish, you can PM me your admin login details and I will take a look.

Ok, got rid of the muliples. Still can't get it to use the language key definition.

 

Paypal email is jeromemingo@gmail.com - http://www.boonex.com/market/posts/modzzz
Quote · 18 Jan 2013

See my post above for the proper way to invoke the URL. I left out the isAllowedPostInForum  checker because I do not think its logical for only persons with forum posting access to be able to view forum posts.

this is what i added to my file.....

       'TitleUploadSounds' => $this->_oMain->isAllowedUploadSounds($this->aDataEntry) ? _t('_bx_groups_action_upload_sounds') : '',

                'TitleUploadFiles' => $this->_oMain->isAllowedUploadFiles($this->aDataEntry) ? _t('_bx_groups_action_upload_files') : '',

'TitleForum' => $this->_oMain->isAllowedPostInForum($this->aDataEntry) ? _t('_bx_groups_menu_view_forum') : '',

  

this is the database part

INSERT INTO `sys_objects_actions` (`ID`, `Caption`, `Icon`, `Url`, `Script`, `Eval`, `Order`, `Type`, `bDisplayInSubMenuHeader`) VALUES

('', '{TitleForum}', 'modules/boonex/forum/templates/base/images/icons/comments.png', 'forum/groups/', '', '', 14, 'bx_groups', 0);

 

but the thing is this will only give you the groups forum index .... 

 

Paypal email is jeromemingo@gmail.com - http://www.boonex.com/market/posts/modzzz
Quote · 18 Jan 2013

I fixed my problem with the key. I changed the category in the key editor from "groups" to "modzzz classifieds" and the key started working. If I select Groups, it fails every time. What is that category key selector for anyway? It seems to add a step where one isn't needed.

http://towtalk.net ... Hosted by Zarconia.net!
Quote · 1 Feb 2013

 RE:

 I left out the isAllowedPostInForum  checker because I do not think its logical for only persons with forum posting access to be able to view forum posts.

 Me neither.  23 frigg'n months ago, I wrote this ticket: http://www.boonex.com/trac/dolphin/ticket/2306  

My opinions expressed on this site, in no way represent those of Boonex or Boonex employees.
Quote · 1 Feb 2013

Do you guys know how to put the forums in a block for the groups page?  I'd really rather use the forums instead of the comments on the groups main page.

Thanks

Quote · 4 Feb 2013

I don't know about actually adding the forum to the main group page but it seems a simple enough matter to create an RSS feed and drop it into the page. That way, they can see the content in the forum and join if they desire...

http://towtalk.net ... Hosted by Zarconia.net!
Quote · 5 Feb 2013

Actually, need help. How would one use the RSS feed to display only the forum content of that group?

http://towtalk.net ... Hosted by Zarconia.net!
Quote · 5 Feb 2013
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.