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 / [SOLVED] random content

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

[SOLVED] random content

More
11 years 3 months ago - 11 years 3 months ago #2998 by zizi80
[SOLVED] random content was created by zizi80
hi, I have a problem with loading the content, I mean, the list of ads from AdsManager: I have the need to have a casual loading, then I edited the page:

/administrator/components/com_adsmanager/models/content.php

$sql .= " GROUP BY adcat.adid";
to $sql .= "ORDER BY RAND()";

but when I go to the second page continues to do random, I wish it only the first time I did a random page and data that will
please help me
Last edit: 11 years 3 months ago by tompap.
More
11 years 3 months ago #3010 by tompap
Replied by tompap on topic random content
You mean you want a "daily" or "hourly" random order ? something like that.

This required a little more dev, we can do such specific featured, please contact us by mail if you want a quote for this dev.
More
11 years 3 months ago - 11 years 3 months ago #3022 by zizi80
Replied by zizi80 on topic random content
I would like the random order each time you open the site, it does not meter
browsing .no I wish it were managed at the time, but I do not understand any paging loads the contents with a LIMIT order to resume reading from the rest, even random
Last edit: 11 years 3 months ago by zizi80.
More
11 years 3 months ago - 11 years 3 months ago #3023 by zizi80
Replied by zizi80 on topic [solved without help] random content
help me to create a new select
Last edit: 11 years 3 months ago by zizi80.
More
11 years 3 months ago #3035 by zizi80
Replied by zizi80 on topic [solved without help] random content
I'm for the open source, this is the solution

enough simply enter this code. administrator/components/com_adsmanager/models/content.php .line 290 about

$rand = $_SESSION;
if (empty($rand)) {
srand((float)microtime()*1000000);
$rand = rand();

$_SESSION = $rand;
session_set_cookie_params(0);
}

$sql .= "ORDER BY a.ad_top DESC, RAND($rand)";
More
11 years 3 months ago #3036 by zizi80
Replied by zizi80 on topic [solved without help] random content

zizi80 wrote: I would like the random order each time you open the site, it does not meter
browsing .no I wish it were managed at the time, but I do not understand any paging loads the contents with a LIMIT order to resume reading from the rest, even random

Moderators: perry
Time to create page: 0.149 seconds
Powered by Kunena Forum