Help configuring plugin

More
9 years 4 months ago #25708 by RFrazier
To display the Submitter name/username and Profile Link on your entry details page add this code:

<xsl:value-of select="profilelink" disable-output-escaping="yes" />

Profile Menu Item ID (Itemid)

Please explain where to place this code and what Item ID is needed. thanks

Joomla 3.3.6
SobiPro 1.1.11
CB 2.0.3

Please Log in or Create an account to join the conversation.

More
9 years 4 months ago #25709 by nordmograph
Replied by nordmograph on topic Help configuring plugin
Hello

This code must be added to your entry detaisl page, justy like any sobipro plugins:
components\com_sobipro\usr\templates\default\entry/details.xsl
(where default is the default template, maybe not the one, modify accordingly)
Add the code to that file where you want the plugin to show.

Profile menu Item ID is the Menu Item link ID ,you set when adding a menu to your user profiles in Joomla configuration. Find that ID in the Joomla menu manager.

Hope it helps

- Need help? Post the URL of the related page (eventualy as confidential info), it will help solve your issue faster.
- An error, notice or warning? report the exact message including the line number
- If you get a white page , enable error reporting and / or check your server error logs.

Please Log in or Create an account to join the conversation.

More
9 years 4 months ago #25730 by RFrazier
Replied by RFrazier on topic Help configuring plugin
Once I access the details page do i insert the code at the end?

Please Log in or Create an account to join the conversation.

More
9 years 4 months ago #25731 by nordmograph
Replied by nordmograph on topic Help configuring plugin
If you want it to show at the end, yes.

- Need help? Post the URL of the related page (eventualy as confidential info), it will help solve your issue faster.
- An error, notice or warning? report the exact message including the line number
- If you get a white page , enable error reporting and / or check your server error logs.

Please Log in or Create an account to join the conversation.

More
9 years 4 months ago #25732 by RFrazier
Replied by RFrazier on topic Help configuring plugin
added the code but receiving error can not parse. sorry I guess I am not getting it here.there are two ways toaccess the page you are talking about. first inside the admin panel through the Section template section on the left hand side, the other in file manager from my hosting cpanel. which one should i use?

@package: SobiPro Component for Joomla!

@author
Name: Sigrid Suski & Radek Suski, Sigsiu.NET GmbH
Email: sobi[at]sigsiu.net
Url: www.Sigsiu.NET

@copyright Copyright (C) 2006 - 2013 Sigsiu.NET GmbH ( www.sigsiu.net ). All rights reserved.
@license GNU/GPL Version 3
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License version 3
as published by the Free Software Foundation, and under the additional terms according section 7 of GPL v3.
See www.gnu.org/licenses/gpl.html and sobipro.sigsiu.net/licenses .

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

$Date: 2014-03-25 18:49:52 +0100 (Tue, 25 Mar 2014) $
$Revision: 4165 $
$Author: Sigrid Suski $
File location: components/com_sobipro/usr/templates/default2/entry/details.xsl $
-->

<xsl:stylesheet version="1.0" xmlns:xsl=" www.w3.org/1999/XSL/Transform " xmlns:php=" php.net/xsl " exclude-result-prefixes="php">
<xsl:output method="xml" doctype-system=" www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd " encoding="UTF-8" />

<xsl:include href="../common/topmenu.xsl" />
<xsl:include href="../common/manage.xsl" />
<xsl:include href="../common/alphamenu.xsl" />
<xsl:include href="../common/messages.xsl" />

<xsl:template match="/entry_details">
<div class="SPDetails">
<div>
<xsl:call-template name="topMenu">
<xsl:with-param name="searchbox">true</xsl:with-param>
</xsl:call-template>
<xsl:apply-templates select="alphaMenu" />
</div>
<xsl:apply-templates select="messages" />
<div class="clearfix" />
<div class="SPDetailEntry">
<xsl:call-template name="manage" />
<h1>
<xsl:value-of select="entry/name" />
<xsl:call-template name="status">
<xsl:with-param name="entry" select="entry" />
</xsl:call-template>
</h1>

<xsl:for-each select="entry/fields/*">
<div class="{@css_class}">
<xsl:if test="string-length(@itemprop)">
<xsl:attribute name="itemprop"><xsl:value-of select="@itemprop"/></xsl:attribute>
</xsl:if>
<xsl:if test="count(data/*) or string-length(data)">
<xsl:if test="label/@show = 1">
<strong>
<xsl:value-of select="label" /><xsl:text>: </xsl:text>
</strong>
</xsl:if>
</xsl:if>

<xsl:choose>
<xsl:when test="count(data/*)">
<xsl:copy-of select="data/*" />
</xsl:when>
<xsl:otherwise>
<xsl:if test="string-length(data)">
<xsl:value-of select="data" disable-output-escaping="yes" />
</xsl:if>
</xsl:otherwise>
</xsl:choose>

<xsl:if test="count(data/*) or string-length(data)">
<xsl:if test="string-length(@suffix)">
<xsl:text> </xsl:text>
<xsl:value-of select="@suffix" />
</xsl:if>
</xsl:if>
</div>
</xsl:for-each>

<xsl:if test="count(entry/categories)">
<div class="spEntryCats">
<xsl:value-of select="php:function( 'SobiPro::Txt' , 'ENTRY_LOCATED_IN' )" /><xsl:text> </xsl:text>
<xsl:for-each select="entry/categories/category">
<a href="{@url}">
<xsl:value-of select="." />
</a>
<xsl:if test="position() != last()">
<xsl:text> | </xsl:text>
</xsl:if>
</xsl:for-each>
</div>
</xsl:if>
</div>
<div class="clearfix" />
</div>
</xsl:template>
</xsl:stylesheet>

second where in the code do i add? thanks

Please Log in or Create an account to join the conversation.

More
9 years 4 months ago #25733 by nordmograph
Replied by nordmograph on topic Help configuring plugin
Hello

You can edit the file the way you want, online, from cpanel or localy on your computer then uploading via ftp client. It doesn't matter.

As you noticed Sobipro XSL templates are very touchy and when you add the code, make sure you don't add extra caracters and make sure you add all of these that are required.

If not, you'll get a parsing error as you got.

That page is actually the structure of your entry details page.
So you can add the code where you want, or where it makes sense.

I think you could add it , for exemple right after
Code:
<xsl:value-of select="php:function( 'SobiPro::Txt' , 'ENTRY_LOCATED_IN' )" />
Hope it helps.

- Need help? Post the URL of the related page (eventualy as confidential info), it will help solve your issue faster.
- An error, notice or warning? report the exact message including the line number
- If you get a white page , enable error reporting and / or check your server error logs.

Please Log in or Create an account to join the conversation.

Time to create page: 0.341 seconds
Powered by Kunena Forum
Disclaimer: Nordmograph is not affiliated with or endorsed by The Joomla! Project™. Any products and services provided through this site are not supported or warrantied by The Joomla! Project or Open Source Matters, Inc. Use of the Joomla!® name, symbol, logo and related trademarks is permitted under a limited license granted by Open Source Matters, Inc.