İyinet'e Hoşgeldiniz!

Türkiye'nin En Eski Webmaster Forum'una Hemen Kayıt Olun!

Kayıt Ol!

PHP XML Replace

Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...

Fabre

0
İyinet Üyesi
Katılım
24 Mayıs 2011
Mesajlar
200
Reaction score
1
Konum
İstanbul
Arkadaslar sitemde ki playerde xml ile video oynatıyorum. Bu xml dosyasında bir kod degistirmem lazım. REPLACE olayını nasıl yaparım yada yapılıyormu öle bisi..

Ekleme: Cevap verecek biri yokmu.. 14 kez okunmus ama kimse birsey yazmamıs.

Ekleme: Gülcel ve acil arkadaslar..
 

sempaty

1
İyinet Üyesi
Katılım
25 Şubat 2005
Mesajlar
3,824
Reaction score
19
Konum
hawaii. ama sanal tur.
konuya bakıp cevap vermemeleri, ya sorunu tam anlamamış olmalarındandır ya da makale tarzı bir başlık sanıp girmelerinden olabilir. neyse detaylı bilgi vermelisin, hangi dosyalar söz konusu. mümkünse url ve/veya aldığın hatalar filan.

bu kadar detay için ben de girip cevap yazmazdım özelden yardım istediğiniz için yazıyorum. detay yazarsanız bilgi verirseniz eminim benden ilgilenemesem de cevap verecek olanlar çıkacaktır.
 
E

Erturk

Misafir
XML dosyanızın içeriğini kendiniz mi belirliyorsunuz yoksa otomatik biryerden mi oluşturuyorsunuz?
 
E

Erturk

Misafir
Şu anki aktif XML dosyanız aşagıdaki şekilde. Peki değiştirmek istediğiniz yeni hali nedir acaba? Onuda belirtir misiniz? Nereleri değiştirmek istiyorsunuz yani ?

PHP:
<?xml version="1.0" encoding="UTF-8"?>

