CyberiaPC.com Community Forums Main Page
RSS Feeds: Late(st) News | Zenith Picture Gallery | Most Recent Community Topics | Tips, Tricks and Other Useful Stuff

Welcome Guest ( Log In | Register )

2 Pages V   1 2 >   Digg this topic Digg this topic   Add to my del.icio.us Add to my del.icio.us
Reply to this topicStart new topic
> Media Hack
omarkl
post Dec 25 2006, 10:21 PM
Post #1


New Member
*

Group: Members
Posts: 9
Joined: 24-December 06
Member No.: 5,334

Nothing Selected




Hello

is there way to hack the gallery so the media files play stearming from the gallery?
Go to the top of the page
 
+Quote Post
usr.c
post Dec 26 2006, 02:51 PM
Post #2


Boss, my code's compiling (xkcd)
Group Icon

Group: Admins
Posts: 10,440
Joined: 19-September 01
Member No.: 1

Nothing Selected




Sure, you need to modify the code so that instead of forcing the media files to download, it embeds them in some page using something like

CODE
<object id="MediaPlayer1" CLASSID="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsm p2inf.cab#Version=5,1,52,701"
standby="Loading Microsoft Windows® Media Player components..." type="application/x-oleobject" width="280" height="256">
<param name="fileName" value="yourmovie.mpg">
<param name="animationatStart" value="true">
<param name="transparentatStart" value="true">
<param name="autoStart" value="true">
<param name="showControls" value="true">
<param name="Volume" value="-450">
<embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" src="yourmovie.mpg[color=orange:8891f1872d]" name="MediaPlayer1" width=280 height=256 autostart=1 showcontrols=1 volume=-450>
</object>


taken from here

Want to try playing around with it yourself and then let me know if you have problems?


--------------------


Things that I don't suck at: Photography (flickr, JPG Mag), Skydiving, Splitting atoms, Flying a space shuttle
"Don't bail; the best gold is at the bottom of barrels of crap!" -Randy Pausch
I have people-skills goddamnit! What is wrong with you people!!! | www.skyrill.com
Go to the top of the page
 
+Quote Post
omarkl
post Dec 27 2006, 09:08 PM
Post #3


New Member
*

Group: Members
Posts: 9
Joined: 24-December 06
Member No.: 5,334

Nothing Selected




QUOTE(usr.c @ Dec 26 2006, 02:51 PM) *
Sure, you need to modify the code so that instead of forcing the media files to download, it embeds them in some page using something like

CODE
<object id="MediaPlayer1" CLASSID="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsm p2inf.cab#Version=5,1,52,701"
standby="Loading Microsoft Windows® Media Player components..." type="application/x-oleobject" width="280" height="256">
<param name="fileName" value="yourmovie.mpg">
<param name="animationatStart" value="true">
<param name="transparentatStart" value="true">
<param name="autoStart" value="true">
<param name="showControls" value="true">
<param name="Volume" value="-450">
<embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" src="yourmovie.mpg[color=orange:8891f1872d]" name="MediaPlayer1" width=280 height=256 autostart=1 showcontrols=1 volume=-450>
</object>


taken from here

Want to try playing around with it yourself and then let me know if you have problems?



Thx Admin but i realy Do not know much about php Hacks to edit it by my self lol ..

i Remember once i used 4images script some guy Hacked it with such of that code and made it accept realplayer files and media player too .. but idont know where to use that code .. and it seem to me u have to put the actual file name for each media u want to stearm and that will not work with the gallery
Go to the top of the page
 
+Quote Post
usr.c
post Dec 27 2006, 09:30 PM
Post #4


Boss, my code's compiling (xkcd)
Group Icon

Group: Admins
Posts: 10,440
Joined: 19-September 01
Member No.: 1

Nothing Selected




No worries, I'll get on it then. Expect a reply within the coming week. If I forget, just send me a reminder.


--------------------


Things that I don't suck at: Photography (flickr, JPG Mag), Skydiving, Splitting atoms, Flying a space shuttle
"Don't bail; the best gold is at the bottom of barrels of crap!" -Randy Pausch
I have people-skills goddamnit! What is wrong with you people!!! | www.skyrill.com
Go to the top of the page
 
