FanUpdate: Show 'Whole Collective'

Since FanUpdate 2.1.1, Whole Collective disappeared from the category list entirely (when creating/editing entries), as well as any missing category. Below is a snippet for allowing non-categorised entries to show Whole Collective, instead of a blank link.

Snippet

In FanUpdate_Post.php under the folder /class, go to line 172, and underneath this line:

foreach ($this->params['category'] as $key => $val) {

Add the following block of text underneath that:

if(empty($val)) {
 $val = 'Whole Collective';
}

if(empty($key)) {
 $key = 0;
}

The whole block of text will look like this:

foreach ($this->params['category'] as $key => $val) {
if(empty($val)) {
 $val = 'Whole Collective';
}

if(empty($key)) {
 $key = 0;
}

Done! You now have 'Whole Collective'! If you feel uncomfortable messing around with the coding, I've uploaded the edited file, which you can download from the » download page!

Comments

Currently no comments!

Add Comment

Details

* Comment:

Anti-SPAM


CAPTCHA Image

Submit

Log Comment?
("Log Comment" can only apply to those who have an account here at ; if you do, make sure you use the same Name and E-Mail your account uses.)

Twitter Feed »

  • New Blog Post: Listing Admin: Important Bugfix: http://ow.ly/2pWwa August 15th, 2010
  • New Blog Post: Call for Beta Testers (and a Tiny-Little-Note)!: http://ow.ly/25sVx June 30th, 2010
  • New Blog Post: Listing Admin 2.2: http://ow.ly/1XJSd June 12th, 2010