201
mrphilong
Mowaffak
  • 2007/8/2 23:40

  • mrphilong

  • Quite a regular

  • Posts: 351

  • Since: 2006/7/14


Hi Mowaffak,

Found an error with a blank page when click user.php or userinfo.php?uid=xx when disable xcgal2 there is no problem. COuld you please look into this for me, many thanks.



202
mrphilong
Re: Koivi & Lexikon
  • 2007/8/2 23:36

  • mrphilong

  • Quite a regular

  • Posts: 351

  • Since: 2006/7/14


anyone ?



203
mrphilong
Re: x_movie support site ?
  • 2007/8/2 23:33

  • mrphilong

  • Quite a regular

  • Posts: 351

  • Since: 2006/7/14


hi optikool,

Glad you take on the project. I found a newer version of x_movie X_movie v1.7 - Custom v2.5.10 here, it would be nice to hookup with them to develope the module.

I have a little problem on your version as well as the 2.5.10, when clicking

Highest Rated = I get => _MI_X_MOVIE_SMNAME3

Most Viewed = I get => _MI_X_MOVIE_SMNAME2

Submit A Film = I get => _MI_X_MOVIE_SMNAME1

displayed in the top left hand side of the browser. I have change my theme to the default but didn't help. Here is the link to my website.



204
mrphilong
Re: random img => random audio
  • 2007/7/29 4:04

  • mrphilong

  • Quite a regular

  • Posts: 351

  • Since: 2006/7/14


I found a php script that would display random image in a folder and would like to convert it to randomly select any file to use in:
<{php}> if ($_SERVER['REQUEST_URI'] == '/' && !isset( $_COOKIE['alreadycame'] ) ) {
    echo 
'';
    
setcookie'alreadycame''anything' );
    }
<{/
php}>


here is a script for random image, could someone with the knowledge of php please change it so it would pickup any file type in the folder.

/*

    AUTOMATIC IMAGE ROTATOR
    Version 2.2 - December 4, 2003
    Copyright (c) 2002-2003 Dan P. Benjamin, Automatic, Ltd.
    All Rights Reserved.

    http://www.hiveware.com/imagerotator.php
    
    http://www.automaticlabs.com/
    
    
    DISCLAIMER
    Automatic, Ltd. makes no representations or warranties about
    the suitability of the software, either express or
    implied, including but not limited to the implied
    warranties of merchantability, fitness for a particular
    purpose, or non-infringement. Dan P. Benjamin and Automatic, Ltd.
    shall not be liable for any damages suffered by licensee
    as a result of using, modifying or distributing this
    software or its derivatives.
    
    
    ABOUT
    This PHP script will randomly select an image file from a
    folder of images on your webserver.  You can then link to it
    as you would any standard image file and you'll see a random
    image each time you reload.
    
    When you want to add or remove images from the rotation-pool,
    just add or remove them from the image rotation folder.


    VERSION CHANGES
    Version 1.0
        - Release version
    
    Version 1.5
        - Tweaked a few boring bugs
    
    Version 2.0
        - Complete rewrite from the ground-up
        - Made it clearer where to make modifications
        - Made it easier to specify/change the rotation-folder
        - Made it easier to specify/change supported image types
        - Wrote better instructions and info (you're them reading now)
        - Significant speed improvements
        - More error checking
        - Cleaner code (albeit more PHP-specific)
        - Better/faster random number generation and file-type parsing
        - Added a feature where the image to display can be specified
        - Added a cool feature where, if an error occurs (such as no
          images being found in the specified folder) *and* you're
          lucky enough to have the GD libraries compiled into PHP on
          your webserver, we generate a replacement "error image" on
          the fly.
        
    Version 2.1
        - Updated a potential security flaw when value-matching
          filenames

    Version 2.2
        - Updated a few more potential security issues
        - Optimized the code a bit.
        - Expanded the doc for adding new mime/image types.

        Thanks to faithful ALA reader Justin Greer for
        lots of good tips and solid code contribution!


    INSTRUCTIONS
    1. Modify the $folder setting in the configuration section below.
    2. Add image types if needed (most users can ignore that part).
    3. Upload this file (rotate.php) to your webserver.  I recommend
       uploading it to the same folder as your images.
    4. Link to the file as you would any normal image file, like this:

            

    5. You can also specify the image to display like this:

            
        
        This would specify that an image named "gorilla.jpg" located
        in the image-rotation folder should be displayed.
    
    That's it, you're done.

*/




/* ------------------------- CONFIGURATION -----------------------


    Set $folder to the full path to the location of your images.
    For example: $folder = '/user/me/example.com/images/';
    If the rotate.php file will be in the same folder as your
    images then you should leave it set to $folder = '.';

*/


    
$folder '.';


