Create A Forum - Support Forums
Support => Create a Forum Codes and Support => Topic started by: Agent Moose on March 16, 2011, 07:48:25 pm
-
Well, hello there :)
I have decided to re-create the UserPage code I had created for SMF For Free for CreateAForum. It's not all up to par like the SMF For Free version, but it has the basics :)
Preview: Clicky! (http://usercombo.createaforum.com/?action=profile;u=1;sa=UserPage)
Features:
- Each user has their own page
- Users can edit their page freely, as long as it follows the rules their page is on, and the Terms of Service for CreateAForum.
- Users can add their own CSS
- Users can Add their own music (Only one song for now)
- Quick Edit feature
- Admins can edit/Quick Edit any page
- Report System (upgraded from SMF for Free's version of UserPage)
- Links under "Profile" tab to view/edit your page
- Links on profile summary to view page, and if it's your profile, or you're an admin, you get an "Edit Page" link too.
Setting up:
Create a profile Field:
Before you can create a profile field, you need to make sure that you have the Custom Profile Field addon on:
- Go to Core Features, and under there you will see an option for "Advanced Profile Fields". Make sure that it's on.
Now go to Features and Options > Profile Fields > New Field
Here are the options you need to set:
Name: Page Content
Description: This is the area for your page. You may add anything you wish, as long as it follows the Terms of Service.
Profile Section: Forum Profile
Show on Registration: (Your choice)
Show on Topic View: Unchecked
Choose Placement: Standard (with title)
Field Type: Large Text
Maximum Length: 0
Dimensions:
Rows: 10
Columns: 30
Allow BBC: Checked
Privacy: Users can see this field; owners can edit it
Searchable: (Your choice)
Active: Checked
Name: Page CSS
Description: Insert your own CSS so your page can be unique!
Profile Section: Forum Profile
Show on Registration: (Your choice)
Show on Topic View: Unchecked
Choose Placement: Standard (with title)
Field Type: Large Text
Maximum Length: 0
Dimensions:
Rows: 4
Columns: 30
Allow BBC: Checked
Privacy: Users can see this field; owners can edit it
Searchable: (Your choice)
Active: Checked
Name: Page Music
Description: Insert a Music URL (.mp3, .wav, .midi, .mid) for your background music on your page.
Profile Section: Forum Profile
Show on Registration: (Your choice)
Show on Topic View: Unchecked
Choose Placement: Standard (with title)
Field Type: Text
Maximum Length: 255
Allow BBC: Checked
Input Mask: No HTML
Privacy: Users can see this field; owners can edit it
Searchable: (Your choice)
Active: Checked
Now that you have all that done, you may add this following code to your footers:
Admin > Configure > Style Manager > Footers:
<script type="text/javascript">
var ReportTo = new Array("ADMIN 1", "ADMIN 2", "MODERATOR 1", "ECT.");
</script><script type="text/javascript" src="http://z4.ifrm.com/12428/46/0/f5038014/UserPageCAF.js"></script>
You may change "ADMIN 1" ect. to the user(s) you want the reported pages to PM to.
Example:
var ReportTo = new Array("Agent Moose", "Spankr Poodle");
Or if you want it to be sent to just one user:
var ReportTo = new Array("Agent Moose");
That's it!
Enjoy :)
-
If you would like to test an upgraded version of this code, you can register here:
http://usercombo.createaforum.com/index.php
I will release the code on that forum when I get all bugs out of it.
-
It's been awhile since I have released anything coding wise, but I am always updating codes (mainly UserPage :P)
I have recently did a major update on this code. I have got the first post of this topic ready for you all, but the code isn't uploaded yet because it is on my computer, which I am not on right now.
I will inseart the code in the first post later today though :) For now, you can look at the new features here:
http://usercombo.createaforum.com/?action=profile;u=1;sa=UserPage
-
It's been 5 days, is the code ever coming?
-
It is. The day I posted this I noticed a problem with the code though, so I couldn't add it :\ Sorry about that. I will get it up sooner or later, I promise.
-
Been a while now o.O
-
Is this finished yet?
-
As I said, sooner or later. It was more later than sooner, but it's done :D
The first post has been edited with the code. If you find any bugs, please report it to this topic.
-
Agent Moose has returned!
-
Going to be honest, probably wont be posting very long :P Not sure how long I will be back. :P
EDIT:
Had to edit the first post. I updated the code because it wasn't running on IE or FF from where I uploaded the code at.