Official PHPmotion Powertools (addons) > FlowMOTION

Change Index Ajax featured to ... recent ?

(1/4) > >>

ardid:
Hi, in index, at bottom , in the ajax, when starts, it open Featured videos,
do we can change to default as Recent ?

ardid:
i can do this =) ... but dont work fine

in index.php change this lines (in 2 instances, in my code: lines 124 and 141):

--- Code: ---$TBS->MergeBlock('blkfeatured', $result_featured);
--- End code ---

to this:

--- Code: ---$TBS->MergeBlock('blkfeatured', $recent);
--- End code ---


when i clic on Recent or Featured, dont change, only ADD this option ... :(

Vidoooo:
I'm not quite sure of the code without fiddling with it, but look in index.php (index2.php if using SEO mod) and look for the featured video code - change that to display recent videos

Post again if you don't solve it & will have a look tomorrow, just off to bed now

Stuart

ardid:

--- Quote from: Vidoooo.com on July 01, 2008, 05:03:49 PM ---I'm not quite sure of the code without fiddling with it, but look in index.php (index2.php if using SEO mod) and look for the featured video code - change that to display recent videos

Post again if you don't solve it & will have a look tomorrow, just off to bed now

Stuart

--- End quote ---

thanks, i test to change this line:

--- Code: ---//get featured videos , se intercambio el codigo del sql con el de recent para que muestre los mas recientes
$result_featured = array();
$sql = "SELECT * FROM videos WHERE featured = 'yes' AND approved='yes' AND public_private = 'public' ORDER BY indexer DESC LIMIT 16";

--- End code ---

to this:

--- Code: ---$sql = "SELECT * FROM videos WHERE approved='yes' AND public_private = 'public' ORDER BY indexer DESC LIMIT 10";

--- End code ---

but dont work ... when i click on the ajax all is bad :(

sbcjr:
That line is correct- I just copied and pasted it into my index.php, and it works fine - TrashCars.net.

You must have an error somewhere else.

It was index.php that you edited that in, correct?  Not index_ajax.php?

Navigation

[0] Message Index

[#] Next page

Go to full version