+Quote Post
omarkl
post Dec 27 2006, 11:36 PM
Post #5


New Member
*

Group: Members
Posts: 9
Joined: 24-December 06
Member No.: 5,334

Nothing Selected




QUOTE(usr.c @ Dec 27 2006, 09:30 PM) *
No worries, I'll get on it then. Expect a reply within the coming week. If I forget, just send me a reminder.



Great admin iwill wait ... thx to you naughty.gif
Go to the top of the page
 
+Quote Post
usr.c
post Jan 10 2007, 08:44 PM
Post #6


Boss, my code's compiling (xkcd)
Group Icon

Group: Admins
Posts: 10,440
Joined: 19-September 01
Member No.: 1

Nothing Selected




Hi, Thanks for your patience. Try this:

Look in functions/f_global.php under showDetailedPic() for

CODE
$pic_size = 0; //only use small size if it's a video

and below that insert

CODE
$is_video = 1;

Then a few lines below that, look for

CODE
echo "<a href='show.php?pid={$row['pid']}&file={$row['file_name']}' class='thumb_link' target='_blank' onclick=\"window.open(this.href,'{$row['pid']}','width=$w_of_window,height=$h_of_window,resizable=yes,status=no,scrollbars=1$window_pos');return false\">";

and replace it with

CODE
if(!$is_video)   echo "<a href='show.php?pid={$row['pid']}&file={$row['file_name']}' class='thumb_link' target='_blank' onclick=\"window.open(this.href,'{$row['pid']}','width=$w_of_window,height=$h_of_window,resizable=yes,status=no,scrollbars=1$window_pos');return false\">";
    else  {
        $path = getPicturesPath($config, charsEscaper($row['file_name'], $filename_escape_chars), 0);
        
        echo "
            <OBJECT ID='MediaPlayer' WIDTH='400' HEIGHT='300' CLASSID='CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95'
            STANDBY='Loading Windows Media Player components...' TYPE='application/x-oleobject'>
            <PARAM NAME='FileName' VALUE='$path'>
            <PARAM name='autostart' VALUE='false'>
            <PARAM name='ShowControls' VALUE='true'>
            <param name='ShowStatusBar' value='false'>
            <PARAM name='ShowDisplay' VALUE='false'>
            <EMBED TYPE='application/x-mplayer2' SRC='$path' NAME='MediaPlayer'
            WIDTH='400' HEIGHT='300' ShowControls='1' ShowStatusBar='0' ShowDisplay='1' autostart='0'> </EMBED>
            </OBJECT>
            ";
    }

    //display picture
    if(!$is_video) {

Then below that look for

CODE
echo "</a>";

and below it insert

CODE
}//end mod (for omarkl)


That should do it. It may need a bit of tweaking to work in Firefox. Let me know if you come across any problems.
Attached thumbnail(s)
Attached Image
 


--------------------


Things that I don't suck at: Photography (flickr, JPG Mag), Skydiving, Splitting atoms, Flying a space shuttle
"Don't bail; the best gold is at the bottom of barrels of crap!" -Randy Pausch
I have people-skills goddamnit! What is wrong with you people!!! | www.skyrill.com
Go to the top of the page
 
+Quote Post
omarkl
post Jan 11 2007, 06:34 AM
Post #7


New Member
*

Group: Members
Posts: 9
Joined: 24-December 06
Member No.: 5,334

Nothing Selected




QUOTE(usr.c @ Jan 10 2007, 08:44 PM) *
Hi, Thanks for your patience. Try this:

Look in functions/f_global.php under showDetailedPic() for

CODE
$pic_size = 0; //only use small size if it's a video

and below that insert

CODE
$is_video = 1;

Then a few lines below that, look for

CODE
echo "<a href='show.php?pid={$row['pid']}&file={$row['file_name']}' class='thumb_link' target='_blank' onclick=\"window.open(this.href,'{$row['pid']}','width=$w_of_window,height=$h_of_window,resizable=yes,status=no,scrollbars=1$window_pos');return false\">";

