Pizza-Delivering-Service

discuss about sites that are just under construction or where experimental stuff is used

Pizza-Delivering-Service

Postby FlashCrack on Sat Jan 17, 2009 17:08

Hallo alleseits, Ich bin Uwe Sölen Flaig.

Ich weiß nicht ob ich hier richtig poste, schon allein weil ich verschiedene themen ansprechen will, aber irgendjemand wird das schon richtig hinbiegen.

Zuerst muss ich sagen, das mir phpwcms sehr gefällt. Durch seine schnelligkeit und flexibilät habe ich mich entschieden, von joomla auch phpwcms umzusteigen. Viele muss noch entwickelt werden, aber da sehe ich bei solch einer aktiven community kein problem. Apropo community, durch mein tölpelhaftes verhalten hab ich was gefunden was für mich schockierend ist;
Eigentlich hab ich schon am morgen versucht mich anzumelden und da hab ich so blöd wie ich bin angegeben, das ich unter 16 bin, naja sowas passiert denk ich. Aber...

letter.gif


dann bekam ich statt den aktivierungscode das hier. Eine bestätigung von meinen eltern? Nun das ist nicht das schlimme daran, aber die Adressen wohin man das schicken soll sind nicht dabei! Sowas schreckt ab leute! Ich habe keine ahnung ob das absichtlich ist oder nicht, jedenfalls ist das mit diesem beitrag gemeldet.

Thema/Problem: Menüführung.

template.jpg


Wie man sehen kann hab ich 2 menüs die dynamisch fungieren sollen.
Menü 1: Hauptseite, Über uns, News usw... (siehe bild)
Menü 2: Speisekarte mit den jeweiligen unterpunkten der speisekarte. (Hab mir schon über ein artikel zu machen und die unterpunkte mit anker zu verbinden)

Frage: Wie schaff ich das am besten? Ich will nicht den statischen weg einschlagen D:

Hello everyone, the name is Uwe Soelen Flaig.
dunno if I'm posting here right, because I want to speak about different themes, but I'm sure someone will fix that.
FIrst I have to say that I really like phpwcms. Cause of its speed and flexibility I've decided to imigrate from joomla to phpwcms. I see that this projekt needs still lots of development but with such an active community it won't be a problem. Speaking of community cause of my stupid actions I found something out which shocked me incredible... um kinda.
I tried to register in this forum already in the morning, unfortunately I pressed the wrong button by asking about the age. "Such things happens!", that's what I thought but then I got this letter:

letter.gif


I need a validation from my parents and I have to send it via fax or post without any addresses? Guys that discourage lot's of kids/teenagers if they get such an frustrating letter. Dunno if that's on purpose but with this thread this thing is notified.

Theme/Issue: Menu guide.

template.jpg


As you can see there are 2 menus and those menus should work dynamic.
Menü 1: Hauptseite, Über uns, News etc... (pic)
Menü 2: Speisekarte (You know the menu which you order some food) and their submenus like pizza n stuff.

Question: What would be the best way? I don't like the static way D:
You do not have the required permissions to view the files attached to this post.
Image
User avatar
FlashCrack
 
Posts: 10
Joined: Sat Jan 17, 2009 16:15
Location: Schramberg

Re: Pizza-Delivering-Service

Postby Jensensen on Sat Jan 17, 2009 19:04

Hi FlashCrack,
welcome!

The best way to get a dynamic menu will be using a {RT} = "replacement tag" for the navigation, e.g.
NAV_LIST_UL: http://www.phpwcms.de/forum/viewtopic.php?p=83839#83839
NAV_HORIZ_DD http://www.phpwcms.de/forum/viewtopic.php?t=16080

There are many other RTs you can read about right here in the forum or on the "Docu-Site":
http://www.phpwcms-docu.de/navigations_tags_.phtml (DE)
http://www.phpwcms-docu.de/navigation_tags.phtml (EN)
Hefeextrakt ==> Glutamat
User avatar
Jensensen
 
Posts: 2624
Joined: Tue Oct 17, 2006 19:11
Location: Rhein-Ruhr-Stever-Verse

Re: Pizza-Delivering-Service

Postby flip-flop on Sat Jan 17, 2009 21:35

Hi,

for me the right way wolud be this "eierlegende Wollmilchsau" WRAP_NAV_LIST_UL

Knut
>> DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
User avatar
flip-flop
 
Posts: 5702
Joined: Sat May 21, 2005 19:25
Location: HAMM (Germany)

