[RC] User Website MOD v0.1.4

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
Locked
User avatar
battye
Extension Customisations
Extension Customisations
Posts: 10940
Joined: Wed Feb 11, 2004 11:02 am
Location: Australia
Contact:

[RC] User Website MOD v0.1.4

Post by battye » Thu Jun 09, 2005 1:18 pm

Image

Description:
Basically, this MOD allows users to create their own homepage on your forum.
No PHP is permitted obviously, but all HTML can be used (except javascript, frames etc) as well as CSS.
Users can also choose a title for their site as well as a background colour.

Features:
  • View site 100%
  • Edit site 100%
  • Add background colour to site 100%
  • Choose title for site 100%
  • Allow bbCode 100%
  • Allow CSS 100%
  • See preview 100%
  • Templates 100%
  • Footers (chosen by admin) 100%
  • Allow groups to administer sites 100%
  • Permissions / bans for users & groups 100%
  • Hit Counter 100%
  • Directory In Memberlist 100%
  • Multiple pages (Held back to v1.1.x)

    Please submit your ideas, your input is greatly valued! This is your last chance, as the 0.1.x series is the only round of Betas!
Downloads:
Screenshot: Click
Download: Click


Upgrade:
No SQL updates, make sure you re-apply all edits.

History:
v0.0.1 - June 9, 2005 - First release
v0.0.2 - June 9, 2005 - Fixed database issue
v0.0.3 - June 10, 2005 - Minor bugs fixed, added option to choose background colour for pages
v0.0.4 - June 14, 2005 - Added optional use of bbCode, and option to preview
v0.1.0 - June 28, 2005 - Many features: ACP, Group Sites, Templates, CSS to name a few
v0.1.1 - July 10, 2005 - Added the option for admin to add a footer and fixed a group bug
v0.1.2 - July 11, 2005 - Hit Counters, it appears the table bug is also fixed
v0.1.3 - August 9, 2005 - Directory features done
v0.1.4 - November 6, 2005 - Added the phpBB copyright line as standard, fixed minor lang issue.

Want To Help?
If you'd like to help, try your hand at making a template!
If you have a knowledge of HTML (CSS is optional) then read this page for more details: www.cmxmods.net/uwm_files.html :D

More Information
More information about this and other MOD's I have made, can be obtained from www.cmxmods.net
Last edited by battye on Sun Nov 06, 2005 5:17 am, edited 18 times in total.
Customisations Team Member

https://github.com/battye/php-array-parser - Give it a Star! :D

Patrick Simmons
Registered User
Posts: 296
Joined: Fri May 13, 2005 12:38 pm
Contact:

Post by Patrick Simmons » Thu Jun 09, 2005 1:21 pm

This is exactly what I have been looking for, I will try it out and see how it works.

User avatar
battye
Extension Customisations
Extension Customisations
Posts: 10940
Joined: Wed Feb 11, 2004 11:02 am
Location: Australia
Contact:

Post by battye » Thu Jun 09, 2005 1:23 pm

Let me know, it's working fairly well for me. A few issues here and there but hey it is only 0.0.1 :)
Customisations Team Member

https://github.com/battye/php-array-parser - Give it a Star! :D

Patrick Simmons
Registered User
Posts: 296
Joined: Fri May 13, 2005 12:38 pm
Contact:

Post by Patrick Simmons » Thu Jun 09, 2005 1:26 pm

Do you have a db update file that can be ran? I can't access phpMyAdmin because of a firewall.

User avatar
battye
Extension Customisations
Extension Customisations
Posts: 10940
Joined: Wed Feb 11, 2004 11:02 am
Location: Australia
Contact:

Post by battye » Thu Jun 09, 2005 1:29 pm

Not tested, but it probably will work:

Code: Select all

<?php
define('IN_PHPBB', true);
$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'config.'.$phpEx);
include($phpbb_root_path . '/includes/constants.'.$phpEx);
include($phpbb_root_path . 'common.'.$phpEx);

$sql = "ALTER TABLE `phpbb_users` ADD `user_website_html` TEXT NOT NULL, ADD `user_website_title` VARCHAR( 100 ) NOT NULL";

if ( !db->sql_query($sql)) 
{ 
message_die(GENERAL_ERROR, 'Could not update SQL for this MOD', '', __LINE__, __FILE__, $sql); 
} 
?>
Customisations Team Member

https://github.com/battye/php-array-parser - Give it a Star! :D

Patrick Simmons
Registered User
Posts: 296
Joined: Fri May 13, 2005 12:38 pm
Contact:

