Autoapprove links

Javichino posted 26th of February 2008 in Community Voice. 0 comments.
What interests me is that the links that users added in the directory to be published instantly, because to avoid manually approve them, I have already achieved autoapprove phpMyAdmin users from putting as default value: active ...
But I can not do so with the links as he put the value "1" means approved but is not working well ...



The results is nothing


(This is spanish)
Image says:

[title]
[Status: Not approve] [edit link | Suggest sponsor]
[Description]
[url] [More info | Broken link]



---------------------------------------------------------

THE SOLUTION!


The solution I have already, what we have to do is open the file
/ utils / link_add.php


Only you should look where it says
$ Params [ 'status'] = is_admin ()? 1: 2;

And replace it with this:

/ / $ Params [ 'status'] = is_admin ()? 1: 2;
$ Params [ 'status'] = 1;



But that's not all as a link to remove some of this category will return to add links removed without going through ... Then go / cQueries.php

Going to the line # 1455 and put it:


/ / Added by JG

Aprobe_all_links function ()
(
$ SQL =
"
UPDATE `` las_links
SET status = 1
WHERE status = 3
";

$ This-> db-> query ($ sql);
)
 
Comments
·Oldest
·Top
Please login to post a comment.
No comments so far.
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.
PET:0.059926986694336