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 / Adding page number to page title

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.

Adding page number to page title

More
11 years 3 months ago - 11 years 3 months ago #12993 by catalinads
Adding page number to page title was created by catalinads
i want to add to page title something like : Page 2... Page 3 .. etc

how to compute from limit and limitstart this ?
using something like str_replace

or i can use this:
$pagenum = empty($limit) ? (int) $limitstart : (int) ($limitstart / $limit) + 1;
to get the page number
and after use a language string for page

now.. the problem is how to not display on first page ..on page 1 :)
but.. the language string for page... not good because will be used on first page

i think that will be useful to add to standard adsmanager version because in this way will not be duplicate page titles
Last edit: 11 years 3 months ago by catalinads.
More
11 years 3 months ago #12996 by catalinads
Replied by catalinads on topic Adding page number to page title
What about this ?

if (!empty($limitstart)) {

$pagenum = empty($limit) ? (int) $limitstart : (int) ($limitstart / $limit) + 1;


$pagenumber = JText::_('ADSMANAGER_PAGE_NUMBER')." ".$pagenum ; }
else
$pagenumber = ' ';
More
11 years 3 months ago #13010 by tompap
Replied by tompap on topic Adding page number to page title
Hello,

This could be good to add.
Regarding how to excluse from page 1, just check $pagenumber != 1 ?
Time to create page: 0.046 seconds
Powered by Kunena Forum