/*    

    Most users can safely ignore this part.  If you're a programmer,
    keep reading, if not, you're done.  Go get some coffee.

    If you'd like to enable additional image types other than
    gif, jpg, and png, add a duplicate line to the section below
    for the new image type.
    
    Add the new file-type, single-quoted, inside brackets.
    
    Add the mime-type to be sent to the browser, also single-quoted,
    after the equal sign.
    
    For example:
    
    PDF Files:

        $extList['pdf'] = 'application/pdf';
    
    CSS Files:

        $extList['css'] = 'text/css';

    You can even serve up random HTML files:

        $extList['html'] = 'text/html';
        $extList['htm'] = 'text/html';

    Just be sure your mime-type definition is correct!

*/

    
$extList = array();
    
$extList['gif'] = 'image/gif';
    
$extList['jpg'] = 'image/jpeg';
    
$extList['jpeg'] = 'image/jpeg';
    
$extList['png'] = 'image/png';
    

// You don't need to edit anything after this point.


// --------------------- END CONFIGURATION -----------------------

$img null;

if (
substr($folder,-1) != '/') {
    
$folder $folder.'/';
}

if (isset(
$_GET['img'])) {
    
$imageInfo pathinfo($_GET['img']);
    if (
        isset( 
$extListstrtolower$imageInfo['extension'] ) ] ) &&
        
file_exists$folder.$imageInfo['basename'] )
    ) {
        
$img $folder.$imageInfo['basename'];
    }
} else {
    
$fileList = array();
    
$handle opendir($folder);
    while ( 
false !== ( $file readdir($handle) ) ) {
        
$file_info pathinfo($file);
        if (
            isset( 
$extListstrtolower$file_info['extension'] ) ] )
        ) {
            
$fileList[] = $file;
        }
    }
    
closedir($handle);

    if (
count($fileList) > 0) {
        
$imageNumber time() % count($fileList);
        
$img $folder.$fileList[$imageNumber];
    }
}

if (
$img!=null) {
    
$imageInfo pathinfo($img);
    
$contentType 'Content-type: '.$extList$imageInfo['extension'] ];
    
header ($contentType);
    
readfile($img);
} else {
    if ( 
function_exists('imagecreate') ) {
        
header ("Content-type: image/png");
        
$im = @imagecreate (100100)
            or die (
"Cannot initialize new GD image stream");
        
$background_color imagecolorallocate ($im255255255);
        
$text_color imagecolorallocate ($im0,0,0);
        
imagestring ($im255,  "IMAGE ERROR"$text_color);
        
imagepng ($im);
        
imagedestroy($im);
    }
}

?>



205
mrphilong
Re: smartfaq => smartsection
  • 2007/7/25 20:26

  • mrphilong

  • Quite a regular

  • Posts: 351

  • Since: 2006/7/14


Your script saved me hours of work! Thankyou so much.



206
mrphilong
smartfaq => smartsection
  • 2007/7/24 8:48

  • mrphilong

  • Quite a regular

  • Posts: 351

  • Since: 2006/7/14


I've got data in smartfaq that I would like to imported into smartsection, what are my choices?



207
mrphilong
Koivi & Lexikon
  • 2007/7/23 4:44

  • mrphilong

  • Quite a regular

  • Posts: 351

  • Since: 2006/7/14


I am looking for a hack for using Koivi in Lexikon. Many thanks,



208
mrphilong
Re: koivi hack for lexikon?
  • 2007/7/13 11:49

  • mrphilong

  • Quite a regular

  • Posts: 351

  • Since: 2006/7/14


Hi tcnet,

I've upgraded wordbook to lexikon and wondering if you have a hack for the koivi for the admin side, the front side hack for wordbook can be use in lexikon but not the admin side.

many thanks.



209
mrphilong
News - Display Previous & Next 5 article
  • 2007/7/9 20:48

  • mrphilong

  • Quite a regular

  • Posts: 351

  • Since: 2006/7/14


News 1.54;

Lets take an example,

News category AAA and there are 100 articles.

When reading article number 10 in category AAA, I would like to have the previous & next 5 articles displayed in a block or download underneath the current article.

thanks for reading,



210
mrphilong
Re: lexikon - help..Please

I've been looking into the above problem for awhile but couldn't find what is wrong;

Problem using IE but OK with Firefox, check it out at;

http://www.ucchau.net/modules/lexikon

while the old module Wordbook is OK on both IE & FF;

http://www.ucchau.net/modules/wordbook




TopTop
« 1 ... 18 19 20 (21) 22 23 24 ... 27 »



Login

Who's Online

186 user(s) are online (105 user(s) are browsing Support Forums)


Members: 0


Guests: 186


more...

Donat-O-Meter

Stats
Goal: AU$15.00
Due Date: Jul 31
Gross Amount: AU$0.00
Net Balance: AU$0.00
Left to go: AU$15.00
Make donations with PayPal!

Latest GitHub Commits