Skip to content
WJunction - Webmaster Forum

[WCDDL][Bug-Fix] Editing Downloads (AdminCP)

Status
Not open for further replies.
Here's a simple bug fix for when editing downloads in the WCDDL adminCP.

Ever noticed how whenever you edit a download, the rating drop down menu starts from 1 instead of 0, so if the downloads rating is 0, and you want to edit the title or something, the rating will automatically change to 1.

Well here's a fix for it.

Open funcs.php

FIND FOR:
Code:
for($i=1;$i<=5;$i++) { echo '<option value="'.$i.'"'.($i == $down['rating'] ? ' selected="selected"' : '').'>'.$i.'</option>'; }
REPLACE WITH:
Code:
for($i=0;$i<=5;$i++) { echo '<option value="'.$i.'"'.($i == $down['rating'] ? ' selected="selected"' : '').'>'.$i.'</option>'; }
 
Status
Not open for further replies.

About the author

C
Active Member · Joined
1,493
Messages
2
Reactions
38
Points

Advertise on WJunction

Reach 1000's of webmasters, hosts & affiliates. Banner & sponsored-thread slots available.

Contact us
Back
Top Bottom