Trying to remove all of the dating/hook-up lingo and aspects from my Dolphin install and I can't figure this one out:
On both Groups & Events there is a mandatory location field(s). Since my site is only for online activity, this is not only pointless but a bit misleading. I want to remove the "Country," "City," and "Place Name" fields entirely - or at the very least make them not mandatory fields. I've managed to remove most other mentions of location (had to sacrifice a bit of functionality for a few things, but it's worth it) - but I can't find a neat way to do this one.
|
edit the file "modules/boonex/events/classes/BxEventsFormAdd.php"
here you see this for country:
'Country' => array( 'type' => 'select', 'name' => 'Country', 'caption' => _t('_bx_events_caption_country'), 'values' => $aCountries, 'required' => true, 'checker' => array ( 'func' => 'preg', 'params' => array('/^[a-zA-Z]{2}$/'), 'error' => _t ('_bx_events_err_country'), ), 'db' => array ( 'pass' => 'Preg', 'params' => array('/([a-zA-Z]{2})/'), ), ),
delete the line:
'required' => true,
same for city and place, or you could try to delete the whole code from above
for groups the same on the file:
modules/boonex/groups/classes/BxGroupsFormAdd.php
ue30 Mods - http://www.boonex.com/market/posts/ue30 |
Thank you so much, worked perfectly! |
To thoroughly remove location from Groups and Events, see below :
FOR EVENTS MOD :
a) In this file :
modules\boonex\events\templates\base\unit.html
Find and remove :
<div class="sys_file_search_country">__country_city__</div>
b) In this file :
modules\boonex\events\templates\base\block_info.html
Find and remove :
<div class="infoUnit bx_events_country_city"> __flag_image__ __country_city__ </div>
c) In this file :
modules\boonex\events\classes\BxEventsFormAdd.php
Find :
parent::BxDolFormMedia ($aCustomForm);
Just above, Add :
unset ($aCustomForm['inputs']['Country']); unset ($aCustomForm['inputs']['City']); unset ($aCustomForm['inputs']['Place']);
FOR GROUPS MOD :
a) In this file :
modules\boonex\groups\templates\base\unit.html
Find and remove :
<div class="sys_file_search_country">__country_city__</div>
b) In this file :
modules\boonex\groups\classes\BxGroupsFormAdd.php
Find :
parent::BxDolFormMedia ($aCustomForm);
Just above, Add :
unset ($aCustomForm['inputs']['country']); unset ($aCustomForm['inputs']['city']); unset ($aCustomForm['inputs']['zip']); Paypal email is jeromemingo@gmail.com - http://www.boonex.com/market/posts/modzzz |
The first fix appeared to work: got rid of the * indicating required fields. But when actually creating events & groups the fields are still required, they just aren't marked as required (which makes the unnamed error msg a bit confuzzling).
The second fix worked all the way through creating events and groups. No sign of location popping up on either.
Thank you!!
|
nice one !
how about the time? i would like to add events only on date, and no time input.
|
Is there a similar fix to remove the location fields from Ads? |
It gave that error because it's still requiring them, you just hid the input boxes for them. Gawd do I hate having to dig through Hookie code like this. Give me a few and I'll find something. And fyi, hiding them like this will cause you more issues than you can imagine, alot more. |
Actually, modzzz' fix worked perfectly, I've had no issues creating events or groups since implementing the fix and all of the location junk is gone, just as I wanted! |
Thanks for the tips. I took advantage of them as well.
Another problem with supporting online events is that you also need a time zone field.
|
Thank you for this thread; I am going to try and work through it. I am having the same issues, myself, my site is ONLY for the residents/renters of our community therefore all the dating nonsense (which should be optional), odd wording (should be much easier to find and change core text), categories, etc are frustrating....
In ad it allows custom fields and then a field identifier, but that doesn't work well or make sense. Some things, like yard sales are date and time based.
I just want to do a last ditch effort to grab as much knowledge as I can before taking on this task.. I want to remove country from everything; it is pointless. City, State and Zip are too honestly... if we all live here, it is because we live in Orlando, Florida at the same zip. Although, I was debating because of owners who live out of state.....
Can all location information be completely wiped site wide without causing issue to other module integration and the next Dolphin upgrade?
|
hello,
can you tell me how do the same for the ads ?
i want to remove fields or there is blue cross (see photo attached)
thank you
|
How do we remove country and city from Ads while posting the Ads and also from the CUSTOM VALUES while viewing the Ads. |
If you're looking to delete country/city from ads, you can follow this :
In BxAdsModule.php
Find and delete :
'Country' => array(
'type' => 'select',
'name' => 'Country',
'caption' => _t('_bx_ads_caption_country'),
'values' => $aCountries,
'value' => $sCountry,
'required' => false,
'checker' => array (
'func' => 'preg',
'params' => array('/^[a-zA-Z]{2}$/'),
'error' => _t ('_bx_ads_err_country'),
),
'db' => array (
'pass' => 'Preg',
'params' => array('/([a-zA-Z]{2})/'),
),
),
'City' => array(
'type' => 'text',
'name' => 'City',
'caption' => _t('_bx_ads_caption_city'),
'required' => false,
'value' => $sCity,
'checker' => array (
'func' => 'length',
'params' => array(3,50),
'error' => _t ('_bx_ads_err_city'),
),
'db' => array (
'pass' => 'Xss',
),
),
I can post ads and in the submission form 'Country' and 'City' no longer appear and ad posts fine. Problem is that 'Country' and 'City' (although empty) still appears in the published ad's "Custom Fields".
Help?
|
BxAdsModule.php around line 1729, find:
'Country' => array( 'type' => 'value', 'name' => 'Country', 'caption' => _t('_Country'), 'value' => $sCountryName . $sCountryPic, ), 'City' => array( 'type' => 'value', 'name' => 'City', 'caption' => _t('_City'), 'value' => $aSqlResStr['City'], ),
Remove (or comment out) this section only and it should remove from displaying
caredesign.net |
Fantastic ProfessorSr.
Just tested and all working. Thank you so much.
|
Hi i need your help please :)
How to remove the country field from this block ----> check the image provided please.
Proud Hosted by Zarconia.net |