Posted on: 12/08/03 07:30pm
By: amckay
Hey folks,
This is a new plugin similar to Staticpages, but it allows any user to create their own pages.
http://www.bodensatz.com/upage/?page=install
http://www.bodensatz.com/upage/?page=readme
http://www.bodensatz.com/upage/?page=help
Let me know if you have any problems installing. Nobody has guinea-pigged my install yet ;-)
cheers,
-Alan
Re:New User Pages Plugin
Posted on: 12/08/03 10:23pm
By: amckay
I'm almost to the bottom of the comments problem so if anyone happens to want to help debug please email me first for an updated functions.inc.
For the sake of sanity I won't release 1.1 with comments until I knock off a few other things on the list, like for example converting it to use the languages file.
Re:New User Pages Plugin
Posted on: 12/09/03 06:40pm
By: TechSys
I just got it installed, but took me a while since my site is on a windows server. I do have 1 problem though, when I hit the help link I get a "DB error: there can only be one" message. Not sure what that is, but hopefully will find out soon (no, I'm not expecting you to help since your using Linux).
Just wanted to let you know that 99% of it does seem to work on doze servers.... so far
Re:New User Pages Plugin
Posted on: 12/09/03 08:10pm
By: amckay
You probably edited the help file from within the upage editor in your browser. In the label field when you go in the editor there is a warning not to do this. Check in the DB to see if the field 'up_id' is still just 'help'. It probably is "anonymous_help" after being edited.
In version 1.1 I will simply disallow it to be edited. If you want to edit you have to do it right in the DB.
BTW, 1.1 should be out in the next few days. Check the readme in my initial link for what's new in 1.1. Quite a bit. Upgrade will be pretty easy for UNIX users. Even easier than the initial install, in fact.
If you want to give me some windows install instructions I'd be happy to include them.
Re:New User Pages Plugin
Posted on: 12/09/03 08:10pm
By: amckay
whoops, that posted twice for some reason ... edited this second copy to this post
Re:New User Pages Plugin
Posted on: 12/09/03 11:16pm
By: TechSys
The only thing I had to do was set it to creat gl_upage instead of upage.sql. I did this by editing the CREATE TABLE line in the file. It was set for
CREATE TABLE upage ( ... I had to set it to
CREATE TABLE gl_upage ( ... otherwise I would get an SQL error in line 1
Anyways to install what I have so far was pretty easy. I had to open the admin/plugin/upage/install.php and look for the following (without the dashes)
----------------------------------------------
$display = COM_siteHeader();
$T = new Template();
$T->set_file('install',$_CONF['path'] . 'plugins/upage/templates/install.thtml');
$T->set_var('install_header', $LANG_UPAGE['install_header']);
$T->set_var('img',$_CONF['site_url'] . '/upage/images/upage.gif');
$T->set_var('cgiurl', $_CONF['site_admin_url'] . '/plugins/upage/install.php');
$T->set_var('admin_url', $_CONF['site_admin_url'] . '/plugins/upage/index.php');
Then I had to change it to be:
-----------------------------------------------------------------------
$display = COM_siteHeader();
$T = new Template($_CONF['path'] . 'plugins/upage/templates');
$T->set_file('install', 'install.thtml');
$T->set_var('install_header', $LANG_UPAGE['install_header']);
$T->set_var('img',$_CONF['site_url'] . '/upage/images/upage.gif');
$T->set_var('cgiurl', $_CONF['site_admin_url'] . '/plugins/upage/install.php');
$T->set_var('admin_url', $_CONF['site_admin_url'] . '/plugins/upage/index.php');
----------------------------------------------
After saving the install.php file, I had to rename the upage.sql to gl_upage.sql. Then add it to MySQL. Now I can, from what it looks like, have registered members add websites to my website. I have tested it using my account and it worked... except for the DB error when trying the "Help" link.
From what it looks like is all files are defined except for the help file, but I'm not sure. This is my first time trying to do stuff like this with PHP (or anything for that matter)
Re:New User Pages Plugin
Posted on: 12/09/03 11:28pm
By: TechSys
Since I don't know whats going in version 1.1, here are some slight suggestions:
1) the main page should list all public user pages
2) a way to upload images to user pages
3) admin configuration of how many pages a user can get. and possibly how much space is provided for each user
I will give it a couple days to see what v1.1 looks like. I am hopeing this will be something like cardomain or sounddomain member's pages, which is what I'm trying so hard to set it up for.
Re:New User Pages Plugin
Posted on: 12/10/03 12:23am
By: amckay
Oh, if you only created the table then that's why there is no help file for you. The provided upage.sql had the table creation as well as 3 INSERT statements for help, readme and install. You will also have to change the table names in those 3 statements to "gl_upage".
As for your requests
(1) do you mean a list like the type of list you get when you click "mine"? Not a bad idea except if you have lots of users. But maybe I can make it an option in config.php
(2) is not the job of this plugin. use the gallery or geekary
(3) will do. Maybe not for 1.1 but at least for 1.2. I'll add something to config.php so if you set it to 0 there is no limit, but if it is greater than 0, that's the max # pages per user
Re:New User Pages Plugin
Posted on: 12/10/03 04:59am
By: TechSys
alright. I reedited the sql file and added gl_ to every insert (3 of them). I dropped the original table then added it again. The help works now. Actually everything works now. Now about those requests.
1) yea, but after thinking about it, you're right. This would probably have to work something like the memberlist thing, where it starts out with A (or 1), then has links to everything else (alphabet and numbers). That may be hard to setup though.
2) it was just an idea. I was thinking along the lines of what sounddomain.com and cardomain.com have as member pages.
3)I like that idea.
If you'd like to take a look at what I've got, it is setup at http://tech-systems.vze.com
Re:New User Pages Plugin
Posted on: 12/10/03 09:54am
By: amckay
OK, I'll probably be releasing 1.1 later today. See the original readme in my first message for what's in it. The only major outstanding issue is that it does not use templates.
I'll give your photos idea some thought. Maybe I will implement it afterall, who knows.
Re:New User Pages Plugin
Posted on: 12/10/03 02:18pm
By: amckay
OK, 1.1 is released. Check the original links in my first post. There are now details for a fresh install vs an upgrade install. The upgrade is actually easier.
In 1.2 I hope to have the fresh install all web driven and negate the need to manually edit the SQL file and manually enter it into the DB. But we shall see.
Please let me know if there are any problems or questions.
Re:New User Pages Plugin
Posted on: 12/10/03 04:50pm
By: amckay
Just added a German language file but it is untested. Speaking of which, if anyone comes up with any other language files please send them to me and I will include them in the original distro.
Re:New User Pages Plugin
Posted on: 12/10/03 05:02pm
By: TechSys
got it updated without a hitch... good job, everything looks like it is working good. If I come up with any more ideas, I'll let you know.
Re:New User Pages Plugin
Posted on: 12/10/03 05:09pm
By: TechSys
oh here is an idea. You mentioned the pictures and stuff being what gallery is for. If there was a way for the img src tag to be used, the person making a page may be able to link a picture from the gallery (or wherever) into his/her page. It wouldn't actually be within the upage section, the pic wouldn't take up extra space on the server's drive(s), but the pic would show up in their pages..
Just an idea there, not sure if that would be easier than incorporating the whole image uplaod thing or not.
Now I just gotta get the word out to my 5 users (site just restarted and rebuilt, users have to reregister).
Re:New User Pages Plugin
Posted on: 12/11/03 08:22am
By: amckay
That's controlled in geeklog's config.php and is site-wide. I use the regular geeklog functions for allowing the same HTML tags that Geeklog allows.
In 1.3.8sr3 look for :
$_CONF['user_html']
and add this :
'img' => array('src' => 1, 'width' => 1, 'height' => 1),
Re:New User Pages Plugin
Posted on: 12/11/03 09:06pm
By: TechSys
that worked. I know it's a pain for the users to find the link in one part of the site, then add it to their webpage(s), but at least they'll have image capability now.. thanks
Re:New User Pages Plugin
Posted on: 12/12/03 12:00pm
By: amckay
I'm thinking I probably will allow image uploads in the plugin itself, but it may get put on the back-burner until I get some other stuff done. Probably for version 2.0
Right now I'm still taking comments for stuff to go in 1.2. I've got a few cleanups in already, and am adding 1 or 2 new options to control in the config.php. Nothing major and no new functionality.
Re:New User Pages Plugin
Posted on: 12/12/03 05:19pm
By: TechSys
I'll see if I can get more ideas. So far the plugin is working real nice.. for me that is. I would like to see more administrative control, but that will probably be in due time.
Re:New User Pages Plugin
Posted on: 12/13/03 08:45am
By: amckay
What type of admin control do you want?
Re:New User Pages Plugin
Posted on: 12/13/03 03:26pm
By: TechSys
Well, I know you can set how many pages a user can get in the config, but it would be nice to have that accessible in admin section. Actually anything that can be set in the config would be good to have in the admin area of geeklog. This could probably help with people that are running GL on hosts and don't always have access to the config files. That would probably be a security risk though.
Or how about this. An enable/disable for each user. This would allow the admin of each site to enable or disable the rights to certain users.
Then a signup page would have probably have to be designed, so the user(s) can sign up for the usage of the service.
One thing I have noticed. When I click on new, it'll come up with something like username_bunch of numbers (example: username_20031213153024317).
Is that supposed to happen, or is it due to me having a differant OS?
Re:New User Pages Plugin
Posted on: 12/14/03 03:18pm
By: amckay
Putting stuff from config.php into the web GUI - yeah, I thought of that already and will see what I can do.
Enable/disable per-user : thought of that as well and have it on my list of stuff to add.
Signing up for the service : I'm not sure why that would be required - you sign up for the site, you get the service. Actually, part of my intent in writing this was to make things 'hands free' for the admin. I specifically designed it so that signing up would not be required. e.g. I currently give users free galleries and they have to ask first for them because of the way gallery works, and I specifically do not want something like that. I'll consider it, but it will not likely be high on my list.
The default filename is there on purpose. I used the Geeklog 'sid' for this, which is guaranteed unique. As you can see the user can change it to whatever they like. I just chose a default unique name, that's all. So that the page can be saved as-is if desired. The only other choice would be to leave it blank but then if the user hit 'save' it would not save.
Re:New User Pages Plugin
Posted on: 01/04/04 11:18am
By: ronack
I tried to download the tar file from the here http://www.neap.net/download/upage.tar.Z and got a page not found error. Anyone have the tar file for download?
Re:New User Pages Plugin
Posted on: 01/12/04 12:00pm
By: amckay
Sorry, i had a major server crash but have finally recovered. Later today I'll be posting version 1.2 anyway.
I've added the Geeklog search engine, and a few other little tidbits.
Re:New User Pages Plugin
Posted on: 01/12/04 12:24pm
By: amckay
Here is what will be included in 1.2 released later today (maybe tomorrow at latest, but it looks like I'm on track for today)
finally integrated into Geeklog search engine
includes a function to make a "What's New" block both for changed pages, and page comments
more robust means of making pages private or public
more code comments for educational purposes
Re:New User Pages Plugin
Posted on: 01/12/04 04:58pm
By: TechSys
anxiously awaiting, but take your time. Seeing as how you are fixing to release 1.2, I will not let go of the 1.1 I have.
Re:New User Pages Plugin
Posted on: 01/12/04 05:16pm
By: amckay
OK, it's ready. See the links in my first post in this thread for download details.
Be sure to read carefully as the download location has changed
Re:New User Pages Plugin
Posted on: 01/14/04 09:43am
By: noke
This sounds very much like something I'm looking for. Has anyone installed this yet? how is it coming along?
Does the user have to have a knowledge of HTML to be able to use it, or is there a way of having a form-like page involved so the user can just fill in his/her own bits and then it appears on the page?
Re:New User Pages Plugin
Posted on: 01/15/04 02:56am
By: amckay
Right now you do have to know some HTML. At very least you'll need to know
<P>
For new paragraph. Maybe for the next release I'll add something like the forums we are using has where you can click the "Text Mode" button.
Actually, I have a "link" keyword that allows you to easily link between your own pages without knowing HTML at all. See the help file for details.
Re:New User Pages Plugin
Posted on: 01/15/04 07:36am
By: TechSys
Got it, will see if I can upgrade sometime today.
Re:New User Pages Plugin
Posted on: 01/22/04 02:58pm
By: amckay
So is anyone running 1.2 yet? Any comments? I will be happy to implement things for the next release.
I'm making some great progress on the next release, and anyone who wants to try it out can visit https://secure.neap.net/ and leave comments on what you think. I'll install the forums plugin on that site for discussing my plugin.
The next release has photos and a bunch of other stuff. I'd say 2-3 weeks at best before it is ready for prime-time.
cheers,
-Alan
Re:New User Pages Plugin
Posted on: 01/22/04 05:00pm
By: TechSys
I was running 1.2 but had a server crash. I haven't got around to reinstalling everything...yet, but will soon.
New User Pages Plugin
Posted on: 01/25/04 02:47pm
By: amckay
I should have 2.0 beta ready any day now for anyone who wants to try it out. It has a 'plain text' mode as well as native support for photo upload. See here for details :
https://secure.neap.net/upage/?page=readme
https://secure.neap.net/upage/?page=help
It requires NetPBM, and I have not yet written code to get around the UNIX pipes. Nobody ever answered my question as to whether or not windows supports multiple pipes like this :
command1 | command2 | command3 > somefile
If not, then I have a little bit of coding to do to support windows. But should only be an hour or so.
I also still have to write the upgrade. But if anyone wants to beta test it for me send me email and I can give you a beta copy.
New User Pages Plugin
Posted on: 01/25/04 03:36pm
By: TechSys
I just tried the new version (1.2??), all I got was a blank page. I Think I got it working now, but forgot what I did. I know it was editing the config , taking a line out, saving it, then adding the very same line back in the same place.. wierd.
Can't wait for 2.0, and not gonna activate upage until it comes out.
I am not sure about the support of multiple pipes in windows, I "think" it can, but it probably doesn't. Im sending my email to ya, maybe I can get it running right.. hehe
New User Pages Plugin
Posted on: 01/26/04 12:02pm
By: amckay
In case anyone is subscribed to this thread, please see the new thread I started about 2.0 being released.
I was going to do a random photo block for someone but forgot to include it. Email me and I'll write you one. It's only a few lines of code.