Hello, I need help.
How rework link Add advert in a condition of registration of the user who refers here ,,index.php?option=com_comprofiler&task=registers,, so that after the handle to refer to this link ,,index.php?option=com_cbprofilepro&view=profiletypes&layout=select,, I need to wash their user profile.
According to the findings should edit the file general.php, but do not know how to adjust.
excerpt from the general.php :
<?php
/**
* @package AdsManager
* @copyright Copyright (C) 2010-2014 Juloa.com. All rights reserved.
* @license GNU/GPL
*/
// no direct access
defined('_JEXEC') or die('Restricted access');
/**
* Content Component HTML Helper
*
* @static
* @package Joomla
* @subpackage Content
* @since 1.5
*/
class JHTMLAdsmanagerGeneral
{
var $catid;
var $conf;
var $user;
function __construct($catid,$conf,$user)
{
$this->catid = $catid;
$this->conf = $conf;
$this->user = $user;
}
function showGeneralLink()
{
if ($this->conf->display_general_menu == 1) {
?>
<div id="adsmanager_innermenu" class="row-fluid">
<div class="span12 text-center">
<?php
if ($this->catid == 0)
$link_write_ad = TRoute::_("index.php?option=com_adsmanager&task=write");
else
$link_write_ad = TRoute::_("index.php?option=com_adsmanager&task=write&catid={$this->catid}");
$link_show_profile = TLink::getProfileLink();
$link_show_user = TLink::getMyAdsLink();
$link_show_rules = TRoute::_("index.php?option=com_adsmanager&view=rules");
$link_show_all = TRoute::_("index.php?option=com_adsmanager&view=list");
$link_favorites = TLink::getMyFavoritesLink();
echo '<a href="'.$link_write_ad.'">'.JText::_('ADSMANAGER_MENU_WRITE').'</a> | ';
echo '<a href="'.$link_show_all.'">'.JText::_('ADSMANAGER_MENU_ALL_ADS').'</a> | ';
echo '<a href="'.$link_show_profile.'">'.JText::_('ADSMANAGER_MENU_PROFILE').'</a> | ';
echo '<a href="'.$link_show_user.'">'.JText::_('ADSMANAGER_MENU_USER_ADS').'</a>';
if(isset($this->conf->favorite_enabled) && $this->conf->favorite_enabled == 1){
echo ' | <a href="'.$link_favorites.'">'.JText::_('ADSMANAGER_MENU_FAVORITES').'</a>';
}
if ($this->conf->rules_text != "") {
echo ' | <a href="'.$link_show_rules.'">'.JText::_('ADSMANAGER_MENU_RULES').'</a>';
}
?>
</div>
</div>
<?php
}
}
function endTemplate() {
/* //BRONZE_TAG
echo '<div style="text-align:center !important;"><a href="
www.Juloa.com" title="'.JText::_('ADSMANAGER_CLASSIFIED_SOFTWARE').'">'.JText::_('ADSMANAGER_CLASSIFIED_SOFTWARE').' powered by Juloa.com