Clubs Module Teamwork

At least, I got this project started. People like the idea and want it. I can no longer find fix(es). Am now asking for others to get involved and make it work.

This module is 100% FREE for everyone even after, so please be generous.

Download at http://www.boonex.com/unity/extensions/entry/Clubs_Module_2010_05_14

Quote · 15 May 2010

Audanbal, As you know I cannot get this to work properly. I am running on a VPS, Could that make a difference. I doubt it but I have run out of possible reasons why it won't work properly.

Stuart

There are none so blind as those that will not see.
Quote · 16 May 2010

After you reported me about issue. Funny thing is, when I use this in test site, it works except forum. I checked on main site and I got the same problem as you have. Tried to figured out and couldn't. That's why I created a new topic to get to people who may be able to help.

Quote · 16 May 2010

At the moment i do not have time to work on it. But it has to do with the integration into the forums. You will find reference to bx_groups_view_uri in modules\boonex\forum\integrations\groups but your renamed bx_clubs_view_uri does not exist.

In any case it is related to the forums.

There could also be other issues with groups other normally required modules like.

avatar
forum     
photos
videos
sounds
files

But i am not 100% sure.

https://www.deanbassett.com
Quote · 16 May 2010

The following steps are needed to get the forum working :

Find this folder .... \modules\boonex\forum\integrations\groups

Copy and rename to clubs

Find and replace the occurrences of groups with clubs in the files within this folder.

Paypal email is jeromemingo@gmail.com - http://www.boonex.com/market/posts/modzzz
Quote · 16 May 2010

So does that mean the intial SQL install query needs to be altered also? I made the changes you suggested Modzzz but it still says page not found so I assume the SQL query needs to be modified to add some tables?

 

See Post: http://www.boonex.com/unity/forums/#topic/Clubs-Module.htm

Quote · 16 May 2010

Done. After clicking that annoying Club's Forum... page not found, still.

Quote · 16 May 2010

bump...

 

Modzzz help us out.

Quote · 17 May 2010

I will try to install the mod myself and see what you guys have missed. (later tonight or tomorrow)

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

Updated: I have included clubs in forum/integrations in the file recently.

Quote · 17 May 2010

Thanks Modzzz... Appreciate it bro! I definately need this mod for my site.

 

So Audanbal you mean you got it working and uploaded the updated files or you just added Modzzz suggested changes and uploaded those?

Quote · 18 May 2010

 

The following steps are needed to get the forum working :

 

Find this folder .... \modules\boonex\forum\integrations\groups

Copy and rename to clubs

Find and replace the occurrences of groups with clubs in the files within this folder.

 

dont forget about the htaccess like i did when i built a few modules

RewriteRule ^forum/groups/(.*)$  modules/boonex/forum/$1?orca_integration=groups [QSA,L]   change groups to your module name.....

https://dolphin-techs.com - Skype: Dolphin Techs
Quote · 18 May 2010

@Nitrofish

Deano gave us an hint... I have made a copy and renamed. I have added that "integrations/clubs". Problem still exist. If it was working, I would have removed this

***************** DO NOT DOWNLOAD THIS YET, THIS IS FOR MOD FIXING *****************

*****************************************************************************************

Quote · 18 May 2010

well i downloaded and was geting a parse error on line 73 of bxclubssearchresults.

 

case 'pending':
                 (false !== bx_get('bx_clubs_filter'))
                    $this->aCurrent['restriction']['keyword'] = array('value' => process_db_input(bx_get('bx_groups_filter'), BX_TAGS_STRIP), 'field' => '','operator' => 'against');
                $this->aCurrent['restriction']['activeStatus']['value'] = 'pending';
                $this->sBrowseUrl = "administration";
                $this->aCurrent['title'] = _t('_bx_clubs_page_title_pending_approval');
                unset($this->aCurrent['rss']);
            break;

So i deleted case pending and the module loaded.

https://dolphin-techs.com - Skype: Dolphin Techs
Quote · 18 May 2010

