We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
Fully restyle profile; By godkillah
Topic Started: Jan 23 2010, 12:50 AM (288 Views)
Reid
Member Avatar
È una trappola!

This topic has been moved from our official support board.

Originally posted by: godkillah
Fully restyle profile
 
Description
this code is written for the PD2008 tournaments.
this code allows all users to fully edit their profile to anything they'd like. users can easily change all html and eventually keep away profile fields they wouldn't want to have on their profile.
the possibilities are nearly endless, any user can create his own profile using html, bbcode and smilies.
this might sound insecure but however there is no way a user can use javascript on his profile.
when a profile does contain javascript it won't shop up and whenever the editor discovers javascript it will not save until it is removed.
the editor can be found in the ucp menu and than at the bottem of the Personal profile links
have a look at it yourself in the preview!
This code saves in the signature, it is highly recommend that you allow a lot of characters in the signature

Features

  • Special tags for all profile fields
  • Dynamic tags (check All tags list)
  • All tags list
  • Preview before saving
  • Premade templates
  • Editor in User CP
  • Guided/Unguided mode in editor
  • Get template from custom profiles
Preview (check out the profiles)
http://z13.invisionfree.com/pd_entry_tournament/index.php
Notice. the profiles might not look to great on the testboard but they can be created any way the user wants, these on the testboards are only created to test the features and possibilities of this code

Installation
Replace the <% BOARD %> with:
Quote:
 
<div id="pd-rocks"><% BOARD %></div>
now add to footer:
Quote:
 
<script src="http://godkillah.com/Misc/Codes/FullyRestyleProfile.js">
/*Fully Restyle Profile V1
Written by Godkillah
© phantom-designs.net*/
</script>


Extra (Edit premades)
if you wish to add any premades tags this can easily be done by adding a small little code under the Fully restyle profile code, yet this does require html knowledge!
We'll now step-by-step create this small code starting with the tags
Code:
 
<script>
//code here
</script>
let's say we'd want to remove all default premades, we would start by adding the following line on top of our code: prems=[]; like this:
Code:
 
<script>
prems=[];
</script>
only do this if you do not want the default premades
now let's add one ourselves, to do that we must add a small peace of code containing all info of the template, it should look like:
Quote:
 
prems['Template name']=['template Author','template Html here'];
the parts you should edited are marked with a red color.
so lets say our new template is named 'Small Template', the author is myself, 'Godkillah' en the html could be '<b>{Username}</b>'
now we'd be displaying our own username on our profile in Bold.
lets add it to the code
Quote:
 
<script>
prems=[];
prems['Small Template']=['Godkillah','<b>{Username}</b>'];
</script>
like this we would have only one template, to give our users some more choice we'll keep the default template. to do this we must remove the prems=[]; part so our code will look like this:
Quote:
 
<script>
prems['Small Template']=['Godkillah','<b>{Username}</b>'];
</script>
now theres only one more thing left to do, we must add this code under the installed 'Fully restyle profile' code

enjoy!
-GK
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Codes & Modifications · Next Topic »
Add Reply