User Profile

Collapse

Profile Sidebar

Collapse
PHPstarter
PHPstarter
Last Activity: Jun 14 '12, 11:45 AM
Joined: Jun 30 '09
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • [jQuery] hide all other elements except the one selected

    Hello!

    I'm trying to write a jquery function that can be used on a select tag and run when an onchange has occured.

    The idea is that the option elements have values of classnames, which the jquery script will show/hide depending on the value.

    I want to be able to .hide() all other elements in the list, except for the one selected, which should run .show(), but I am unable to get it working at all.
    ...
    See more | Go to post

  • PHPstarter
    started a topic CSS glitch in FireFox with opacity?

    CSS glitch in FireFox with opacity?

    Heya. I've been making an interface which can be modified by setting the opacity level. The problem is that whenever opacity is set.

    Basically the error is a blurred white border to the top and left side, nowhere else (only on the outermost, dark parts of the layout).

    The error disappears when the opacity attribute is removed, but randomly appears whenever opacity is set - and it doesnt matter what the opacity level is....
    See more | Go to post
    Last edited by PHPstarter; Nov 18 '11, 08:25 PM. Reason: added css snippet

  • PHPstarter
    started a topic Accessing remote file when ports are disabled?
    in PHP

    Accessing remote file when ports are disabled?

    Hi guys.

    I have a problem!

    I have a web-server and a game server.
    I would like to manage server-related files through my website, but the website host has only port 80 open.

    I've tried a few angles with PHP to try do this, but the connection is ultimately blocked.

    Is there any way to do this? PHP or not, I just want to access some files, it's my own server and I have the correct user...
    See more | Go to post

  • PHPstarter
    started a topic Reading large log files
    in PHP

    Reading large log files

    Hi guys.

    Im creating a log-reader online for my game server admins, so that I won't have to give FTP access etc.

    The files are from 30-60M MB max in size and I have a working reader atm, but it's not perfect and it slows down fast.

    In the middle of the file reading, Im working with lines to replace or add HTML (and some kind of filter for different in-game chat types (a lot of IF and StriStr operations...
    See more | Go to post

  • PHPstarter
    replied to str_replace and include() together
    in PHP
    Thanks for your reply. It might work, but what I was looking for is to replace a part of a larger text, into a file include.

    I have a script that handles this 'BB Code' before it's made visible to the user, so it wouldn't work to include it right there.

    example:
    Code:
    $content = str_replace("[file]2[/file]", include(file2.php), $content);
    See more | Go to post

    Leave a comment:


  • PHPstarter
    started a topic str_replace and include() together
    in PHP

    str_replace and include() together

    Hi guys.

    Here is my problem:

    I have a php file which is associated by a number/ID.

    together with BB Code my goal is to have the BB Code transfer the tags with the ID into an include of the file.

    I don't think I can use file_get_conten ts because there is PHP scripts inside the file.

    example: [file]2[/file]
    = include("file_w ith_id_2");

    But I have...
    See more | Go to post

  • PHPstarter
    started a topic Include problem with ignored PHP
    in PHP

    Include problem with ignored PHP

    Hi guys. Not sure what I should have called this problem, but anyways, here is my problem:

    I have BB code such as [mid]3[/mid].

    This should replace this BB Code with a Module, loading content with ID 3.

    However, the module 'shell' is a seperate file, so when I try to replace [mid]3[/mid] with a file include, all the PHP code inside the module shell is appearing as regular text, making the Module useless....
    See more | Go to post

  • PHPstarter
    replied to Find next Monday
    in PHP
    Awsome it works :)

    thank you
    (.............. ............)
    See more | Go to post

    Leave a comment:


  • PHPstarter
    started a topic Find next Monday
    in PHP

    Find next Monday

    Hi guys.

    Given I have received the day, month and year from an input form - How can I find the next monday from that given date?

    $day = 1 to 31
    $month = 01 to 12
    $year = 2011

    strtotime("next Monday"), but how do I create a date out of the variables above?

    Thanks
    See more | Go to post

  • Sounds like a good idea, tracking the last activity by checking if it's within a couple of seconds.
    I can do that with mysql I guess :)
    See more | Go to post

    Leave a comment:


  • What if the user doesn't "Log out", but simply closes the site/browser.

    How can I handle that?
    (any form of session timeout and a global 'check if OtherUser has running session' ?)
    See more | Go to post

    Leave a comment:


  • PHPstarter
    started a topic How to check if a different user is logged in?
    in PHP

    How to check if a different user is logged in?

    Hiya guys.

    While being logged in, i want to check wether a different user is also logged in.
    Now this is easy done with databases, which I am familiar with and sessions, but the problem however is:

    How can I tell when the user is NOT online?
    I can't view someone else's sessions I assume.

    Thanks
    See more | Go to post

  • PHPstarter
    replied to Insertion of BB codes
    Never mind, I solved it............. :)
    Thanks
    See more | Go to post

    Leave a comment:


  • PHPstarter
    replied to Insertion of BB codes
    Thank you, I found a solution in one of those threads.
    However, as my BB codes are repasted, the original, selected text is also repasted. so it looks like this:
    [b.] hello [/b.] hello
    instead of:
    [b.] hello [/b.]

    Is there any easy way to remove the selected text from a textarea? :)
    See more | Go to post

    Leave a comment:


  • PHPstarter
    started a topic Insertion of BB codes

    Insertion of BB codes

    Hi, I'm pretty new to javascript, but I managed to make a simple BB Code script which allows me to paste stuff like [b.] text [/b.] (without the . )into my textarea by button.
    The problem is that this will always get inserted at the bottom/last in the text field, and not where the mouse is focused.

    How can I make it paste these codes where my mouse is targeted?
    See more | Go to post

  • PHPstarter
    replied to How to make div expand with content?
    The width is for the actual project. :)

    I have made a fix a the moment.. I've merged the 2 border images with the middle section so that it's an image being stretched (the images were made for stretchyness anyway).
    See more | Go to post

    Leave a comment:


  • PHPstarter
    replied to How to make div expand with content?
    Thanks guys.
    So if it's impossible, what do people do in this situation?
    Merge the 3 into one, wide image that's being stretched, or the use of tables?

    I tried Dormilich's method and I didn't quite make it work, though I'm still at it.
    See more | Go to post

    Leave a comment:


  • PHPstarter
    started a topic How to make div expand with content?

    How to make div expand with content?

    I have 3 divs on a line, surrounded by a another div(wrapper?) The middle section is content, while the div to the left and right work as borders (images). The middle section expands as should, but the left and right won't follow it.

    Code:
    	<div id="frame_wrapper">
    	  	<div id="frame_left"></div>
    	  	<div id="frame_middle">
    
                    content bla bla
    ...
    See more | Go to post
    Last edited by Niheel; Dec 10 '10, 09:14 PM.

  • PHPstarter
    replied to Input over positioned div
    I think I fixed it.. Had to put the buttons in a seperate div in another location.. Lead to some more work aligning the background but it works so far.

    Thanks
    See more | Go to post

    Leave a comment:


  • PHPstarter
    started a topic Input over positioned div

    Input over positioned div

    Hi guys.

    Just wanna know if this is a known problem for anyone.

    I have placed some background images as divs using css and positioning.
    They are all placed with relative.

    Over them, I have input buttons, what are links for navigation. But they don't work as long as they are positioned over the DIVs there.
    This happens if they are assigned with position relative or nothing.
    See more | Go to post
No activity results to display
Show More
Working...