DragonPrime - LoGD Resource Community
Welcome Guest
  • Good morning, Guest.
    Please log in, or register.
  • November 19, 2018, 03:54:44 AM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
Search

Pages: [1]   Go Down
  Print  
Author Topic: Module descriptions  (Read 5471 times)
0 Members and 2 Guests are viewing this topic.
GenmaC
Moderator
Codemeister
*****
Offline Offline

Posts: 430

Coder


View Profile WWW
« on: July 08, 2005, 07:29:16 AM »

I'd really love to be able to mouse over a module name in the grotto before installing/activating and have a short description pop up.  Module names can be vague, and if not vague, you still really don't know what the heck a module does until you install it and mess around with it.

I've started using a "description" field in my getmoduleinfo functions in the hope that someone will write this ;p
Logged



Castle Siege - a work in progress
Dannic
Guest
« Reply #1 on: July 08, 2005, 08:46:44 PM »

Best suggestion I can give you is to actually look at the code in the module before you install it.  That way you have an idea of how it works(in case of bugs) and what it is supposed to actually do.

The descriptions idea is cool.  Just not sure about implementing it.  That is quite a few modules that would need to be changed.

Of course you could always look at the thread that the module appeared on and if it wasn't clear what the module did you could ask.  

More people would be enlightned that way.
Logged
Kendaer
Guest
« Reply #2 on: July 08, 2005, 09:09:19 PM »

Actually I find this to be a rather reasonable idea and will look into implementing it.  I will *not* however be going back through all the core modules and installing descriptions :/  Though if someone wants to send me a unix diff file (as a patch) which does this (and nothing else Smiley) I'll likely apply it.

Having had a quick look however, there is not HTML attribute which would provide that hover functionality which means it would need to be done as a javascript thing  or else have a (strong) chance of not working in some browser.  I'll keep looking, but for now the answer is that it's unlikely, sorry.
« Last Edit: July 08, 2005, 09:11:56 PM by Kendaer » Logged
Kendaer
Guest
« Reply #3 on: July 08, 2005, 09:15:01 PM »

And on the heels of that, I find the information at the w3c site that the correct tag is 'title'.  Since that's part of the XHTML/HTML4 spec, that will get used and this will most likely be in the next release (1.0.3) when I release it soon.
Logged
SaucyWench
Mod God
*****
Offline Offline

Posts: 2238


I'm a good girl.


View Profile WWW
« Reply #4 on: July 08, 2005, 09:53:53 PM »

Can you do that with text? You can definitely use it as an attribute of a picture... there is a hard text limit though that most browsers support. I had so much trouble doing it reliably at college that I used a DHTML snippet to do it, which worked in IE and Firefox (the colours, font, etc are customisable that way) but I am admittedly unsure how cross-browser compatible the DHTML would be outside the main crowd.
Logged

SaucyWench
Owner of GemDust.com and Darton City proudly hosted by LunarPages
GenmaC
Moderator
Codemeister
*****
Offline Offline

Posts: 430

Coder


View Profile WWW
« Reply #5 on: July 08, 2005, 11:51:20 PM »

Can you do that with text? You can definitely use it as an attribute of a picture... there is a hard text limit though that most browsers support. I had so much trouble doing it reliably at college that I used a DHTML snippet to do it, which worked in IE and Firefox (the colours, font, etc are customisable that way) but I am admittedly unsure how cross-browser compatible the DHTML would be outside the main crowd.

I don't really think it matters how it is shown (I'd probably do it with javascript with an onmouseover event due to my not caring about compability concerns), the important thing is that a description of a module is available to admins (such as the use of lonny's vertxtloc, which is pretty widespread)...while yes I can browse the code, I don't necessarily want to, and I've love to see a popup saying "hey this module is this and this" before I install/activate it.  

I'll await the official implementation, at whatever point it appears - old BBS IGMs had a file_id.diz, and there's no reason modules for LoGD can't have something similiar Smiley
Logged



Castle Siege - a work in progress
Kendaer
Guest
« Reply #6 on: July 10, 2005, 06:45:26 PM »

You cannot do it on text per-se, but you can do it as follows

<span title='<your title here>'>text</span>

which is what I am doing.

the title attribute is *technically* available on all elements except a few, but it didn't work when using it directly on the <td> surrounding the text, but works on a  span embedded in the text.
Logged
Bandon
Member
Militia
**
Offline Offline

Posts: 91



View Profile WWW
« Reply #7 on: July 17, 2005, 03:56:41 AM »

While I don't have the time or ability to make the aformentioned text file, I do have this input:

PLEASE, for the love of god, someone do this!

/request

-Bandon
Logged

Abandon all hope, no, really, abandon it.
Kendaer
Guest
« Reply #8 on: July 18, 2005, 07:51:21 AM »

This is in the 1.0.3 code.  Just add the 'description' tag into your module info structure and all will be well.
Logged
Sichae
iMod God
SVN Users
Mod God
*
Offline Offline

Posts: 3458


If ya didn't get it by now... you're hopeless...


View Profile WWW
« Reply #9 on: July 18, 2005, 02:33:38 PM »

I have gone ahead and created something for this.

Upon entering in a description field for one of my modules, to test it out... nothing came abound. So, I created this and it works 100%. The problem with using the SPAN title, is that the length of it is finite. So, one can not be able to explain much on the subject.

Basically, upon mousing over a Uninstalled or Installed module, that has the description field in it, a small tooltip shall come up and display the description of the module.

I have sent the files to Kendear, in hopes that he shall accept them into core. If not, meh. Tongue At least I did it.
Logged

If you didn't understand anything in the above post, don't try to attempt anything suggested.

Kendaer
Guest
« Reply #10 on: July 18, 2005, 07:33:49 PM »

This is being ignored *BECAUSE THIS FUNCTIONALITY ALREADY EXISTS IN 1.0.3*


Sichae, if you aren't seeing it, then I'm sorry, but get new glasses.

All you need to do is add "description"=>"Your description here" in any module and this descrption will show when you hover over the name of the module in the module management page and the installer.

Please don't go reinventing the freaking wheel just because you cannot seem to make it work.
Logged
Sichae
iMod God
SVN Users
Mod God
*
Offline Offline

Posts: 3458


If ya didn't get it by now... you're hopeless...


View Profile WWW
« Reply #11 on: July 18, 2005, 07:35:01 PM »

Reiterates:
Quote
The problem with using the SPAN title, is that the length of it is finite. So, one can not be able to explain much on the subject.

* Sichae shrugs
Logged

If you didn't understand anything in the above post, don't try to attempt anything suggested.

Kendaer
Guest
« Reply #12 on: July 18, 2005, 07:46:09 PM »

Reiterates:
* Sichae shrugs

Personally, I don't consider this a 'problem'.  I consider it a feature.  I don't *want* an essay, I want a short description.  That is what is provided.  AND it's provided without requiring javascript to function.  Bonus.
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Play LoGD on Dragonprime

Support Us
No funds raised yet this year
Your help is greatly appreciated!
Recent Topics
DragonPrime LoGD
Who's Online
56 Guests, 0 Users
Home Forums News Downloads Login Register Advanced Search