<settings version="3.1.0">

	<options>

		<!--

			autoResize:

				- true: the video player will have the sizes provided in the embedded code

				- false: the video player will have the sizes that are set with the "width" and "height" parameters (usually it is used when you want to load the video player in another swf file)

			width: the video player's width (it is used only if autoResize is set to "false")

			height: the video player's height (it is used only if autoResize is set to "false")

		-->

		<playerSize

			autoResize="true"

			width="500"

			height="350"

		/>

		

		<!--

			hide: set it to true if you want to autohide the controls bar

			hideDelay: the amount of time after the controls bar will start to hide

			space: the space between buttons when you separate them with "|"

			display:

				- a row of buttons (i.e. previous, playPause, stop, next, progress, time, volume, showHideCaption, expandCollapse, fullScreen and share)

				- use "|" to separate the buttons with the amount from the space parameter or "," for no space

			sound: set it to "true" if you want to hear a sound when you hover a button

			showMiddlePlayBtn: set it to true if you want to display a middle play button when the video is paused or stopped

			time: shows remaining time in one of the 3 different formats:

				- type1: on click it switches between elapsed time and remaining time

				- type2: display the elapsed time on the left of progress bar and the total time on the right of the progress bar

				- type3: display elapsed/total times

			expanded: set it to "true" if you want the player to start in expanded mode (with the description hidden)

		-->

		<controlsBar

			hide="true"

			hideDelay="10"

			space="10"

			display="|previous,playPause,stop,next|progress,time|volume|showHideCaption,expandCollapse,fullScreen|"

			sound="false"

			showMiddlePlayBtn="true"

			time="type1"

			expanded="true"

		/>

		

		<!--

			buffer: the buffer size, in seconds, for the videos

			keepAspectRatio: set it to "false" if you want to stretch the video so it will fit the whole display area

			autoLoad: set it to "true" if you want to start loading the video automatically when the player is loaded

			autoPlay: set it to "true" if you want to start playing the video automatically when the player is loaded

			

			Note: playContinuously, loop and random working together

			playContinuously: set it to "true" if you want the player to jump to the next video automatically

			loop: set it to "true" if you want the player to never stop playing your videos

			random: set it to "true" if you want to play the videos in random mode

		-->

		<videos

			buffer="10"

			keepAspectRatio="true"

			autoLoad="true"

			autoPlay="false"

			playContinuously="true"

			loop="false"

			random="false"

		/>

		

		<!--

			default: the default value, from 0 to 100, of the volume

			format: choose in which format do you want to display the volume bar: "vertical" or "horizontal"

		-->

		<volume

			default="100"

			format="horizontal"

		/>



		<!--

			visible: set it to "true" if you want to display an watermark for your videos

			position: the position of the watermark (i.e. TL, TR, BL or BR)

		-->

		<watermark

			visible="true"

			position="BR"

		/>



		<!--

			buttonsToolTip: set it to "true" if you want to display a toolTip when you hover the buttons

			timeToolTip: set it to "true" if you want to display a toolTip with the time when you hover the progress bar

			hideDelay: the value after which the tooltip will start to disappear when you mouse-out from the element

		-->

		<toolTip

			buttonsToolTip="true"

			timeToolTip="true"

			hideDelay="2"

		/>



		<!--

			spaceKey: set it to "true" if you want to play/pause the video when you press the spacebar key

			click: set it to "true" if you want to play/pause the video when you click on the video area

			doubleClick: set it to "true" if you want to switch between fullScreen/normal mode when you double-click on the video area

		-->

		<listeners

			spaceKey="true"

			click="true"

			doubleClick="true"

		/>



		<!--

			hide: set it to "true" if you want the mouse cursor to disappear after an amount of seconds of inactivity

			hideDelay: set the number of seconds after which you want the mouse cursor to disappear

		-->

		<cursor

			hide="true"

			hideDelay="5"

		/>

		

		<!--

			position: set the playlist position (i.e. "B", "T", "L" or "R")

			size: the playlist's size

			hide: set it to "true" if you the playlist to autohide after a while

			hideType: the hide effect (i.e. "slide" or "fade")

			hideDelay: set the amount of time, in seconds, after which the playlist will start hiding

			thumbWidth: the thumbnail's width

			thumbHeight: the thumbnail's height

			thumbPadding: the thumbnail's space between the videos from the playlist

		-->

		<playlist

			position="B"

			size="70"

			hide="true"

			hideType="slide"

			hideDelay="4"

			thumbWidth="70"

			thumbHeight="50"

			thumbPadding="10"

		/>

		

		<!--

			visible: set it to true if you want to display the description area

			size: set the size of the description area

		-->

		<description

			visible="true"

			size="75"

		/>



		<!--

			defaultQuality: set the quality of the YouTube videos (i.e. small, medium, large, hd720, hd1080 or highres)

		-->

		<youTube

			defaultQuality="hd720"

		/>

	</options>

	

	<colors>

		<!--

			value: the video player's background color

		-->

		<playerBackground

			value="0x000000"

		/>

		

		<!--

			background: the preloader's background color

			bckAlpha: the preloader's background alpha

			text: the preloader's text color

			circle: the preloader's circle color

		-->

		<preloader

			background="0x000000"

			bckAlpha="70"

			text="0xCCCCCC"

			circle="0x559BB5"

		/>

		

		<!--

			arrowNormal: the middle play button's arrow color for the normal state

			bckNormal: the middle play button's background color for the normal state

			alphaNormal: the middle play button's transparency for the normal state

			arrowOver: the middle play button's arrow color for the over state

			bckOver: the middle play button's background color for the over state

			alphaOver: the middle play button's transparency for the over state

			arrowDown: the middle play button's arrow color for the down state

			bckDown: the middle play button's background color for the down state

			alphaDown: the middle play button's transparency for the down state

		-->

		<middlePlayBtn

			arrowNormal="0xFFFFFF"

			bckNormal="0x000000"

			alphaNormal="60"

			arrowOver="0xFFFFFF"

			bckOver="0x000000"

			alphaOver="80"

			arrowDown="0xFFFFFF"

			bckDown="0x000000"

			alphaDown="100"

		/>

		

		<!--

			background: the controls bar's background color

			buttonsNormal: the controls bar's buttons color for normal state

			buttonsOver: the controls bar's buttons color for over state

			buttonsDown: the controls bar's buttons color for down state

		-->

		<controlsBar

			background="0x000000"

			buttonsNormal="0xBBBBBB"

			buttonsOver="0xFFFFFF"

			buttonsDown="0xBBBBBB"

		/>

		

		<!--

			border: the volume bar's border color

			background: the volume bar's background color

			speaker: the volume bar's speaker color

			bar:  the volume bar's color

		-->

		<volume 

			border="0x666666"

			background="0x000000"

			speaker="0xCCCCCC"

			bar="0x559BB5"

		/>

		

		<!--

			brdNormal: the scrub volume button's border color for the normal state

			bckNormal: the scrub volume button's background color for the normal state

			brdOver: the scrub volume button's border color for the over state

			bckOver: the scrub volume button's background color for the over state

			brdDown: the scrub volume button's border color for the down state

			bckDown: the scrub volume button's background color for the down state

		-->

		<volumeScrubBtn

			brdNormal="0xCCCCCC"

			bckNormal="0x000000"

			brdOver="0xFFFFFF" 

			bckOver="0x000000" 

			brdDown="0xFFFFFF" 

			bckDown="0x000000"

		/>

		

		<!--

			border: the progress bar's border color

			background: The progress bar's background color

			elapse: The elapsed time bar's color

			download: The downloaded time bar's color

		-->

		<progressBar

			border="0x666666"

			background="0x000000"

			elapse="0x559BB5"

			download="0x999999"

		/>

		

		<!--

			brdNormal: the seek video button's border color for the normal state

			bckNormal: the seek video button's background color for the normal state

			brdOver: the seek video button's border color for the over state

			bckOver: the seek video button's background color for the over state

			brdDown: the seek video button's border color for the down state

			bckDown:the seek video button's background color for the down state

		-->

		<progressScrubBtn 

			brdNormal="0xCCCCCC"

			bckNormal="0x000000"

			brdOver="0xFFFFFF"

			bckOver="0x000000"

			brdDown="0xFFFFFF"

			bckDown="0x000000"

		/>

		

		<!--

			background: the share overlay's color

			bckAlpha: the share overlay's transparency

			boxBck: the share content background color

			boxBckAlpha: the share content's background transparency

			labels: the share labels ("Link to this video", "Embed this video" and "Send to a friend") text color

			errorText: the share error and confirmation text color

			text: the share input text color

			textBck: the share input text's background color

			textBrd: the share input text's border color

			btnsNormal: the share button's color for the normal state

			btnsOver: the share button's color for the over state

			btnsDown: the share button's color for the down state

		-->

		<share

			background="0x000000"

			bckAlpha="60"

			boxBck="0x000000"

			boxBckAlpha="40"

			labels="0xFFFFFF"

			errorText="0xFF0000"

			text="0x000000"

			textBck="0xFFFFFF"

			textBrd="0x000000"

			btnsNormal="0xCCCCCC"

			btnsOver="0xFFFFFF"

			btnsDown="0xFFFFFF"

		/>

		

		<!--

			background: the playlist's background color

			bckAlpha: the playlist's background transparency

			thumbBck: the thumbs background's color

			thumbNormalAlpha: the thumbs transparency for normal state

			thumbOverAlpha: the thumbs transparency for over state

			thumbSelectedAlpha: the thumbs transparency for selected state

		-->

		<playlist

			background="0x151515"

			bckAlpha="60"

			thumbBck="0x000000"

			thumbNormalAlpha="50"

			thumbOverAlpha="80"

			thumbSelectedAlpha="100"

		/>

		

		<!--

			background: the description's background color

			line: the color of the separator line above the description area

			title: the video title's color

			description: the description text's color

		-->

		<description

			background="0x151515"

			line="0x202020"

			title="0xFFFFFF"

			description="0xCCCCCC"

		/>

		

		<!--

			trackBar: the color of the scroll's trackbar

			scrubBrdNormal: the color of the scroll button's border for the normal state

			scrubBckNormal: the color of the scroll button's background for the normal state

			scrubBrdOver: the color of the scroll button's border for the over state

			scrubBckOver: the color of the scroll button's background for the over state

			scrubBrdDown: the color of the scroll button's border for the down state

			scrubBckDown: the color of the scroll button's background for the down state

		-->

		<scrollBar

			trackBar="0xCCCCCC"

			scrubBrdNormal="0xCCCCCC"

			scrubBckNormal="0x000000"

			scrubBrdOver="0xFFFFFF"

			scrubBckOver="0x000000"

			scrubBrdDown="0xFFFFFF"

			scrubBckDown="0x000000"

		/>

		

		<!--

			size: the caption text's size in pixels

			color: the caption text's color

			glowColor: the color of the glow surrounding the characters for the caption text

		-->

		<caption

			size="14"

			color="0xFFFFFF"

			glowColor="0x000000"

		/>

		

		<!--

			bckColor: the tooltip's background color

			txtColor: the color of the tooltip's text

			alpha: the transparency of the tooltip

		-->

		<toolTip

			bckColor="0xFFFFFF"

			txtColor="0x000000"

			alpha="80"

		/>

	</colors>

	

	<videos>

			<!--

				ad:

					- start: the starting time, in seconds, for displaying the ad

					- path: the ad's path

					- url: this link will be opened when the user clicks the playing ad

				videoPath: the path of the video file

				previewImage: the path of the preview image file

				thumbImage: the path of the thumbnail image file

				watermarkPath: the path of the watermark image file

				watermarkLink: this link will be opened when the user clicks the watermark

				title: the video's title text

				description: the video's description text

				caption: the path to the file that contains the video's subtitles (sub, srt, custom xml or Timed Text)

			-->

			<video id="2">

				<videoPath	value="http://beyazperden.net/player.php?link=http://video.ak.fbcdn.net/cfs-ak-ash1/79156/463/1697917121853_22891.mp4" />

			</video>

			<video id="3">

				<videoPath	value="http://beyazperden.net/player.php?link=http://video.l3.fbcdn.net/cfs-l3-ash1/79148/839/1697917961874_18819.mp4" />

			</video>			

			<video id="4">

				<videoPath	value="http://beyazperden.net/player.php?link=http://video.ak.fbcdn.net/cfs-ak-snc6/79190/383/1697918361884_46047.mp4" />

			</video>			

			<video id="5">

				<videoPath	value="http://beyazperden.net/player.php?link=http://video.ak.fbcdn.net/cfs-ak-snc6/79208/137/1697918521888_18847.mp4" />

			</video>			

			<video id="6">

				<videoPath	value="http://beyazperden.net/player.php?link=http://video.ak.fbcdn.net/cfs-ak-ash1/79114/395/1697919001900_20648.mp4" />

			</video>

			<video id="7">

				<videoPath	value="http://beyazperden.net/player.php?link=http://video.ak.fbcdn.net/cfs-ak-snc6/79180/256/1697920081927_30649.mp4" />

			</video>

			<video id="8">

				<videoPath	value="http://beyazperden.net/player.php?link=http://video.l3.fbcdn.net/cfs-l3-snc6/79098/242/1697920601940_16775.mp4" />

			</video>

			<video id="9">

				<videoPath	value="http://beyazperden.net/player.php?link=http://video.l3.fbcdn.net/cfs-l3-snc6/79158/380/1698028604640_20750.mp4" />

			</video>		

	</videos>

	

	<!--

		scriptPath: the path to the server scipt file who will process the information for sending the email

		subject: the email's subject

		message: the email's body text ("[videoPage]" will be replaced with the direct link to the video and "[imgPath]" with the thumbnail image path)

	-->

	<swaf scriptPath="swaf.php">

		<subject>

			<![CDATA[Message from your friend]]>

		</subject>

		<message>

			<![CDATA[Hi,<br/>Your friend thought you might be interested in this video:<br/><a href="[videoPage]" target="_blank"><img border="0" src="[imgPath]" alt="Go to Video!" /></a>]]>

		</message>

	</swaf>

