![]() ![]() |
Dec 25 2006, 10:21 PM
Post
#1
|
|
|
New Member ![]() Group: Members Posts: 9 Joined: 24-December 06 Member No.: 5,334 ![]() |
Hello
is there way to hack the gallery so the media files play stearming from the gallery? |
|
|
|
Dec 26 2006, 02:51 PM
Post
#2
|
|
![]() Boss, my code's compiling (xkcd) Group: Admins Posts: 10,440 Joined: 19-September 01 Member No.: 1 ![]() |
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), "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 |
|
|
|
Dec 27 2006, 09:08 PM
Post
#3
|
|
|
New Member ![]() Group: Members Posts: 9 Joined: 24-December 06 Member No.: 5,334 ![]() |
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 |
|
|
|
Dec 27 2006, 09:30 PM
Post
#4
|
|
![]() Boss, my code's compiling (xkcd) Group: Admins Posts: 10,440 Joined: 19-September 01 Member No.: 1 ![]() |
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), "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 |
|
|
|
Dec 27 2006, 11:36 PM
Post
#5
|
|
|
New Member ![]() Group: Members Posts: 9 Joined: 24-December 06 Member No.: 5,334 ![]() |
|
|
|
|
Jan 10 2007, 08:44 PM
Post
#6
|
|
![]() Boss, my code's compiling (xkcd) Group: Admins Posts: 10,440 Joined: 19-September 01 Member No.: 1 ![]() |
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. -------------------- ![]() ![]() Things that I don't suck at: Photography (flickr, JPG Mag), "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 |
|
|
|
Jan 11 2007, 06:34 AM
Post
#7
|
|
|
New Member ![]() Group: Members Posts: 9 Joined: 24-December 06 Member No.: 5,334 ![]() |
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 |
|
|
|
Jan 11 2007, 07:21 AM
Post
#8
|
|
![]() Boss, my code's compiling (xkcd) Group: Admins Posts: 10,440 Joined: 19-September 01 Member No.: 1 ![]() |
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), "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 |
|
|
|
Jan 11 2007, 07:31 AM
Post
#9
|
|
|
New Member ![]() Group: Members Posts: 9 Joined: 24-December 06 Member No.: 5,334 ![]() |
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']}&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 |
|
|
|
Jan 11 2007, 08:29 AM
Post
#10
|
|
![]() Boss, my code's compiling (xkcd) Group: Admins Posts: 10,440 Joined: 19-September 01 Member No.: 1 ![]() |
No worries, try the attached functions.php (v0.9.2)
Attached File(s)
-------------------- ![]() ![]() Things that I don't suck at: Photography (flickr, JPG Mag), "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 |
|
|
|
Jan 11 2007, 09:11 AM
Post
#11
|
|
|
New Member ![]() Group: Members Posts: 9 Joined: 24-December 06 Member No.: 5,334 ![]() |
thx brother , works but Erorr , i cant log in to admin . it says somthing wrong with header
|
|
|
|
Jan 11 2007, 09:27 AM
Post
#12
|
|
![]() Boss, my code's compiling (xkcd) Group: Admins Posts: 10,440 Joined: 19-September 01 Member No.: 1 ![]() |
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), "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 |
|
|
|
Jan 12 2007, 08:46 AM
Post
#13
|
|
|
New Member ![]() Group: Members Posts: 5 Joined: 11-January 07 Member No.: 5,477 ![]() |
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 |
|
|
|
Jan 12 2007, 08:27 PM
Post
#14
|
|
|
New Member ![]() Group: Members Posts: 5 Joined: 11-January 07 Member No.: 5,477 ![]() |
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 |
|
|
|
Jan 12 2007, 09:05 PM
Post
#15
|
|
![]() Boss, my code's compiling (xkcd) Group: Admins Posts: 10,440 Joined: 19-September 01 Member No.: 1 ![]() |
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), "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 |
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 19th May 2013 - 01:50 PM |