vMulticolor-Stars Mod

Started by Valodim, September 12, 2005, 08:29:54 PM

Previous topic - Next topic

mrandall131

I had to uninstall this.  I was getting this error:

Quote8: Undefined offset: 1
File: ***********/forum/Sources/Load.php
Line: 954

Here is the code around that area.  Line 954 is the first if statement.

Quote// init tempvars
   $stars = '';
   $starcount = 0;

   // and build up the groups
   foreach($groups as $current)
      // only groups with actual stars count
      if(!empty($groupData[$current]) && $groupData[$current][1] != '') {
         $stars .= str_repeat('<img src="' . $settings['images_url'] . '/' . str_replace('$language', $context['user']['language'], $groupData[$current][1]) . '" title="' . $groupData[$current]['name'] . '" alt="*" border="0" />', $groupData[$current][0]);
         $starcount += $groupData[$current][0];
      }

   // fill the "remaining" empty places with normal post-stars
   if(($groupData[$postgroup][0] - $starcount) > 0)
      $stars .= str_repeat('<img src="' . $settings['images_url'] . '/' . $groupData[$postgroup][1] . '" alt="*" border="0" />', $groupData[$postgroup][0] - $starcount);

   return $stars;
}

Valodim

mrandall: undefined offset? but that's what the empty() check is for... hum. I'll take a look later. :|

Jazhawk: this mod takes the stars from all the user's membergroups, glues them together, and fills up with post group stars. it's meant to be used on a one-star-per-group basis, so in the end the profiles look like here;
http://www.mugenguild.com/forumx/index.php?topic=31123.msg289520#msg289520
it may seem a bit confusing first, but people got used to it quite easily... mouseover shows name of the membergroup. I guess you have the default ranks, change the admin rank to 1 red star, the gmod rank to 1 blue star, and give your account 300 posts and you'll see. ;)

R1p.PeR

the mod work fine for me, it looks like this
hxxp:imageshack.us[url=http://imageshack.us [nonactive]

mrandall131


Valodim

updated, there are now 3 options:
- disable mod entirely :P
- display <br /> between star-groups (if you have badges and don't want to rely on wordwrap)
- force display of postgroup-stars (basically, what kikea requested ;) )

and more failsafe-checks, I'm not sure but maybe this fixes the error mrandall131 got, I couldn't reproduce it... :(

mrandall131

#25
Cool, I'll install it now.

[edit]

Thanks!  Works fine now.

Jazhawk

Doesn't seem to do anything for me.

-Jazhawk

Valodim

set number of stars of your membergroup to 1, and add another membergroup... :P

Aisling

Quote from: Valodim on September 16, 2005, 11:11:21 AM
updated, there are now 3 options:
- disable mod entirely :P
- display <br /> between star-groups (if you have badges and don't want to rely on wordwrap)
- force display of postgroup-stars (basically, what kikea requested ;) )

and more failsafe-checks, I'm not sure but maybe this fixes the error mrandall131 got, I couldn't reproduce it... :(

Where can I change this stuff?

Valodim


Valodim

this mod is now SMF1.1RC1 compatible :D

nay27uk

i just installed this mod an when i click on a topic i get this error insted of the topic

Quote2: str_repeat(): Second argument has to be greater than or equal to 0.
File: E:\home\Default\sell-uk.net\htdocs\swingerpost\Sources\Load.php
Line: 678

Whats wrong do i have to alter any setings to get it working

RoarinRow

Quote from: nay27uk on November 19, 2005, 10:10:17 AM
i just installed this mod an when i click on a topic i get this error insted of the topic

Quote2: str_repeat(): Second argument has to be greater than or equal to 0.
File: E:\home\Default\sell-uk.net\htdocs\swingerpost\Sources\Load.php
Line: 678

Whats wrong do i have to alter any setings to get it working

I got the same error except on Line: 687.  I enabled Force start and Breakrow between stars.  I disabled Breakrow between stars and still got same issue on my SMF 1.05 forum.

SMF 2.0
TP 1.0 RC1.1
Wordpress 3.1.3

RoarinRow

Quote from: RoarinRow on November 30, 2005, 04:11:08 PM
Quote from: nay27uk on November 19, 2005, 10:10:17 AM
i just installed this mod an when i click on a topic i get this error insted of the topic

Quote2: str_repeat(): Second argument has to be greater than or equal to 0.
File: E:\home\Default\sell-uk.net\htdocs\swingerpost\Sources\Load.php
Line: 678

Whats wrong do i have to alter any setings to get it working

I got the same error except on Line: 687.  I enabled Force start and Breakrow between stars.  I disabled Breakrow between stars and still got same issue on my SMF 1.05 forum.

Any updates on this issue from anyone?

SMF 2.0
TP 1.0 RC1.1
Wordpress 3.1.3

Tech o.O;

I just installed this mod and I want to add new images for a certain member, I'm pretty sure this is ;ossible, but I'm not sure how to do it, I've seen it on other forums.

http://mods.simplemachines.org/index.php?mod=191

That's the mod I installed.

Any help would be appreciated.

Bowserman~


Join my awesome forums!

Random userbar generator:

kikea


huijaa

It works well in SMF 1.1 RC2...
Dovenforum Nederland -- a forum for deaf people in the Netherlands --

kikea

I'm not sure about that it operate well in RC2, because I still have a error "The package you are trying to download or install is either corrupt or not compatible with this version of SMF."

JonMarkGo

Is there going to be a new version for RC2? Mine wont let me install it.

quasar

Is there a way of making this compatible with a forum that was not upgraded to 1.1 RC2?

Advertisement: