hi there,
can anyone guide me as to how to go by to make all the sponsor listings to not show up in the latest and updated sites block? and in the top rated and hot pages as well?
tnx alot
hi there,
can anyone guide me as to how to go by to make all the sponsor listings to not show up in the latest and updated sites block? and in the top rated and hot pages as well?
tnx alot
anyone?? i am willing to offer $$ for such a hackOriginally Posted by mighty_falcon
![]()
http://www.betalabs.org
in link.class.php:
find the DisplayTopRatedListing function and change
to$this->query .= ") and suspended = 0 order by rating desc limit $this->top_rated_limit";
also change an almost identical line existing in DisplayHotListing.$this->query .= ") and suspended = 0 and sp_cat != 1 order by rating desc limit $this->top_rated_limit";
Then, look at the DisplayNewListing function. change
towhere (new = 1 and suspended = 0 and (date like ...
I think there are about 4 of thosewhere (new = 1 and suspended = 0 and sp_cat != 1 and (date like
.
esm
"The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."
.
tnx alot esm !!
worked like a charmcan you please also let me know what files i should edit in order to make the sponsored links not come up on the new & updated links block that you find on the index ? tried to look in the link.class but without much luck
tnx
http://www.betalabs.org
apply the same hack to this section of code in the index.php file ( which is located in the same folder as browse.php ):
$new_links_obj = new clsLink;
$new_links_obj->InitDB($dbServer,$dbHostname,$dbUsername,$dbPassw ord,$dbName);
$new_links_obj->table_name = "idx_link";
$new_links_obj->category_table_name = "idx_category";
$new_links_obj->max_rows = $main_new_links;
$new_links_obj->template = $msg["10001"];
$new_links_obj->new_link_number = 1;
$query = "select distinct *
from idx_link
where suspended = 0 and sp_cat != 1 and (new=1 or updated=1)
order by date desc, last_updated desc limit $main_new_links";
esm
"The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."
.
as always esm, worked flawlessly
tnx a ton for your help !!![]()
Last edited by mighty_falcon; 02-21-2005 at 09:20 PM.
http://www.betalabs.org
glad it worked for you...
.
esm
"The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."
.