and replace it with

CODE
if(!$is_video)   echo "<a href='show.php?pid={$row['pid']}&file={$row['file_name']}' class='thumb_link' target='_blank' onclick=\"window.open(this.href,'{$row['pid']}','width=$w_of_window,height=$h_of_window,resizable=yes,status=no,scrollbars=1$window_pos');return false\">";
    else  {
        $path = getPicturesPath($config, charsEscaper($row['file_name'], $filename_escape_chars), 0);
        
        echo "
            <OBJECT ID='MediaPlayer' WIDTH='400' HEIGHT='300' CLASSID='CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95'
            STANDBY='Loading Windows Media Player components...' TYPE='application/x-oleobject'>
            <PARAM NAME='FileName' VALUE='$path'>
            <PARAM name='autostart' VALUE='false'>
            <PARAM name='ShowControls' VALUE='true'>
            <param name='ShowStatusBar' value='false'>
            <PARAM name='ShowDisplay' VALUE='false'>
            <EMBED TYPE='application/x-mplayer2' SRC='$path' NAME='MediaPlayer'
            WIDTH='400' HEIGHT='300' ShowControls='1' ShowStatusBar='0' ShowDisplay='1' autostart='0'> </EMBED>
            </OBJECT>
            ";
    }

    //display picture
    if(!$is_video) {

Then below that look for

CODE
echo "</a>";

and below it insert

CODE
}//end mod (for omarkl)


That should do it. It may need a bit of tweaking to work in Firefox. Let me know if you come across any problems.



Thx Admin but i opened the file f_global.php and did not find that codes to replace them with new ones i just found this code
CODE
$pic_size = 0; //only use small size if it's a video


the rest of codes i coudt see them in the file .... Can you Just attache for me the New Files and i will Replace it with the one i have .. that would make it Easyer to me and make me Realy Lazy but i realy did not find the codes .. that i have to replace
Go to the top of the page
 
+Quote Post
usr.c
post Jan 11 2007, 07:21 AM
Post #8


Boss, my code's compiling (xkcd)
Group Icon

Group: Admins
Posts: 10,440
Joined: 19-September 01
Member No.: 1

Nothing Selected




Do a search for show.php; there's only one reference to it. If you still have problems let me know.


--------------------


Things that I don't suck at: Photography (flickr, JPG Mag), Skydiving, Splitting atoms, Flying a space shuttle
"Don't bail; the best gold is at the bottom of barrels of crap!" -Randy Pausch
I have people-skills goddamnit! What is wrong with you people!!! | www.skyrill.com
Go to the top of the page
 
+Quote Post
omarkl
post Jan 11 2007, 07:31 AM
Post #9


New Member
*

Group: Members
Posts: 9
Joined: 24-December 06
Member No.: 5,334

Nothing Selected




QUOTE(usr.c @ Jan 11 2007, 07:21 AM) *
Do a search for show.php; there's only one reference to it. If you still have problems let me know.



Thx again

but this the code i see , its little diffrent than the one u posted but i replaced it any way

CODE
echo "<table border='0' cellpadding='0' cellspacing='0' dir='ltr'>
<tr>
<td nowrap='nowrap' style='border: 0px solid #000'>
<a href='show.php?pid={$row['pid']}&amp;file={$row['file_name']}' class='thumb_link' target='_blank' onclick=\"window.open(this.href,'{$row['pid']}','width=$w_of_window,height=$h_of_window,resizable=yes,status=no,scrollbars=1$window_pos');return false\">";


and the last code it doest look like the one u posted,it look to me like this

CODE
$folder .= "</a>";


i replaced it any way then i got erorr

mounted-storage/home36b/sub001/sc19488-XTJK/www/functions/f_global.php on line 1289


by the way i use Version 092
Go to the top of the page
 
+Quote Post
usr.c
post Jan 11 2007, 08:29 AM
Post #10


Boss, my code's compiling (xkcd)
Group Icon

