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
Senior Member · Joined
1,493
Messages
2
Reactions
38
Points
Grow your business

Advertise on WJunction

Connect with an established international community of webmasters, hosting providers, developers and online entrepreneurs.

  • Premium & Premium+ Sticky
  • Dedicated section banners
  • Site-wide banner advertising
Explore advertising options
Back
Top Bottom