</settings>
 

Fabre

0
İyinet Üyesi
Katılım
24 Mayıs 2011
Mesajlar
200
Reaction score
1
Konum
İstanbul
Şu anki aktif XML dosyanız aşagıdaki şekilde. Peki değiştirmek istediğiniz yeni hali nedir acaba? Onuda belirtir misiniz? Nereleri değiştirmek istiyorsunuz yani ?

PHP:
<?xml version="1.0" encoding="UTF-8"?>

<settings version="3.1.0">

	<options>

		<!--

			autoResize:

				- true: the video player will have the sizes provided in the embedded code

				- false: the video player will have the sizes that are set with the "width" and "height" parameters (usually it is used when you want to load the video player in another swf file)

			width: the video player's width (it is used only if autoResize is set to "false")

			height: the video player's height (it is used only if autoResize is set to "false")

		-->

		<playerSize

			autoResize="true"

			width="500"

			height="350"

		/>

		

		<!--

			hide: set it to true if you want to autohide the controls bar

			hideDelay: the amount of time after the controls bar will start to hide

			space: the space between buttons when you separate them with "|"

			display:

				- a row of buttons (i.e. previous, playPause, stop, next, progress, time, volume, showHideCaption, expandCollapse, fullScreen and share)

				- use "|" to separate the buttons with the amount from the space parameter or "," for no space

			sound: set it to "true" if you want to hear a sound when you hover a button

			showMiddlePlayBtn: set it to true if you want to display a middle play button when the video is paused or stopped

			time: shows remaining time in one of the 3 different formats:

				- type1: on click it switches between elapsed time and remaining time

				- type2: display the elapsed time on the left of progress bar and the total time on the right of the progress bar

				- type3: display elapsed/total times

			expanded: set it to "true" if you want the player to start in expanded mode (with the description hidden)

		-->

		<controlsBar

			hide="true"

			hideDelay="10"

			space="10"

			display="|previous,playPause,stop,next|progress,time|volume|showHideCaption,expandCollapse,fullScreen|"

			sound="false"

			showMiddlePlayBtn="true"

			time="type1"

			expanded="true"

		/>

		

		<!--

			buffer: the buffer size, in seconds, for the videos

			keepAspectRatio: set it to "false" if you want to stretch the video so it will fit the whole display area

			autoLoad: set it to "true" if you want to start loading the video automatically when the player is loaded

			autoPlay: set it to "true" if you want to start playing the video automatically when the player is loaded

			

			Note: playContinuously, loop and random working together

			playContinuously: set it to "true" if you want the player to jump to the next video automatically

			loop: set it to "true" if you want the player to never stop playing your videos

			random: set it to "true" if you want to play the videos in random mode

		-->

		<videos

			buffer="10"

			keepAspectRatio="true"

			autoLoad="true"

			autoPlay="false"

			playContinuously="true"

			loop="false"

			random="false"

		/>

		

		<!--

			default: the default value, from 0 to 100, of the volume

			format: choose in which format do you want to display the volume bar: "vertical" or "horizontal"

		-->

		<volume

			default="100"

			format="horizontal"

		/>



		<!--

			visible: set it to "true" if you want to display an watermark for your videos

			position: the position of the watermark (i.e. TL, TR, BL or BR)

		-->

		<watermark

			visible="true"

			position="BR"

		/>



		<!--

			buttonsToolTip: set it to "true" if you want to display a toolTip when you hover the buttons

			timeToolTip: set it to "true" if you want to display a toolTip with the time when you hover the progress bar

			hideDelay: the value after which the tooltip will start to disappear when you mouse-out from the element

		-->

		<toolTip

			buttonsToolTip="true"

			timeToolTip="true"

			hideDelay="2"

		/>



		<!--

			spaceKey: set it to "true" if you want to play/pause the video when you press the spacebar key

			click: set it to "true" if you want to play/pause the video when you click on the video area

			doubleClick: set it to "true" if you want to switch between fullScreen/normal mode when you double-click on the video area

		-->

		<listeners

			spaceKey="true"

			click="true"

			doubleClick="true"

		/>



		<!--

			hide: set it to "true" if you want the mouse cursor to disappear after an amount of seconds of inactivity

			hideDelay: set the number of seconds after which you want the mouse cursor to disappear

		-->

		<cursor

			hide="true"

			hideDelay="5"

		/>

		

		<!--

			position: set the playlist position (i.e. "B", "T", "L" or "R")

			size: the playlist's size

			hide: set it to "true" if you the playlist to autohide after a while

			hideType: the hide effect (i.e. "slide" or "fade")

			hideDelay: set the amount of time, in seconds, after which the playlist will start hiding

			thumbWidth: the thumbnail's width

			thumbHeight: the thumbnail's height

			thumbPadding: the thumbnail's space between the videos from the playlist

		-->

		<playlist

			position="B"

			size="70"

			hide="true"

			hideType="slide"

			hideDelay="4"

			thumbWidth="70"

			thumbHeight="50"

			thumbPadding="10"

		/>

		

		<!--

			visible: set it to true if you want to display the description area

			size: set the size of the description area

		-->

		<description

			visible="true"

			size="75"

		/>



		<!--

			defaultQuality: set the quality of the YouTube videos (i.e. small, medium, large, hd720, hd1080 or highres)

		-->

		<youTube

			defaultQuality="hd720"

		/>

	</options>

	

	<colors>

		<!--

			value: the video player's background color

		-->

		<playerBackground

			value="0x000000"

		/>

		

		<!--

			background: the preloader's background color

			bckAlpha: the preloader's background alpha

			text: the preloader's text color

			circle: the preloader's circle color

		-->

		<preloader

			background="0x000000"

			bckAlpha="70"

			text="0xCCCCCC"

			circle="0x559BB5"

		/>

		

		<!--

			arrowNormal: the middle play button's arrow color for the normal state

			bckNormal: the middle play button's background color for the normal state

			alphaNormal: the middle play button's transparency for the normal state

			arrowOver: the middle play button's arrow color for the over state

			bckOver: the middle play button's background color for the over state

			alphaOver: the middle play button's transparency for the over state

			arrowDown: the middle play button's arrow color for the down state

			bckDown: the middle play button's background color for the down state

			alphaDown: the middle play button's transparency for the down state

		-->

		<middlePlayBtn

			arrowNormal="0xFFFFFF"

			bckNormal="0x000000"

			alphaNormal="60"

			arrowOver="0xFFFFFF"

			bckOver="0x000000"

			alphaOver="80"

			arrowDown="0xFFFFFF"

			bckDown="0x000000"

			alphaDown="100"

		/>

		

		<!--

			background: the controls bar's background color

			buttonsNormal: the controls bar's buttons color for normal state

			buttonsOver: the controls bar's buttons color for over state

			buttonsDown: the controls bar's buttons color for down state

		-->

		<controlsBar

			background="0x000000"

			buttonsNormal="0xBBBBBB"

			buttonsOver="0xFFFFFF"

			buttonsDown="0xBBBBBB"

		/>

		

		<!--

			border: the volume bar's border color

			background: the volume bar's background color

			speaker: the volume bar's speaker color

			bar:  the volume bar's color

		-->

		<volume 

			border="0x666666"

			background="0x000000"

			speaker="0xCCCCCC"

			bar="0x559BB5"

		/>

		

		<!--

			brdNormal: the scrub volume button's border color for the normal state

			bckNormal: the scrub volume button's background color for the normal state

			brdOver: the scrub volume button's border color for the over state

			bckOver: the scrub volume button's background color for the over state

			brdDown: the scrub volume button's border color for the down state

			bckDown: the scrub volume button's background color for the down state

		-->

		<volumeScrubBtn

			brdNormal="0xCCCCCC"

			bckNormal="0x000000"

			brdOver="0xFFFFFF" 

			bckOver="0x000000" 

			brdDown="0xFFFFFF" 

			bckDown="0x000000"

		/>

		

		<!--

			border: the progress bar's border color

			background: The progress bar's background color

			elapse: The elapsed time bar's color

			download: The downloaded time bar's color

		-->

		<progressBar

			border="0x666666"

			background="0x000000"

			elapse="0x559BB5"

			download="0x999999"

		/>

		

		<!--

			brdNormal: the seek video button's border color for the normal state

			bckNormal: the seek video button's background color for the normal state

			brdOver: the seek video button's border color for the over state

			bckOver: the seek video button's background color for the over state

			brdDown: the seek video button's border color for the down state

			bckDown:the seek video button's background color for the down state

		-->

		<progressScrubBtn 

			brdNormal="0xCCCCCC"

			bckNormal="0x000000"

			brdOver="0xFFFFFF"

			bckOver="0x000000"

			brdDown="0xFFFFFF"

			bckDown="0x000000"

		/>

		

		<!--

			background: the share overlay's color

			bckAlpha: the share overlay's transparency

			boxBck: the share content background color

			boxBckAlpha: the share content's background transparency

			labels: the share labels ("Link to this video", "Embed this video" and "Send to a friend") text color

			errorText: the share error and confirmation text color

			text: the share input text color

			textBck: the share input text's background color

			textBrd: the share input text's border color

			btnsNormal: the share button's color for the normal state

			btnsOver: the share button's color for the over state

			btnsDown: the share button's color for the down state

		-->

		<share

			background="0x000000"

			bckAlpha="60"

			boxBck="0x000000"

			boxBckAlpha="40"

			labels="0xFFFFFF"

			errorText="0xFF0000"

			text="0x000000"

			textBck="0xFFFFFF"

			textBrd="0x000000"

			btnsNormal="0xCCCCCC"

			btnsOver="0xFFFFFF"

			btnsDown="0xFFFFFF"

		/>

		

		<!--

			background: the playlist's background color

			bckAlpha: the playlist's background transparency

			thumbBck: the thumbs background's color

			thumbNormalAlpha: the thumbs transparency for normal state

			thumbOverAlpha: the thumbs transparency for over state

			thumbSelectedAlpha: the thumbs transparency for selected state

		-->

		<playlist

			background="0x151515"

			bckAlpha="60"

			thumbBck="0x000000"

			thumbNormalAlpha="50"

			thumbOverAlpha="80"

			thumbSelectedAlpha="100"

		/>

		

		<!--

			background: the description's background color

			line: the color of the separator line above the description area

			title: the video title's color

			description: the description text's color

		-->

		<description

			background="0x151515"

			line="0x202020"

			title="0xFFFFFF"

			description="0xCCCCCC"

		/>

		

		<!--

			trackBar: the color of the scroll's trackbar

			scrubBrdNormal: the color of the scroll button's border for the normal state

			scrubBckNormal: the color of the scroll button's background for the normal state

			scrubBrdOver: the color of the scroll button's border for the over state

			scrubBckOver: the color of the scroll button's background for the over state

			scrubBrdDown: the color of the scroll button's border for the down state

			scrubBckDown: the color of the scroll button's background for the down state

		-->

		<scrollBar

			trackBar="0xCCCCCC"

			scrubBrdNormal="0xCCCCCC"

			scrubBckNormal="0x000000"

			scrubBrdOver="0xFFFFFF"

			scrubBckOver="0x000000"

			scrubBrdDown="0xFFFFFF"

			scrubBckDown="0x000000"

		/>

		

		<!--

			size: the caption text's size in pixels

			color: the caption text's color

			glowColor: the color of the glow surrounding the characters for the caption text

		-->

		<caption

			size="14"

			color="0xFFFFFF"

			glowColor="0x000000"

		/>

		

		<!--

			bckColor: the tooltip's background color

			txtColor: the color of the tooltip's text

			alpha: the transparency of the tooltip

		-->

		<toolTip

			bckColor="0xFFFFFF"

			txtColor="0x000000"

			alpha="80"

		/>

	</colors>

	

	<videos>

			<!--

				ad:

					- start: the starting time, in seconds, for displaying the ad

					- path: the ad's path

					- url: this link will be opened when the user clicks the playing ad

				videoPath: the path of the video file

				previewImage: the path of the preview image file

				thumbImage: the path of the thumbnail image file

				watermarkPath: the path of the watermark image file

				watermarkLink: this link will be opened when the user clicks the watermark

				title: the video's title text

				description: the video's description text

				caption: the path to the file that contains the video's subtitles (sub, srt, custom xml or Timed Text)

			-->

			<video id="2">

				<videoPath	value="http://beyazperden.net/player.php?link=http://video.ak.fbcdn.net/cfs-ak-ash1/79156/463/1697917121853_22891.mp4" />

			</video>

			<video id="3">

				<videoPath	value="http://beyazperden.net/player.php?link=http://video.l3.fbcdn.net/cfs-l3-ash1/79148/839/1697917961874_18819.mp4" />

			</video>			

			<video id="4">

				<videoPath	value="http://beyazperden.net/player.php?link=http://video.ak.fbcdn.net/cfs-ak-snc6/79190/383/1697918361884_46047.mp4" />

			</video>			

			<video id="5">

				<videoPath	value="http://beyazperden.net/player.php?link=http://video.ak.fbcdn.net/cfs-ak-snc6/79208/137/1697918521888_18847.mp4" />

			</video>			

			<video id="6">

				<videoPath	value="http://beyazperden.net/player.php?link=http://video.ak.fbcdn.net/cfs-ak-ash1/79114/395/1697919001900_20648.mp4" />

			</video>

			<video id="7">

				<videoPath	value="http://beyazperden.net/player.php?link=http://video.ak.fbcdn.net/cfs-ak-snc6/79180/256/1697920081927_30649.mp4" />

			</video>

			<video id="8">

				<videoPath	value="http://beyazperden.net/player.php?link=http://video.l3.fbcdn.net/cfs-l3-snc6/79098/242/1697920601940_16775.mp4" />

			</video>

			<video id="9">

				<videoPath	value="http://beyazperden.net/player.php?link=http://video.l3.fbcdn.net/cfs-l3-snc6/79158/380/1698028604640_20750.mp4" />

			</video>		

	</videos>

	

	<!--

		scriptPath: the path to the server scipt file who will process the information for sending the email

		subject: the email's subject

		message: the email's body text ("[videoPage]" will be replaced with the direct link to the video and "[imgPath]" with the thumbnail image path)

	-->

	<swaf scriptPath="swaf.php">

		<subject>

			<![CDATA[Message from your friend]]>

		</subject>

		<message>

			<![CDATA[Hi,<br/>Your friend thought you might be interested in this video:<br/><a href="[videoPage]" target="_blank"><img border="0" src="[imgPath]" alt="Go to Video!" /></a>]]>

		</message>

	</swaf>

