Welcome, Guest. Please login or register.
Did you miss your activation email?
May 25, 2012, 10:08:40 AM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite.
155489 Posts in 21710 Topics by 7737 Members
Latest Member: deenangle
* Home Help Search Login Register
Pages: 1 2 [3] 4 5 ... 9   Go Down
Print
Author Topic: New module "EasyMenu" (Alpha!)  (Read 25281 times)
vizmotion

Offline Offline

Posts: 107


« Reply #50 on: April 12, 2009, 02:43:03 PM »

Hey Mr-Fan,

Thanks for your support. Sorry I got it wrong about the designer but actually I think that is the beauty of what we are doing. Different people can contribute different skills so someone like you contribute menus, someone else contribute standard layouts, someone else contribute images for header or background, etc. Soon we will have a template that can be used in different ways.

======== GENERAL COMMENTS =============
Would it help to have an area that we can work on templates together? I can put up a wb site that we can use to develop the easy layout creator templates.

One quick question for us as we go on. I am thinking of this project as a way of having layouts that can be easily modified but not really creating a way of building layouts from scratch. What are others thinking about this?
=====================

Hey WebBird,

Thanks for not being here:) Please also enjoy your holiday if you are on holiday. Glad we are thinking about this similarly. I like the easymenu parameter idea.

One question I have been thinking about is how to hook a template up with an easymenu in a automated way. So here is what I mean. Let's say I create 5 layouts (1 column-menu-top, 2 column-menu-leftside, 2 column-menu-rightside, 3 column-menu-leftside, 3 column-menu-rightside). I give each of the templates a menu id (1 - 5). Now someone else comes along and creates a new template and they give their templates one of the preciously used id ( 1 ). So now with I change easymenu 1 it changes for my template and the other persons. Is there a way to automatically assign ideas and not have them conflict with each other. I hope this is clear.

Another question. How do you install an easymenu with a template?

OK that is all for now. Did not mean to be so long winded. I think we are making great progress by the way.

I want to create those 5 templates above and give us a core of templates to maybe start playing around with. What are others thoughts on this?
Logged
WebBird
Guest
« Reply #51 on: April 12, 2009, 03:01:26 PM »

So now with I change easymenu 1 it changes for my template and the other persons.

Well, each Easy Menu is created using the Admin Tool by now, not by including it to the template. You're right, we (I) will have to find a way to automate this.
One way to avoid ID number clash is to give the menu a unique name and use the easymenu_named() markup. EM could automagically create a DB entry if it finds a menu that is not in the DB yet. (Maybe only if called by "Easy Layout Template Whatever".) What do you think?

Another question. How do you install an easymenu with a template?

You have to edit the index.php of the template to include the code.

I think we are making great progress by the way.

Yes, I really like this project! grin It shows how great the community is. (Or can be - there are negative examples, too. One of them lead me to create this module. evil)
Logged
WebBird
Guest
« Reply #52 on: April 12, 2009, 03:03:19 PM »

I want to create those 5 templates above and give us a core of templates to maybe start playing around with. What are others thoughts on this?

Have you thought about including/using YAML Builder?
Logged
vizmotion

Offline Offline

Posts: 107


« Reply #53 on: April 12, 2009, 03:14:29 PM »

Hey WebBird,

Yes, I looked at YAML and think that it is a really good program. I just don't think it really fits into what we are doing? (NOTE this is just an opinion for discussion.) I think that for a lot of the WB users there needs to be a very simple interface that allows gradual progression of complexity. So a user can:

1) Select a template to use (currently we have that)
2) Select a template with certain preset parts (easy template with preset conditions)
3) Make limited changes defined by the template developer (you can only change the background and the menu colors, etc)
4) Finally have full capabilities to change anything

Numbers 1 - 3 are the most important ones for me. If we have a set of standard templates that can be added to  then YAML is less significant. Column width, height, etc. can be changed in the css if the template developers wants those changes.

I am also not that excited by the license agreement for YAML but I know that can possibly be negotiated with the developer.
Logged
WebBird
Guest
« Reply #54 on: April 12, 2009, 03:24:56 PM »

Okay, let's keep out YAML Builder and do "our own thing". Wink

Another thought: I think it should be possible to edit any template, not only the one currently used for the site. (Confused me when using Template Modifier the first time.) Is there a "skin chooser" module anywhere out there we could use? Did not find anything at AMASP...
Logged
WebBird
Guest
« Reply #55 on: April 12, 2009, 04:33:01 PM »

Made some changes to Template Modifier.

* Created backend.css
* Moved most layout settings to backend.css
* Created a "Tabbed" Layout you may like grin
* Made some corrections for valid XHTML (not finished)
* Removed invalid "font-style: underline;" from CSS (must be "text-decoration: underline;")

I also made some changes for the integration of EM into TM, but it's too early to release a new alpha. Going to "Easter fire" now. grin (Have some beer, steaks and "Bratwürstchen". wink)
« Last Edit: April 12, 2009, 04:53:51 PM by WebBird » Logged
WebBird
Guest
« Reply #56 on: April 12, 2009, 05:10:48 PM »

