UPDATES EasyBlog 6.0.11 Released! Update to the latest version now!

Helpdesk

Your Time
Our Time
Response Time
24 — 48 hours
We strive to provide the fastest ever response possible. However, we are not super beings.

Allow at least 24 — 48 hours
  Support is offline
It is currently off working hours and most of us aren't around

Rest assured that we will get back to you as soon as the day starts tomorrow!
It is currently a public holiday for us from where we are at.

There may be a delay in our responses but rest assured that we will be back at full speed when we are back to the office.
  Support is offline

code to show profiles on SObiPro xml pages

Colin Girard · ·
3:26 PM Thursday, 14 December 2017
Normal
just noticed we have profiles showing on sobipro pages contributed by the member.
screenshot attached.
example:
https://www.ehcanadatravel.com/ontario/travel-stories/6026-a-grand-time-in-haldimand-county-on.html

but the code used was jomsocial code: (xml)
Do you have code to do this for ES? - very important

jomsocial code:
<xsl:attribute name="class"> spdetails promoted_<xsl:value-of select="entry/fields/field_promo_information/data/promotype_id" /> promoted_<xsl:value-of select="entry/fields/field_promo_information/data/tiertype_id" /> promoted_<xsl:value-of select="entry/fields/field_promo_information/data/ordering" /> </xsl:attribute>
<!--Id step1-->
<xsl:variable name="gid">
<xsl:variable name="author_id">
<xsl:value-of select="entry/author"/>
</xsl:variable>
<xsl:value-of select="php:function('RestaurantsTpl::gid', $author_id)" />
</xsl:variable>

<xsl:variable name="myTitle"><xsl:value-of select="entry/name"/></xsl:variable>
<xsl:value-of select="php:function( 'RestaurantsTpl::AddTitle', $myTitle )" />


<xsl:value-of select="php:function('RestaurantsTpl::MyMetaProperty', 'property', 'og:image', string(entry/fields/field_gallery/data/img/@src))" />
<xsl:value-of select="php:function('RestaurantsTpl::MyMetaProperty', 'property', 'og:url', string(entry/url))" />
<xsl:value-of select="php:function('RestaurantsTpl::MyMetaProperty', 'property', 'og:type', 'business.business')" />
<xsl:value-of select="php:function('RestaurantsTpl::MyMetaProperty', 'property', 'og:title', string(entry/name))" />


<!--Id step2-->
<xsl:variable name="group1">
<xsl:choose>
<xsl:when test="contains( concat($gid, ',' ), ',8,' )">
1
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
The replies under this section are restricted to logged in users or users with an active subscription with us