</settings>

Sadece http://beyazperden.net/player.php?link= bu kısmı
 

Fabre

0
İyinet Üyesi
Katılım
24 Mayıs 2011
Mesajlar
200
Reaction score
1
Konum
İstanbul
Yapmak istediğiniz şu mu ?

http://beyazperden.net/player.php?link=erturk olursa Erturk hakkındaki xml dosyası ve o dosyaya baglı olarak Erturk videosu cıksın ?

Yok yani benim yapmak istedigim su ben bir sitenin php dosyasını kullanıcam ve http://beyazperden.net/player.php?link= bununla değiştircem. Yani bu http://x.net/player.php?link= olucak.

Ekleme:

Eski
<video id="7">
<videoPath value="http://beyazperden.net/player.php?link=http://video.ak.fbcdn.net/cfs-ak-snc6/79180/256/1697920081927_30649.mp4" />
</video>

Yeni
<video id="7">
<videoPath value="http://direkizle.net/web121212xy.php?git=http://video.ak.fbcdn.net/cfs-ak-snc6/79180/256/1697920081927_30649.mp4" />
</video>

Bu sekilde degisme olucak.

Dilersen player.php nin iceriginide koyabilirim buraya?
 
E

Erturk

Misafir
friki_056.jpg


Birşey anladıysam arap olayım :)

