Descriptionthis 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 linkshave 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 signatureFeatures
- 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.phpNotice. 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 codeInstallationReplace 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