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 / Public Forum / Main Forum / Pathway minor change

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.

× OLD Forum post could be checked here : forum.joomprod.com

Pathway minor change

More
11 years 7 months ago #10678 by catalinads
Pathway minor change was created by catalinads
i have this
<?php 
		$pathway ="";
		$nb = count($this->pathlist);
		for ($i = $nb - 1 ; $i >0;$i--)
		{
			$pathway .= '<a href="'.$this->pathlist[$i]->link.'">'.$this->pathlist[$i]->text.'</a>';
			$pathway .= ' <img src="'.$this->baseurl.'components/com_adsmanager/images/arrow.png" alt="arrow" /> ';
		}
		if (isset($this->pathlist[0]))
			$pathway .= '<a href="'.$this->pathlist[0]->link.'">'.$this->pathlist[0]->text.'</a>';
	echo $pathway;
	?>

And this display the pathway like this Allads-Category-subcategory-etc

When i click allads will reveal mea al the afd from all categories and in that page the pathway is provided by
if (isset($this->pathlist[0]))
$pathway .= '<a href="'.$this->pathlist[0]->link.'">'.$this->pathlist[0]->text.'</a>';
and redirects me to home.

i want to remove Allads(root) ...and to have always Home.

is any minor change that i can made?
More
11 years 7 months ago #10693 by loic
Replied by loic on topic Pathway minor change
Hello,

You can add a condition in the code.

Something like this:
for ($i = $nb - 1 ; $i >0;$i--)
{
    if($this->pathlist[$i]->text != 'allads'){
	$pathway .= '<a href="'.$this->pathlist[$i]->link.'">'.$this->pathlist[$i]->text.'</a>';
	$pathway .= ' <img src="'.$this->baseurl.'components/com_adsmanager/images/arrow.png" alt="arrow" /> ';
    }
}

I have not tested this code so it might need some modification :).

Best regards.
More
11 years 7 months ago #10699 by catalinads
Replied by catalinads on topic Pathway minor change
Let me put an image maybe i explain better :)
Attachments:
More
11 years 7 months ago - 11 years 7 months ago #10716 by loic
Replied by loic on topic Pathway minor change
Ho, I didn't understand sorry.

In that case, you can do something like that:
for ($i = $nb - 1 ; $i >0;$i--)
{
    if($this->pathlist[$i]->text == 'allads'){
	$link = $this->pathlist[0]->link;
    } else {
        $link = $this->pathlist[$i]->link;
    }
 
	$pathway .= '<a href="'.$link.'">'.$this->pathlist[$i]->text.'</a>';
	$pathway .= ' <img src="'.$this->baseurl.'components/com_adsmanager/images/arrow.png" alt="arrow" /> ';
}

Let me know if that works :).

Best regards.
Last edit: 11 years 7 months ago by loic.
More
11 years 7 months ago - 11 years 7 months ago #10725 by catalinads
Replied by catalinads on topic Pathway minor change
I have replace the text allads with my text but doesnt work
it's linking me exactly on current page


now i have this code:
<?php 
		$pathway ="";
		$nb = count($this->pathlist);
		for ($i = $nb - 1 ; $i >0;$i--)
		{ if($this->pathlist[$i]->text == 'allarts'){
	$link = $this->pathlist[0]->link;
    } else {
        $link = $this->pathlist[$i]->link;
    }
 
	$pathway .= '<a href="'.$link.'">'.$this->pathlist[$i]->text.'</a>';
	$pathway .= ' <img src="'.$this->baseurl.'components/com_adsmanager/images/arrow.png" alt="arrow" /> ';
		}
		if (isset($this->pathlist[0]))
			$pathway .= '<a href="'.$this->pathlist[0]->link.'">'.$this->pathlist[0]->text.'</a>';
	echo $pathway;
	?>

if i remove the last part:
if (isset($this->pathlist[0]))
$pathway .= '<a href="'.$this->pathlist[0]->link.'">'.$this->pathlist[0]->text.'</a>';
not a good idea

and a little off topic. i try to get puclication date somewhere... but i want to change time format
now i have Y d month .. but i want d M y.
Would be nice in adsmanager an option for time format like in invoicing or in virtual money
Attachments:
Last edit: 11 years 7 months ago by catalinads.
More
11 years 7 months ago #10736 by loic
Replied by loic on topic Pathway minor change
Hello,

Then i'm sorry but I can't help you more for the pathway issue :/.

However, for the date format, you can set it like a translate string, the existing string is this one:
ADSMANAGER_DATE_FORMAT_LC="%m-%d-%Y"

You will need to override it like this:
ADSMANAGER_DATE_FORMAT_LC="%d-%m-%Y"

Best regards.
Moderators: perry
Time to create page: 0.102 seconds
Powered by Kunena Forum