Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: vbgamer45 on July 17, 2006, 03:28:23 AM

Title: Add Stars to Profile
Post by: vbgamer45 on July 17, 2006, 03:28:23 AM
Link to Mod (https://custom.simplemachines.org/mods/index.php?mod=386)

Add Stars to Profile


Original Author: Gary M. Gadsdon
SMF Version: 2.0.X
Mod Version: 2.1

Description:
A Basic Mod, this will add a membergroups stars/banners to your profile page for the default theme.  Initially created by Gary M Gadson it has recently been taken over by myself and updated to work with all current versions of SMF.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi15.photobucket.com%2Falbums%2Fa351%2Fgazmanafc%2Fstarsonprofile.jpg&hash=a2ddebd6df436908f6bd159dc3f53656c95cf205)

Changelog:

v2.1
-Removed Support for 1.1.x

v2.0
-Taken Over by Runic

Why Not Visit:
http://www.smfhacks.com (http://www.smfhacks.com)
Title: Re: Add Stars to Profile
Post by: PrizeLive.com on July 17, 2006, 09:13:42 AM
Thanks it works great...!

How can I modify profile.template.php to remove the "Position:" text and value....

Also, where do I edit the "Stars:" text at to say something different?
Title: Re: Add Stars to Profile
Post by: Gary on July 17, 2006, 11:41:24 AM
Look for $txt['stars'] in profile.template.php and replace it with whatever you want.
Title: Re: Add Stars to Profile
Post by: PrizeLive.com on July 17, 2006, 01:09:41 PM
Quote from: AwwLilMaggie on July 17, 2006, 11:41:24 AM
Look for $txt['stars'] in profile.template.php and replace it with whatever you want.

Thanks... that was an easy fix...  :D
Title: Re: Add Stars to Profile
Post by: littleone on July 17, 2006, 08:19:48 PM
8: Use of undefined constant stars - assumed 'stars'
File: /home/xxxxxxxxx/public_html/forum/Themes/default/languages/Who.english.php (eval?)
Line: 120
Title: Re: Add Stars to Profile
Post by: Gary on July 18, 2006, 06:37:19 AM
Strange, this mod doesnt even have anything to do with Who.english.php

-AwwLilMaggie
Title: Re: Add Stars to Profile
Post by: littleone on July 18, 2006, 01:16:27 PM
Quote from: AwwLilMaggie on July 18, 2006, 06:37:19 AM
Strange, this mod doesnt even have anything to do with Who.english.php

-AwwLilMaggie

lol, not sure what to tell you, lol.  I removed the mod and the errors stopped to ;)
Title: Re: Add Stars to Profile
Post by: trenchteam on July 24, 2006, 07:53:53 AM
IM getting the same error in my error log.

8: Use of undefined constant stars - assumed 'stars'
File: /home/8888888/public_html/forum/Themes/default/languages/Who.english.php (eval?)
Line: 120
Title: Re: Add Stars to Profile
Post by: karlbenson on August 07, 2006, 02:29:29 PM
If you are getting the error
Quote
8: Use of undefined constant stars - assumed 'stars'
File: /home/8888888/public_html/forum/Themes/default/languages/Who.english.php (eval?)
Line: 120


Open Themes/default/languages/Profile.template.php

goto line 120
and change $txt[stars] to $txt['stars']

That will get rid of the error
Title: Re: Add Stars to Profile
Post by: Gary on August 07, 2006, 02:41:38 PM
Hmm... I'll better fix that then. :P

It doesnt show on my forum coz I hard coded it in.

EDIT: Fixed. It's now in 1.0.1 (I like new version numbers. ;))

-AwwLilMaggie
Title: Re: Add Stars to Profile
Post by: littleone on August 07, 2006, 09:06:02 PM
lol well that was an easy fix
Title: Re: Add Stars to Profile
Post by: Gary on August 07, 2006, 09:28:25 PM
Heh yeah. I guess so. I guess I wasnt paying close attention. You can use 1.0.1 rather than 1.0 and away you go. ;)

