Past Events on Homepage

how can I do to display into the index of the site, the past events? What should I insert on the php block?

Quote · 12 Mar 2012

Hello 

If you are saying about events from default Dolphin's Events module then the module should add "Public Events" block on home page by default. The block has Upcoming, Featured, Recently Adde, etc tabs. If you cannot see it on your home page you need to check it via admin panel -> builders -> pages blocks -> homepage. Also it can be hidden if you don't have Public Events at all.

Best Regards AntonLV - http://www.boonex.com/market/posts/AntonLV
Quote · 12 Mar 2012

Its either  modify the code in:

 

BxEventsModule.php


look for: function serviceHomepageBlock () {


to add past  events in the tab. Public Events  (in homepage)


 

or make a new block

 

Past events 

bx_import('BxDolService'); return BxDolService::call('events', '_________');

(The red  line need to be filled to display  past events in home page or  there is some other way ill look into it when i have free time and get back to you)

 

 

 ------------------------------------------------------------------------------------------------------

I'm herehttp://www.boonex.com/modloaded

 

 

 

 

 

Quote · 12 Mar 2012

i have a default Dolphin's Events module and i would like to make a new block past event on home page

aspect of knowing what to put instead of the red line, thanks for the help :)

Quote · 12 Mar 2012

Hello

Red line should be replaced with service method call.

1. Use the following in `Content` field of the PHP block.

return BxDolService::call(''events'', ''homepage_block_past'');

Note. bx_import(''BxDolService''); - is not needed because the class is already included by default.

Also you may use the following MySQL query to add the block via DB. After execution you need to activate it via page builder.

INSERT INTO `sys_page_compose` (`Page`, `PageWidth`, `Desc`, `Caption`, `Column`, `Order`, `Func`, `Content`, `DesignBox`, `ColWidth`, `Visible`, `MinWidth`) VALUES ('index', '998px', 'Events', '_bx_events_block_home_past', 0, 0, 'PHP', 'return BxDolService::call(''events'', ''homepage_block_past'');', 1, 66, 'non,memb', 0);

Don't forget to add a translation fot the caption key(_bx_events_block_home_past).

2. Edit modules/boonex/events/classes/BxEventsModule.php file and add the following function in BxEventsModule class

function serviceHomepageBlockPast () {
     return "You need to write the code for the function here";
}

The function should looks almost similar to the default one serviceHomepageBlock but with the changes needed to get Past events. If you have a programming skill you should be able to do it.

Best Regards AntonLV - http://www.boonex.com/market/posts/AntonLV
Quote · 12 Mar 2012

i try to insert a code on the:

function serviceHomepageBlockPast () {

     return "You need to write the code for the function here";

}

but does not work, I not have a good knowledge of php.. if you can help me ..

Quote · 12 Mar 2012

Hello

Contact me via internal mail box and I'll try to help you. 

Best Regards AntonLV - http://www.boonex.com/market/posts/AntonLV
Quote · 13 Mar 2012
 
 
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.