Well everything seems to be working fine for me includeing the forums...

dolphin-techs.com

https://dolphin-techs.com - Skype: Dolphin Techs
Quote · 18 May 2010

case 'pending':

(false !== bx_get('bx_clubs_filter'))
$this->aCurrent['restriction']['keyword'] = array('value' => process_db_input(bx_get('bx_groups_filter'), BX_TAGS_STRIP), 'field' => '','operator' => 'against');
$this->aCurrent['restriction']['activeStatus']['value'] = 'pending';
$this->sBrowseUrl = "administration";
$this->aCurrent['title'] = _t('_bx_clubs_page_title_pending_approval');
unset($this->aCurrent['rss']);
break;

I don't know how you got that. But that red should be clubs! BTW, thanks for the htaccess tip! Those who helped gets the credit listed in readme.txt. Smile

Quote · 18 May 2010

yeah sorry i grabbed the code snippit from the groups module  to lazy to go back to the clubs mudule also there is another error as well when viewing the club as another user and not club admin. 

line694 in bxclubmodule.php page would not load after clicking a club not being the owner of the club post

Fatal error: Call to undefined method BxClubsDb::isClubAdmin() in C:\xampp\htdocs\701\modules\boonex\clubs\classes\BxClubsModule.php on line 694

                  return $this->_oDb->isClubAdmin ($aDataEntry['id'], $iProfileId) && isProfileActive($iProfileId);

changed to: return $this->_oDb->isGroupAdmin ($aDataEntry['id'], $iProfileId) && isProfileActive($iProfileId);

and then i could click on it as a guest or another user....

https://dolphin-techs.com - Skype: Dolphin Techs
Quote · 18 May 2010

@dolphin_jay Gotcha!

Nitrofish stated this, "On a side note... Is there a way to create events for Groups? (Clubs) I would think that Groups or Clubs, or Bars or whatever you choose to call it should be able to post events. I do not see that functionality... Am I missing something?"

I have to agree with him. It would be super cool to have that feature included. If anyone know the trick, hook us up!

Quote · 18 May 2010

So it is working ok for you now Jay, what about you Audanbal? It was just the .htaccess code or all of the code Jay mentioned? I was not getting any of the errors jay was, but i guess if the forum starts working I will?

So I am going to try to deinstall the clubs module then reinstall it, add the .htaccess code as suggested and see what happens.

Quote · 19 May 2010

@ Nitrofish Yup, it works. I have updated files along with readme.txt, zipped and posted!

http://www.boonex.com/unity/extensions/entry/Clubs_Module_2010_05_14

Quote · 19 May 2010

Have you tried adding a new group to your forums? Your main forums? It is telling me "Can not add new group" under manage forums. As you know I have 7.01 on a test domain and my live domain is still. 7.0. I want to apply the 7.01 patch so I can use these new modules but I am not going to do it if I cannot get it running on my dev server.

Quote · 19 May 2010

screenshot

screenshot2

Quote · 19 May 2010

Yeah I got it.. I just uninstalled, deleted old folders, uploaded updated stuff and reinstalled and seems to work fine. So now the chore is to do the same thing with the names I want.

Still wonder why groups do not have the ability to create events. I mean groups are sure to have weekly, monthly or yearly events. I think Boonex missed this one. Perhaps something we could look forward to in the next version, or 7.02 patch?

If you are the owner or an Admin of said "Group" "Club" "Bar" etc.. you should be able to post events.

Anyway.. Great Job Audanbal, Modzzz, Dolphin_Jay to make this a reality!

I guess now I have to take the plung and upgrade to 7.01 or wait for 7.02 and hope it is better than the 7.01 patch. Got any advice on what to do and what not to do after installing 7.01 patch guys?

Quote · 19 May 2010

You forgot to mention deano92964!

Yeah, we think alike. All Clubs, Bars (to name a few) tends have events. There's already Calendar in each Module, why not give us the ability to add events in that. Who gives a shit on who and how many joined if there's already in the Site Stats?

