Customizable FRONTEND Account Templates (Patch)

Stefek

Thanks to user Chio who tested the patch I fixed another inconsistency in the patch.

I uploaded the zip with the new files in the first Post.

Thanks to all for your comments.

Regards,
Stefek
[i]"Gemeinsam schafft man mehr."[/i]

[b][url=http://duden.de/rechtschreibung/gemeinsam#Bedeutung1]gemeinsam[/url][/b]
1. mehreren Personen oder Dingen in gleicher Weise gehörend, eigen
2. in Gemeinschaft [unternommen, zu bewältigen]; zusammen, miteinander
#Duden

Waldschwein

Quote from: Stefek on October 25, 2009, 02:27:45 PM
I will open a ticket (my first ever) as I wrote in the german thread.  :wink:

I am still waiting for some feedback/suggestions.

Hello,

please consider that:
Quote
The development team plans the release of WebsiteBaker CMS  2.8.1 scheduled for end of the year 2009.

Time line (based on current tickets):     
RC1 by Mid of November
[...]

Don't test it to death.

Yours Michael  :wink:

erpe0812

No,
no time this time
(not only a song by Police)

erpe

Stefek

Hello Erpe,
yes I know that.

I will open a ticket (my first ever) as I wrote in the german thread.  :wink:

I am still waiting for some feedback/suggestions.

Did you test it?

Regards,
Stefek
[i]"Gemeinsam schafft man mehr."[/i]

[b][url=http://duden.de/rechtschreibung/gemeinsam#Bedeutung1]gemeinsam[/url][/b]
1. mehreren Personen oder Dingen in gleicher Weise gehörend, eigen
2. in Gemeinschaft [unternommen, zu bewältigen]; zusammen, miteinander
#Duden

erpe0812


Waldschwein

Hello,

I think it should be in WB 2.8.1, as it's more a bugfix then a new feature. We can see, even more "professional" sites then now could be created with it.  :wink:

Yours Michael

Stefek

Quote from: crnogorac081 on October 23, 2009, 08:26:54 PM
I noticed that too, but thought that you wanted to avoid some conflict with variables :P
Hello Ivan.
No, it was just a typo error of mine ;-)

Regards,
Stefek
[i]"Gemeinsam schafft man mehr."[/i]

[b][url=http://duden.de/rechtschreibung/gemeinsam#Bedeutung1]gemeinsam[/url][/b]
1. mehreren Personen oder Dingen in gleicher Weise gehörend, eigen
2. in Gemeinschaft [unternommen, zu bewältigen]; zusammen, miteinander
#Duden

crnogorac081

I noticed that too, but thought that you wanted to avoid some conflict with variables :P

Web developer

Stefek

#10
Hello.

John (PCWacht) informed me about a typo in some files (I wrote MASSAGE instead of MESSAGE).

I updated all files.
You'll find them in the first post (Patch)
and second Post (htt files for the template)
.

Thanks John.


Kind Regards,
Stefek
[i]"Gemeinsam schafft man mehr."[/i]

[b][url=http://duden.de/rechtschreibung/gemeinsam#Bedeutung1]gemeinsam[/url][/b]
1. mehreren Personen oder Dingen in gleicher Weise gehörend, eigen
2. in Gemeinschaft [unternommen, zu bewältigen]; zusammen, miteinander
#Duden

Stefek

#9
Quote from: crnogorac081 on October 22, 2009, 08:34:50 PM
I agree that this should be an addition to WB 2.8.1 . Who likes to style he will style, if you dont like there is a default htt :)

Thanks you Ivan.
You're right - it's a "on demand" thing.
And with this patch you have more possibilities and [PLACEHOLDERS] you can use. Even a path to your [TEMPLATE_DIR] (good for Pics, JS, CSS) is in there.
And you can expand the profile making use of droplets - if someone wants to ;-)

So thanks for testing and your feedback.

Kind Regards,
Stefek

By the way, Ivan:  this patch has nothing to do with the lately posted securitypatch by FrankH.
It influences this area, but is found in another location (framework).

[i]"Gemeinsam schafft man mehr."[/i]

[b][url=http://duden.de/rechtschreibung/gemeinsam#Bedeutung1]gemeinsam[/url][/b]
1. mehreren Personen oder Dingen in gleicher Weise gehörend, eigen
2. in Gemeinschaft [unternommen, zu bewältigen]; zusammen, miteinander
#Duden

crnogorac081

I agree that this should be an addition to WB 2.8.1 . Who likes to style he will style, if you dont like there is a default htt :)

Even more, there are no security holes as "certified" WB coders did this  :wink: :-D

cheers
Web developer

Stefek

Hello John,

thank you for your feedback - it means much to me hearing this from a well skilled developer  8-)

