UBB.Dev
Posted By: casper_dup1 MyPal Block v1.0 Beta - 08/09/2002 6:08 PM
Mod Name / Version - MyPal Block v 1.0 beta
Description - This will allow users to define their own PAL Block on the front page. (the block will not show up if the user has not enabled it in his/her profile
Working under - UBBT 6.02
Any pre-requisites - IIP 4.3
Author(s) - Peter Casserly a.k.a. Casper
Credits -
Demo - http://www.unnecessaryroughness.com
Files Altered - editbasic.php, changebasic.php, editbasic.tmpl, index.php, configpal.php
Database Altered - Yes
New Files - mypal.php, mypal.sql
Any other info - Make Sure you backup your database! My first full blown hack feedback appreciated.

Attached File
53839-MyPal.zip  (7 downloads)
Posted By: casper_dup1 Re: MyPal Block v1.0 Beta - 08/09/2002 10:55 PM
Maybe my description doesn't do it justice:

Here is a screenshot of What a user can input into their Block:
[]https://www.ubbdev.com/threads/php/uploads/53853-mypal.gif[/]

Attached picture 53853-mypal.gif
Posted By: AllenAyres Re: MyPal Block v1.0 Beta - 08/09/2002 11:30 PM
Sounds cool Peter, what can they do with the block?
Posted By: Lisa_P Re: MyPal Block v1.0 Beta - 08/09/2002 11:31 PM
Ah, so basically the user can put whatever they want in, and it only shows up to them? Like maybe they could use this for their bookmarks or notes to themself or something?

[edit] Ok, looking over the first post again, is this box just printing out the info from their profile? Like their home page, bio, etc.? [/edit]
Posted By: casper_dup1 Re: MyPal Block v1.0 Beta - 08/10/2002 12:50 AM
You got it right the first time Lisa.

I personally will be using it for bookmarks.
Posted By: Lisa_P Re: MyPal Block v1.0 Beta - 08/10/2002 2:00 AM
I installed this (took a couple tries, mostly dumb mistakes on my part ). I like it. I have a couple questions:

1. You have it set to tinytext. Is there a specific reason for this? It only allows for 256 characters. I know I wouldn't have it up more than 5 minutes and everyone would be wanting to know, "How can I add more stuff to it?"

2. When I tried to enter more than 256 characters, I got a mySQL error. Yuck Maybe have a "you entered too much stuff" type error message?

3. If the tinytext is designed so it won't completely distort the index page, would it be possible to have a "click here for the full page" type link, similar to how it already limits posts?

4. This isn't a question, just a minor typo in the instructions:
Your directions say:
code:
20. Find:
*************************************************************
U_PicHeight = '$imageheight',
*************************************************************
21. Add After:
*************************************************************



But my line looks like this:
code:
U_PicHeight = '$imageheight'


[:"red"](no comma after the '$imageheight')[/]

adding it wasn't a problem but you might want to mention to add it.

* I should mention that although it looks like I just nitpicked it to death, I actually really like it. If I didn't I would have just gone on to the next project.
Posted By: casper_dup1 Re: MyPal Block v1.0 Beta - 08/12/2002 5:14 AM
Thanks.

I'll take a look at those things in the morning my eyes are blurry.
Posted By: casper_dup1 Re: MyPal Block v1.0 Beta - 08/12/2002 9:51 PM
Well Lisa,

I have spent half my day trying to come up with a way to truncate the block after 255 characters.......

To no avail

I will continue to look into that feature but for now I have updated the instructions to make the table TEXT instead of TINYTEXT and fixed the instructions error that you found (and a very similar one).

Allen if you could replace the original file that would be great



Attached File
53994-MyPal.zip  (6 downloads)
Posted By: Lisa_P Re: MyPal Block v1.0 Beta - 08/12/2002 10:08 PM
[]I have spent half my day


Oh heavens, you're making me feel guilty! It's not that big of a deal. If someone else thinks it's a good idea maybe they will look at it.

It's really a great hack!
Posted By: casper_dup1 Re: MyPal Block v1.0 Beta - 08/12/2002 10:34 PM
Not trying to make you feel guilty. Your suggestions are good.

I am using the philosophy "Learn as you Go." So it is taking me a while longer.

If a guru wants to jump it I wouldn't be offended.

© UBB.Developers