İnan hiç birşey anlamadım dostum yapmak istediğin şeyden. Görebildiğim tek şey XML kodların. Baştan sona ne yapmak istediğini detaylıca anlatabilirsen bilgim dahilinde yardımcı olmaya calısırım.
 

Fabre

0
İyinet Üyesi
Katılım
24 Mayıs 2011
Mesajlar
200
Reaction score
1
Konum
İstanbul
friki_056.jpg


Birşey anladıysam arap olayım :)

İnan hiç birşey anlamadım dostum yapmak istediğin şeyden. Görebildiğim tek şey XML kodların. Baştan sona ne yapmak istediğini detaylıca anlatabilirsen bilgim dahilinde yardımcı olmaya calısırım.

Evet biraz karısık :)

Simdi o XML dosyasında ki kodlarda söyle bir degisiklik yapmam lazım. Bunu replace yöntemi ile degistirebiliyormuyuz?

Eski
<video id="7">
<videoPath value="http://beyazperden.net/player.php?link=http://video.ak.fbcdn.net/cfs-ak-snc6/79180/256/1697920081927_30649.mp4" />
</video>

Yeni
<video id="7">
<videoPath value="http://direkizle.net/web121212xy.php?git=http://video.ak.fbcdn.net/cfs-ak-snc6/79180/256/1697920081927_30649.mp4" />
</video>