Quote from: pcwacht on October 22, 2009, 07:15:48 PM
Maybe even do the same trick to search?
As far as I know, the search template is genarated through loops / settings in the backend (backend->settings/advanced settings->search)
It maybe will work to do the trick to either look into the template if there is a search.htt file or else execute the loops/settings from inside the backend.
That's a good idea - and a good step forward for "on demand cusomization" from within the template.

Best Regards,
Stefek
[i]"Gemeinsam schafft man mehr."[/i]

[b][url=http://duden.de/rechtschreibung/gemeinsam#Bedeutung1]gemeinsam[/url][/b]
1. mehreren Personen oder Dingen in gleicher Weise gehörend, eigen
2. in Gemeinschaft [unternommen, zu bewältigen]; zusammen, miteinander
#Duden

pcwacht

Looks like a neat job!

I know I will use it. Thanks!


Might indeed be an asset to wb281
Maybe even do the same trick to search?


Have fun,
John
[url="http://www.ictwacht.nl"]http://www.ictwacht.nl[/url] = Dutch ICT info
[url="http://www.pcwacht.nl"]http://www.pcwacht.nl[/url] = My first
both still work in progress, since years.....

Stefek

#5
Hello Ivan,

Quote from: crnogorac081 on October 22, 2009, 06:00:20 PM
ughh, it took me a while to figure out patching
Sorry for my english skills - I still have to learn both - english and php  8-)

Point 1-4 is correct.

For Point 3 & 4 -> you may also use the 'demo kit' from my second post (attached) and use this as a starting point.
Point 3 & 4 is good if you want the "default HTML" as starting Point.

Whereas in the 'demo kit' I have built in more "specials" like {PLACEHOLDERS} you may like to use, CSS file, Images and so fort.

Quote from: crnogorac081 on October 22, 2009, 06:00:20 PM
Now just one question, do I need to copy all files to account-htt (all .php files and htt folder) or just .htt ?
You only need the *.htt files ;-)

Thanks for giving it a try.

Regards,
Stefek
[i]"Gemeinsam schafft man mehr."[/i]

[b][url=http://duden.de/rechtschreibung/gemeinsam#Bedeutung1]gemeinsam[/url][/b]
1. mehreren Personen oder Dingen in gleicher Weise gehörend, eigen
2. in Gemeinschaft [unternommen, zu bewältigen]; zusammen, miteinander
#Duden

crnogorac081

ughh, it took me a while to figure out patching :)

is this order right ?

1. make backup: change foler account to account-BU
2. Create account folder and copy all content (.php files and htt folder) to that folder
3. Copy htt folder, and paste it to /template/ defult template / , and then rename htt to account-htt
4. restyle .htt files in account-htt folder

Now just one question, do I need to copy all files to account-htt (all .php files and htt folder) or just .htt ?

cheers
I
Web developer

Stefek

#3
There is one more thing I have to explain on this topic.

At the first glance it may look like an overhead. But it's not.

Once the patch is applied, the normal WB user don't need to do anything within his template.
BUT if he wants to redesign these areas (or just parts of them) he CAN.
It's a "on demand functionality"

How the patcht works:
inside the php files we apply the phpLib engine.
It goes like this (excerpt from the signup_form.php):

<?php //
/* Include  phpLib-template parser */
    
require_once(WB_PATH '/include/phplib/template.inc');
    
// see if there exists a template file in "account-htt" folder  inside the current template             
        
if     (file_exists(WB_PATH '/templates/' TEMPLATE '/account-htt/signup_form.htt')) {
            
// if so, set the path there
            
$tpl = new Template(WB_PATH '/templates/' TEMPLATE '/account-htt');
                } 
                
// else use "htt" folder in "root/account/" 
              
else {
                
$tpl = new Template(dirname(__FILE__) . '/htt');
            }        


The script looks first into the template if there is a htt file -
if the file can't be found, it uses the default htt file within the account/htt directory.

So don't worry  - it's no overhead for users.
But an advantage for those being in need to customize this areas.