-AwwLilMaggie
Title: Re: Add Stars to Profile
Post by: Skipdawg on September 07, 2006, 11:14:03 PM
Might be fun will give it a try some members may enjoy it.  ;D
Title: Re: Add Stars to Profile
Post by: Vinspire on September 09, 2006, 05:07:07 AM
Looking good  :D
Title: Re: Add Stars to Profile
Post by: Krysia on December 03, 2006, 03:43:11 PM
Installed it to my new version SMF 1.1 forum without difficulty. So far, so good. :)
Title: Re: Add Stars to Profile
Post by: buhaychat.com on January 30, 2007, 10:47:15 PM
Works great, thanks for the mod!
Title: Re: Add Stars to Profile
Post by: Murdoc_LaCN on August 18, 2007, 04:09:54 AM
i know this topic is old :P

but i would just like to say that this mod also works on Version 1.1.3

thanks for the great mod :D
Title: Re: Add Stars to Profile
Post by: goaskanna on May 15, 2008, 11:29:29 AM
And it also works perfectly on version 1.1.5 :D

Anna
Title: Re: Add Stars to Profile
Post by: tk2012 on July 18, 2008, 11:23:56 PM
Is this being updated for v2.0 b3.1?

Title: Re: Add Stars to Profile
Post by: Gary on July 19, 2008, 09:57:11 AM
No, not yet. I've not gotten around to it. And when I do wont be for a while yet.
Title: Re: Add Stars to Profile
Post by: tk2012 on July 19, 2008, 11:02:57 AM
No problem, was just wondering.  I use it currently on 1.1.5 and really like it!  Adds a nice touch! 
Title: Re: Add Stars to Profile
Post by: simplebeer on April 27, 2009, 05:56:20 PM
this is a old topic  :D

But it also works on 1.1.8

I have just one problem! I am missing the double point (don't know what it is in englisch but i mean this sign : ) after the woord STARS in the profile?

Anyone a idee how to solve this and were?

I think this is a nice mod and many users use it....

Grtz
Title: Re: Add Stars to Profile
Post by: Gary on April 27, 2009, 06:37:21 PM
Just add the colon after ', $txt['stars'], ' in Profile.template.php
Title: Re: Add Stars to Profile
Post by: simplebeer on April 27, 2009, 06:42:35 PM
Quote from: Gazmanafc on April 27, 2009, 06:37:21 PM
Just add the colon after ', $txt['stars'], ' in Profile.template.php

Yes colon, thats the right word!

I dont'know exacly what you mean, do you mean this?
', $txt['stars'], ':

If no, can you write it?

Grts
Title: Re: Add Stars to Profile
Post by: Gary on April 27, 2009, 06:47:26 PM
Yup, that's exactly what I mean.
Title: Re: Add Stars to Profile
Post by: simplebeer on April 27, 2009, 06:50:34 PM
Yes it works! how simple can it be! Thanks a lot!  ;D

GrtZ Patrick
Title: Re: Add Stars to Profile
Post by: Joe N on June 07, 2009, 05:33:48 AM
Hi. Is there a way instead of saying Stars, to change it to something else?

using smf 1.1.9

Thanks
Joe
Title: Re: Add Stars to Profile
Post by: Gary on June 07, 2009, 06:28:55 AM
Change the $txt['stars'] string in Modifications.english.php to something else.
Title: Re: Add Stars to Profile
Post by: Joe N on September 13, 2009, 04:48:55 AM
Hi

I installed this mod. I got an error with the profile.template.php. Using SMF 2.0 RC1

Attached profile.template.php
Title: Re: Add Stars to Profile
Post by: Gary on September 13, 2009, 08:31:12 AM
That would be because, at the moment, it is not compatible with 2.0
Title: Re: Add Stars to Profile
Post by: Joe N on September 13, 2009, 12:28:38 PM
Please Can It?
Title: Re: Add Stars to Profile
Post by: Turkishe on April 20, 2010, 01:48:33 AM
<file name="$languagedir/Modifications.turkish.php">
   <operation>
      <search position="end" />
      <add><![CDATA[
$txt['stars'] = 'Yildizlar:';
      ]]></add>
   </operation>
</file>


;) :)
Title: Re: Add Stars to Profile
Post by: Ciler on November 29, 2010, 03:42:34 PM
Can you update this mod also for 2.0 RC4 because I really don't like that ugly profile symbols in that version I'd rather have stars. Thanks in advance!
Title: Re: Add Stars to Profile
Post by: Gary on November 29, 2010, 04:05:31 PM
That's nothing to do with this mod.
Title: Re: Add Stars to Profile
Post by: Ciler on November 29, 2010, 04:07:38 PM
Quote from: Gazmanafc on November 29, 2010, 04:05:31 PM
That's nothing to do with this mod.