Group: Admins
Posts: 10,440
Joined: 19-September 01
Member No.: 1

Nothing Selected




No worries, try the attached functions.php (v0.9.2)
Attached File(s)
Attached File  f_global.php ( 54.77K ) Number of downloads: 77
 


--------------------


Things that I don't suck at: Photography (flickr, JPG Mag), Skydiving, Splitting atoms, Flying a space shuttle
"Don't bail; the best gold is at the bottom of barrels of crap!" -Randy Pausch
I have people-skills goddamnit! What is wrong with you people!!! | www.skyrill.com
Go to the top of the page
 
+Quote Post
omarkl
post Jan 11 2007, 09:11 AM
Post #11


New Member
*

Group: Members
Posts: 9
Joined: 24-December 06
Member No.: 5,334

Nothing Selected




thx brother , works but Erorr , i cant log in to admin . it says somthing wrong with header
Go to the top of the page
 
+Quote Post
usr.c
post Jan 11 2007, 09:27 AM
Post #12


Boss, my code's compiling (xkcd)
Group Icon

Group: Admins
Posts: 10,440
Joined: 19-September 01
Member No.: 1

Nothing Selected




Your webserver seems to be adding a <br /> at the top of pages. If you open a page in a new browser window it's fine, but as soon as you navigate to some link, the <br /> gets added. You might want to get in touch with your host to make sure.


--------------------


Things that I don't suck at: Photography (flickr, JPG Mag), Skydiving, Splitting atoms, Flying a space shuttle
"Don't bail; the best gold is at the bottom of barrels of crap!" -Randy Pausch
I have people-skills goddamnit! What is wrong with you people!!! | www.skyrill.com
Go to the top of the page
 
+Quote Post
steave
post Jan 12 2007, 08:46 AM
Post #13


New Member
*

Group: Members
Posts: 5
Joined: 11-January 07
Member No.: 5,477

United States




QUOTE(usr.c @ Jan 11 2007, 09:27 AM) *
Your webserver seems to be adding a <br /> at the top of pages. If you open a page in a new browser window it's fine, but as soon as you navigate to some link, the <br /> gets added. You might want to get in touch with your host to make sure.



Hello

Its Great Hack , Actualy this Hack made me Register here lol .. i love it but it won't work i get Erorr Same that Erorr about Can't edit the header and some Functions like i have to set CHMD to 777 when i did that to every single folder and file

all the erorrs happiend after changing the file u attached ..

i use php 5 on my site .. is that a problem
Go to the top of the page
 
+Quote Post
steave
post Jan 12 2007, 08:27 PM
Post #14


New Member
*

Group: Members
Posts: 5
Joined: 11-January 07
Member No.: 5,477

United States




by the way this the erorr i get after i changed the file


Warning: Cannot modify header information - headers already sent by (storage/home/www/functions/f_global.php:1) in /storage/home/www//login.php on line 73

Warning: Cannot modify header information - headers already sent by (output started at /mounted-storage/storage/home/www/functions/f_global.php:1) in /mounted-storage/home/www/login.php on line 74

Warning: Cannot modify header information - headers already sent by (output started at /storage/home/www//functions/f_global.php:1) in /storage/home/www/login.php on line 82
Go to the top of the page
 
+Quote Post
usr.c
post Jan 12 2007, 09:05 PM
Post #15


Boss, my code's compiling (xkcd)
Group Icon

Group: Admins
Posts: 10,440
Joined: 19-September 01
Member No.: 1

Nothing Selected




No worries, I'll take a look at it for you tomorrow.

Aah steave, you're still new here and have yet to truly understand how painful it can be to wait for my replies ;p


--------------------


Things that I don't suck at: Photography (flickr, JPG Mag), Skydiving, Splitting atoms, Flying a space shuttle
"Don't bail; the best gold is at the bottom of barrels of crap!" -Randy Pausch
I have people-skills goddamnit! What is wrong with you people!!! | www.skyrill.com
Go to the top of the page
 
+Quote Post

2 Pages V   1 2 >
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 19th May 2013 - 09:51 PM