• 28-07-2010, 17:10:41
    #1
    elimde bir flash vitrin var normal halinde iken çalışır vaziyette
    bunu wordpress sitemin index kısmına ekledim (Yine çalışıyordu)

    Ardında resim url lerinin verildiği xml dosyasını açtım (aşağıdaki)

    xml dosyasını
    <?xml version="1.0"?> 
    <Banner 
    	bannerWidth=""
    	bannerHeight=""
    
    	textSize="14"
    	textColor=""
    	textAreaWidth=""
    	textLineSpacing="0"	
    	textLetterSpacing="-0.5"	
    	textMarginLeft="12"
    	textMarginBottom="5"
    	
    	transitionType="1"
    	transitionDelayTimeFixed="2" 
    	transitionDelayTimePerWord=".5"
    	transitionSpeed="8"
    	transitionBlur="yes"
    	transitionRandomizeOrder="no"	
    	
    	showTimerClock="yes"
    	showBackButton="no"
    	showNumberButtons="yes"
    	showNumberButtonsAlways="no"
    	showNumberButtonsHorizontal="no"
    	showNumberButtonsAscending="yes"
    	autoPlay="yes"
    	
    	>
    	
    	<item image="banner_images/image1.jpg" 
    		link="http://www.google.co.in/search?hl=en&q=1"
    		target="_blank"
    		textBlend="no"><![CDATA[XML DRIVEN CAPTION.<BR>Adjustable Size, <font color='#FFCC00'>Color</font> with ability to add <a href='http://www.google.com' target='_blank'><font color='#CCFF66'>Hyper Links</font></a>. 
    	]]></item>
    
    	<item image="banner_images/image2.jpg"
    		link="http://www.google.co.in/search?hl=en&q=2"
    		target="_blank"
    		textBlend="no"><![CDATA[Adjustable LINE SPACING, LETTER SPACING and caption WIDTH through XML.
    	]]></item>
    
    	<item image="banner_images/image3.swf"
    		link="http://www.google.co.in/search?hl=en&q=3"
    		target="_blank"
    		textBlend="no"><![CDATA[POSSIBLE TO LOAD SWF FILES. Animations can go inside the blur area.
    	]]></item>
    
    	<item image="banner_images/image4.jpg"
    		link="http://www.google.co.in/search?hl=en&q=4"
    		target="_blank"
    		textBlend="yes"><![CDATA[This text made to BLEND with background. For each caption, you can enable / disable this option through XML.
    	]]></item>
    
    	<item image="banner_images/image5.jpg"
    		link="http://www.google.co.in/search?hl=en&q=5"
    		target="_blank"
    		textBlend="no"><![CDATA[Adjustable TRANSITION SPEED and DELAY TIME.
    	]]></item>
    
    	<item image="banner_images/image6.jpg"
    		link="http://www.google.co.in/search?hl=en&q=6"
    		target="_blank"
    		textBlend="no"><![CDATA[You can choose embedded text or normal text.
    	]]></item>	
    	
    	
    </Banner>







    Aşağıdaki gibi düzenledim

    <?xml version="1.0"?> 
    <Banner 
    	bannerWidth=""
    	bannerHeight=""
    
    	textSize="14"
    	textColor=""
    	textAreaWidth=""
    	textLineSpacing="0"	
    	textLetterSpacing="-0.5"	
    	textMarginLeft="12"
    	textMarginBottom="5"
    	
    	transitionType="1"
    	transitionDelayTimeFixed="2" 
    	transitionDelayTimePerWord=".5"
    	transitionSpeed="8"
    	transitionBlur="yes"
    	transitionRandomizeOrder="no"	
    	
    	showTimerClock="yes"
    	showBackButton="no"
    	showNumberButtons="yes"
    	showNumberButtonsAlways="no"
    	showNumberButtonsHorizontal="no"
    	showNumberButtonsAscending="yes"
    	autoPlay="yes"
    	
    	>
    	
    
    	
    <?php $kategorison = new WP_Query("cat=1&showposts=4"); while($kategorison->have_posts()) : $kategorison->the_post();?>
    
    
    
    
    
    
    	<item image="<?php echo resimgoster() ?>"
    		link="<?php the_permalink() ?>"
    		target="_blank"
    		textBlend="no"><![CDATA[<?php the_title(); ?>
    	]]></item>	
                      
            
    
    <?php endwhile; ?>
    
    	
    	
    
    
    
    	
    	
    </Banner>

    Bu şekilde olunca çalışmadı

    <?php echo resimgoster() ?>
    fonksyonu normalde kategorimdeki resim dosyalarının url adreslerini çekiyor...

    Sorunun nerede olduğunu bilen varmı ?
  • 28-07-2010, 17:14:09
    #2
    Kimlik doğrulama veya yönetimden onay bekliyor.
    Dosya uzantısını .xml olarak mı kayıt ettiniz .php olarak mı?
  • 28-07-2010, 17:18:09
    #3
    Prof.Hüko adlı üyeden alıntı: mesajı görüntüle
    Dosya uzantısını .xml olarak mı kayıt ettiniz .php olarak mı?
    .xml olarak kayıtlı ancak bu xml dosyasının nereden çekildiğini bilmediğim için malesef aadında değişiklik yapamadım isterseniz upload ediyim vitrini
  • 28-07-2010, 17:19:54
    #4
    .htaccess dosyasına şunları yapıştırırsanız çalışması gerek (emin değilim)

    AddHandler application/x-httpd-php .xml
     
    AddType application/x-httpd-php .xml
    çünkü .xml de php çalışmaz.
  • 28-07-2010, 17:30:24
    #5
    Ekledim ancak görünürde bir değişiklik olmadı

    Yeni Flash vitrin dosyası

    peki xmlnin çekildiği dosyayı bulma imkanımız varmı ?
  • 28-07-2010, 17:59:05
    #6
    veriğim kodu şimdi ben denedim, localhost'umda çalıştı. doğru yaptığınızdan emin misiniz?
  • 28-07-2010, 18:06:45
    #7
    .htaccess dosyası şuan


    # BEGIN WordPress
    
    AddHandler application/x-httpd-php .xml
     
    AddType application/x-httpd-php .xml  
    
    # END WordPress
    şeklinde

    dediğim gibi upload ettiğim dosta data.xml dosyasını içeriyor bu dosyanın çekildiği adresi bulursam yazmak istediğim php kodları oraya girebilirim.

    rahatsız olmazsanız msn ile görüşelim pm atarsanız?