screenshot3

Quote · 19 May 2010

I have completed my Bars Module and everything works fine until... I logout. If the bar is set to featured on the main page I get nothing but:

 

"checkAction() fatal error. Unknown action ID: 0"

 

If it is not featured the main index page will load but will return the same error if Bars is clicked.

 

 

Quote · 20 May 2010

Bars Module

Cheers, M8!

@Nitrofish, make sure you uninstall first in your installed and replace with provided link above "Bars Module".

Quote · 20 May 2010

Kewl bro thanks.. now I need hotels and restaurants to make it complete. I imagine I can come up with some other things we could use this for, but for now these three are what I, and I am sure others need to make a city site, etc. I will uninstall the one I did and try this one and let you know.

Few Ideas for you if you get bored and want projects.

  • Travel Agencies
  • Car Rentals
  • Motorcycle Rentals

Cheers...

 

Quote · 20 May 2010

How hard would it be to add a section for a Web link on the Info block of each club for that clubs official Website? Would be even nicer if the link was connected to an affiliate program or if it would track displays and click throughs and could also generate reports for clients, but I know I am dreaming right? Right? I would just settle for the Web link in the Info Block if possible.

You think you could tackle that one Audenbal or anyone else? That probably should be included in the groups module, but much like the events posting from groups it is sadly not there.

 

If you need pics for visualization just let me know.

Quote · 20 May 2010

 

How hard would it be to add a section for a Web link on the Info block of each club for that clubs official Website? Would be even nicer if the link was connected to an affiliate program or if it would track displays and click throughs and could also generate reports for clients, but I know I am dreaming right? Right? I would just settle for the Web link in the Info Block if possible.

You think you could tackle that one Audenbal or anyone else? That probably should be included in the groups module, but much like the events posting from groups it is sadly not there.

 

If you need pics for visualization just let me know.

 

Yeah, a place to link to the bar's website would e great!

 

Also, can anyone tell me how to edit the add form?  I have a local site, and it targets a specific region of Ohio.  I have no use for a "Country" selector, and would rather have a "City" and "Zip Code" field.  If someone could point me in the direction to achieve that I would appreciate it!

 

Thanks,

Bill

newbreed
Quote · 21 May 2010

modules/boonex/bars/classes/BxBarsFormAdd.php

line 193

'country' => array(

'type' => 'text', 'name' => 'site', 'caption' => _t('_bx_bars_form_caption_country'), 'values' => $aCountries, 'required' => false, /*'checker' => array ( 'func' => 'preg', 'params' => array('/^[a-zA-Z]{2}$/'), 'error' => _t ('_bx_bars_form_err_country'), ),*/ 'db' => array ( 'pass' => 'Preg', 'params' => array('/([a-zA-Z]{2})/'), ), 'display' => true,

),

You can delete that.

Quote · 21 May 2010

 

modules/boonex/bars/classes/BxBarsFormAdd.php

line 193

'country' => array(

 

'type' => 'text', 'name' => 'site', 'caption' => _t('_bx_bars_form_caption_country'), 'values' => $aCountries, 'required' => false, /*'checker' => array ( 'func' => 'preg', 'params' => array('/^[a-zA-Z]{2}$/'), 'error' => _t ('_bx_bars_form_err_country'), ),*/ 'db' => array ( 'pass' => 'Preg', 'params' => array('/([a-zA-Z]{2})/'), ), 'display' => true,

),

 

 

You can delete that.

Worked like a charm, thanks!

 

Another tip for you guys developing this - Add Google Maps integration.  That way if a user enters the bar/club address, when the page is displayed, a map could be on the page.

 

If someone added a website field and map integration to this one and the bar one, I would pay for this mod!!! 

newbreed
Quote · 21 May 2010

I have attempted to add this in BxClubsFormAdd.php above country or wherever you want it in that order...

