Welcome, Guest. Please Login or Register.
May 10, 2025, 05:20:23 AM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  Instant Personal Notepad « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Instant Personal Notepad  (Read 460 times)
irbrian
Sr. Member
****
Posts: 489


I create. Therefore I am.

brian@inverse-reality.com WWW
Instant Personal Notepad
« on: January 22, 2003, 06:08:35 AM »
Reply with quote

I've posted something like this before, but no one really responded, and it has since become lost somewhere in the vast archives of these pages. Or maybe its just on page 3-4, but I'm too lazy to search for it..

Anyway, before I said that I'd like to have a personal notepad that shows up in place of or above/below the user's personal text display in post view.

But actually, it should probably just be in the SSI.php so that it could be called from the template. Regardless, it needs to be something that is unique to each user. For instance, if I log in I see my own notepad, if John logs in he sees his notepad; he would never see the contents of my notepad.

This would make it very easy to keep track of things -- from notes about posts you'd like to revisit, to code snippets, to inventory and stats management for Play-by-Post RPG boards (which is what I need it for).

An SSI.php version should be very easy.. I just don't have time to develop it right now. I'm focusing on several other projects (most notably the new CMS I'm designing and just getting two of my boards to work right in the first place).

It could even be a popup feature. Regardless, it should at least be accessible from any message-display page of the forum, so it should probably be either in display.php or accessible from the template.
Logged

Imparting great wisdom daily to those who will mistake my words as such.
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:Instant Personal Notepad
« Reply #1 on: January 22, 2003, 07:04:05 AM »
Reply with quote

Alright, it's actually quite simple...

First, either add a column to members, a BLOB.  Name this notepad, or something...

Now, take a look at Load.php....

      if (!isset($userprofile[$user]['memberGroup']))
         $userprofile[$user]['memberGroup'] = '';

Add under that:

      if (!isset($userprofile[$user]['notepad']))
         $userprofile[$user]['notepad'] = '';

Now, when you want to display the notepad contents, use $userprofile[$username]['notepad'].  What's left is to make a function to update it and add an action to call that.  The function would need a query like:

UPDATE {$db_prefix}member SET notepad='$newInfoForNotepad' WHERE memberName='$username'

This could be easier, by I'm sure you can get it.  If you have any problems, feel free to ask.

-[Unknown]
« Last Edit: January 22, 2003, 07:04:50 AM by [Unknown] » Logged
irbrian
Sr. Member
****
Posts: 489


I create. Therefore I am.

brian@inverse-reality.com WWW
Re:Instant Personal Notepad
« Reply #2 on: January 22, 2003, 06:55:01 PM »
Reply with quote

Thanks for doing most of the work Unknown :) I'll definitely have to find the time to implement this over the weekend.
Logged

Imparting great wisdom daily to those who will mistake my words as such.
Vegeta
Noobie
*
Posts: 45


WWW
Re:Instant Personal Notepad
« Reply #3 on: January 23, 2003, 06:34:31 PM »
Reply with quote

This looks like it would be a very interesting mod.
Logged

_______
-Vegeta
Dragonball News Informant, Forum Administration
Dragonball Unlimited!
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  Instant Personal Notepad « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.014 seconds with 21 queries.