User Profile

Collapse

Profile Sidebar

Collapse
hgeithus
hgeithus
Last Activity: Mar 3 '09, 02:24 PM
Joined: Oct 31 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • hgeithus
    replied to Simple photo navigation
    in PHP
    Thanks. I'll look into that straight away ;)
    See more | Go to post

    Leave a comment:


  • hgeithus
    started a topic Centering two div tags

    Centering two div tags

    Hi.

    I have two images with a caption underneath it. (like this example shows: CSS: figures & captions)

    So, I want two or more images (with caption) to follow each other on the same line. The question really boils down to this:

    How do I center two div tags that are on the same line?

    I could do this in my CSS-file:

    Code:
    div.element {
      float: right;
    }
    ...
    See more | Go to post

  • hgeithus
    replied to Simple photo navigation
    in PHP
    Forgot to mention that if I have i.e. 9 images, I would like to be able to scroll the thumbnails (left and right button), since only 4 thumbnails can be displayed at the same time..
    See more | Go to post

    Leave a comment:


  • hgeithus
    started a topic Simple photo navigation
    in PHP

    Simple photo navigation

    Hi.

    How do I create a simple photo navigation system with this layout style:

    Click here to view layout style

    I want to make this for my website, and I don't mind using a script that someone else has made. Just need something fast and simple. :)

    Thanks in advance :)
    See more | Go to post

  • hgeithus
    replied to Setting session variable with hyperlink
    in PHP
    I ended up doing this, and it works very well :)

    Code:
    session_start();
    if(isset($_GET['lang'])) 
    {
        $_SESSION['lang'] = $_GET['lang'];
        setlocale(LC_ALL, $_SESSION['lang']);
    }
    else
    {
    setlocale(LC_ALL, $_SESSION['lang']);
    }
    Thanks alot. Not so difficult as it first seem ;)
    See more | Go to post

    Leave a comment:


  • hgeithus
    replied to Setting session variable with hyperlink
    in PHP
    Hi, yes that works pretty well :D

    but I also encountered another problem that I didn't figure out how to solve well (when trying to apply this to multiple pages within my site). I have, say, three pages one.php, two.php and three.php, and all of them now has this language selection bar:

    Code:
    <div id="navbar"><div class="langbar"><a href="?locale=en_US">English</a> | <a
    ...
    See more | Go to post

    Leave a comment:


  • hgeithus
    started a topic Setting session variable with hyperlink
    in PHP

    Setting session variable with hyperlink

    Hi.

    I have a session variable stored within a cookie, and I want this to change when pressing a hyperlink.

    i.e. I have this variable
    Code:
    $_SESSION['language'] = 'en_US';
    This is set initially if it hasn't been set before using an if statement:
    Code:
    if (! isset($_SESSION['language']))
    { 
        $_SESSION['language'] = 'en_US';
    }
    I want to set this variable...
    See more | Go to post

  • hgeithus
    replied to PHP Form Validation + JavaScript + gettext
    in PHP
    That was kinda sweet :D
    Thank you :)
    See more | Go to post

    Leave a comment:


  • hgeithus
    replied to PHP Form Validation + JavaScript + gettext
    in PHP
    Ah, Sorry about that :S I didn't realise I posted inside another thread :S

    Hmm...

    Can you please delete this thread? It looks silly now with this discussion.
    See more | Go to post

    Leave a comment:


  • hgeithus
    replied to PHP Form Validation + JavaScript + gettext
    in PHP
    I wanted to ask a question, therefore I started this thread. What seems to be the problem?
    See more | Go to post

    Leave a comment:


  • hgeithus
    replied to Date Input Calendar
    Hi again.

    Thanks for adding the tags :) . Looks better now :)

    I have encountered a different problem. (Which I also think I've just solved, lol xD ). But I do have some questions too.

    What if the user doesn't have JavaScript (JS) enabled in his/her browser? Then the text fields and the calendar input would disappear. Of course one could assume that most users actually have JS enabled, but this would be escaping...
    See more | Go to post
    Last edited by hgeithus; Dec 1 '08, 12:44 PM. Reason: JSP should be JS

    Leave a comment:


  • hgeithus
    started a topic PHP Form Validation + JavaScript + gettext
    in PHP

    PHP Form Validation + JavaScript + gettext

    Hi. I'm doing a form at my website, and I found this document which is very interesting: Javascript form validation - doing it right .

    I have a little question though. All the documents within my page has the *.php extention since I'm using PHP the most. I'm also using gettext to translate strings to other languages. If I want to translate the string "hello", I would write it like this in my *.php document:

    Code:
    <?php
    ...
    See more | Go to post

  • hgeithus
    replied to How do i use java with a database and xml
    in Java
    Check this out: Using JDBC with MySQL, Getting Started

    "Since both JDBC and MySQL are freely available for many purposes, the combination of JDBC and MySQL is a powerful combination that should be of interest for a wide variety of applications."

    And if you need more information try asking our common friend google xD
    See more | Go to post

    Leave a comment:


  • hgeithus
    replied to Date Input Calendar
    Okay. I got this figured out all by myself, and it was embarassingly easy. So, in order to make this post interesting for others, I'll explain what I did. (since it seems impossible to delete the post).

    This JSP-script contain a function/method named DateInput, which takes the following parameters:
    Code:
    DateInput(DateName, Required*, DateFormat*, DefaultDate*)
    When fetching the data in PHP, I used a form with method="post"....
    See more | Go to post
    Last edited by Nepomuk; Dec 1 '08, 07:46 AM. Reason: Added [CODE] tags

    Leave a comment:


  • hgeithus
    started a topic Date Input Calendar

    Date Input Calendar

    Hi.

    I'm building a form for my webpage, and I'm using "Jason's Date Input Calendar" to allow the user to easily enter a date.

    Here is the link to the website of the script:
    Dynamic Drive DHTML Scripts- Jason's Date Input Calendar

    It's all working visually, but I don't know how to fetch the dates from the form when I send the form a script. I don't know how to relate the content (input)...
    See more | Go to post

  • hgeithus
    replied to My text won't align to the right
    Thank you. :)
    Worked out nicely.
    See more | Go to post

    Leave a comment:


  • hgeithus
    started a topic My text won't align to the right

    My text won't align to the right

    Hi.

    Description of problem: I'm using this CSS-template to build a website: http://www.glish.com/css/7.asp (scroll down at the site to see the full code of the template).

    What I did was to create a new CSS element like this:
    Code:
    	.langbar {
    		font-size:12px;
    		text-align:right;
    		}
    I have a language bar like this: "ENG | DE | NO" , and I want it to go in the upper right...
    See more | Go to post

  • hgeithus
    replied to Multilingual website
    in PHP
    Hi again.

    My multilingual website is now up and running with gettext, although there is not much content atm. Anyway, I searched around the web for a resource that could show me how to get started with gettext, and this is the guide that worked for me:

    http://mel.melaxis.com/devblog/2005/08/06/localizing-php-web-sites-using-gettext/

    It requires minimal of insight, but it illustrates the idea very well....
    See more | Go to post

    Leave a comment:


  • hgeithus
    replied to Multilingual website
    in PHP
    Thank you. I'll look into it right away :)
    See more | Go to post

    Leave a comment:


  • hgeithus
    started a topic Multilingual website
    in PHP

    Multilingual website

    Hi.

    I want to create a multilingual website (english, german and norwegian). And I know a little PHP and MySQL. How should I approach this? Should I store the text in different databases? I don't know how to do this in a good way, that makes it easy to maintain.

    Any help is welcome. It would be very interesting to hear from someone who has made a similar system before :)
    See more | Go to post
No activity results to display
Show More
Working...