Sort by Category Links in EditNews MOD!

Post your suggestions for the script here.

Sort by Category Links in EditNews MOD!

Postby DarkSlim » Wed Oct 28, 2009 10:04 am

Ok, here is a nice mod for you, it changes all the category names in editnews
to links, each category name when clicked gets you only the news from
that category! :)

edit inc/mod/editnews.mdu, and find this:
Code: Select all
$cat[$row['id']] = $row['name'];


replace it with this:
Code: Select all
$cat[$row['id']] = '<a href="?mod=editnews&category='.$row['id'].'">'.$row['name'].'</a>';


That's it! now log in and check it in edit news. :wink:
User avatar
DarkSlim
 
Posts: 298
Joined: Thu Aug 06, 2009 4:18 pm
Location: IL

Postby Torstein » Wed Oct 28, 2009 5:12 pm

Nice one!
Torstein
 
Posts: 292
Joined: Thu Aug 03, 2006 11:19 pm

Postby riri » Wed Oct 28, 2009 6:34 pm

Great ! Thanks
riri
 
Posts: 51
Joined: Tue Aug 21, 2007 8:32 pm

Re: Sort by Category Links in EditNews MOD!

Postby F D B » Mon Aug 01, 2011 9:30 pm

I'm having a big problem, I can't seem to find that code in the file editnews.mdu
I'm under CuteNews 1.4.6.
What can I do?.
Thank you.
F D B
 
Posts: 6
Joined: Wed Jul 27, 2011 4:36 pm

Re: Sort by Category Links in EditNews MOD!

Postby Hawk » Fri Aug 19, 2011 11:01 pm

CuteNews and CuteNews.RU are different scripts. CuteNews support can be found on www.cutephp.com
User avatar
Hawk
 
Posts: 279
Joined: Tue Aug 29, 2006 9:00 pm


Return to Suggestions



Who is online

Users browsing this forum: No registered users and 0 guests

cron