User Profile

Collapse

Profile Sidebar

Collapse
helraizer1
helraizer1
Last Activity: Oct 28 '09, 10:05 AM
Joined: Mar 13 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Heya pbmods,

    Yeah, I moved onto a database a while back because of this deletion and editing problem. It made the functionality of the code much easier to work with.

    It was just that I made the first incarnation of the script was for flat file, which worked perfectly until I needed to edit or delete. Hense the move to a db.

    Thanks for the response.

    Sam...
    See more | Go to post

    Leave a comment:


  • Hey pbmods!

    I have used

    [PHP]<?php

    include('gif.ph p');

    $image = imagecreatefrom png("../mychatbox/user/helraizer1.png" );


    if ( $dh = opendir ( "frames/" ) ) {

    while ( false !== ( $dat = readdir ( $dh ) ) ) {

    if ( $dat != "." && $dat != ".." ) {

    $frames...
    See more | Go to post

    Leave a comment:


  • helraizer1
    started a topic animated gifs in perl to php
    in Perl

    animated gifs in perl to php

    Hey,

    I have a PHP script that I made for an image based shoutbox with emoticons. The problem is that php GD doesn't support animated gifs, yet perl GD does. How would I make it so that I could copy the animated gifs via Perl onto the static image that I made with php? I've tried with php imagecreatefrom gif(), which produces a static image. I also tried using the GIFAnimation class from phpclasses to make an animated gif but it returns...
    See more | Go to post

  • helraizer1
    replied to GD intermittent color problem
    in PHP
    Fixed it again. xD

    Used the same technique but this time I've made it as png. That way it doesn't run out of colours on the pallete and gives the same result.

    Sam
    See more | Go to post

    Leave a comment:


  • helraizer1
    replied to GD intermittent color problem
    in PHP
    The imagecreatetrue colour only solved it for a little while, allowing one more comment of colour than before, now the comments do the same thing.

    Any ideas why when a new comment is posted, the imagecoloralloc ate fails and the comments turn black?

    supposed to be like:

    http://www.helraizer.co.uk/mychatbox/user/helraizer.gif - plain background, colours work!

    but ends up like:

    ...
    See more | Go to post

    Leave a comment:


  • helraizer1
    replied to GD intermittent color problem
    in PHP
    *bump*

    Any one got any ideas?

    The process of the background image is that when they upload it as either jpg, gif or png; it is converted to and saved a gif file.

    So I uploaded this image

    http://www.helraizer.co.uk/mychatbox...ucifer_img.gif

    which then is pulled into the code where $back == "u" the first time. It is the saved to the user's specified dimensions....
    See more | Go to post

    Leave a comment:


  • helraizer1
    started a topic GD intermittent color problem
    in PHP

    GD intermittent color problem

    Hey folks, yet again.

    [php]


    if ($back == "m") //$back is a value pulled from a db; that works perfectly.
    {
    $wid = $rowing['width'];
    $hei = $rowing['height'];
    createthumb("66 0x240background 2.gif", "./user/" . $user . "_back.gif" , $wid, $hei);

    $image = imagecreatefrom gif("./user/" . $user . "_back.gif" );
    $blue...
    See more | Go to post

  • Hey, pbmods

    Code:
    $im = imagecreatefromstring($gif->GIF);
    
    imagecopymerge($image, $im, 300, 100, 0, 0, 15, 15, 100);
    That works, only once it's merged onto the image, it's no longer animated. xD

    Is there any way to actuall merge an animated gif onto a static gif image?

    Sam
    See more | Go to post

    Leave a comment:


  • Animating gifs through PHP GD - treat as Image not Object?

    Me again :D You're going to be sick of me soon. =P

    I found the GifEncoder class on phpclasses, which creates an animated gif image from frames and echos it to the browser to show; can also save it as an image with .gif extension.

    The only problem is that I need to add the animated gif onto another image (with imagecopymerge) , however the gif image that is returned by this code in an object.

    Here is...
    See more | Go to post

  • helraizer1
    replied to pagination within image - IF problem
    in PHP
    Yeah, I realised that. Thanks for that, I made some changes; I had to use this in the end:
    [code=php]

    if (isset($filter) ) {
    imagegif($image ); // paint the image in browser
    } elseif ($page == 1) {
    imagegif($image ); // paint the image in browser
    imagegif($image , "user/" . $user . ".gif"); //export as gif file
    } else {
    // Here, $page != 1 &&...
    See more | Go to post

    Leave a comment:


  • helraizer1
    started a topic pagination within image - IF problem
    in PHP

    pagination within image - IF problem

    Hey folks,

    I have made an image-based shoutbox and now users can view older and newer message on the shoutbox depending on the $_GET['page'] - pagination - that works. However, since it's image based and can be linked in forums etc. on the Internet I only want it to save the gif image if $page == 1, so the newest shouts are saved onto the image. Yet the users can still view the other messages on site without it changing the saved...
    See more | Go to post

  • helraizer1
    replied to Preg_replace problem
    in PHP
    Hey, pbmods.

    Yeah, I'll give that a try; have a mess around with it. There are a few bugs to be ironed out of my initial code, but sometimes the emoticon will appear in the space between the text in "Ooh, I'm going to mess with :@ your system" or whatever it may be. However sometimes it appears over the 'th' in the word 'with', because it's the string position * 5.7 (trial and error, that works on the most part).
    ...
    See more | Go to post

    Leave a comment:


  • helraizer1
    replied to Preg_replace problem
    in PHP
    Hmm.. you make a good point. No, it only allows one of each..

    Any solutions?

    Sam...
    See more | Go to post

    Leave a comment:


  • helraizer1
    replied to Preg_replace problem
    in PHP
    Fixed it!

    Simply changed preg_replace to str_replace.

    Always seems to be the simplest things..

    Thanks anyway,
    Sam
    See more | Go to post

    Leave a comment:


  • helraizer1
    replied to Image Creation Using php
    in PHP
    also

    imagecopymerge

    Sam
    See more | Go to post

    Leave a comment:


  • helraizer1
    started a topic Preg_replace problem
    in PHP

    Preg_replace problem

    Hey folks and folksesses,

    I have written some code to get emoticons onto my image based shoutbox but there is quite a large bug, as there is with any code in the early stages, and I need your help to narrow it down for me.

    The idea is that the script pulls data from the database - username, colour, font and shout to print '[username] shout' onto the image. This part of the code all works perfectly. Then it looks through...
    See more | Go to post

  • Rendering emoticons onto image - two if statements conflicting

    Hi folks,

    I have an image based shoutbox which I am currently implementing emoticons onto. I have a way now for the emoticons to appear where the :D or =) etc. is on the image, but for some reason they seem to be conflicting. I shall try to explain.


    chatbox.php - only necessary code shown
    [code=php]

    $grins = array('=D', "=d", ":d", ":D");
    foreach...
    See more | Go to post
    Last edited by helraizer1; May 30 '08, 02:42 PM. Reason: changed title

  • You did have the same code I was testing, only with that 1 minor change, but as I said from the beginning that part of the code executed; with the <1000 or without it. So the problem was within the latter part, which you had exactly what I was using. =)

    The row source/control source part has fixed it now so it works perfectly.

    Sam
    See more | Go to post

    Leave a comment:


  • I usually do use VBA but for this I have to use Macros. The 1'000 part is using exactly the same macro only I have

    Code:
    IsNull([Bid]) Or [Bid]<1000
    Which works fine.

    I think I've sorted the problem now though. The values for each field was found by a query linked to the rowsource of the fields. I've now made the Control source as DLookUp or DMin to get the same values. Now each step of...
    See more | Go to post

    Leave a comment:


  • Ok fair point.

    Let's say I have a lot for a 1 bedroom apartment, when the user chooses this (from a combo box, 'Lot') the values of 'Min', 'Reserve' change accordingly.

    So they choose 1 bedroom apartment and the value appears in Min as £109,400 and Reserve as £90,000.

    There is then a text box for them to enter their bid in, which is named 'Bid'. When they press the "Make Bid!" button it should...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...