Found a small bug in edittemplate.inc:

Code:
$tmp = explode("/", $path);
$template = $tmp[count($tmp)-1];

This doesn't work under Windows. (Windows uses Backslashes.)

This should work OS independent:

Code:
$template = basename($path);
Logged
vizmotion

Offline Offline

Posts: 107


« Reply #57 on: April 12, 2009, 06:19:13 PM »

Hey WebBird,

Thanks for all the hard work. It is looking really good! I will download and give your changes a test.

Had another thought. Can you use a text string instead of just a number for menu designation. The thought is that for easymenu in a template without a designation the template would default to the directory that the template is in. These names will be unique for any installment and if you have multiple menus then you can do something like the directory name _#.

I hope you had a great time at the "Easter fire". Sounds like a great time.
Logged
vizmotion

Offline Offline

Posts: 107


« Reply #58 on: April 12, 2009, 06:43:21 PM »

Fixed the basename issue now OS independent thanks.

I really like the clean up you did WebBird. Incorporated all your changes and made a few more changes to backend.css and edittemplate.inc so it did not conflict with the initial backend of admin_tool to pick a template. Hope this makes sense. I put a <div class=tempmod> for the edittemplate.inc then put the table and its parts as part of the class in the backend.css.
Logged
vizmotion

Offline Offline

Posts: 107


« Reply #59 on: April 13, 2009, 10:57:40 AM »

Here is a two_coloum_leftside template shell. It is not fancy but someone can take it an make it a lot better.

WebBird - I had trouble adding easymenu to it. Can you look at it and let me know what I did wrong.

I am hoping that this might get some designs started.
Logged
mr-fan

Offline Offline

Posts: 1556


WWW
« Reply #60 on: April 14, 2009, 11:46:55 AM »

@webbird: i've found some troubles with the menus

if i create the site's in backend (localtestarea with portable &XAMP) and install easymenu and make a menu with call in template or on code² page AND then i change the sitestructur (maybe i make one site as child of the first site or something) THEN the menu get in trouble...hmm if made some pics!!

@vizmotion: in the german part of the forum there is an error with de deinstallation of your module

http://www.websitebaker2.org/forum/index.php/topic,13524.msg82759.html#msg82759