Bu sekilde degisme olucak.
 
E

Erturk

Misafir
Player.php dosyasının içeriğini görebilir miyim?

<video id="7">
<videoPath value="'.$site.'=http://video.ak.fbcdn.net/cfs-ak-snc6/79180/256/1697920081927_30649.mp4" />
</video>

Şeklinde oluşturup $site değişkenini player.php dosyana sabit tutarsan sanırım bahsettiğin olay gerçekleşir. Hali hazırda toplam 2 xml dosyan var sanırım şu an.

Anlamak istediğim aslında şu;

Sen bu botu baska bir yere satacak / vereceksin. Elinde bir ton xml dosyası var ve hepsinde senin siten yazıyor. Ama bunları simdi yeni yere gore düzenlemelisin. Kolay bir yolunu mu arıyorsun...

Kafam karmakarışık oldu inan :) Eğer boyleyse XML dosyalarını açtırıp site adını tek tıklama ile değiştirilebilecek kod yazılabilir.
 

Fabre

0
İyinet Üyesi
Katılım
24 Mayıs 2011
Mesajlar
200
Reaction score
1
Konum
İstanbul
Player.php dosyasının içeriğini görebilir miyim?

<video id="7">
<videoPath value="'.$site.'=http://video.ak.fbcdn.net/cfs-ak-snc6/79180/256/1697920081927_30649.mp4" />
</video>