'url' => array(

'type' => 'text',

'name' => 'url',

'value' => isset($this->_aParam['url']) ? $this->_aParam['url'] : '',

'caption' => _t('_bx_clubs_form_url'),

'required' => false,

'checker' => array (

'func' => 'length',

'params' => array(1,100),

'error' => _t('_bx_clubs_form_field_err'),

),

'db' => array(

'pass' => 'Xss'

),

'display' => true,

),

And added _bx_clubs_form_url in lang key.

URL option is there in Add Clubs form, I get Database Error after clicking Submit. Am I doing it right so far? If so, great! Now what with that bloody DB?

Quote · 21 May 2010

 

I have attempted to add this in BxClubsFormAdd.php above country or wherever you want it in that order...

 

'url' => array(

'type' => 'text',

'name' => 'url',

'value' => isset($this->_aParam['url']) ? $this->_aParam['url'] : '',

'caption' => _t('_bx_clubs_form_url'),

'required' => false,

'checker' => array (

'func' => 'length',

'params' => array(1,100),

'error' => _t('_bx_clubs_form_field_err'),

),

'db' => array(

'pass' => 'Xss'

),

'display' => true,

),

 

 

And added _bx_clubs_form_url in lang key.

 

URL option is there in Add Clubs form, I get Database Error after clicking Submit. Am I doing it right so far? If so, great! Now what with that bloody DB?

 

 

 

It looks right.  I will give it a try when I get into the office tomorrow.  Thanks for your help :-) 

newbreed
Quote · 21 May 2010

Hi Audenbal... Any word on this DB error you encountered when you added the URL field into the info box in the bars module? I am going to do the 7.01 patch tomorrow and add the Bars module. Just waiting on the other 2 modules to get those up and running in a test environment before proceeding to the live box.

Quote · 24 May 2010

This mod is perfect and works great! Thanks to all those who made it possible. Would it be possible to put a sort function on the "Recent Bars" block when viewing the Bars home page? It would be great if it is possible and make the default alphabetical.

Quote · 26 May 2010

 

I have attempted to add this in BxClubsFormAdd.php above country or wherever you want it in that order...

 

'url' => array(

'type' => 'text',

'name' => 'url',

'value' => isset($this->_aParam['url']) ? $this->_aParam['url'] : '',

'caption' => _t('_bx_clubs_form_url'),

'required' => false,

'checker' => array (

'func' => 'length',

'params' => array(1,100),

'error' => _t('_bx_clubs_form_field_err'),

),

'db' => array(

'pass' => 'Xss'

),

'display' => true,

),

 

 

And added _bx_clubs_form_url in lang key.

 

URL option is there in Add Clubs form, I get Database Error after clicking Submit. Am I doing it right so far? If so, great! Now what with that bloody DB?

 

 

 

 Well you need to update the database ofcourse for the new field you added....   something _main i would guess.   :)

Example:

ALTER TABLE `bx_bar_main` ADD `url` VARCHAR( 255 ) NULL DEFAULT 'http://'

https://dolphin-techs.com - Skype: Dolphin Techs
Quote · 28 May 2010

Thank you, jay.

Quote · 28 May 2010

UPDATE NEWS

7.0.0 is now compatible!

Feature added - URL!

http://www.boonex.com/unity/extensions/entry/Clubs_Module_7_X_X

Quote · 28 May 2010

Thanks for the help jay, but how can we make that text a clickable link?

Quote · 29 May 2010

why you wouldnt just use the tinymce for the club url in description box is beyond me....

https://dolphin-techs.com - Skype: Dolphin Techs
Quote · 30 May 2010

Basically it's just a design issue bro... IMHO, information about the bar should be in the Info Box. That would include the URL as it is information about the bar as well. The description box is for a description of the bar, not it's URL. Sure it would be easier just to put all the info there (which I did at first) but it does not look or feel right. The way it is layed out now makes more sense (at least to me) than just dumping everything in the description box.

It's too bad the Info Box is not TinyMCE, but it's not so I just would like to make these url's into clickable links that open in a new window. Can you help?

