We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
  • Quote from: robot at Jul 31, 2007, 07:35 PM

    How common is this?

    My understanding that it is considered a best practice to never use short tags in php that is designed for distribution or migration as there are so many stacks that don’t have them enabled. Someone more PHP’d than me will confirm or deny that PHP5 defaults to short tags off. Since I have only been working with PHP for a couple of years, all the books I read suggest just using long form tags for everything so you have one less issue to deal with when debugging.

    I would think that if you have been working with php or some other language for a while you may be just used to short tags.
      Author of zero books. Formerly of many strange things. Pairs well with meats. Conversations are magical experiences. He's dangerous around code but a markup magician. BlogTwitterLinkedInGitHub
      • 25307
      • 114 Posts
      I seem to see it most often when used inline, aka <html tag attribute=" <? $phpStuff ?> "> - but I know at least on our servers with current configs - anytime I install a snippet and start seeing funky halfway parsed output, short tags is the first thing I check. big ups for for the feedback, cheers...
        • 8256
        • 1 Posts
        I’m using the internationalized version of Kalender and I think I may have found a bug.

        When you hover the mouse over a calendar item, it shows the content of the page; but if the content contains multiple lines, the javascript is also spread across multiple lines. Firefox and Safari (at least) did not like this.

        The problem is the handling of the content; while some translation is going on to protect quotes, newlines are left untouched. Ideally newlines should be converted to spaces.

        Otherwise a nice snippet!
          • 6948
          • 12 Posts
          hi everyone, i created the original version of Kalender.

          its been quite a long time since i last checked the forums. sorry about all the crazy bugs and the hard time its given some of you setting up.

          but i extened a tremendous thanks to all the great people who’ve contributed to post their solutions, their fixes and all.

          i’ll try to find some more spare time to come up with an improved version. not much free time these days anymore. my apologies.

          i agree, the use of template variables is definitely they way to go.. also standard css based xhtml and all that. if you guys have any other suggestions for features or seen other cool calenders out there maybe we could set up a wishlist and work from there?

          also, what are your thoughts on the kalender snippet reloading the entire page everytime? ajax solutions perhaps?

          meanwhile, i’ll finish reading through all the previous entries and probably try starting off work from version1.1 and the multilanguage version.

          i’m taking a look at CalX as well to see how it goes. i love open source smiley

          BTW, if you’d let me post a shameless ad, here’s my latest modx site for the showcase:

          http://www.acelbisa.com

          i’m using modx but had to hack it a bit. i even renamed the core ’index.php’ to ’front.php’ to allow for the frames to work on the audio player. (just click "now playing") enjoy the music!

          surprisingly though, i’m not using Kalender anywhere here.. tongue (sorry)

          everything’s a work in progress. haha

          thanks for the space!
            • 25307
            • 114 Posts
            Quote from: deevio at Sep 05, 2007, 04:47 AM

            surprisingly though, i’m not using Kalender anywhere here.. tongue (sorry)

            everything’s a work in progress. haha

            thanks for the space!

            ...this thread seems like it should be in the ’You and Your Sites’ forum...

            *pretty much the only thing that bothers me on the site (since we’re here..) is the typography - the rest I think works very well together. the text is killing me, maybe check out http://typetester.maratz.com
              • 15152
              • 360 Posts
              I’m having a problem with the code. First, I’m not a programmer so go easy.

              It looks like there is a problem with the pathway. This is where the errors are coming in:

              http://allabouteinstein.comassets/snippets/kalender/js/overlib.js
              http://allabouteinstein.comassets/snippets/kalender/themes/gold/images/jump.gif
              http://allabouteinstein.comassets/snippets/kalender/themes/gold/images/next.gif
              http://allabouteinstein.comassets/snippets/kalender/themes/gold/images/previous.gif

              As you can see, there is no slash between the .com and assets. Can someone tell me where and how to change the file.
              Thanks
                There are no boring projects. Only boring executions. ~ Etzkorn
                www.impress-design.com
                • 21800
                • 174 Posts
                I very much apreciate the Kalender thanx for sharing.
                It mostly works fine though 1 item I run into that I can’t see through by now.

                The switching through the months (< / >) does not work for me. Has it to do with friendly URLs? for in my resulting html (index.php?mo=12&yr=2007) there is not the special page given but on some example page (.../calendar.html?mo=12&yr=2007)

                Could someone help?
                  • 14417
                  • 12 Posts
                  I am using the Kalender 1.1 posted in this forum and seemingly have it working as intended. I have a hopefully easy question in regards to getting information posted on the main calendar. The hover or mouseover displays the event, but the only marker signifying that an event is scheduled for a specific day is the background color on the square/block on the given day. I would like to post the Longtitle information in the main calendar as an easier visual for visitors to the site can see events.

                  What is the best way to code this reaction?

                  JF
                    • 34162
                    • 1 Posts
                    Quote from: JWMSales at Jan 01, 2008, 10:30 PM

                    I’m having a problem with the code. First, I’m not a programmer so go easy.

                    It looks like there is a problem with the pathway. This is where the errors are coming in:

                    http://allabouteinstein.comassets/snippets/kalender/js/overlib.js
                    http://allabouteinstein.comassets/snippets/kalender/themes/gold/images/jump.gif
                    http://allabouteinstein.comassets/snippets/kalender/themes/gold/images/next.gif
                    http://allabouteinstein.comassets/snippets/kalender/themes/gold/images/previous.gif

                    As you can see, there is no slash between the .com and assets. Can someone tell me where and how to change the file.
                    Thanks

                    I think you should first check in your database, in the table modx_system_settings (if modx_ is your prefix), if the fields rb_base_dir and rb_base_url contain the value assets/ (with the trailing slash).

                    If these values are correct, in the snippet code, search for this line:
                    $assets_path = substr($rb_base_dir, (strlen($base_path)));

                    and change it to:
                    $assets_path = substr($rb_base_dir, (strlen($base_path))) . '/';


                    That should solve your problem.
                      • 27109
                      • 1 Posts
                      Quote from: WeBe at Apr 13, 2007, 01:35 PM

                      Well, the good news is: I managed to make the dates with events linkable. smiley

                      The bad news is... Kalender uses publish and unpublish dates to show the events. So when the page is not published yet or already unpublished, you get a ’page not found’ error. :’(

                      Don’t know how to solve this one undecided



                      Hi WeBe,

                      I have updated events with links. it works for me.I used to TV for this and I changed snippet code a little bit. but the problem is the last event’s tool tip date is wrong. it shows last day of month. for example I have added event for 18 december of 2008. but when I go to the 18 th December it shows 31 december.