What do you mean it can't be updated or fixed for 2.0 RC4? (black rain v2 theme)
Title: Re: Add Stars to Profile
Post by: Gary on November 29, 2010, 04:09:52 PM
No. It can be updated, I'm just too busy to do so. What you're asking has nothing to with this mod at all. Just replace the current images with whatever you want.
Title: Re: Add Stars to Profile
Post by: ssdevious on February 09, 2011, 09:24:31 AM
Greetings,

what about SMF 1.1.10 / 1.1.12? Also, does this work only for stars or any custom made ranks? Thanks.

Best Regards,
SS-Totenkopf
Title: Re: Add Stars to Profile
Post by: Gary on February 09, 2011, 12:39:10 PM
It should support any 1.1 based version. It'll work on all membergroups and display their star images that's been set in the admin center
Title: Re: Add Stars to Profile
Post by: Deaks on January 14, 2012, 06:58:32 PM
This mod has been taken over by myself and has been updated for 1.1.X and 2.0.X ... it will also be added to the combo mod of Badges in User Panel and Signature Mod (http://custom.simplemachines.org/mods/index.php?mod=2375) where it will have slightly enhanced options.
Title: Re: Add Stars to Profile
Post by: impreza on February 19, 2012, 05:58:49 AM
Very fajan modification, thank you
Title: Re: Add Stars to Profile
Post by: Deaks on February 19, 2012, 09:56:20 AM
im guessing this is a good comment so thank you :)
Title: Re: Add Stars to Profile
Post by: TheListener on March 23, 2012, 11:09:02 PM
How would a user add this to the Ultimate profile mod?
Title: Re: Add Stars to Profile
Post by: Deaks on March 24, 2012, 08:07:10 AM
no idea
Title: Re: Add Stars to Profile
Post by: TheListener on March 24, 2012, 03:25:53 PM
Quote from: Runic on March 24, 2012, 08:07:10 AM
no idea

(must stop edits in the early hours).

I meant the section of code I would need to add this to the Ultimate Profile mod.

:-[
Title: Re: Add Stars to Profile
Post by: Deaks on March 24, 2012, 03:31:26 PM
my answer remains ... I have never used that mod, never looked at the coding, id assume that it be the same but search the mods new files for what it changes :)
Title: Re: Add Stars to Profile
Post by: TheListener on March 24, 2012, 03:37:59 PM
Am looking into it now.

Title: Re: Add Stars to Profile
Post by: Deaks on March 24, 2012, 04:51:39 PM
let me know what you find :)
Title: Re: Add Stars to Profile
Post by: technical4u28 on March 25, 2012, 09:09:55 AM
try to check the mod version
Title: Re: Add Stars to Profile
Post by: Deaks on March 25, 2012, 10:22:39 AM
technical4u28: do you use the ultimate profile mod along with this one? if so how did you get around it.
Title: Re: Add Stars to Profile
Post by: TheListener on April 27, 2013, 08:51:49 PM
Runic

Have a look at Masterds mod which does the same thing.

:)

Masterd hasn't been about since December 2012.

Title: Re: Add Stars to Profile
Post by: Deaks on April 27, 2013, 09:23:46 PM
Really?

I took over this mod so I could incorporate it into my other mod that is similar:

http://custom.simplemachines.org/mods/index.php?mod=2375
Title: Re: Add Stars to Profile
Post by: CheeseHead05 on May 27, 2013, 01:21:49 AM
In the images folder, what is this mod call because I am looking at 1)star.gif 2)starmod. gif 3)staradmin.gif 4)star.gif and they are all those default colored blocks when I open click the image.

Thanks in advance.
Title: Re: Add Stars to Profile
Post by: Gary on May 27, 2013, 04:55:07 AM
This mod adds no images to your forum. It adds the star images as set for the membergroups as defined in your admin center.
Title: Re: Add Stars to Profile
Post by: CheeseHead05 on May 27, 2013, 01:13:01 PM
Quote from: Gary on May 27, 2013, 04:55:07 AM
This mod adds no images to your forum. It adds the star images as set for the membergroups as defined in your admin center.

So where exactly is the "starstoprofile" folder supposed to be located in the ftp (I am using a custom theme) just in the dafault folder?
And in the space next to {theme URL}/images/, do I remove "star.gif"? Im not 100% clear on how this works.