Quote · 30 May 2010

ill look into it....

https://dolphin-techs.com - Skype: Dolphin Techs
Quote · 30 May 2010

Thanks Jay!

Quote · 31 May 2010

 

UPDATE NEWS

7.0.0 is now compatible!

Feature added - URL!

http://www.boonex.com/unity/extensions/entry/Clubs_Module_7_X_X

You rock man! 

 

What's the best way to upgrade to this latest version?

newbreed
Quote · 2 Jun 2010

Any word on that clickable text inside the Bars module on the info block Jay?

Quote · 3 Jun 2010

Bad news boys and girls... after extensive testing the Bars module and I assume the Clubs, Hotels & Restaurants modules also, I have found that they do not function completely. If someone joins as a fan and is then promoted to an Admin they only get some of the Admin functions.

  • Broadcast
  • Manage Fans
  • Invite

But they do not get the other capabilities to upload

  • Photos
  • Videos
  • Files
  • Sounds

I have cheched the original Groups module, and it works normaly and provides all the buttons to Admins. The owner of the created bar (in this case only the admin can create bars) has all functionality.

 

Quote · 6 Jun 2010

looks like someone forgot to add a lang key in there lang install file...     _bx_clubs_form_url

https://dolphin-techs.com - Skype: Dolphin Techs
Quote · 6 Jun 2010

looks like someone forgot to add a lang key in there lang install file...     _bx_clubs_form_url

Any advice on fixing this myself. because of the way I want to implement this module I really need that minor issue fixed!

Thanks.

EDIT : Oh dear, I am ashamed of myself for being so lazy! I just found the spot and added the line in about 5 seconds flat.

If anyone else needs to know it's

modules > boonex > clubs > install > langs > en.php

after...

'_bx_clubs_user_unknown' => 'Unknown',

add...

'_bx_clubs_form_url' => 'Website URL',

You can change website URL to anything you want the field label to be.

Quote · 7 Jun 2010

Ok are you guys talking about the clickable text for the URL or the issue with fans promoted to admins of the bar not getting the upload buttons?

Quote · 7 Jun 2010

URL in en.php... done. Zip file in Market updated.

Quote · 7 Jun 2010

Ok I am feeling invisible here. Is this addition to fix the problem with fans not being able to upload or not? I really need to get the ability to upload for the fans and admin of the bar.

I have added several other fields to the form such location, drink prices, etc so I assume I will also have to add language keys for those also?

Quote · 8 Jun 2010

Ok I am feeling invisible here. Is this addition to fix the problem with fans not being able to upload or not? I really need to get the ability to upload for the fans and admin of the bar.

I have added several other fields to the form such location, drink prices, etc so I assume I will also have to add language keys for those also?

Neither actually. The issue being discussed  was that the label language key for the URL field had been left out of the download so instead of labeling the field with something like "website URL" the label appeared as "_bx_clubs_form_url". A very quick and easy one to fix. I am not terribly fussed about the issue you are talking about personally and unfortunately I can offer you no help as it is a bit beyond my knowledge of Dolphin 7 ( about 4 days so far) but I'm sure someone will be able to fix it for you eventually.

Cheers and good luck!

Quote · 8 Jun 2010

EDIT: Sorry, I was being an idiot! Just don't do what I did and not read the readme properly. the integration folder does not belong in the root.

Just a thought, in the download zip why not put integrations in the correct folder structure so that it can be copied into root.


IE - place it in the modules directory under /modules/boonex/forums/integrations/clubs. This would also mean the file copying would be a single step! Just copy the modules folder in the zip to dolphin root.

Cheers!

Quote · 12 Jun 2010

Come on guys.. I desperately need a resolution to this problem. Am I the only one having this issue? Please help me to resolve the problem of fans or admins promoted from fans not being able to see the upload photos, videos, and other buttons.

Quote · 13 Jun 2010

Ok, I have Clubs module installed (V7.0), what do I need to replace/update this to version 7.01?

