WebsiteBaker Community Forum

WebsiteBaker Support (2.8.x) => Templates, Menus & Design => Topic started by: Waldschwein on April 03, 2010, 02:03:19 PM

Title: [Alpha]New Backend-Theme: wb2_theme
Post by: Waldschwein on April 03, 2010, 02:03:19 PM
Hello!

I have created a new backend-theme based on argos_theme and matching "the new look" of WebsiteBaker.

Q: What do I need to use it?
- WebsiteBaker 2.8.1 (not tested with version lower than 2.8.1)
- A replacement of _yourwbinstallation _/admin/start/index.php (File admin_start.php is added).
- InternetExplorer: 6,7,8; Firefox: 3.x; Chrome, Safari, Opera 10.x (just test it with your browser, enabled Javascript recommend....)

Q: Replacement... I want to add the code myself.
- Open _yourwbinstallation _/admin/start/index.php.
- Search for
Code: [Select]
// Insert section names and descriptions
$template->set_var(array(
around line 112.
- Insert BEFORE the following code WITHOUT the <?php and ?>

Code: [Select]
<?php
// Start WB2 Feed
$rss_enable true;
$rss_url_m = &#39;&#39;;
$rss_error = &#39;&#39;;

if(!file_exists(THEME_PATH .&#39;/languages/&#39;.LANGUAGE .&#39;.php&#39;)) {
    
require_once(THEME_PATH .&#39;/languages/EN.php&#39;);
} else {
    require_once(
THEME_PATH .&#39;/languages/&#39;.LANGUAGE .&#39;.php&#39;);
}

if (
$rss_enable == true && $_SESSION[&#39;GROUPS_ID&#39;] == 1 && file_exists(THEME_PATH.&#39;/rss/rss_fetch.inc&#39;)) {
    
$template->set_var(&#39;DISPLAY_RSS&#39;);
    
include_once(THEME_PATH.&#39;/rss/rss_fetch.inc&#39;);
    
$rss_url_m .= &#39;http://www.websitebaker2.org/modules/news/rss.php?page_id=52&#39;;
    
$rss fetch_rss($rss_url_m);
    
$show_rss_l = &#39;&#39;;
    
if ($rss) {
        
// Split the array to show first 3 news  
        
$items array_slice($rss->items03);
        
// Cycle through each item and echo  
        
foreach ($items as $item 
        {
            
$show_rss_l .= &#39;<li><a href="&#39;.$item[&#39;link&#39;].&#39;">&#39;.$item[&#39;title&#39;].&#39;</a> - &#39;.$item[&#39;description&#39;].&#39;</li>&#39;;
        
}
    }
    else {
        
$rss_error = &#39;<h2>Error:</h2><p>&#39;.magpie_error().&#39;</p>&#39;;
    
}
    
$show_rss $show_rss_l;
    
$show_rss .= $rss_error;
    
// RSS Custom template->set_var to avoid undefine variables when RSS is not available
    
$template->set_var(array(
                                &
#39;RSS&#39; => $show_rss,
                                
&#39;RSS_TITLE&#39; => $TEXT[&#39;RSS_TITLE&#39;]
                                
)
         );
} else {
   
$template->set_var(&#39;DISPLAY_RSS&#39;, &#39;display:none&#39;); 
}
// End WB2 Feed
?>


Q: What is the benefit of this backend-theme?
- You can change with one click (right navigation bar) from fixed to fluoid and back. It's saved for 28 days (via cookie).
- The settings are in tabs, you can view all advanced-settings just with one click on the "green plus" in the tab bar. No reload & lost data necessary.
- On the startpage of WB backend there is now the latest news of websitebaker2.org, e.g. Security Announcements or new version.
- (Quite) everything is loaded only when it's needed.

Q: About that news... Where can I configure it?
It's not really possible, I'm afraid. WB has right now no possibility for backend-addons, so everything would be changing in Core. There are many possibilities to display News - iframe, jQuery, JS, Flash, PHP... I decided for PHP because it's quicker, has a cache and is quite secure.
- You can disable the latest-news just with deleting the /rss folder inside the backend-theme (_yourwbinstallation _/templates/wb2_theme/rss). Also it's possible to do that with AddonFileEditor.
- Only people in administrator group will see the news.
- In the replaced _yourwbinstallation _/admin/start/index.php the URL and other options are stored.

Known issues
- In media the hiding of upload-zip is "false", it should be the other way round. // Fixed in 0.1.1.
- No text for "description" in Pages-> Settings. // Needs a change of Core Language-files, argos introduced here a new language-file.
- In IE 6 & IE7 the navigation header is misplaced (a few pixels higher). // Will be fixed by deleting all IE6 & IE7 browsers... Just kidding.

Please notice: It is in Alpha status - so features can change, being removed ar added. There is NO guarantee it will work as expected or work at all!

Please test it and let us know what you think of it, what you would recommend....

Yours Michael


[gelöscht durch Administrator]
Title: Re: [Alpha]New Backend-Theme: wb2_theme
Post by: Waldschwein on April 03, 2010, 02:04:58 PM
Some screenshots.

[gelöscht durch Administrator]
Title: Re: [Alpha]New Backend-Theme: wb2_theme
Post by: dbs on April 03, 2010, 04:37:09 PM
after first test: looks nice, works fine.  :-)

maybe 1 thing: like in argos_theme, the hover-effekt on pages(seitenübersicht) is to "light".

dbs
Title: Re: [Alpha]New Backend-Theme: wb2_theme
Post by: Waldschwein on April 03, 2010, 10:02:46 PM
Hello!

Thanks very much for the feedback.
I changed several things then in a new version (0.1.1) and replaced the old one.
- Darker hover on pages. Also created for that new icons (well, removed the background from plus, minus, view).
- Combined a few small jQuery files into one (plugins, it's loaded anyway).
- "Upload zip" in media is now working as expected - realized with jQuery and get rid of the "normal" Javascript here. Also use .css for usability (no white spaces due to cellpadding...).

I hope you like it.  :wink:

Yours Michael
Title: Re: [Alpha]New Backend-Theme: wb2_theme
Post by: crnogorac081 on April 03, 2010, 10:48:55 PM
Looks really nice, it was about the time for this a little bit old fashion theme to be restiled :)

I am curios, is there a way to turn on/off WB news block for certain groups ? For example, I want that only admin group can see the news, and not any user/client(moderator) who can access the backend to change preferences or edit some page.. (especially not messages like - Security vunerability: feel free to download anybody's database :) )

cheers

Title: Re: [Alpha]New Backend-Theme: wb2_theme
Post by: Waldschwein on April 03, 2010, 10:55:15 PM
Hello!

Only people in the administrators group can see the News - that's a feature. ;-)
If you want to restrict it to certain people please change from the replacement line

Code: [Select]
<?php
if ($rss_enable == true && $_SESSION[&#39;GROUPS_ID&#39;] == 1 && file_exists(THEME_PATH.&#39;/rss/rss_fetch.inc&#39;)) {
?>
to
Code: [Select]
<?php
if ($rss_enable == true && $_SESSION[&#39;USER_ID&#39;] == 1 && file_exists(THEME_PATH.&#39;/rss/rss_fetch.inc&#39;)) {
?>

or just the user-id you wish. The "nice" thing is that it's not possible with that if ... else to see anything in sourcecode that leads to the adress /content.

As said before: Unfortunately it's only possible to change that in "Core" in /admin/start/index.php. I don't think such a News-Feed has any good in Admin-Tools...

Yours Michael
Title: Re: [Alpha]New Backend-Theme: wb2_theme
Post by: Stefek on April 05, 2010, 12:01:35 AM
Hello Michael,

I didn't have the time earlier to check your creation, therefor I come that late with my feedback.

The Look fits more to the new WB Design and I think this theme should be the default theme in the next release.

I am glad that you used the media overview created by Ruud and Argos, for the image preview and the other stuff in it is more user friendly.

I also like the idea of the RSS Feed.
But there should be better a interface (schnittstelle) to another admin-tool with more options, features (not only RSS Feeds), maybe a whole userdefined dashboard interface, as we know from other CMS and Blog-Software (expl. WP).
Just some thoughts.

I also like the "switch-size" feature, and in fact I am using something similar in my own unreleased Theme.

Maybe you want to release this Theme here:
http://www.websitebaker2.org/en/add-ons/backend-themes.php
(maybe without the RSS Feature first, till it's in development?).


Regards,
Stefek



Title: Re: [Alpha]New Backend-Theme: wb2_theme
Post by: Waldschwein on April 05, 2010, 01:10:35 PM
Hello Stefek,

well, it's yet just a "technical preview", not at all finished. Argos gave me some improvement of his theme yesterday, that mostly get's rid of tables, so we will see what about the theme later on...
Default theme: I don't think it's a good idea having different themes in Core, but well, I don't decide that.

About RSS-API: Yes, I thought about that. It's not possible with WebsiteBaker right now. Of course some "Backend Modules" / Widgets (like WP...) would be nice, but that's not at all possible with the sourcecode of /admin. There would be a complete rewriting necessary - again. So - with respect of much more "important" changes to WB within security - I don't think it's good changing here too much, and in the end having nothing useful, or something that is 40% finished.
There are too many unflexible things in backend (JSadmin, /admin (e.g. pagestree), ...) and most of them are module based...
A user dashboard has the problem: Where to store information? There would be a "framework" necessary, like droplets. But I don't want to code that, it's too much risk...

Yours Michael
Title: Re: [Alpha]New Backend-Theme: wb2_theme
Post by: Stefek on April 05, 2010, 02:35:12 PM
About RSS-API: Yes, I thought about that. It's not possible with WebsiteBaker right now. Of course some "Backend Modules" / Widgets (like WP...) would be nice, but that's not at all possible with the sourcecode of /admin.

..........

A user dashboard has the problem: Where to store information? There would be a "framework" necessary, like droplets. But I don't want to code that, it's too much risk...

Yes, I know.
It's not a easy task.
It's more a long term objective.

That's the only reason why I never presented my own backend theme to the public - the core 'admin' doesn't allow to get it to work in all aspects you want.

Nevertheless, I like the way your backend gets along with the new WB Design.

Regards,
Stefek
Title: Re: [Alpha]New Backend-Theme: wb2_theme
Post by: Waldschwein on April 05, 2010, 04:10:16 PM
It's more a long term objective.
Yes, absolutely. Perhaps I'll program some (kind of) UML and get it to the DeveloperTeam...

Yours Michael
Title: Re: [Alpha]New Backend-Theme: wb2_theme
Post by: Stefek on April 05, 2010, 04:59:49 PM
Yes, absolutely. Perhaps I'll program some (kind of) UML and get it to the DeveloperTeam...

You mean something like this?
(http://upload.wikimedia.org/wikipedia/commons/thumb/2/25/Activity_2.png/400px-Activity_2.png)

 :-P

All best,
Stefek
Title: Re: [Alpha]New Backend-Theme: wb2_theme
Post by: Waldschwein on April 05, 2010, 05:02:18 PM
Yes, absolutely. Perhaps I'll program some (kind of) UML and get it to the DeveloperTeam...

You mean something like this?
(http://upload.wikimedia.org/wikipedia/commons/thumb/2/25/Activity_2.png/400px-Activity_2.png)

 :-P

All best,
Stefek

Exactly.  :wink: And here you see the difference between coding and programming.  :-D

Yours Michael
Title: Re: [Alpha]New Backend-Theme: wb2_theme
Post by: Waldschwein on April 09, 2010, 05:37:13 PM
Hello!

Just a note: With reworking the backend and introducing some security (and other "features") in backend /admin, I first wait until most things are finished from Devteam before making a new & improved theme (e.g. getting rid of many tables, thanks argos and Luisehahne).

Yours Michael
Title: Re: [Alpha]New Backend-Theme: wb2_theme
Post by: mjm4842 on July 31, 2010, 05:10:11 PM
First I want to say that your improvements are excellent and most appreciated changes! I really like having the news feed on the main page so that I don't have to keep checking for updates.

I would like to request a couple of additional features:

Can you add a couple of links: One to the WebsiteBaker Help another to the Forums? In my opinion these should be at the top of the page along with Home, View and Log-out.

A link to the add-ons page would also be appreciated on the Add-ons page.

I would also find it very useful to have one micro CMS single page in the backend where I could store notes and links that I often use to manage my site (for example a link to Analytics or To Do list). You could place it right after the "Access" menu at the top. It would be just a single page with an Edit button. Nothing fancy. In edit mode, the page would have two edit windows, one of WYSIWYG and the other a Code window.  That would address 90% of my needs and you would not require developing module support and stuff like that. In fact, it would even be cool with it if I could just create a page the usual way hand have it appear in the backend instead as a link in the top menu. That way you would not even have to develop an editable page.

As a workaround, I have been creating an "admin page" in the front end but it's a pain to have to go back and forth between the front and back ends all the time.

It would also be absolutely fantastic if someone could tell me how to customize the logo at the top of the page. That's one of the main reasons why I use the Argos theme. Having to administer several website baker sites for clients, the Argos theme shows me which backend I am logged into unlike the default WebsiteBaker backend theme.

Finally, it would be great if you could do something so that information being edited (such as page content) isn't lost if you accidently hit the wrong key on the keyboard. WordPress and other systems have this. It happens to me regularly that I hit the a Page Back key which is located right next to the arrow keys on my keyboard.

With best regards,

Michael Milette
Title: Re: [Alpha]New Backend-Theme: wb2_theme
Post by: Argos on August 04, 2010, 10:37:22 AM
Quote
In fact, it would even be cool with it if I could just create a page the usual way hand have it appear in the backend instead as a link in the top menu.


You can do that just by making it hidden...

Quote
It would also be absolutely fantastic if someone could tell me how to customize the logo at the top of the page. That's one of the main reasons why I use the Argos theme. Having to administer several website baker sites for clients, the Argos theme shows me which backend I am logged into unlike the default WebsiteBaker backend theme.

Yes, that's why I replaced the meaningless WB logo (that I don't want to show my clients so obviously either) with the site title. You can easily change the code yourself in the approprate admin files however. Nothing fancy there.
Title: Re: [Alpha]New Backend-Theme: wb2_theme
Post by: mjm4842 on August 04, 2010, 10:54:45 AM
Hi Argos,

Thank you for responding to my message. I appreciate you taking the time to write back to me.

I realize that I can do all these things. However I am proposing that these enhancements be included in the backend theme so that I don't have to re-apply my customizations each time I upgrade to new version of the theme or of WebsiteBaker itself. I don't mind doing it when it is something specific to my own needs however, if it is something that could benefit everyone, I would like to see these appear in the new backend theme instead. Not everyone is a PHP programmer.

Thanks again!

Michael
Title: Re: [Alpha]New Backend-Theme: wb2_theme
Post by: Luisehahne on August 04, 2010, 11:21:51 AM
Sorry, but do you read this ?

https://forum.WebsiteBaker.org/index.php/topic,17914.msg118930.html#msg118930 (https://forum.WebsiteBaker.org/index.php/topic,17914.msg118930.html#msg118930)

Dietmar
Title: Re: [Alpha]New Backend-Theme: wb2_theme
Post by: mjm4842 on August 05, 2010, 06:32:44 AM
Sure, but it doesn't mean that I can't make requests in the meantime, does it?

Michael
Title: Re: [Alpha]New Backend-Theme: wb2_theme
Post by: Luisehahne on August 05, 2010, 09:51:27 AM
Sure, i only informed, that there are more changes in feature. Pls create a new feature Ticket with a link to this thread. So your wishes for added improvements will not forget.

http://project.websitebaker2.org/newticket (http://project.websitebaker2.org/newticket)

Dietmar
Title: Re: [Alpha]New Backend-Theme: wb2_theme
Post by: mjm4842 on August 05, 2010, 04:39:48 PM
Thanks for the suggestion Dietmar.

I just tried to do that but kept getting the following message when I go to submit:

Quote
Submission rejected as potential spam (Akismet says content is spam)

My plan was to submit these as separate quests. Here is the text I entered:

Quote
Please add a link to the WebsiteBaker Help page and another to the Forums is included in all themes. These should be at the top of the page along with Home, View and Log-out.

On the Add-ons page, please also add a link to the WebsiteBaker Add-ons library page. If this isn't possible, then add the following links:
- On the Add-on|Modules page, a link to the WebsiteBaker Modules library
- On the Add-ons|Templates page, a link to the WebsiteBaker Templates library

I am not sure what would cause this to be viewed as spam.

Any suggestions you might have to offer would be much appreciated.

Michael

Sure, i only informed, that there are more changes in feature. Pls create a new feature Ticket with a link to this thread. So your wishes for added improvements will not forget.

http://project.websitebaker2.org/newticket (http://project.websitebaker2.org/newticket)

Dietmar
Title: Re: [Alpha]New Backend-Theme: wb2_theme
Post by: kweitzel on August 05, 2010, 04:46:52 PM
I marked them manually as ham ... so you should be able to submit the ticket now.

cheers

Klaus