Login or create new account.

By registering on joomprod.com, you will have immediate access to all our free products and to the public side of our support forum.

Enjoy our subscriptions.

Each of our subscriptions allow you to enjoy the private side of the support forum and all the update of our products for a period ranging from 3 months to 1 year.

Payment And immediate download.

After subscribing to one of our subscription, the products are immediately downloadable.

Login

Or Register
Accueil / forum / Support / AdsManager Support / [RESOLVED] Tab description

Support Availability Because we must sleep sometimes

Working days: Monday to Friday.
Reply time: Depending on the complexity of your support issue it's usually between a few hours to 48 hours.

Support is only guaranteed to paid subscribers

AdsManager - End of life

It is with great regrets that we have chosen to end the developpement of Adsmanager and its other associated components.

AdsManager is born 10 years ago and, as of today, the number of new subscriptions and downloads have fallen and we cannot maintain the component anymore.

All active subscribers will be able to continue enjoying support until the end of their subscription.

The components will be free and no support will be provided anymore for the other users.

×

Notice

The forum is in read only mode.

[RESOLVED] Tab description

More
11 years 1 month ago - 11 years 1 month ago #14961 by raph17
[RESOLVED] Tab description was created by raph17
I created a field description for every language .
I want if the language is romanian and the description is in romanian to display it on a tab.
If the description is on english i want in that tab appear an message or something else.
I put this code on the tab
<div class="tab-content">
<?php
    if ($this->content->ad_textro != '' &&  $tag == 'ro-RO')
    { 
	echo	'<div class="tab-pane active" id="desc">' ;
  echo   "<h2><span class=\"ads-title1\"> ".$this->content->ad_manufacturers." ".$this->content->ad_modelauto ." ".$this->content->ad_jetmodels ." " .$this->content->ad_model." </span></h2>"  ; 
 echo $this->content->ad_textro ; 
	echo	'<div>' ;        
   }
    if ($this->content->ad_text != '' &&  $tag == 'en-GB')
 { 
	echo	'<div class="tab-pane active" id="desc">' ;
  echo  "<h2><span class=\"ads-title1\"> ".$this->content->ad_manufacturers." ".$this->content->ad_modelauto ." ".$this->content->ad_jetmodels ." " .$this->content->ad_model." </span></h2>"  ; 
 echo $this->content->ad_text ; 
	echo	'<div>' ; 
}
else
 { 
	echo	'<div class="tab-pane active" id="desc">' ;
  echo  NO DESCRIPTION  ; 
	echo	'<div>' ; 
}
 
?> 
 
		</div>

But when the language is romanian appear the romanian description but also the message with NO DESCRIPTION.
How can i make it appear only the description and if the description is on other language appear the NO DESCRIPTION message?

Thank you
Last edit: 11 years 1 month ago by loic.
The following user(s) said Thank You: adarr
More
11 years 1 month ago #14990 by loic
Replied by loic on topic Tab description
Hello,

Here, replace those lines:
}
    if ($this->content->ad_text != '' &&  $tag == 'en-GB')

By that:
} elseif ($this->content->ad_text != '' &&  $tag == 'en-GB')
The following user(s) said Thank You: adarr, raph17
More
11 years 1 month ago #15140 by raph17
Replied by raph17 on topic Tab description
It works
SOLVED
Thank you
The following user(s) said Thank You: adarr
More
11 years 1 month ago #15326 by loic
Replied by loic on topic Tab description
Great news :)

I update this topic to resolved.

Best regards.
The following user(s) said Thank You: adarr, raph17
Time to create page: 0.073 seconds
Powered by Kunena Forum