Title: Re: Add Stars to Profile
Post by: CheeseHead05 on May 28, 2013, 10:49:19 PM
In my ftp, the starstoprofile zip file is not opening/extracting.
Title: Re: Add Stars to Profile
Post by: Deaks on May 28, 2013, 10:54:12 PM
cheesehead05 ... go to Admin - Package Manager - Download Packages

here you will see Upload a Package click on browse and find the .zip of the mod that is on your computer then click upload
Title: Re: Add Stars to Profile
Post by: CheeseHead05 on May 28, 2013, 11:15:20 PM
Quote from: Runic on May 28, 2013, 10:54:12 PM
cheesehead05 ... go to Admin - Package Manager - Download Packages

here you will see Upload a Package click on browse and find the .zip of the mod that is on your computer then click upload


I have done that and it is listed as the current version in the Browse Package area but in the FTP, I cant extract it into my custom theme under images. Then I extracted it on my computer but there is no image files.
Title: Re: Add Stars to Profile
Post by: Deaks on May 28, 2013, 11:22:52 PM
this mod does not add images, it makes the stars or badge that has been defined before show up in your profile, all it does it alter some code.

For example when you visit my profile:

www.simplemachines.org/community/index.php?action=profile;u=23577 (http://www.simplemachines.org/community/index.php?action=profile;u=23577)

Where my name is you see

Runic
Project Manager


If we installed this mod here you would see

Runic
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fmedia.simplemachinesweb.com%2Fimages%2Fbadges%2Fbadge_manager.png&hash=4f32bc1eeecb6a12c7e4bb26f397237b12d6a1c3)
Project Manager

It uses the star or image that is aready there.
Title: Re: Add Stars to Profile
Post by: CheeseHead05 on May 28, 2013, 11:32:53 PM
okay. So what do I type in the blank space after I remove star.gif? And Im now assuming that the zip file doesnt have to be in a specific folder right because as long as it is running as current version with the green dot, it should work regardless of where the file is in the ftp?
Title: Re: Add Stars to Profile
Post by: CheeseHead05 on June 01, 2013, 04:05:40 AM
Hello?

After I remove 'stars.gif' from the space, what do I replace it with so that the stars will show??
Title: Re: Add Stars to Profile
Post by: Deaks on June 01, 2013, 09:14:40 AM
you dont remove star.gif.  You dont remove anything for this mod.
Title: Re: Add Stars to Profile
Post by: CheeseHead05 on June 01, 2013, 11:26:16 AM
Honestly, this is the most confusing mod....lol....then y arent my stars showing up? I installed the mod....
Title: Re: Add Stars to Profile
Post by: Deaks on June 01, 2013, 11:32:20 AM
cause you have stated you have removed the stars ...
Title: Re: Add Stars to Profile
Post by: CheeseHead05 on June 01, 2013, 06:13:17 PM
But the thing is, is that I am using a custom theme and not on default so that is probably the issue..  ???
Title: Re: Add Stars to Profile
Post by: Mortuum on June 01, 2013, 08:27:15 PM
Quote from: Old Fossil on March 23, 2012, 11:09:02 PM
How would a user add this to the Ultimate profile mod?

It is working on my ultimate profil and i didnt change anything.
Title: Re: Add Stars to Profile
Post by: Deaks on June 02, 2013, 08:38:34 AM
Quote from: CheeseHead05 on June 01, 2013, 06:13:17 PM
But the thing is, is that I am using a custom theme and not on default so that is probably the issue..  ???

Can you attach your Profile.template.php please
Title: Re: Add Stars to Profile
Post by: CheeseHead05 on June 02, 2013, 11:08:53 AM
 Here u go..
Title: Re: Add Stars to Profile
Post by: Deaks on June 02, 2013, 11:20:22 AM
Profile.template not Display.template
Title: Re: Add Stars to Profile
Post by: CheeseHead05 on June 02, 2013, 02:57:46 PM
Quote from: Runic on June 02, 2013, 11:20:22 AM
Profile.template not Display.template

Sorry Runic..Heres the request..
Title: Re: Add Stars to Profile
Post by: CheeseHead05 on June 12, 2013, 11:18:03 AM
Does this mod only work in the default theme?
Title: Re: Add Stars to Profile
Post by: Deaks on June 12, 2013, 11:21:17 AM
the mod is installed on the theme, do you have a link to your site?