in this case somebody installed your mod and deinstalled (with changes in the index.php and the edti.php in the template-folder

his problem was that after the deinstallation the FCK editor was hidden/or dead Huh he installed the FCK again and everything works well! i mean you should know that

keep on good working!

regards martin
Logged

 
vizmotion

Offline Offline

Posts: 107


« Reply #61 on: April 14, 2009, 01:03:07 PM »

Hello Mr-Fan,

Thanks for letting me know about the problem in the German track. Please apologize the the person for me. I don't do anything with FKeditor or any install/uninstall functions. Do you know what version he was using? I will keep track of this problem and see if the problem comes up again.
Logged
WebBird
Guest
« Reply #62 on: April 14, 2009, 06:00:13 PM »

WebBird - I had trouble adding easymenu to it. Can you look at it and let me know what I did wrong.

I think you forgot the include.
Logged
WebBird
Guest
« Reply #63 on: April 14, 2009, 06:01:44 PM »

if i create the site's in backend (localtestarea with portable &XAMP) and install easymenu and make a menu with call in template or on code² page AND then i change the sitestructur (maybe i make one site as child of the first site or something) THEN the menu get in trouble...hmm if made some pics!!

I'll have a look at this later.

Edit: Can you please try to alter file includes/functions.inc.php line 207:

Code:
    ORDER BY pages.level, pages.position ASC";

(Add the pages.level thing)
« Last Edit: April 14, 2009, 06:52:42 PM by WebBird » Logged
WebBird
Guest
« Reply #64 on: April 14, 2009, 06:33:07 PM »

Had another thought. Can you use a text string instead of just a number for menu designation.

Yes, this is what easymenu_named() is for. Good idea using the template name with optional _#.  grin I'm going to add an option to parse templates for show_menu[2]() and replace it with EM-Calls.

I hope you had a great time at the "Easter fire". Sounds like a great time.

Hundreds of people staying 'round a large fire, drinking beer and eating steaks, talking... It's nice. grin This year, it was dry (the ground) and warm (the air). cheesy It's a tradition here in Germany to burn on Easter what is cut from bushes and trees in the early springtime. grin

Here's a picture (not "our" fire): http://www.derwesten.de/nachrichten/staedte/halver/2009/4/13/news-117017636/detail.html
Logged
mr-fan

Offline Offline

Posts: 1556


WWW
« Reply #65 on: April 14, 2009, 08:07:54 PM »

Quote
I think you forgot the include.

nope can you try to move with drag&drop your sites and setup a parent and save - then look at the easy menu?

if you've got no problems i must try again with complete new testwbinstallation. ..

regard martin
Logged

 
WebBird
Guest
« Reply #66 on: April 16, 2009, 05:09:05 PM »

So here's another update.

* Recoded menu tree creation. Hopefully works now. rolleyes
* Added function to parse all installed templates for menus. (Only _shows_ the menus at the moment; option to replace other menus by EM will be added in next version.)
* Attribute 'type' is now 'orientation', for 'type' will be used for other purposes later. ("Expanding", "Sitemap", "One Level" or something like this selection)
« Last Edit: April 21, 2009, 06:49:49 PM by WebBird » Logged
WebBird
Guest
« Reply #67 on: April 17, 2009, 09:50:19 AM »

New: "Injection" into Templates nearly implemented.

How to

* Call the EasyMenu Admin Tool in the WB Backend (Admin Tools -> EasyMenu)
* Click on the Template Icon on top of the page (it's the same as in the WB Backend when hitting "Add-ons")
* You now get a list of all installed templates with all menus found in the index.php (see screenshot)
* Hit the yellow icon next the menu you want to replace (I will add an "Are you sure?" dialog in the next version)

What it does

* Create a database entry for the new EasyMenu named <Templatename>_<Number>
* Deactivate the original menu by prefixing the line with // (comment sign for PHP)
* Add the new EasyMenu below the original menu

This way, you can always reactivate the original menu if you wish.

Missing

* Option to reactivate the original menu from the backend (next version)

Known issues

* Injection will fail if the original menu entry spans more than one line

Happy testing. grin
« Last Edit: April 21, 2009, 06:50:04 PM by WebBird » Logged
mr-fan

Offline Offline

Posts: 1556


WWW
« Reply #68 on: April 17, 2009, 03:54:13 PM »

soooo i've take some time

some good news and quests.... grin

1. pagetree works with moved pages easy3.jpg

2. error in the backend easy.jpg...?

3. the include was not automatical generate i've added it manually and got this E in the frontend easy1.jpg

this in the fast - more comes later

regard martin
« Last Edit: April 17, 2009, 03:58:31 PM by mr-fan » Logged

 
ipfelkofer

Offline Offline

Posts: 16


WWW
« Reply #69 on: April 17, 2009, 05:20:12 PM »

Bei mir hat easymenu bis zur Version 0.10 gut funktioniert.

Seit Version 0.11 erhalte ich ebenfalls die Meldung "Notice: Undefined index: type in C:\xampp\htdocs\aitest03\modules\easymenu\include.php on line 72".

Was mache ich falsch?
Logged
mr-fan

Offline Offline

Posts: 1556


WWW
« Reply #70 on: April 17, 2009, 05:36:03 PM »

Quote
Was mache ich falsch?

du machst nichts falsch!!..... wink

Das modul ist "alpha" stadium.....d.h. so für laien wie mich&dich die grundfunktion ist gegeben jetzt werden fehler gebügelt und verfeinert/erweitert.....

diese meldungen sind hinweise zum debuggen für den programmierer/in  grin

- wenn du coder bist kannst du helfen...aber dann würdest du nicht so fragen (ich bin auch keiner  smiley )

- wenn du kein coder bist kannst du auch helfen indem du fehler berichtest und die module unter verschiedenen 
  bedingungen/einstellungen testest....

mfg martin
Logged

 
WebBird
Guest
« Reply #71 on: April 17, 2009, 06:29:11 PM »

Seit Version 0.11 erhalte ich ebenfalls die Meldung "Notice: Undefined index: type in C:\xampp\htdocs\aitest03\modules\easymenu\include.php on line 72".

Du machst nix falsch, ich hab nur was umbenannt und es leider nicht in allen Dateien getan. grin Ist mit der nächsten Version behoben.

Edit: Maybe you want to try the version attached, but I'm not really sure if it's a "good one". Wink So, handle with care. Well, it's V13... Wink
« Last Edit: April 21, 2009, 06:50:18 PM by WebBird » Logged
WebBird
Guest
« Reply #72 on: April 17, 2009, 06:31:30 PM »

1. pagetree works with moved pages easy3.jpg

Great. grin

2. error in the backend easy.jpg...?

Yes, found some more of these, will be fixed in next version.

3. the include was not automatical generate i've added it manually and got this E in the frontend easy1.jpg

 huh Is this an error report or just a hint?
Logged
mr-fan

Offline Offline

Posts: 1556


WWW
« Reply #73 on: April 17, 2009, 06:41:01 PM »

@ipfelkofer:   eins hast falsch gemacht und ich hab auch nicht aufgepasst.... hier ist der englische teil...

@webbird:

the message for the include.php in line 72 comes in ervery template i've put the includeonce call manually in front of the automaticaly switched EM...

i'm no coder but i can sort the stuff a little bit and the mainthing is i look at the code.... grin

Code:
line72:   switch ( $EMSET[$E_MENU]['type'] ) {

BUT i don't know what the error meassage want say me.... rolleyes

if i don't put the includeonce manually then i've got this E in the frontend
Code:
Fatal error: Call to undefined function easymenu_named() in C:\XAMPP\htdocs\templates\allcss\index.php on line 79

regards martin
Logged

 
WebBird
Guest
« Reply #74 on: April 20, 2009, 09:50:28 AM »

Have you tried v0.13?
Logged
Pages: 1 2 [3] 4 5 ... 9   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!