Status
Not open for further replies.

donkeyhost

Active Member
80
2012
1
0
hi i am useing data life. i am looking for how to add number of search result or number of file in title



 
Last edited by a moderator:
3 comments
if you've got some kind of data file you've probably already got the ability to pull the value in via PHP and display it.

you can use this value when you're generating your html file in the <head> section

PHP:
<head>
<title>
    master of surgery 6th edition depositfiles free download Crack Serial (<?php echo $resultsCount; ?> links)
</title>
</head>
ex: http://inputout.org/sandbox/variableTitle.php?count=14683
replace x with a number value and it will update the 'results' line at the bottom as well as the 'title' of the page. if nothing is passed, it defaults to another number

that's just one way to do it, write out your <title> with the results count you need

example page source:
PHP:
<?php
    $resultsCount = isset($_GET['count']) ? (int)$_GET['count'] : 666;
?>

<html>
<title>
    master of surgery 6th edition depositfiles free download Crack Serial (<?php echo $resultsCount; ?> links)
</title>

<body>

<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean eget velit felis, ut dapibus sapien. Ut diam dolor, egestas id porttitor sit amet, hendrerit sit amet tortor. Nunc accumsan ligula eu metus cursus facilisis. Quisque vitae diam ut est commodo commodo. Nullam non varius arcu. Pellentesque et arcu nisi. Mauris diam ante, volutpat eget tincidunt condimentum, dapibus et libero. Pellentesque tincidunt tincidunt adipiscing. Cras mattis dolor sodales nisl pulvinar aliquam. Donec id mi tempus enim congue congue nec vitae urna. Vestibulum semper leo sit amet justo aliquet tempus pellentesque mauris scelerisque.</p>

<p>Donec consequat enim et diam gravida consequat. Mauris id augue vitae ipsum convallis tristique. Aliquam purus nulla, adipiscing sit amet pulvinar at, egestas in lectus. Vivamus a nibh dolor. Donec mollis tellus dui. Etiam in sem ut nibh lacinia laoreet non nec tortor. Vivamus non arcu sem. In ante turpis, volutpat in pellentesque eu, malesuada vel odio. Cras lobortis eleifend elit, at sodales elit imperdiet nec. Morbi nisi nulla, adipiscing sit amet malesuada quis, rutrum id elit. Pellentesque ornare est id nisl rhoncus non rhoncus mi pharetra. Mauris odio nunc, aliquet eu auctor nec, vulputate quis velit. Nulla rhoncus, ipsum in tristique varius, turpis odio luctus odio, nec semper purus erat quis augue. Morbi facilisis tellus quis magna tincidunt viverra.</p>

<p>Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Vivamus augue tortor, tincidunt at rhoncus vitae, pharetra in nibh. Ut vitae augue non arcu ornare dapibus ut non mauris. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec aliquet, mi id pharetra rutrum, erat lacus elementum lectus, consequat mattis purus erat rhoncus purus. Suspendisse dui nibh, hendrerit in tincidunt ut, interdum ac nunc. Morbi imperdiet urna sed quam mollis quis porta erat aliquet. Suspendisse nec libero nec lacus lobortis molestie. Nullam laoreet venenatis justo, vel placerat magna fringilla quis. Ut scelerisque ornare augue, quis ornare felis rutrum et. Donec eget nibh nunc, ut molestie lorem.</p>

<br /><br /><br />

<div id="results">About <span id="resultsCount"><?php echo $resultsCount; ?></span> results for mastery of surgery 6th edition depositfiles - Results 1 - 20 of <?php echo $resultsCount; ?></div>

</body>
</html>
hope that helps
 
Last edited:
your thread is a bit old but here is what u can do to achieve it

file engine/engine.php
find:
PHP:
$metatags = <<<HTML
<meta http-equiv="Content-Type" content="text/html; charset={$config['charset']}" />
<title>{$metatags['title']}</title>
Replace with:
PHP:
$myTitle = $metatags['title'] . ' ('. rand() . ' links)';
$metatags = <<<HTML
<meta http-equiv="Content-Type" content="text/html; charset={$config['charset']}" />
<title>{$myTitle}</title>
it will add a random link there
I dont remember search function to display on that page result, and thread is old i will not check it now but if you require let me know and i will check for you.

Tip: if u need larger number only change rand() to rand(50000,500000000);
 
Status
Not open for further replies.
Back
Top