bring event's forum posts to main event page

I find it very hard to notice that each event has a forum of its own. It took me a long time to notice it, and it'll probably be the same for my users, which makes the forum not quite suitable for use.

 

Is there a way to bring the forum existence forward?

I'm thinking about either adding an action button like "go to forum" (to the list of the other actions such as "join", "share" etc.),

or better- add a content box with latest forum posts.

 

Ideas on how to accomplish any of these?

Quote · 22 Apr 2013

http://www.boonex.com/trac/dolphin/ticket/3134

Rules → http://www.boonex.com/terms
Quote · 23 Apr 2013

Oh great! Thanks Alex!

I see there are changes to install.sql for some modules. Do I need to re-install Groups and Events in order for it to work? 

Quote · 23 Apr 2013

Alex, I have applied the fixes in the changeset (the SQL inserts I did by running the added commands directly to the DB), But all I get is an endless "waiting" gif.

See attached screenshot.

 

I also followed the flow inside get_rss_feed.php, and in the end I see $sUrl = http://e-she.co.il/forum/events/rss/forum/test-demo.htm

 

Which is a valid Url (returns the results).

What am I missing?

 

(Cleared cache, both server and browser. Also tried groups, with same results).

rss_event.jpg · 90.5K · 192 views
Quote · 23 Apr 2013

It looks like you haven't implemented (or implemented it the wrong way) changes in get_rss_feed.php file.

Rules → http://www.boonex.com/terms
Quote · 24 Apr 2013

I've replaced the entire file, actually. I also compared it to the one I had originally, to see the only change in it is the added "elseif" clause. I can also verify that this "if" evaluates to "true" for the event forum RSS, and the actions in it take place.

I'll try that again.

Edit: replaced the original file and attempted the changes manually- still not working. Are you sure there is not another change somewhere missing from this changeset?

Quote · 24 Apr 2013

GOT IT!

 

The final call in get_rss_feed.php is to the bx_file_get_contents() function, giving it the built URL, and attaching a &bx_profiler_disable=1 to it at the end.

 

But since the URL you built in the new fix is an HTM file, the &bx_profiler_disable=1 attachment is causing it to be an invalid address (returning "page not found" answer).

 

What I did is to define a var which is false by default, and change it to "true" inside the new "elseif" you added. Then I use this flag in the call to bx_file_get_contents() like this:

 

echo bx_file_get_contents( $sUrl . (!$event_group_forum && BX_PROFILER && 0 == strncmp($site['url'], $sUrl, strlen($site['url']))? '&bx_profiler_disable=1' : '') );


After this change, forum feeds appear as expected in events and groups (I'm not using the store module).

Quote · 24 Apr 2013

One more issue: when dealing with events and groups with Hebrew names- the forum feed does not appear (endless "waiting" gif), on IE 9 only (on chrome it shows).

 

For example, I have an Hebrew named group which get_rss_feed.php builds this URL for: 
http://e-she.co.il/forum/groups/rss/forum/רוכבות-האופנועים.htm
(a valid address which, if pasted in IE, shows the RSS feed). However, when it comes to bx_file_get_contents(), curl_exec() returns nothing.

If using Chrome, it returns a correct result.

Quote · 24 Apr 2013

You are right, there was some problem when Profiler module is enabled:

http://www.boonex.com/trac/dolphin/changeset/17575

Thank you for testing.

Rules → http://www.boonex.com/terms
Quote · 25 Apr 2013

The following correction should help with non-latin chars in URL:

http://www.boonex.com/trac/dolphin/changeset/17576

Rules → http://www.boonex.com/terms
Quote · 25 Apr 2013

I've implemented both fixes and I approve that it solves all the issues. Thanks Alex, great work.

Quote · 25 Apr 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.