DragonPrime - LoGD Resource Community
Welcome Guest
  • Good morning, Guest.
    Please log in, or register.
  • October 02, 2014, 05:25:13 AM
Home Forums News Links Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
IRC Channels
Search

Pages: [1]   Go Down
  Print  
Author Topic: Module Idea: Notepad  (Read 1593 times)
0 Members and 1 Guest are viewing this topic.
JollyGG
Mod God
*****
Offline Offline

Posts: 601


Jolly Good!


View Profile WWW
« on: December 15, 2009, 12:04:36 AM »

Ok, while playing on a site I had an idea, only problem is, I'm not sure how to achieve it.

 A notepad in your charstats. So when you say come across something in the forest, for example on the site I'm on now, you get like half recipes for potions you can make that you have to later combine (somehow??) and I thought it'd be a cool idea to have a notepad link in the char stats that would create a popup window, and you can enter text in, and hit save and it would either
A) Save the file itself in your bio for only you to see (like a link to the Saved Notes, then when you click on it, you get a page of links for like Saved1, Saved2, and clicking on one of those would give you your file [[maybe an extra option to name your files for organization]]),
or
B) save to your user_prefs in a continuous textarea

One way I saw doing A was trying to use parts of the LotGD Forum module, but I'm not sure yet.

Anyone have ideas/comments/suggestions/criticisms?
Logged

Supporter of: Tynastera, LotGD4Adults2, and Storm Valley
Released Modules: Here
Iori
Mod God
*****
Offline Offline

Posts: 832


View Profile WWW
« Reply #1 on: December 15, 2009, 01:15:24 AM »

Wouldn't sending a YOM to yourself achieve the same effect?
Logged

Talisman
Administrator
Mod God
*****
Offline Offline

Posts: 5442



View Profile WWW
« Reply #2 on: December 15, 2009, 01:33:06 AM »

Wouldn't sending a YOM to yourself achieve the same effect?

YoMs would disappear based on content life. 
Logged

Play the latest beta version here on DragonPrime
JollyGG
Mod God
*****
Offline Offline

Posts: 601


Jolly Good!


View Profile WWW
« Reply #3 on: December 15, 2009, 03:50:14 AM »

Wouldn't sending a YOM to yourself achieve the same effect?

Yeah, thought of that, but...

YoMs would disappear based on content life. 

That's why I thought of the Notepad
Logged

Supporter of: Tynastera, LotGD4Adults2, and Storm Valley
Released Modules: Here
Rohen
Codemeister
****
Offline Offline

Posts: 250


View Profile WWW
« Reply #4 on: December 15, 2009, 04:14:40 AM »

We have a module that does exactly this. But only 17.78% of all players use it Smiley
They wished to store riddles in it without sending them a mail.
Logged

Boris735
Mod God
*****
Offline Offline

Posts: 553


View Profile
« Reply #5 on: December 15, 2009, 05:28:39 AM »

I'm not greatly convinced of the merits of this as opposed to the user saving the data on their own computer and not consuming your resources, but this seems like a good excuse to get back into the coding vibe.  Here's a fairly simple implementation.

EDIT: Old attachment removed.  Newer version is in this post below.
« Last Edit: June 17, 2011, 01:40:07 AM by Boris735 » Logged
JollyGG
Mod God
*****
Offline Offline

Posts: 601


Jolly Good!


View Profile WWW
« Reply #6 on: December 15, 2009, 08:19:02 AM »

That actually works very nicely. Thank you very much Boris Smiley I might expand on this when I figure out how, and I'll post up my edits to it. I might done right now that give the users a delete all notes button with a simple clear_module_pref


EDIT:
Question though, is the case save suppose to be
Code:
<?php case save?>
or
Code:
<?php case "save"?>
« Last Edit: December 15, 2009, 08:41:12 AM by JollyGG » Logged

Supporter of: Tynastera, LotGD4Adults2, and Storm Valley
Released Modules: Here
Megan|SaraBeth
Mod God
*****
Offline Offline

Posts: 873


View Profile WWW
« Reply #7 on: June 16, 2011, 08:51:45 AM »

When I go into the module I cant click edit notes to add notes.  Is there a way to fix that?

Edit:  so the only problem is it doesnt work with the translator tool on.  that I dont know why
« Last Edit: June 16, 2011, 11:36:52 AM by SaraDayBella » Logged

(\__/)
(='.'=) This is Bunny. Copy and paste bunny into your
(")_(") signature to help him gain world domination
Boris735
Mod God
*****
Offline Offline

Posts: 553


View Profile
« Reply #8 on: June 17, 2011, 01:38:18 AM »

Apologies for overlooking your much earlier response, JollyGG.  Yes, the case save should have been case "save".

Megan: Thank you for letting me know about that issue, and for diagnosing it as being due to the translator tool.  That was important, as I would not have thought to check that.  As a result, I've learned something new about how translate_inline() works and why not to use output() for anchor text.  Very handy!

A version including both fixes is attached.

Logged
Megan|SaraBeth
Mod God
*****
Offline Offline

Posts: 873


View Profile WWW
« Reply #9 on: June 22, 2011, 01:15:23 PM »

Works wonders.  Thank you!  I didnt like the fact of having to turn off translator tool to use it
Logged

(\__/)
(='.'=) This is Bunny. Copy and paste bunny into your
(")_(") signature to help him gain world domination
JollyGG
Mod God
*****
Offline Offline

Posts: 601


Jolly Good!


View Profile WWW
« Reply #10 on: June 22, 2011, 03:58:40 PM »

No worries Boris Tongue I've had fun trying to fix things like that to work with the translator tool, I fixed Afkamm's Developers No Timeout module for that reason, lol
Logged

Supporter of: Tynastera, LotGD4Adults2, and Storm Valley
Released Modules: Here
Pages: [1]   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Version 1.1.2 is the current supported version and is available for download.

Support Us
No funds raised yet this year
Your help is greatly appreciated!
Who's Online
31 Guests, 1 User
Fat Rastus
DragonPrime LoGD
Recent Topics
Home Forums News Links Downloads Login Register Advanced Search