Quote:
Originally posted by TheMasterG
Great hack, seems to be working well, couple of issues though.
Where in the Admin CP should I go to Validate added links as I don't see this anywhere?
Also, unvalidated links are appearing in the "Top 10 Visited" page?
Also, I would like to place links.php outside my forum directory, what do I need to change to allow this to work? as I get the following error when I move it right now :
Fatal error: Failed opening required './global.php' (include_path='') in /home/username/public_html/links.php on line 2
Other than that, great hack
|
Ok, I see the "Validate New" link now, just appeared after a while.
And I fixed the unvalidated links problem:
In links.php, change :
PHP Code:
// #################### Top 10 Most Visited Links ####################
if ($action=="top10visited") {
$asb = $DB_site->query("SELECT * FROM gportal_weblinkslink ORDER BY hits DESC LIMIT 10");
to :
PHP Code:
// #################### Top 10 Most Visited Links ####################
if ($action=="top10visited") {
$asb = $DB_site->query("SELECT * FROM gportal_weblinkslink WHERE valid='1' ORDER BY hits DESC LIMIT 10");
Only thing left to do is how to place links.php outside my forum directory?