Şeklinde oluşturup $site değişkenini player.php dosyana sabit tutarsan sanırım bahsettiğin olay gerçekleşir. Hali hazırda toplam 2 xml dosyan var sanırım şu an.

Anlamak istediğim aslında şu;

Sen bu botu baska bir yere satacak / vereceksin. Elinde bir ton xml dosyası var ve hepsinde senin siten yazıyor. Ama bunları simdi yeni yere gore düzenlemelisin. Kolay bir yolunu mu arıyorsun...

Kafam karmakarışık oldu inan :) Eğer boyleyse XML dosyalarını açtırıp site adını tek tıklama ile değiştirilebilecek kod yazılabilir.

Evet elimde bir ton XML dosyası olucak hepsini tek tek elle degistiremem sanırım o yüzden bir kodla bütün hepsinin sadece o kısmını degistirecegim :) O bahsettiginiz &site degisken oalyını nasıl yaparım.

Ekleme: player.php dosyası icerigi

<?php
ob_start();
function facelink($link) {
$link = str_replace ("\u00253A",":",$link);
$link = str_replace ("\u00252F","/",$link);
$link = str_replace ("\u002526","&",$link);
$link = str_replace ("\u00253F","?",$link);
$link = str_replace ("\u00253D","=",$link);
return $link;
}
function faceduzelt($urele)
{
$explode=explode("/",$urele);
$say=count($explode);
$son=$explode[$say-1];
$explode2=explode("_",$son);
$videoaydi=$explode2[0];
$al = file_get_contents("http://www.facebook.com/ajax/flash/expand_inline.php?target_div=u879823_18&__a=1&v=$videoaydi");
$al = stripslashes($al);
//echo $al;
$exp=explode("\"video_src\", \"",$al);
$exp=explode("\");",$exp[1]);
$l=facelink($exp[0]);
$l=str_replace('http://','',$l);
//$l=urlencode($l);
return $l;
}
$player = $_GET['link'];
if ((strpos($player,'facebook.com')) or (strpos($player,'fbcdn.net'))) {
$player = faceduzelt($player);
}
$player = str_replace('http://','',$player);
header("Location:http://$player");
?>
 
E

Erturk

Misafir
Aşağıdaki kodları degistir.php diye bir dosya oluşturarak içerisine yaz dostum.

PHP:
<?php
function dosyalar($klasor)
{
$klasorListesi = array();
$dizin=opendir($klasor);
while ($file = readdir($dizin)) {
if ( $file!="." AND $file!=".." AND $file!="" )
{$klasorListesi[]=$file;}}
closedir($dizin);
sort($klasorListesi);
return $klasorListesi;
}
// XML Dosyalarının oldugu klasorun adını yaz.
$dizin = 'deneme/';
$dosyalar = dosyalar($dizin);
foreach ($dosyalar as $dosya){
$oku = file_get_contents($dizin.$dosya);
$eskiadres = "beyazperden.net/player.php?link=";
$yeniadres = "erturkkumas.com/deneme.php?git=";
$degistir = str_replace($eskiadres,$yeniadres,$oku);
$sonuc = file_put_contents($dizin.$dosya,$degistir);
}
if($sonuc) {
echo "Değiştirildi";
} else {
echo "Değiştirilemedi";
}
?>

Sonrada bu dosyayı ana dizine at. (www.siteadi.com/degistir.php). Kod içerisinde not düştüğüm $dizin değişkeni XML dosyalarının tutuldugu klasoru gosteriyor. O klasorun uzantısını oraya düzgünce yaz.