Re: Pizza-Delivering-Service

Postby Jensensen on Sun Jan 18, 2009 01:40

:mrgreen: :mrgreen: :mrgreen:
right you are!
but in what way this could be [become] part of the 'official' code?
[to be used straight of the shelves -core]
Hefeextrakt ==> Glutamat
User avatar
Jensensen
 
Posts: 2624
Joined: Tue Oct 17, 2006 19:11
Location: Rhein-Ruhr-Stever-Verse

Re: Pizza-Delivering-Service

Postby FlashCrack on Sun Jan 18, 2009 09:10

Haha awesome I can develop my own codes! I really have to try that out one time, I see so many possibilities! Mayber there's a thread which explains all important phpwcms variables? I really have to try out some own codes thanks!

Also thanks for such a fast answer!

After reading many articles plus the links which I you posted all I still don't understand how to use one of those codes right... I'll try it further and hope that meanwhile is willing to help the greenhorn, hehe...

websitestructure.gif


my menustructure and this is my currently super developed template:

Code: Select all
<div class="mybreadcrumb" style="border:1px solid #000;">
    {BREADCRUMB}
</div>
<div class="mycontent" style="border:1px solid #000;">
    {CONTENT}
<div>
<div class="senormenulanumerouno" style="border:1px solid #000;">
    {thecodeformenu1}
</div>
<div class="senormenulanumerodos" style="border:1px solid #000;">
    {thecodeformenu2}
</div>


Man I like the idea of programming your own codes a lot!
You do not have the required permissions to view the files attached to this post.
Image
User avatar
FlashCrack
 
Posts: 10
Joined: Sat Jan 17, 2009 16:15
Location: Schramberg

Re: Pizza-Delivering-Service

Postby flip-flop on Sun Jan 18, 2009 11:51

Ah, yes I see. You don´t user a hirarchical category tree like:
Code: Select all
+ root
++ News
++ Über uns
++ Kontakt
++ ......
++ Speisekarte
++++ Nudelgerichte
++++ Mexikanische Gerichte
++++ Toast
++++ .....

But that is a better solution to do so.

At this time we haven´t an real article navigation. (All navigations based on categories.)

If you don´t want to change to categories for every meal section, please use the the CP "Artikelmenü" for solving your problem.
Have a look to "cms. ritterhoff. de" -> Bücher -> e.g. 1999-2001 (Please don´t make this adress visible in forum).
At the left you will see "Bücherliste 1999-2001". At this point the CP "Artikelmenü" is running.

Your special problem:
1. Create a hidden category

2. Move Speisekarte into this hidden category
Code: Select all
+ root
++ News
++ Über uns
++ Kontakt
++ ......
++ ==== Hidden    [x] hidden  and sitemap, search ..... = off
++++ Speisekarte  [ ] hidden  (e.g. using the ID=19) (e.g. ID=29)

3. Create behind === Hidden a category named "linke_navi"
Code: Select all
++ ......
++ ==== Hidden    [x] hidden  and sitemap, search ..... = off
++++ Speisekarte  [ ] hidden  (e.g. using the ID=29)
++++ linke_navi   [ ] hidden  (e.g. using the ID=34)

4. In Article (site structure and article list) -> === hidden -> linke_navi
create an article named e.g. "Linke Navi"

5. Insert behind this article the CP "article menu" (assuming that the CP is ID=19)
- site level: [ ] current site level
select the right category (Speisekarte)

6. In your template insert: (assuming cp in linke_navi has the cp ID=19)
Code: Select all
[PHP] // ==== Speisekarte: Permanente Ausgabe des CP mit ID=19 ====
      echo '<div><div id="my_class">{SHOW_CONTENT:CP,19}</div></div>'.LF;
[/PHP]


7. In conf.inc.php must be set:
Code: Select all
$phpwcms['allow_cntPHP_rt']   = 1; // allow PHP replacement tags and includes in content parts

I hope it is running well.

Knut
>> DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
User avatar
flip-flop
 
Posts: 5702
Joined: Sat May 21, 2005 19:25
Location: HAMM (Germany)

Re: Pizza-Delivering-Service

Postby FlashCrack on Sun Jan 18, 2009 21:22

Awesome it's working, thanks! That's the result which I wanted. For some reasons I never saw the article menu! Finally I can go to the next step and finish the template by creating the flash header. I still have some questions for the 3rd step, maybe it's good to ask them now:

is it possible to hide root somehow?

I understood every part which you explained me except that one:

Code: Select all
[PHP] // ==== Speisekarte: Permanente Ausgabe des CP mit ID=19 ====
      echo '<div><div id="my_class">{SHOW_CONTENT:CP,3}</div></div>'.LF;
[/PHP]


I didn't understood why I have to use php there; and I don't know what my_class is... also the .LF on the end. Well I think I have to read many documents in this forum to understood those my_class'es and the .LF part anyway after that I just tried

Code: Select all
{SHOW_CONTENT:CP,3}
and there was no change. many I sure have to learn a lot of things.

and again, thanks a lot for the amazing help! I hope I can contribute somehow after learning lots of stuff.
Image
User avatar
FlashCrack
 
Posts: 10
Joined: Sat Jan 17, 2009 16:15
Location: Schramberg

Re: Pizza-Delivering-Service

Postby Jensensen on Sun Jan 18, 2009 21:58

FlashCrack wrote:... I hope I can contribute somehow after learning lots of stuff.

It's assumed and hoped for that you do so...

.LF is for cosmetic code only :wink:
Hefeextrakt ==> Glutamat
User avatar
Jensensen
 
Posts: 2624
Joined: Tue Oct 17, 2006 19:11
Location: Rhein-Ruhr-Stever-Verse

Re: Pizza-Delivering-Service

Postby flip-flop on Sun Jan 18, 2009 22:05

Code: Select all
[PHP] // ==== Speisekarte: Permanente Ausgabe des CP mit ID=19 ====
      echo '<div><div id="my_class">{SHOW_CONTENT:CP,3}</div></div>'.LF;
[/PHP]
is the same like
Code: Select all
<div><div id="my_class">{SHOW_CONTENT:CP,3}</div></div>

You don´t require the PHP container for your needs.
His birth was this one:
Code: Select all
[PHP] // ==== Buecherliste: Ausgabe bei ID unterhalb 2 ====
  if (($GLOBALS['LEVEL_ID'][1]) == 2 && isset($GLOBALS['LEVEL_ID'][2])) {
    echo '<div id="box01_top1"><div id="box01_top">{SHOW_CONTENT:CP,13}{BOX_01}</div></div>'.LF;
  }
[/PHP]
(Only running {SHOW_CONTENT:CP,13} if the category with ID=2 in first level is the active path and we stand actually in the second level)
- I have stooped this snippet. And the result you have seen. :?

I think you can use {SHOW_CONTENT:CP,3} exclusively.

"my_class" is only an popularly placeholder for classes in forum threads.
>> DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
User avatar
flip-flop
 
Posts: 5702
Joined: Sat May 21, 2005 19:25
Location: HAMM (Germany)

Re: Pizza-Delivering-Service

Postby FlashCrack on Wed Jan 21, 2009 14:47

One question: Does anyone knows where I can find a good tutorial to make a module? The only thing what I found was this:

http://jgbm.de/Module-creation-guide-1.phtml

but it seems like it's not finished D:

EDIT: Nevermind I gave up haha

But don't worry, I'll still continue to create this website.
Image
User avatar
FlashCrack
 
Posts: 10
Joined: Sat Jan 17, 2009 16:15
Location: Schramberg

Re: Pizza-Delivering-Service

Postby DF6IH on Wed Jan 21, 2009 15:47

gimme 20 Minutes :mrgreen:
http://www.phpwcms-docu.de/download-dev-versions.phtml --> playing 310
http://jgbm.de/bensheim_2009.phtml Wir haben uns getroffen und die Freude am CMS ist wieder steil gestiegen, Bilder folgen !!
How to code my own Module? -> http://jgbm.de/Module-creation-guide-1.phtml
User avatar
DF6IH
 
Posts: 2658
Joined: Mon Jan 10, 2005 17:10
Location: Hoffenheim (fast)

Re: Pizza-Delivering-Service

Postby DF6IH on Wed Jan 21, 2009 16:14

done (mostly)
http://www.phpwcms-docu.de/download-dev-versions.phtml --> playing 310
http://jgbm.de/bensheim_2009.phtml Wir haben uns getroffen und die Freude am CMS ist wieder steil gestiegen, Bilder folgen !!
How to code my own Module? -> http://jgbm.de/Module-creation-guide-1.phtml
User avatar
DF6IH
 
Posts: 2658
Joined: Mon Jan 10, 2005 17:10
Location: Hoffenheim (fast)

Re: Pizza-Delivering-Service

Postby FlashCrack on Wed Jan 21, 2009 18:08

