91
m0nty
Re: Animated GIFs in Banner
  • 2006/11/1 4:59

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


banner works fine, just viewed your site.

the banner was changing every 2 seconds or so.



92
m0nty
Re: TNG intergration for Xoops .....why not ..... other CMS have them !
  • 2006/11/1 4:12

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


Quote:

Doesn't seem XOOPS has quite yet caught up with the 21st Century.


i disagree. i think it's all the ancestors from the genes that haven't caught up with the 21st century..



93
m0nty
Re: WF-Channel 1.07 link to us section doesnt "work" with .swf banners.
  • 2006/11/1 3:59

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


ok, it's not as simple as 1 would think.. but i have managed to get it to upload and display swf images.

there are some issues with it tho, once you have uploaded the swf file, you can then select the file in the select list on the form.. but the image will not display in the admin page.. although if you have selected the correct file from the drop down list, then it will show on the link to us page..

i haven't quite figured out yet how to make 'onchange='showImgSelected()' show an swf file yet.

other than the above issue, it works ok..

there's a BUT tho..

because wf-channel uses XOOPS core class uploader & xoopslists.php then you need to edit 2 of the XOOPS core files.. 1 edit is to remove the @getimagesize check for .swf extensions, otherwise an error: 'Suspicious image upload refused' is displayed. the other edit is to allow function getImgListAsArray() to list .swf extensions in the dropdown box.

now to the edits >

open xoops_root/class/uploader.php

find:

$ext strtolowersubstrstrrchr$this->savedDestination '.' ) , ) ) ;
        if( 
in_array$ext $this->imageExtensions ) ) {
            
$info = @getimagesize$this->savedDestination ) ;
            if( 
$info === false || $this->imageExtensions[ (int)$info[2] ] != $ext ) {
                
$this->setErrors'Suspicious image upload refused' );
                @
unlink$this->savedDestination );
                return 
false;
            }
        }
        @
chmod($this->savedDestination$chmod);
        return 
true;


replace with

$ext strtolowersubstrstrrchr$this->savedDestination '.' ) , ) ) ;
        if(
$ext !== "swf") {
            if( 
in_array$ext $this->imageExtensions ) ) {
                
$info = @getimagesize$this->savedDestination ) ;
                if( 
$info === false || $this->imageExtensions[ (int)$info[2] ] != $ext ) {
                    
$this->setErrors'Suspicious image upload refused' );
                    @
unlink$this->savedDestination );
                    return 
false;
                }
            }
        }
        @
chmod($this->savedDestination$chmod);
        return 
true;


save & close

open xoops_root/class/xoopslists.php

find

function getImgListAsArray($dirname$prefix="")
        {
            
$filelist = array();
            if (
$handle opendir($dirname)) {
                while (
false !== ($file readdir($handle))) {
                    if ( 
preg_match("/(.gif|.jpg|.png)$/i"$file) ) {
                        
$file $prefix.$file;
                        
$filelist[$file] = $file;
                    }
                }
                
closedir($handle);
                
asort($filelist);
                
reset($filelist);
            }
            return 
$filelist;
        }


replace with

function getImgListAsArray($dirname$prefix="")
        {
            
$filelist = array();
            if (
$handle opendir($dirname)) {
                while (
false !== ($file readdir($handle))) {
                    if ( 
preg_match("/(.gif|.jpg|.png|.swf)$/i"$file) ) {
                        
$file $prefix.$file;
                        
$filelist[$file] = $file;
                    }
                }
                
closedir($handle);
                
asort($filelist);
                
reset($filelist);
            }
            return 
$filelist;
        }


save & close.

open wfchannel/index.php

find:

$linktous['banner'] = ($banner == "blank.png" || !$banner) ? '' $myts->htmlSpecialChars($banner);


replace with

$ext ltrim(strrchr($banner'.'), '.');
    if (
$ext != 'swf')
    {
        
$linktous['is_swf'] = 0;
        
$linktous['banner'] = ($banner == "blank.png" || !$banner) ? '' $myts->htmlSpecialChars($banner);
    }
    else
    {
        
$linktous['is_swf'] = 1;
        
$linktous['banner'] = $myts->htmlSpecialChars($banner);
    }


save & close

open wfchannel/admin/upload.php

find:

$allowed_mimetypes = array('image/gif''image/jpeg''image/pjpeg''image/x-png');


replace with

$allowed_mimetypes = array('image/gif''image/jpeg''image/pjpeg''image/x-png''application/x-shockwave-flash');


save & close

open wfchannel/templates/wfchannel_linktous.html

find:

<{if $linktous.banner }>
    <
p><div align"left" class = "itemHead"><b><{$lang_displaybanner}></b></div></p>
    <
p><div align"left"><b><{$lang_bannerexample}></b></div>
    <
div><img src='<{$xoops_url}>/<{$linktous.path}>/<{$linktous.banner}>' name='image' id='image' alt='<{$linktous.sitename}>' /></div></p>
    <
div align"left"><{$lang_displayscript}></div>
    <
