Welcome to Geeklog, Anonymous Thursday, March 28 2024 @ 12:18 pm EDT

Geeklog Forums

New User Pages Plugin

Page navigation


Status: offline

amckay

Forum User
Full Member
Registered: 03/23/02
Posts: 180
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
 Quote

Status: offline

amckay

Forum User
Full Member
Registered: 03/23/02
Posts: 180
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.
 Quote

Status: offline

TechSys

Forum User
Regular Poster
Registered: 12/02/03
Posts: 90
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
http://70.145.174.180/
 Quote

Status: offline

amckay

Forum User
Full Member
Registered: 03/23/02
Posts: 180
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.
 Quote

Status: offline

amckay

Forum User
Full Member
Registered: 03/23/02
Posts: 180
whoops, that posted twice for some reason ... edited this second copy to this post
 Quote

Status: offline

TechSys

Forum User
Regular Poster
Registered: 12/02/03
Posts: 90
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)

http://70.145.174.180/
 Quote

Status: offline

TechSys

Forum User
Regular Poster
Registered: 12/02/03
Posts: 90
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.
http://70.145.174.180/
 Quote

Status: offline

amckay

Forum User
Full Member
Registered: 03/23/02
Posts: 180
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
 Quote

Status: offline

TechSys

Forum User
Regular Poster
Registered: 12/02/03
Posts: 90
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
http://70.145.174.180/
 Quote

Status: offline

amckay

Forum User
Full Member
Registered: 03/23/02
Posts: 180
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.
 Quote

Status: offline

amckay

Forum User
Full Member
Registered: 03/23/02
Posts: 180
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.
 Quote

Status: offline

amckay

Forum User
Full Member
Registered: 03/23/02
Posts: 180
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.
 Quote

Status: offline

TechSys

Forum User
Regular Poster
Registered: 12/02/03
Posts: 90
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.
http://70.145.174.180/
 Quote

Status: offline

TechSys

Forum User
Regular Poster
Registered: 12/02/03
Posts: 90
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).
http://70.145.174.180/
 Quote

Status: offline

amckay

Forum User
Full Member
Registered: 03/23/02
Posts: 180
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),
 Quote

Status: offline

TechSys

Forum User
Regular Poster
Registered: 12/02/03
Posts: 90
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
http://70.145.174.180/
 Quote

Status: offline

amckay

Forum User
Full Member
Registered: 03/23/02
Posts: 180
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.
 Quote

Status: offline

TechSys

Forum User
Regular Poster
Registered: 12/02/03
Posts: 90
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.
http://70.145.174.180/
 Quote

Status: offline

amckay

Forum User
Full Member
Registered: 03/23/02
Posts: 180
What type of admin control do you want?
 Quote

Status: offline

TechSys

Forum User
Regular Poster
Registered: 12/02/03
Posts: 90
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?
http://70.145.174.180/
 Quote

Page navigation

All times are EDT. The time is now 12:18 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content