Regards and looking for Feedback.
Stefek
[i]"Gemeinsam schafft man mehr."[/i]

[b][url=http://duden.de/rechtschreibung/gemeinsam#Bedeutung1]gemeinsam[/url][/b]
1. mehreren Personen oder Dingen in gleicher Weise gehörend, eigen
2. in Gemeinschaft [unternommen, zu bewältigen]; zusammen, miteinander
#Duden

Stefek

#2
Hello Designer.

This topic is about customization of the FRONTEND Account Templates.

Its only good if you WebsiteBaker installation has to do with 'USERS'
This are the following areas of your WebsiteBaker installation which will be customizable after using the above patch and the "Account Template Kit".

What to do.
After application of the above patch, do the following:
1) Open your current WebsiteBaker template
2) Move the entire folder "account-htt" into your templates folder (it's attached to this post)
3) Open the htt files and customize the files, css, use droplets - whatever and however you like.
4) Install your template back to your WebsiteBaker installation

You're done.

I attach the "Account Template Kit" as a "demo" only, so you can see how it works.
To have a cleane SET of those files, you better use the /htt/ folder out of the above patch and renaming it to "account-htt" move copy it to your WebsiteBaker template.

There is one obligation: the folder has to have the name "account-htt".
This is important. It won't work else.

The following image (you have to be logged in, to see the picture) you see the "demo" in action:


By using both - the patch in the first post and the template files attached in this post - you can change the look and feel of all those areas.

Regards,
Stefek


Demo files UPDATED
New files attached.



[gelöscht durch Administrator]
[i]"Gemeinsam schafft man mehr."[/i]

[b][url=http://duden.de/rechtschreibung/gemeinsam#Bedeutung1]gemeinsam[/url][/b]
1. mehreren Personen oder Dingen in gleicher Weise gehörend, eigen
2. in Gemeinschaft [unternommen, zu bewältigen]; zusammen, miteinander
#Duden

Stefek

#1
Hello.

Lately I had to design the Account Templates for one of my current projects.
If you already tried to style this areas, you then know that you need to change the corefiles in the /[root]/account directory.
For a designer knowing not much about PHP it is not only dificult to "find" the right HTML parts inside those php files but could be also a little bit risky.

So I decided to split the HTML out of those PHP files by using phpLib (standard template engine inside of WebsiteBaker).

After I was done with this for myself I asked some WB Users and Programmers who encouraged me to build a whole packege out of this and post in the forum.

So I did - because it is a good thing for designers to have a easy access to these files in order to design them to their own needs.

This patch provides not only this oportunity for designers, but it clears up some validation bugs and gets rid of some "relicts". I hope this is some help for the developers.


The Patch consists of the following files
(techn. information, not necessary needed for designers. A
Designers Instruction will follow soon) :



The directory [ROOT]/account consists:
changed PHP Files:
- signup_form.php
- login_form.php
- forgot_form.php
- preferences_form.php

These changed files are loosed from every HTML
and enable by using phpLib to outsource HTML into separate Templates.

- login.php
One change in this file to enable the
'Excessive Login Attempts' message in Frontend.

additional(new) PHP Files:
- warning.php
- warning_message.php

These new Files, enables the 'Excessive Login Attempts'
message in Frontend.


newdirectoty created  [ROOT]/account/htt consist the followingTemplates:
- signup_form.htt
- login_form.htt
- forgot_form.htt
- preferences_form.htt
- warning_message.htt
(I used *.htt as file suffix, which is already common for WB
Users, thanks to anyNews and Backend themes and alot of other modules.


All those HTT files consists nearly the same HTML as in the original PHP files.
I only cleaned them up a little bit for better w3c validation.



Find the patch attached.
Do not forget to rename/backup your current /account/ directory before uploading!

This is just the patch - the advantage for designers will be explained in the next post.

Last but not least: Thanks to user Thorn, Doc, Ruud and Argos for encouragement and/or some technical hints.

MfG,
Stefek


Patch UPDATE #2
New files attached.



[gelöscht durch Administrator]
[i]"Gemeinsam schafft man mehr."[/i]

[b][url=http://duden.de/rechtschreibung/gemeinsam#Bedeutung1]gemeinsam[/url][/b]
1. mehreren Personen oder Dingen in gleicher Weise gehörend, eigen
2. in Gemeinschaft [unternommen, zu bewältigen]; zusammen, miteinander
#Duden