I've been hacking the Wakaba.pl apart, adding my own things to the structure and I've implemented a voting system. I've gotten the front page to be able to be ordered by the amount of votes up (table structure "votes_up" so the new call is: order by votes_up instead of num) but:
the individual threads do not order by votes_up but instead order by num (default). I've tried every instance of order by num and these don't have any effect on the individual thread views (one instance of num, when changed, actually breaks the individual/front page view).
What am I missing?
lets see the source?
The entirety of the code is not available publicly (although if you're wondering about the rating system, it's just a reconfigured version of a free rating system.)
Maybe when I get the code in a state that is more transferable than it is now, I'll make it available.
However, this doesn't keep you from answering my question (if you have an answer, that is) as none of the core order functionality was actually changed (just what was being ordered).
Eeew, reddit meets Wakaba?
Wtf man. That's gross.
CSB- unfortunately this thread wasn't entitled "Please tell me your opinion on what I'm doing".
>>4
It could be a neat idea. Keep in mind Reddit did not create that system or even popularize it. Plenty of websites have done it quite well, even with the inherent egocentricism it causes. For example Slashdot, before it turned terrible.
>>3 that kinda does stop me answering the question, go and read a maths book. -- http://rateitstar.com
>>7
so in other words- you have no idea, and you just want to push your shitty software.
Nevermind, I figured it out.
In config.pl-
use constant ORDER_BY => 'votes_up';
In wakaba.pl-
$sth=$dbh->prepare("SELECT * FROM ".SQL_TABLE." WHERE num=? OR parent=? AND replied='' ORDER BY num ASC;") or make_error(S_SQLFAIL);
became
$sth=$dbh->prepare("SELECT * FROM ".SQL_TABLE." WHERE num=? OR parent=? AND replied='' ORDER BY ".front_page_order." DESC;") or make_error(S_SQLFAIL);
This made the replies in the single thread view order by votes_up instead of the default num (it would error out if I manually put ORDER BY votes_up, but using the config call works.
Oops- meant config.pl:
use constant front_page_order => 'votes_up';
>>12
I obviously have (lol) because it works (lol).
>>13 go read this:
http://nitpick2011.rateitstar.com/
and tell me what you think post on the board if you wish..
>HACKED BY LEETCHAN.ORG.
>LEET. TACTICAL. GAMING.
Yep, sounds like you're running very good and secure software.