Many thanks,

Stuart

There are none so blind as those that will not see.
Quote · 14 Jun 2010

Ok, I have Clubs module installed (V7.0), what do I need to replace/update this to version 7.01?

Many thanks,

Stuart

I haven't personally checked the module but for my mods usually I had to change the version number in the config files from 7.0.0 to 7.0.1...thats all !!!

Facebook, Twitter & Instagram Combo - http://bit.ly/1h5CarP
Quote · 14 Jun 2010

I guess this module has been abandoned because I still have no resolution to the fans or promoted admins being able to upload, etc. I installed this on a test site and the upload photos, video, etc are not working on it either so it is not the additional fields I added for the bar information.

Alhough web admins can send me thier content and I can upload it to the bar, it defeats the purpose of having these bars and allowing website admins of those bars to promote thier bars via this module. Just ads more work for me which of course I want to avoid.

Can someone please look into this problem and see of they can find a resolution?

What about 7.02? Is there an update for the 7.02 patch or will it work as is?

Quote · 19 Jun 2010

Well,

I finally got this module to work properly so that all the club functions work as the groups do. Now my club members are able to upload files if permitted and if promoted to admins they get all the admin priviliges.

I have PM's Audanbal so he can check what I have done and assuming he agrees I'll get him to upload it in a new revision on the market. In the mean time, if you are desperate PM me and I will tell you how to do it but I take no responsibility for your site and you do it at your own risk until someone can confirm I have the correct answer and not a bodge! I may have fixed the symptom rather then the actual cause!

Quote · 4 Nov 2010

What was the sollution? Audanbal created me some custom named modules. "Bars" & "Restaurants" Would love to have the fix so I can apply it to these mods. What did you change or where was the problem bro? Did he ever get back to you?

Quote · 9 Nov 2010

Hi Nitrofish,

Sorry for the delay in reponse, I have been working on customer stuff non stop (My Dolphin project is a personal one) I PM'd you the fix when I made my post! Also, for some reason I have not been recieving emails about PMs or about thread updates so I kind of allowed myself to forget about this!

Anywho, the module download now includes my fix I believe!

If you don't want to re-install, or anyone else for that matter...

in /httpdocs/modules/boonex/clubs/classes/BxClubsPrivacy.php

change...

function isDynamicClubMember($mixedClubId, $iObjectOwnerId, $iViewerId, $iObjectId) {

to...

function isDynamicGroupMember($mixedClubId, $iObjectOwnerId, $iViewerId, $iObjectId) {

Cheers

Quote · 6 Jan 2011

Hi,

I want to create a module with more info-blocks? So I did this:

1. I changed the BxClubsHorsesFormAdd with more fields, also checkbox and select fields but the checkboxes does not work.

2. I changed the ......PageView:

function getBlockCode_Stammbaum() {
return $this->_blockCustomDisplay ($this->aDataEntry, 'stammbaum');
}
function _blockCustomDisplay($aDataEntry, $sType) {
switch($sType)
{
case "stammbaum":
$aAllow = array('extrafield1','extrafield2','extrafield13');
break;
}
$sFields = $this->_oTemplate->blockCustomFields($aDataEntry,$aAllow);
$aVars = array (
'fields' => $sFields,
);
return $this->_oTemplate->parseHtmlByName('custom_block_info', $aVars);
}

3. I changed the ....Template.php:

I add the the same function like "function blockFields" but "blockCustomFields"

 

4. I change the install.sql

I add to main the extrafields;

to -- page compose blocks

-> ('bx_clubs_view', '998px', 'Stammbaum', '_bx_clubs_block_stammbaum', '2', '0', 'Stammbaum', '', '0', '66', 'non,memb', '0'),

 

5. I can add a club but if I want to see a club I get a blank page without a HTML source code. and I do not get a database error.

What did I do wrong?

 

In Attachment you can see the add-Form

AddForm

addFom.jpg · 45.3K · 899 views
Quote · 9 Jan 2011
 
 
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.