textarea name='lienbt' cols='70' rows='4' wrap='VIRTUAL'><a href='<{$xoops_url}>' target='_blank'><img src='<{$xoops_url}>/<{$linktous.path}>/<{$linktous.banner}>' alt='<{$linktous.sitename}>'></a></textarea>
<{/if}>


replace with

<{if $linktous.banner && $linktous.is_swf == 0}>
    <
p><div align"left" class = "itemHead"><b><{$lang_displaybanner}></b></div></p>
    <
p><div align"left"><b><{$lang_bannerexample}></b></div>
    <
div><img src='<{$xoops_url}>/<{$linktous.path}>/<{$linktous.banner}>' name='image' id='image' alt='<{$linktous.sitename}>' /></div></p>
    <
div align"left"><{$lang_displayscript}></div>
    <
textarea name='lienbt' cols='70' rows='4' wrap='VIRTUAL'><a href='<{$xoops_url}>' target='_blank'><img src='<{$xoops_url}>/<{$linktous.path}>/<{$linktous.banner}>' alt='<{$linktous.sitename}>'></a></textarea>
<{elseif 
$linktous.banner && $linktous.is_swf == 1}>
    <
p><div align"left" class = "itemHead"><b><{$lang_displaybanner}></b></div></p>
    <
p><div align"left"><b><{$lang_bannerexample}></b></div>
    <
div>
        <
object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id=index width="468" height="60" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,65,0">
        <
param name="movie" value="<{$xoops_url}>/<{$linktous.path}>/<{$linktous.banner}>" />
        <
param name="quality" value="high" />
        <
param name="play" value="true" />
        <
param name="loop" value="true" />
        <
param name="bgcolor" value="#ffffff" />
        <
embed src="<{$xoops_url}>/<{$linktous.path}>/<{$linktous.banner}>" width="468" height="60" bgcolor="#f7f187" quality="high" loop="true"  type="application/x-shockwave-flash" pluginspace="http://www.macromedia.com/go/getflashplayer" />
        </
object>
    </
div></p>
    <
p><div align"left"><{$lang_displayscript}></div>
    <
div><textarea name='lienbt' cols='70' rows='4' wrap='VIRTUAL'><a href='<{$xoops_url}>' target='_blank'><img src='<{$xoops_url}>/<{$linktous.path}>/<{$linktous.banner}>' alt='<{$linktous.sitename}>'></a></textarea></div></p>
<{/if}>


save & close

goto XOOPS modules admin and update the wfchannel module. then clear templates_c folder.

now goto wfchannel admin and then upload settings.. now go through the process of uploading your image file.. then goto the link settings page.. scroll down to the banner section and select the swf file you just uploaded from the list.. (ignore the problem of the swf not displaying when you select it)

once done, you should now be able to see the new swf banner on the link to us page.



94
m0nty
Re: WF-Channel 1.07 link to us section doesnt "work" with .swf banners.
  • 2006/10/31 23:16

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


you mean this banner?

Resized Image



95
m0nty
Re: WF-Channel 1.07 link to us section doesnt "work" with .swf banners.
  • 2006/10/31 22:34

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


hmmm

ok i know what wf-channel is etc.. but i've never used it or even installed it before, so bare with me.

do you have a link where I can see it working? and show me where you want the flash banner inserting? (link to us?)

getting wf-channel to be able to upload a .swf file shouldn't be difficult, it's probably the easy part.

the most awkward part will be modifying the code to actually be able to display the .swf file. as with a normal image file, it's just a plain old <img src=""> tag, but with .swf you need to embed the player source code into the page. in that case, you need some way of determining if the file is a reg image (.jpg, .gif or .png) or whether it's .swf, once that's determined you can tell the template to either place the image in a normal <img src=""> tag or whether it needs to be placed in the flash source.



96
m0nty
Re: A simple format using the powerful Xoops engine
  • 2006/10/31 21:36

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


you can turn the audio off by clicking the stop button at top right of the header logo.

nice site, very nice looking theme.



97
m0nty
Re: Legends of Mernac Customizations.
  • 2006/10/31 21:33

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


that theme is awesome :) great work.

can tell there's a lot of work gone into it.



98
m0nty
Re: Do I need to stop apache if I want to stop and restart mysql?
  • 2006/10/31 15:51

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


you should be able to start/stop MySQL without having to stop apache.

only time you really need to restart apache is if you have made changes to the apache config or php.

of course XOOPS will not work until MySQL has been restarted, and DB access for XOOPS should be fine if all you're doing is resetting the MySQL root password. I'm presuming your XOOPS db has a different username & password than the root uname/password.



99
m0nty
Re: Images in header?
  • 2006/10/30 19:36

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


it's probably html..

just edit theme.html and style.css..

for more help read the FAQ section on theme & templates.



100
m0nty
Re: Javascript banner not working
  • 2006/10/30 19:33

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


u can have more than 1 javascript in the head..

just place it after the </script> that's already there.




TopTop
« 1 ... 7 8 9 (10) 11 12 13 ... 289 »



Login

Who's Online

283 user(s) are online (195 user(s) are browsing Support Forums)


Members: 0


Guests: 283


more...

Donat-O-Meter

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

Latest GitHub Commits