Post by Patrick Simmons » Thu Jun 09, 2005 1:36 pm

battye wrote: Not tested, but it probably will work:

Code: Select all

<?php
define('IN_PHPBB', true);
$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'config.'.$phpEx);
include($phpbb_root_path . '/includes/constants.'.$phpEx);
include($phpbb_root_path . 'common.'.$phpEx);

$sql = "ALTER TABLE `phpbb_users` ADD `user_website_html` TEXT NOT NULL, ADD `user_website_title` VARCHAR( 100 ) NOT NULL";

if ( !db->sql_query($sql)) 
{ 
message_die(GENERAL_ERROR, 'Could not update SQL for this MOD', '', __LINE__, __FILE__, $sql); 
} 
?>


Where do I put this code. Fairly new to coding.

User avatar
battye
Extension Customisations
Extension Customisations
Posts: 10940
Joined: Wed Feb 11, 2004 11:02 am
Location: Australia
Contact:

Post by battye » Thu Jun 09, 2005 1:37 pm

Open notepad, and save it as uwm_install.php. Upload it using your FTP, and then run it (make sure it is in the root, ie the folder with viewtopic.php, viewforum.php etc etc)
Customisations Team Member

https://github.com/battye/php-array-parser - Give it a Star! :D

Patrick Simmons
Registered User
Posts: 296
Joined: Fri May 13, 2005 12:38 pm
Contact:

Post by Patrick Simmons » Thu Jun 09, 2005 1:44 pm

Parse error: parse error, unexpected T_OBJECT_OPERATOR in /home/XXXXX/public_html/shoptalk/uwm_install.php on line 11

User avatar
battye
Extension Customisations
Extension Customisations
Posts: 10940
Joined: Wed Feb 11, 2004 11:02 am
Location: Australia
Contact:

Post by battye » Thu Jun 09, 2005 1:48 pm

I'm not sure to be honest, I haven't experienced that sort of error. Maybe if you ask your host to run the SQL for you?
Customisations Team Member

https://github.com/battye/php-array-parser - Give it a Star! :D

Patrick Simmons
Registered User
Posts: 296
Joined: Fri May 13, 2005 12:38 pm
Contact:

Post by Patrick Simmons » Thu Jun 09, 2005 1:51 pm

thanks, still looks like a great mod! :)

User avatar
battye
Extension Customisations
Extension Customisations
Posts: 10940
Joined: Wed Feb 11, 2004 11:02 am
Location: Australia
Contact:

Post by battye » Thu Jun 09, 2005 1:55 pm

I see, I missed a $:

Code: Select all

<?php
define('IN_PHPBB', true);
$phpbb_root_path = './mods/';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'config.'.$phpEx);
include($phpbb_root_path . '/includes/constants.'.$phpEx);
include($phpbb_root_path . 'common.'.$phpEx);

$sql = 'ALTER TABLE `phpbb_users` ADD `user_website_html` TEXT NOT NULL, ADD `user_website_title` VARCHAR( 100 ) NOT NULL';

if ( !$db->sql_query($sql)) 
{ 
message_die(GENERAL_ERROR, 'Could not update SQL for this MOD', '', __LINE__, __FILE__, $sql); 
} 
?>
Customisations Team Member

https://github.com/battye/php-array-parser - Give it a Star! :D


User avatar
battye
Extension Customisations
Extension Customisations
Posts: 10940
Joined: Wed Feb 11, 2004 11:02 am
Location: Australia
Contact:

Post by battye » Thu Jun 09, 2005 1:56 pm

Scali wrote: Sounds excellent battye !


Thanks! :D
Customisations Team Member

https://github.com/battye/php-array-parser - Give it a Star! :D

Patrick Simmons
Registered User
Posts: 296
Joined: Fri May 13, 2005 12:38 pm
Contact:

Post by Patrick Simmons » Thu Jun 09, 2005 3:51 pm

I got the database updated and I uploaded HTML from my other site. My question is how does this work?

I entered code from my other site and pasted it in and submitted, whats next? I tried going in an looking under profile but nothing.

urmomma
Registered User
Posts: 41
Joined: Mon Jun 06, 2005 1:24 am
Location: urmomma's house
Contact:

Post by urmomma » Thu Jun 09, 2005 5:05 pm

Really like it!

Suggestion:
Is it possible so that users of a certain user group can only do this, make a webpage. I would consider this as a reward and they would join a usergroup and can make their own page...just an idea.

Locked

Return to “[2.0.x] MODs in Development”