Show Multiple Badges (AKA Stars)

Started by Thantos, April 04, 2005, 10:03:46 PM

Previous topic - Next topic

TrueSatan

@ Seymoor

You would appear to have duplicate installed the mod...check all the files the mod edits and remove any duplicate code it has added.

tennesseeavalanches

#281
Having a problem and not quite sure what the deal is.

Thanks to SleePy we finally got it working but now I have a few members showing the following.
duplicate 08 badges

Gary

Dont set the same membergroup as a primary membergroup and a secondary membergroup. :P
Gary M. Gadsdon
Do NOT PM me unless I say so
War of the Simpsons
Bongo Comics Fan Forum
Youtube Let's Plays

^ YT is changing monetisation policy, help reach 1000 sub threshold.

Nutronic

Does this work for 1.4 or can anyone suggest a similar mod that does?

TrueSatan


Jade Elizabeth

Quote from: ladyshanae on June 10, 2006, 03:43:22 PM
I figured out how to do this and posted it a page or two back.  Here is the code:

QuoteIn Load.php FIND:

  $starstrings = array();
  foreach($allstars AS $star)
        $starstrings[] = str_repeat('<img src="' . str_replace('$language', $context['user']['language'], isset($star[1]) ? $settings['images_url'] . '/' . $star[1] : '') . '" alt="*" border="0" />', empty($star[0]) ? 0 : $star[0]);
  return implode("<br/>", $starstrings);
}

REPLACE  return implode("<br/>", $starstrings);

With

return implode($starstrings);

I tried this on my 1.1.4 install and I got

QuoteWarning: main(/home/jade/public_html/forums/Sources/Load.php) [function.main]: failed to open stream: No such file or directory in /home/jade/public_html/forums/index.php on line 52

Fatal error: main() [function.require]: Failed opening required '/home/jade/public_html/forums/Sources/Load.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/jade/public_html/forums/index.php on line 52

I really want the space from between the badges taken out :(
Once proud Documentation Writer and Help Squad Leader | Check out my new adult coloring career: Color With Jade/Patreon.

Jade Elizabeth

Once proud Documentation Writer and Help Squad Leader | Check out my new adult coloring career: Color With Jade/Patreon.

Kimmie

well i just installed this (with everything passing on the install) and now all i get is this no matter what area I try to go to on my forum. :


QuoteThe page cannot be displayed
There is a problem with the page you are trying to reach and it cannot be displayed.


Please try the following:

Open the kimmie.byethost13.com home page, and then look for links to the information you want.
Click the  Refresh button, or try again later.

Click  Search to look for information on the Internet.
You can also see a list of related sites.




HTTP 500 - Internal server error
Internet Explorer 

Sure glad it was a test site.

novastar

I would like to be able to decide what order the membergroup stars will appear. Can someone show me what to edit or add to have the mod do that?
_________________________________________

Also, for anyone having problems installing or uninstalling, make sure the following files are being edited:

1. Execute Modification ./Sources/Load.php
2. Execute Modification ./Sources/ManageMembergroups.php
3. Execute Modification ./Themes/default/ManageMembergroups.template.php

I see alot of people posting that the mod is trying to edit ManageMembers instead of ManageMembergroups. It will not find the correct information in the ManageMembers files, which is why it is failing. My install.xml shows the proper files, but my uninstall.xml file shows incorrect files. simply enter the correct filename in either of those, and you should not have problems (unless another mod has edited the lines it is looking for, in which case you would have to install the mod manually)

Jade Elizabeth

Once proud Documentation Writer and Help Squad Leader | Check out my new adult coloring career: Color With Jade/Patreon.

novastar

Quote from: Alundra on April 21, 2008, 05:42:43 PM
http://custom.simplemachines.org/mods/index.php?mod=1110 <This mod does it :).

But that mod does not give me the features of this mod, specifically, allowing disabling of stars for secondary membergroups.

Jade Elizabeth

Quote from: novastar on April 21, 2008, 08:35:13 PM
Quote from: Alundra on April 21, 2008, 05:42:43 PM
http://custom.simplemachines.org/mods/index.php?mod=1110 <This mod does it :).

But that mod does not give me the features of this mod, specifically, allowing disabling of stars for secondary membergroups.

True, but then there would be no point of having this mod- I mean multiple stars/badges (you can only have one primary membergroup) would use the secondary groups. With the other mod you can disable a star from showing by not including it in the order you wish for the badges to display in. I'd ask JB how he did the order thing, if you want to use it with this mod :).
Once proud Documentation Writer and Help Squad Leader | Check out my new adult coloring career: Color With Jade/Patreon.

Thantos

I think novastar meant the ability to selectively disable stars for particular membergroups if they are secondary groups.

Jade Elizabeth

Quote from: Thantos on April 22, 2008, 09:32:18 AM
I think novastar meant the ability to selectively disable stars for particular membergroups if they are secondary groups.

Ahh okay. I'd still suggest either asking JB or looking at his code for how he managed the ordering :).
Once proud Documentation Writer and Help Squad Leader | Check out my new adult coloring career: Color With Jade/Patreon.

perplexed

I use this mod too (have for years so I stuck with it) and the order thing is something that is a puzzle so I would be interested to know if there is a way around it too :)

Jade Elizabeth

I used it before I upgraded. It served me very well!

I will ask JB for you.
Once proud Documentation Writer and Help Squad Leader | Check out my new adult coloring career: Color With Jade/Patreon.


Jade Elizabeth

I know how to ask JB for help lol
Once proud Documentation Writer and Help Squad Leader | Check out my new adult coloring career: Color With Jade/Patreon.

LiamTheDuck

I am back, its been like a year... so yeah.... how has it been? :D

Bulakbol

Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

Advertisement: