![]() |
Woohoo installed! Awesome!
|
Quote:
|
what did you change?
|
Quote:
|
It would also be great if you could add a search feature for it, like the member list is mostly, with A-Z and it searches for links that begin with that. Also a search feature for each catagory, maybe as another module. Along with text searches, again possibly as a module.
Edit: I forgot to mention that I converted it to be a links system instead of an affiliate hack |
Contents of link_listbits:
HTML Code:
<tr> |
problem solved. if anyone is experiencing any kind of problems with the voting/rating feature. find this line in your affiliate.php:
PHP Code:
PHP Code:
|
Quote:
|
Installed without problems... thanks very much for your time and effort on this AN-net.
One suggestion and one question - I have mine set to require approval of new links and I finding I'm digging through multiple pages in admincp just to check for new pending submissions. What would be very helpful is a separate "awaiting approval" list so I know right away if there's anything new. I was also wondering about the "active status" as it seems to default to no on all new submissions. Does this change automatically the first time the link is used? If not, where can I change them to default to active: yes so I don't have to edit each one after approving them. If I'm missing a better way of doing things please let me know. Thanks very much. |
do you mean the active status or the approval status?
thank you for the suggestion, i might consider that for as an addon to this hack(since i dont plan on releasing a new version for awhile). |
Quote:
|
As far as the links awaiting approval go... if the query calling up the list of affiliates in the admincp (manage affiliates) was reversed so newest was shown first instead of last it would place anything needing attention on the first page instead of buried several pages back. I just haven't found the right query to make the change yet...
|
I changed the sort order to display the sites awaiting approval first, then the sites that are approved but inactive, then the sites that are approved and active.
|
Exactly what I'm after... care to share where that query is?
|
Quote:
PHP Code:
|
Exactly what I needed. Much appreciated Majik.
|
Quote:
|
Last small item for me to sort out... it seems that if the site description text gets too close to the edge of a cell on the affiliate list page I lose the left side border for that cell. Cells affected will change as window size or screen resolution is changed depending on where the text wraps. Any ideas of how to address this?
|
Can anyone offer any suggestions on what else I might try because I'm baffled by this one. I've played with cell padding and font sizes to no avail and the left boders continue to disappear where ever text comes within a certain margin width. I just dunno... :disappointed:
|
well each cell doesnt have a border, the border you see is the background of the table:) try increasing cellpadding and cellspacing:)
|
Got it. I deleted the <dfn> tags around the description text and all is well in the world. :squareeyed:
|
Anyway of resetting the stats on a weekly basis or am I looking at digging into the database for that?
|
you mean resetting the clicks in and out?
|
Exactly. Even with a reasonable delay on clicks - people will cheat so it's nice to either give others a fair chance at being listed or keep the cheaters very busy.
|
hmm ill see if i have time to write up a cron script
|
That would be great if you have time. Didn't mean to make work for you ... just looking for the easiest way to maintain my affiliate list now that it's installed and running well.
|
Before I install this, does this hack have a master on-off switch, that would make the affiliates section completely unavailable\available for users?
|
Yes it does and you can also grant access to only certain usergroups - like mods for example
SQL question... how can I get the following query to list ORDER BY totalratings / totalvotes ? Code:
$mvotes= $DB_site->query_first("SELECT sitename,buttonurl,affiliate_id,siteurl,totalvotes FROM affiliates WHERE active='1' AND approved='1' ORDER BY totalvotes DESC"); |
Code:
$mvotes= $DB_site->query_first("SELECT sitename,buttonurl,affiliate_id,siteurl,totalvotes FROM affiliates WHERE active='1' AND approved='1' ORDER BY totalvotes DESC"); PHP Code:
reply back on how that works;) |
It still orders them by totalrating which isn't necesarily correct. I have a "two star" affiliate listed before a "four star" one because of extra votes for a higher total. I think there needs to be some sort of division equasion - SORT BY (totalrating / totalvotes) DESC - for example to list by average.
|
ok just got around to upgrading install went flawless so i thought. added a affilate it shows up in admin pannel but does nto show up on site. Yes I did activate it any ideas
|
did you approve it?
|
I failed to install this :(
the sql queries failed.. I run: vBulletin 3.0.1 uCash & uShop vBadvanced |
can you give me the error mysql gave u?
|
nvm, i tried the queries again in phpmyadmin and everything worked fine.. :)
thank you for this wonderful hack [high]* Lurk clicks install[/high] |
When I run this MySQL query:
PHP Code:
I get this: Code:
SQL-query : in my database i see "vb3_phrase" ...do i need to change the "INSERT INTO phrase" to "INSERT INTO vb3_phrase"? |
nevermind.....i went ahead and took a chance and it worked...thanks anyways :)
|
I got this erro when I am trying to add affiliate_list template
Code:
The following error occurred when attempting to evaluate this template: |
could u please post the code your inserting into that template?
|
The Code that I put for that template is
Code:
$stylevar[htmldoctype] Code:
eval('$devnull = "' . $template . '";'); |
All times are GMT. The time now is 01:39 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|