Gee thanks for sharing your knowledge! Just in 20 minutes? Haha that's what I call fast.

Cause the module system is to complicate for me, I wanted to use [PHP][/PHP] command instead developing as a module. But I have to say this explaination could be the key to come further.

Anyway that's my plan:

I want to make something like a catalogue system. First I'll work on the mysql database, insert it with some test informations n stuff. Second developing the output with javascript and php. If everything's working like it should I'll work on a module for it to maintain this module. Of course this module have to be programmed more flexibel but let's see first how far I come :D
Image
User avatar
FlashCrack
 
Posts: 10
Joined: Sat Jan 17, 2009 16:15
Location: Schramberg

Re: Pizza-Delivering-Service

Postby FlashCrack on Fri Jan 23, 2009 11:02

Awww I have problems with my scripts right now!

-I made one database and filled it with infos.
-I made one script which get those informations and display it.
-Also some javascript

If I run this script everything is working like it should, but if I insert this script [PHP][/PHP] I get a blank screen! (between the body tags is nothing)

Also the javascript which I made doesn't work anymore by any script which I bind in with the same method ([PHP][/PHP]).

What is going on? I can't develop further if I don't get here a solution T_T

EDIT: I found out that template/inc_js/frontend.js is blocking my javascript, is frontend.js important? Seems like nothing changed, just my script is working now.

Still, I don't get why I get a blank screen trying to run it on frontend... maybe my Source code is too big? I think just a special uhhh stringlength? Characterlengh? Contentlength? Zeichenlänge? Is allowed...

for example: A post in this post can be 60000 characters long, so post with a length over 60000 character ain't possible
Image
User avatar
FlashCrack
 
Posts: 10
Joined: Sat Jan 17, 2009 16:15
Location: Schramberg

Re: Pizza-Delivering-Service

Postby flip-flop on Fri Jan 23, 2009 13:35

I think, the better way is to carry out the calling or whole script into /frontend_render/.

Make a replacer script like this (absolutely without any Sinn) :D e.g.:
Code: Select all
<?php
/* ================================================================
dd.mm.yyyy Short descrition
Autor: My Name

TAG: {My_Tag}
Filename: my_tag_replacer.php
Folder:  /template/inc_script/frontend_render/
Switch:  $phpwcms['allow_ext_render'] = 1; (/config/phpwcms/conf.inc.php)

Forum:   http://forum.phpwcms.org/viewtopic.php?p=xxxxx
   ================================================================ */
// ----------------------------------------------------------------
// obligate check for phpwcms constants
if (!defined('PHPWCMS_ROOT')) {
   die("You Cannot Access This Script Directly, Have a Nice Day."); }
// ----------------------------------------------------------------

if( ! (strpos($content["all"],'{My_Tag:')===false)) {


  function func_my_specials ($spec1,$spec2) {

    $my_spec_result = ' ['. $spec2 . ' + '. $spec1 . ']';

  return $my_spec_result;
  }


  function func_my_tag_replacer ($var1, $var2, $var3 = "no parameter catched") {
    // My_php_code/source;
    // e.g.
    $my_result = ' var1= '. $var1 . func_my_specials ($var3,$var2) . '<br /> var2= '. $var2 . '<br /> var3= '. $var3 . '<br />'. LF;

  return $my_result;
  }


// {My_Tag:,,} or {My_Tag:}
// -----------------------------------------------------

   $content["all"] = str_replace('{My_Tag:}', func_my_tag_replacer("Werner","Ulla"), $content["all"]);
   
   $content["all"] = preg_replace('/{My_Tag:(.*?),(.*?),(.*?)}/e', 'func_my_tag_replacer("$1","$2","$3")', $content["all"]);
// -----------------------------------------------------

}
// -----------[ CLOSE ]----------------
?>


Call:
Code: Select all
{My_Tag:}

{My_Tag: erster toller Text, zweiter toller text, dritter toller Text}


Output:
var1= Werner [Ulla + no parameter catched]
var2= Ulla
var3= no parameter catched


var1= erster toller Text [ zweiter toller text + dritter toller Text]
var2= zweiter toller text
var3= dritter toller Text


Knut
>> DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
User avatar
flip-flop
 
Posts: 5702
Joined: Sat May 21, 2005 19:25
Location: HAMM (Germany)

Next

Return to sites under construction (made with phpwcms only)

Who is online

Users browsing this forum: Alexa [Bot], Ask Jeeves [Bot], Google [Bot] and 0 guests