$eskiadres değişkeni o an XML lerdeki aktif olan site adresini gösterir. $yeniadres ise değiştirmek istediğini.

Bu kodları atttığın dosyayı (degistir.php) calıstırdıgında $dizin değişkeninde belirttiğin klasördeki butun dosyaların içeriği okunur ve eski adres ile yeni adres değiştirilir.

Umarım doğru anlamışımdır.
 

Fabre

0
İyinet Üyesi
Katılım
24 Mayıs 2011
Mesajlar
200
Reaction score
1
Konum
İstanbul
Aşağıdaki kodları degistir.php diye bir dosya oluşturarak içerisine yaz dostum.

PHP:
<?php
function dosyalar($klasor)
{
$klasorListesi = array();
$dizin=opendir($klasor);
while ($file = readdir($dizin)) {
if ( $file!="." AND $file!=".." AND $file!="" )
{$klasorListesi[]=$file;}}
closedir($dizin);
sort($klasorListesi);
return $klasorListesi;
}
// XML Dosyalarının oldugu klasorun adını yaz.
$dizin = 'deneme/';
$dosyalar = dosyalar($dizin);
foreach ($dosyalar as $dosya){
$oku = file_get_contents($dizin.$dosya);
$eskiadres = "beyazperden.net/player.php?link=";
$yeniadres = "erturkkumas.com/deneme.php?git=";
$degistir = str_replace($eskiadres,$yeniadres,$oku);
$sonuc = file_put_contents($dizin.$dosya,$degistir);
}
if($sonuc) {
echo "Değiştirildi";
} else {
echo "Değiştirilemedi";
}
?>

Sonrada bu dosyayı ana dizine at. (www.siteadi.com/degistir.php). Kod içerisinde not düştüğüm $dizin değişkeni XML dosyalarının tutuldugu klasoru gosteriyor. O klasorun uzantısını oraya düzgünce yaz.

$eskiadres değişkeni o an XML lerdeki aktif olan site adresini gösterir. $yeniadres ise değiştirmek istediğini.

Bu kodları atttığın dosyayı (degistir.php) calıstırdıgında $dizin değişkeninde belirttiğin klasördeki butun dosyaların içeriği okunur ve eski adres ile yeni adres değiştirilir.

Umarım doğru anlamışımdır.

Hemen deniyorum allah senden razı olsun ya
 
E

Erturk

Misafir
Örneğin 500 tane XML dosyan var diyelim. Hepsinin video linki siteadresi.com. Ve sen bu XML dosyalarını baska birisine satacaksın farzedelim. E hepsinin video link uzantısı senin adresin? Ne yapacaksın bu durumda? sadece verdiğim koddaki yeni ve eski adres kısımlarını değiştirecek ve bir kere calıstıracaksın. Bu sayede 500 tane XML dosyanda hiç bir işlem yapılmadan otomatik o video linki değişecek...
 

Fabre

0
İyinet Üyesi
Katılım
24 Mayıs 2011
Mesajlar
200
Reaction score
1
Konum
İstanbul
Örneğin 500 tane XML dosyan var diyelim. Hepsinin video linki siteadresi.com. Ve sen bu XML dosyalarını baska birisine satacaksın farzedelim. E hepsinin video link uzantısı senin adresin? Ne yapacaksın bu durumda? sadece verdiğim koddaki yeni ve eski adres kısımlarını değiştirecek ve bir kere calıstıracaksın. Bu sayede 500 tane XML dosyanda hiç bir işlem yapılmadan otomatik o video linki değişecek...

Abi söylediklerini harfiyen uyguladım ama olmadı.

PHP:
<?php 
function dosyalar($klasor) 
{ 
$klasorListesi = array(); 
$dizin=opendir($klasor); 
while ($file = readdir($dizin)) { 
if ( $file!="." AND $file!=".." AND $file!="" ) 
{$klasorListesi[]=$file;}} 
closedir($dizin); 
sort($klasorListesi); 
return $klasorListesi; 
} 
// XML Dosyalarinin oldugu klasorun adini yaz. 
$dizin = 'beyazperden.net/wp-content/sources/movies/'; 
$dosyalar = dosyalar($dizin); 
foreach ($dosyalar as $dosya){ 
$oku = file_get_contents($dizin.$dosya); 
$eskiadres = "beyazperden.net/player.php?link="; 
$yeniadres = "direkizle.net/web121212xy.php?git="; 
$degistir = str_replace($eskiadres,$yeniadres,$oku); 
$sonuc = file_put_contents($dizin.$dosya,$degistir); 
} 
if($sonuc) { 
echo "Degistirildi"; 
} else { 
echo "Degistirilemedi"; 
} 
?>

Birde söyle bir hata var.

Warning: opendir(beyazperden.net/wp-content/sources/movies/) [function.opendir]: failed to open dir: No such file or directory in /home/beyazper/public_html/degistir.php on line 5

Warning: readdir(): supplied argument is not a valid Directory resource in /home/beyazper/public_html/degistir.php on line 6

Warning: closedir(): supplied argument is not a valid Directory resource in /home/beyazper/public_html/degistir.php on line 9
Degistirilemedi
 
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...

Türkiye’nin ilk webmaster forum sitesi iyinet.com'da forum üyeleri tarafından yapılan tüm paylaşımlardan; Türk Ceza Kanunu’nun 20. Maddesinin, 5651 Sayılı Kanununun 4. maddesinin 2. fıkrasına göre, paylaşım yapan üyeler sorumludur.

Üst