 |
06-09-2007, 07:43 PM
|
#1 (permalink)
|
Join Date: Jan 2006
Location: Warren, OH
Age: 29
Posts: 2,810
Tournaments Joined: 0 Tournaments Won: 0
|
Ribbon Titles (greasemonkey script)
Quote:
Originally Posted by WhiskeySix
Another "simple" script someone might try is a "Ribbon Identifier" script. Since we're no longer using the BB-code for ribbons, it'd be nice to have pop-ups indicating what each ribbon is. The script would go through the page and enter the ribbon name as the title... (an objects title is what pops up when you mouse-over it). This way, when you mouse over a ribbon, you can see what it's for. (If you really wanted to get fancy, you could also make the ribbon img clickable - linking to the awarding page for that ribbon)
|
With inspiration from my mentor I gave it a whirl and here's what I came up with - ribbontitles.user.js
Basically it just takes the image name squadleader2 of http://www.tacticalgamer.com/images/...uadleader2.jpg and the script adds that name as the title attribute in the image.
TO DO: - Complete - Pretty up the text a bit. I'm not sure how I could do that yet, but I'll look into it. Ex. some ribbons are kit-anti-tank-class1. Just make it say Anti Tank Class 1 or something.
- Linkify each ribbon back to its respective page
Last edited by jmaker; 06-10-2007 at 12:14 AM.
|
|
|
06-09-2007, 08:27 PM
|
#2 (permalink)
|
|
OFP Officer
OFP Admin 
Join Date: Oct 2005
Posts: 10,299
Tournaments Joined: 0 Tournaments Won: 0
|
Re: Ribbon Titles (greasemonkey script)
woah!!! slick!!!!
Only way I can think of to do #1 is a bunch of if statments... kinda like the way the Forum Icon thing works...
|
|
|
06-10-2007, 12:10 AM
|
#3 (permalink)
|
Join Date: Jan 2006
Location: Warren, OH
Age: 29
Posts: 2,810
Tournaments Joined: 0 Tournaments Won: 0
|
Re: Ribbon Titles (greasemonkey script)
UPDATE:
Ok it looks like I've got the text figured out. It should be clean now. Just hover over Whiskey's ribbons in his signature to see how it looks. Note that these are the ribbons from http://awards.tg7th.com/ribbons/show-all.php. If anyone has any ribbons displayed from http://www.tacticalgamer.com/images/ribbons and the title text does not display, it's because I can't even access that page to get a complete list.
Original file updated. I'm still working to linkify the ribbons.
|
|
|
06-10-2007, 11:58 AM
|
#4 (permalink)
|
|
OFP Officer
OFP Admin 
Join Date: Oct 2005
Posts: 10,299
Tournaments Joined: 0 Tournaments Won: 0
|
Re: Ribbon Titles (greasemonkey script)
hmmm... seems a lot of people have the ribbons in this format:
http://www.tacticalgamer.com/images/ribbons/outstanding-volunteer.jpg
(which I guess is what's generated by the BB code such as [volunteer]?)
J - for any unrecognized images, is it possible for it to just pop up the name of the .jpg instead of "undefined"?
|
|
|
06-10-2007, 12:45 PM
|
#5 (permalink)
|
Join Date: Jan 2006
Location: United states, TN
Age: 37
Posts: 3,072
Tournaments Joined: 0 Tournaments Won: 0
|
Re: Ribbon Titles (greasemonkey script)
Very slick! Thanks Jmaker.
__________________
|TG-6th|Wimpinator
|
|
|
06-10-2007, 02:08 PM
|
#6 (permalink)
|
Join Date: Jan 2006
Location: Warren, OH
Age: 29
Posts: 2,810
Tournaments Joined: 0 Tournaments Won: 0
|
Re: Ribbon Titles (greasemonkey script)
UPDATE:
Original script updated with links to each respective ribbon thread within the forums. Some ribbons don't have a thread, so the link will just default to that parent forum.
Quote:
Originally Posted by WhiskeySix
hmmm... seems a lot of people have the ribbons in this format:
http://www.tacticalgamer.com/images/ribbons/outstanding-volunteer.jpg
(which I guess is what's generated by the BB code such as [volunteer]?)
J - for any unrecognized images, is it possible for it to just pop up the name of the .jpg instead of "undefined"?
|
Yeah I know about that. We need one repository for all ribbons. If I could actually see all images in http://www.tacticalgamer.com/images/ribbons that would help me as well. If anyone has ribbons from here: http://awards.tg7th.com/ribbons/show-all.php, those should work.
Let me see if I can't get a workaround on this issue. I should be able to just default it the name of file like you said Whiskey. Is there anyway you can update my original post?
|
|
|
06-10-2007, 02:47 PM
|
#7 (permalink)
|
Join Date: Jan 2006
Location: Warren, OH
Age: 29
Posts: 2,810
Tournaments Joined: 0 Tournaments Won: 0
|
Re: Ribbon Titles (greasemonkey script)
UPDATE:
Orginal file updated. The script should now just display the filename no matter where it's located. Let me know if it works for everyone.
|
|
|
06-11-2007, 12:23 AM
|
#8 (permalink)
|
|
OFP Officer
OFP Admin 
Join Date: Oct 2005
Posts: 10,299
Tournaments Joined: 0 Tournaments Won: 0
|
Re: Ribbon Titles (greasemonkey script)
Awesome!! Yep pop-ups and links seem to work great!
|
|
|
08-02-2007, 05:08 PM
|
#9 (permalink)
|
Join Date: Jul 2007
Location: UK, and proud of it!!
Age: 16
Posts: 374
Tournaments Joined: 0 Tournaments Won: 0
|
Re: Ribbon Titles (greasemonkey script)
bumpety-bump,
this looks kinda cool, I always wonder what the people are actually good at or if they just like all the colours. (<That IS spelt right)
and, for all us firefox illiterates, can you tell me how to 'install' it? Clicking the link just brings up a page of code.
|
|
|
08-02-2007, 05:58 PM
|
#10 (permalink)
|
Join Date: Feb 2006
Location: United Kingdom
Age: 19
Posts: 2,048
Tournaments Joined: 0 Tournaments Won: 0
|
Re: Ribbon Titles (greasemonkey script)
You need to install the Greasemonkey extension first (Google it) then revisit the script, there should be a yellow bar at the top asking if you want to install it.
I think this script might be somewhat irrelevant soon though.
|
|
|
12-20-2007, 06:47 AM
|
#11 (permalink)
|
Join Date: Mar 2007
Location: Belgium
Age: 27
Posts: 1,628
Tournaments Joined: 0 Tournaments Won: 0
|
Re: Ribbon Titles (greasemonkey script)
I don't get it, I only see popups in Wimpinator 's sig... I am using IE6 here at work.
Can somebody please explain what exactly I have to do to get this working. Thx
__________________
|TG-6th|GhostDog
|
|
|
12-20-2007, 01:08 PM
|
#12 (permalink)
|
Join Date: May 2003
Location: Dallas/Ft. Worth area of Texas, USA
Age: 34
Posts: 18,028
Tournaments Joined: 0 Tournaments Won: 0
|
Re: Ribbon Titles (greasemonkey script)
Quote:
Originally Posted by Ghost Dog
I don't get it, I only see popups in Wimpinator 's sig... I am using IE6 here at work.
Can somebody please explain what exactly I have to do to get this working. Thx
|
You have to be using the FireFox browser with the Greasemonkey extension for this script to work.
|
|
|
12-20-2007, 10:13 PM
|
#13 (permalink)
|
Join Date: Jan 2006
Location: Warren, OH
Age: 29
Posts: 2,810
Tournaments Joined: 0 Tournaments Won: 0
|
Re: Ribbon Titles (greasemonkey script)
Yeah I guess whenever I posted this I assumed most people know what Greasemonkey is. I thought the ribbons system was overhauled thus making this script obsolete. But from reading that other thread that Ghost Dog bumped, I see that not all ribbons have the pop up enabled when hovered over. The ones in Apophis's signature do, but not some of the others.
I too liked the ability to be able to hover over the ribbons to identify that ribbon. Until it all becomes automated within the forums you may use this little script as a stop gap, but you must have Firefox with the Greasemonkey extension installed. Even then it won't display every single ribbon, only ones I've entered into a predefined list within the script. So it won't show the one in Cing's signature. It's mostly just the Battlefield ribbons.
|
|
|
12-25-2007, 11:06 AM
|
#14 (permalink)
|
Join Date: Aug 2007
Location: Charlotte, NC
Age: 31
Posts: 426
Tournaments Joined: 0 Tournaments Won: 0
|
Re: Ribbon Titles (greasemonkey script)
So is anyone working on incorporating the hover over titles for the ribbons into the forums? I think it makes the ribbons alot more meaningful to be able to identify what each ribbon was awarded for. I feel like this is something that ribbon recipients throughout the community would like to see happen.
|
|
|
12-25-2007, 11:38 AM
|
#15 (permalink)
|
Join Date: Jan 2006
Location: Warren, OH
Age: 29
Posts: 2,810
Tournaments Joined: 0 Tournaments Won: 0
|
Re: Ribbon Titles (greasemonkey script)
Yes they were working on it. I'm not sure what the status of that is now.
|
|
|
 |
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|