|
|
rvdfanpage |
|
E-Blah Member 
Posts: 5
Posts Per Day: 0.00
Location: Hamilton, Ontario, Canada
Age: 26
|
I just thought of another feature that might be of some use... would it be possible to prevent user-attached files from loading automatically?
For example, if I attached a picture, could a link be placed in the message body to download the file instead of inserting the photo automatically?
If this is possible, could you make it so files greater than a certain size do not load automatically while the rest of the files do?
|
|
|
|
|
|
Justin |
|
|
Posts: 15,075
Gender:  Male
Posts Per Day: 6.52
Reputation: 93.40%
Reputation Score: +297 / -21
Time Online: 36 days 23 hours 27 minutes
Location: Tallassee, AL
Age: 22
|
Hrmm .... it would be possible, you could take out the following: Find this in MessageDisplay.pl
|
Code
$message .= qq~$hr <center><img src="$uploadurl/$afile" border=0></center>~; |
|
Replace with:
|
Code
#$message .= qq~$hr <center><img src="$uploadurl/$afile" border=0></center>~; |
|
(added a comment "#") - Justin |
| I do installs for $25 and upgrades for $20.Technical support is always free. Donate to E-Blah! My Websites: Revolution Reality (My Blog)  |  MinistryTalk.com  |  Portfolio"But you, O Lord, are a compassionate and gracious God, slow to anger, abounding in love and faithfulness." — Psalm 86:15 NIV  |
|
|
|
|
|
TheGodFather |
|
E-Blah Member  
Posts: 14
Posts Per Day: 0.01
|
This MOD must be out of date. Because I tried this using your latest version of Blah and it doesn't seem to work. On my forums people can up load video clips and they really don't like the fact they the vids open up automatically. So how can I make this work on the lastest version of this software?
Thanks The GodFather |
|
|
|
|
|
Justin |
|
|
Posts: 15,075
Gender:  Male
Posts Per Day: 6.52
Reputation: 93.40%
Reputation Score: +297 / -21
Time Online: 36 days 23 hours 27 minutes
Location: Tallassee, AL
Age: 22
|
|
|
|
|
|
Justin |
|
|
Posts: 15,075
Gender:  Male
Posts Per Day: 6.52
Reputation: 93.40%
Reputation Score: +297 / -21
Time Online: 36 days 23 hours 27 minutes
Location: Tallassee, AL
Age: 22
|
|
|
|
|
|
TheGodFather |
|
E-Blah Member  
Posts: 14
Posts Per Day: 0.01
|
Hi Justin, I took out that code like you said but it just seem to take out the pictures from being seen in the post. That wasn't what I was looking for so i changed it back,  This is the problem i am having. When someone to to view a video or movie file that was uploaded, when the video/movie link is click it goes to a page saying that the download will start in like 5 sec. and then bamn..it automataclly opens up my windows media player to play the file. i want to have it setup so when just video files are uploaded that a direct link to the video file is part of the message its self just like it shows at the very top of this thread. hope you can help. P.S. I also noticed that the counter for how many times a file has been downloaded isn't counting. any reason why this is so? |
|
|
|
|
|
Justin |
|
|
Posts: 15,075
Gender:  Male
Posts Per Day: 6.52
Reputation: 93.40%
Reputation Score: +297 / -21
Time Online: 36 days 23 hours 27 minutes
Location: Tallassee, AL
Age: 22
|
|
|
|
|
|
BigC |
|
|
Posts: 76
Gender:  Male
Posts Per Day: 0.04
Reputation: 20.00%
Location: Atlanta GA
Age: 23
|
Justin, I this link might help. http://www.htmlgoodies.com/tutors/videoembed.html What I would like to see eblah do is play the video in the message body. So all a member would have to do is upload the video file and then click on their post see it play automatically in the message body of their post. |
|
|
|
|
|
Justin |
|
|
Posts: 15,075
Gender:  Male
Posts Per Day: 6.52
Reputation: 93.40%
Reputation Score: +297 / -21
Time Online: 36 days 23 hours 27 minutes
Location: Tallassee, AL
Age: 22
|
Open MessageDisplay.pl: Find:
|
Code
if($afile) { if(-e "$uploaddir/$afile") { fopen(FILE,"$prefs/Hits/$afile.txt"); @nump = <FILE>; fclose(FILE); chomp @nump; $nump = $nump[0]+1; if($afile =~ /(jpg|jpeg|gif|art|bmp|png)/) { $act = "views"; fopen(ADD,"+>$prefs/Hits/$afile.txt"); print ADD $nump,"\n"; fclose(ADD); $extra .= qq~<tr><td align="center" valign="bottom">$hr<img src="$uploadurl/$afile" border="0"></td></tr>~; } else { $act = "downloads"; --$nump; } $size = sprintf("%.2f",(-s "$uploaddir/$afile")/1024); $type = "KB"; if($size > 1000) { $size = sprintf("%.2f",$size/1024); $type = "MB"; } $piclink = qq~<br>$aicon<b>$messagedisplay[12]:</b> <a href="$scripturl,v=download,f=$afile" target="download">$afile</a> - $size $type ($nump $act)~; } else { $piclink = qq~<br>$aicon<b>$messagedisplay[13] $messagedisplay[12]:</b> $afile~; } } |
|
Replace with:
|
Code
if($afile) { if(-e "$uploaddir/$afile") { fopen(FILE,"$prefs/Hits/$afile.txt"); @nump = <FILE>; fclose(FILE); chomp @nump; $nump = $nump[0]+1; if($afile =~ /(jpg|jpeg|gif|art|bmp|png|avi|mpeg|mpg|afx)/) { $act = "views"; fopen(ADD,"+>$prefs/Hits/$afile.txt"); print ADD $nump,"\n"; fclose(ADD); if($afile =~ /(avi|mpeg|mpg|afx)/) { $extra .= qq~<tr><td align="center" valign="bottom">$hr<embed src="$uploadurl/$afile" autostart="true"></embed></td></tr>~; } else { $extra .= qq~<tr><td align="center" valign="bottom">$hr<img src="$uploadurl/$afile" border="0"></td></tr>~; } } else { $act = "downloads"; --$nump; } $size = sprintf("%.2f",(-s "$uploaddir/$afile")/1024); $type = "KB"; if($size > 1000) { $size = sprintf("%.2f",$size/1024); $type = "MB"; } $piclink = qq~<br>$aicon<b>$messagedisplay[12]:</b> <a href="$scripturl,v=download,f=$afile" target="download">$afile</a> - $size $type ($nump $act)~; } else { $piclink = qq~<br>$aicon<b>$messagedisplay[13] $messagedisplay[12]:</b> $afile~; } } |
|
|
| I do installs for $25 and upgrades for $20.Technical support is always free. Donate to E-Blah! My Websites: Revolution Reality (My Blog)  |  MinistryTalk.com  |  Portfolio"But you, O Lord, are a compassionate and gracious God, slow to anger, abounding in love and faithfulness." — Psalm 86:15 NIV  |
|
|
|
|
|
BigC |
|
|
Posts: 76
Gender:  Male
Posts Per Day: 0.04
Reputation: 20.00%
Location: Atlanta GA
Age: 23
|
Justin,
Will this change let the video's play in the message body? |
|
|
|
|
|
Justin |
| October 30, 2003, 11:06pm |
|
|
Posts: 15,075
Gender:  Male
Posts Per Day: 6.52
Reputation: 93.40%
Reputation Score: +297 / -21
Time Online: 36 days 23 hours 27 minutes
Location: Tallassee, AL
Age: 22
|
|
|
|
|
|
BigC |
|
|
Posts: 76
Gender:  Male
Posts Per Day: 0.04
Reputation: 20.00%
Location: Atlanta GA
Age: 23
|
Naw it's not working. I would love to see the video play the same way you see a picture or what you type in the messagebody. Without having to click on any links. |
|
|
|
|
|
Justin |
|
|
Posts: 15,075
Gender:  Male
Posts Per Day: 6.52
Reputation: 93.40%
Reputation Score: +297 / -21
Time Online: 36 days 23 hours 27 minutes
Location: Tallassee, AL
Age: 22
|
|
|
|
|
|
BigC |
|
|
Posts: 76
Gender:  Male
Posts Per Day: 0.04
Reputation: 20.00%
Location: Atlanta GA
Age: 23
|
I think it should still play.... because you can't post multiple files in one post. So each file that is in the same post is a reply to the 1st. |
|
|
|
|
|
Justin |
|
|
Posts: 15,075
Gender:  Male
Posts Per Day: 6.52
Reputation: 93.40%
Reputation Score: +297 / -21
Time Online: 36 days 23 hours 27 minutes
Location: Tallassee, AL
Age: 22
|
|
|
|
|
|
|