Print Page | Close Window

flash player

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums Modifications
Forum Description: Mod's and Add-on's for Web Wiz Forums.
URL: https://forums.webwiz.net/forum_posts.asp?TID=25048
Printed Date: 29 March 2026 at 11:46pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: flash player
Posted By: numanme
Subject: flash player
Date Posted: 21 December 2007 at 3:18pm
I have been trying to get a flash player working on my forum one that any member can post without too much difficulty I have managed to get one working using The JW MP3 Player. But this still involves pasting in a large bit of script, I was wondering if it is possible to create some kind of code or page that the user could use just to put the MP3 link in to generate the code.        
look  at this
http://www.numanme.co.uk/forumme/forum_posts.asp?TID=3306 - http://www.numanme.co.uk/forumme/forum_posts.asp?TID=3306
                                                                                                                                                                                                                       
                                                                                                                                                                                                            



Replies:
Posted By: Scotty32
Date Posted: 21 December 2007 at 4:46pm
it should be pretty easy.

create a BBCode so that you do [fplayer]http://site.com/song.mp3[/fplayer] and it loads JW MP3 player.

you could also look at my http://www.s2h.co.uk/wwf/mods/multi-media-functions/ - Multi Media Functions mod

-------------
S2H.co.uk - http://www.s2h.co.uk/wwf/" rel="nofollow - WebWiz Mods and Skins

For support on my mods + skins, please use http://www.s2h.co.uk/forum/" rel="nofollow - my forum .


Posted By: numanme
Date Posted: 21 December 2007 at 5:15pm
Sorry to say I could not get your script working on my forum, have you got a text file of the cod update for each page updated. So I can add it manually if that is possible.
This is the cod that I have to enter to have a flash player on my site can anyone help to make it a little easier
<CENTER>&nbsp;</CENTER>
<EMBED src=albumplayer2.swf width=300 height=20 type=application/x-shockwave-flash allowfullscreen="true" allowscriptaccess="always" flashvars="&amp;file=PUT YOUR MP3 HERE&amp;height=140&amp;width=240&amp;frontcolor=0x999999&amp;backcolor=0x00000&amp;lightcolor=0x990000&amp;&amp;height=20&amp;width=300">
<CENTER>&nbsp;</CENTER>


Posted By: Scotty32
Date Posted: 21 December 2007 at 7:54pm
since you posted in the V8 forum i will assume your using V8 - if so, make sure you use V1 of my mod as V2 is for Web Wiz Forums version 9. my mod only plays music via an embeded media player such as Windows Media Player or QuickTime.


As for the code above, you will need to add the following lines to a couple of pages.

Add this to forum_posts.asp just under where the flash line is called.
            If InStr(1, strMessage, "[FPLAYER]", 1) > 0 AND InStr(1, strMessage, "[/FPLAYER]", 1) > 0 Then strMessage = formatFPLAYER(strMessage)


add this line to some free space in the functions/functions_format_post.asp
'This function formats FPLAYER
Function formatFPLAYER(ByVal strMessage)
 
 
    'Declare variables
    Dim strFPLAYERLink        'Hold the You FPLAYER Link
    Dim lngStartPos            'Holds search start postions
    Dim lngEndPos            'Holds end start postions
    Dim strBuildFPLAYER        'Holds the built coded message
    Dim strOriginalFPLAYER    'Holds the code block in original format
 
    'Loop through all the BB codes in the message and convert to a link to the FPLAYER movie
    Do While InStr(1, strMessage, "[FPLAYER]", 1) > 0 AND InStr(1, strMessage, "[/FPLAYER]", 1) > 0
    
        'Get the start and end of the FPLAYER BBcode
        lngStartPos = InStr(1, strMessage, "[FPLAYER]", 1) + 6
        lngEndPos = InStr(lngStartPos, strMessage, "[/FPLAYER]", 1)
 
        'Make sure the end position is not in error
        If lngEndPos < lngStartPos Then lngEndPos = lngStartPos + 6
 
        'If there is a FPLAYER link then process
        If lngEndPos > lngStartPos Then
 
            'Get the FPLAYER link
            strFPLAYERLink = Trim(Mid(strMessage, lngStartPos, lngEndPos-lngStartPos))
            
            'Insert FPLAYER movie
            strBuildFPLAYER = "<CENTER>&nbsp;</CENTER><EMBED src=""albumplayer2.swf"" width=300 height=20 type=application/x-shockwave-flash allowfullscreen=""true"" allowscriptaccess=""always"" flashvars=""&amp;file=" & strFPLAYERLink & "&amp;height=140&amp;width=240&amp;frontcolor=0x999999&amp;backcolor=0x00000&amp;lightcolor=0x990000&amp;&amp;height=20&amp;width=300""><CENTER>&nbsp;</CENTER>"
        End If
 
        
        'Get the start and end position in the start and end position in the message of the BBcode FPLAYER
        lngStartPos = InStr(1, strMessage, "[FPLAYER]", 1)
        lngEndPos = InStr(lngStartPos, strMessage, "[/FPLAYER]", 1) + 7
 
        'Make sure the end position is not in error
        If lngEndPos < lngStartPos Then lngEndPos = lngStartPos + 6
 
        'Get the original code to be replaced in the message
        strOriginalFPLAYER = Trim(Mid(strMessage, lngStartPos, lngEndPos-lngStartPos))
 
        'Replace the code codes in the message with the new formated code block
        If strBuildFPLAYER <> "" Then
            strMessage = Replace(strMessage, strOriginalFPLAYER, strBuildFPLAYER, 1, -1, 1)
        Else
            strMessage = Replace(strMessage, strOriginalFPLAYER, Replace(strOriginalFPLAYER, "[", "&#91;", 1, -1, 1), 1, -1, 1)
        End If
    Loop
 
    'Return the function
    formatFPLAYER = strMessage
 
End Function




-------------
S2H.co.uk - http://www.s2h.co.uk/wwf/" rel="nofollow - WebWiz Mods and Skins

For support on my mods + skins, please use http://www.s2h.co.uk/forum/" rel="nofollow - my forum .


Posted By: numanme
Date Posted: 22 December 2007 at 1:27am
Scotty32
 

Followed you instructions but after posting [FPLAYER] http://homepage.ntlworld.com/r.a.churchward/music/jagged_track2.mp3%5b/FPLAYER - http://homepage.ntlworld.com/r.a.churchward/music/jagged_track2.mp3[/FPLAYER ]

The post would not show and the bottom of the forum disappeared.

Got your embeded media player working very cool but I would love to get the flash player working



Posted By: numanme
Date Posted: 22 December 2007 at 1:39am
http://www.numanme.co.uk/numanme-playlist.zip - http://www.numanme.co.uk/numanme-playlist.zip
 

Here is a Zip

of the files I have in the forum folder if it helps



Posted By: Scotty32
Date Posted: 22 December 2007 at 11:11am
Im sorry i cant test this as i dont run V8 any more.

if you could link me to a post on your forum where the error is i might be able to see the problem


-------------
S2H.co.uk - http://www.s2h.co.uk/wwf/" rel="nofollow - WebWiz Mods and Skins

For support on my mods + skins, please use http://www.s2h.co.uk/forum/" rel="nofollow - my forum .


Posted By: numanme
Date Posted: 22 December 2007 at 3:08pm
http://www.numanme.co.uk/forumme/forum_posts.asp?FID=19&TID=3306&PN=1 - http://www.numanme.co.uk/forumme/forum_posts.asp?FID=19&TID=3306&PN=1
 

Got the flash player to show but when you press play the MP3 will not play

And after the flash player you can see ER]

HELP



Posted By: numanme
Date Posted: 22 December 2007 at 3:13pm

Changed the code a little

 
forum_posts.asp
 
   If InStr(1, strMessage, "[FPLAYER]", 1) > 0 AND InStr(1, strMessage, "[/FPLAYER]", 1) > 0 Then strMessage = formatFPLAYER(strMessage)
   If InStr(1, strAuthorSignature, "[FPLAYER", 1) > 0 AND InStr(1, strAuthorSignature, "[/FPLAYER]", 1) > 0 Then strAuthorSignature = formatFPLAYER(strAuthorSignature)
 
 
functions_format_post.asp
 
'******************************************
'***  Start flash player Mod ***
'******************************************                                    
'This function formats FPLAYER
Function formatFPLAYER(ByVal strMessage)     
'Declare variables   
Dim strFPLAYERLink        'Hold the You FPLAYER Link   
Dim lngStartPos            'Holds search start postions   
Dim lngEndPos            'Holds end start postions   
Dim strBuildFPLAYER        'Holds the built coded message   
Dim strOriginalFPLAYER    'Holds the code block in original format    
'Loop through all the BB codes in the message and convert to a link to the FPLAYER movie   
Do While InStr(1, strMessage, "[FPLAYER]", 1) > 0 AND InStr(1, strMessage, "[/FPLAYER]", 1) > 0            
'Get the start and end of the FPLAYER BBcode       
lngStartPos = InStr(1, strMessage, "[FPLAYER]", 1) + 6       
lngEndPos = InStr(lngStartPos, strMessage, "[/FPLAYER]", 1)        
'Make sure the end position is not in error       
If lngEndPos < lngStartPos Then lngEndPos = lngStartPos + 6        
'If there is a FPLAYER link then process       
If lngEndPos > lngStartPos Then            
'Get the FPLAYER link           
strFPLAYERLink = Trim(Mid(strMessage, lngStartPos, lngEndPos-lngStartPos))                        
'Insert FPLAYER movie           
strBuildFPLAYER = "<EMBED src=""albumplayer2.swf"" width=300 height=20 type=application/x-shockwave-flash allowfullscreen=""true"" allowscriptaccess=""always"" flashvars=""&amp;file=" & strFPLAYERLink & "&amp;height=140&amp;width=240&amp;frontcolor=0x999999&amp;backcolor=0x00000&amp;lightcolor=0x990000&amp;&amp;height=20&amp;width=300"">"       
End If                 
'Get the start and end position in the start and end position in the message of the BBcode FPLAYER       
lngStartPos = InStr(1, strMessage, "[FPLAYER]", 1)       
lngEndPos = InStr(lngStartPos, strMessage, "[/FPLAYER]", 1) + 7        
'Make sure the end position is not in error       
If lngEndPos < lngStartPos Then lngEndPos = lngStartPos + 6        
'Get the original code to be replaced in the message       
strOriginalFPLAYER = Trim(Mid(strMessage, lngStartPos, lngEndPos-lngStartPos))        
'Replace the code codes in the message with the new formated code block       
If strBuildFPLAYER <> "" Then           
strMessage = Replace(strMessage, strOriginalFPLAYER, strBuildFPLAYER, 1, -1, 1)       
Else           
strMessage = Replace(strMessage, strOriginalFPLAYER, Replace(strOriginalFPLAYER, "[", "&#91;", 1, -1, 1), 1, -1, 1)       
End If   
Loop    
'Return the function   
formatFPLAYER = strMessage
End Function
'******************************************
'***   End flash player Mod ***
'******************************************


Posted By: numanme
Date Posted: 02 January 2008 at 6:30am
any help!


Posted By: Scotty32
Date Posted: 03 January 2008 at 12:54pm
sorry, i am unable to test it as i dont run V8 any more.

if you could link me to a post on your forum with it (either in here or via PM) i will have a look.


-------------
S2H.co.uk - http://www.s2h.co.uk/wwf/" rel="nofollow - WebWiz Mods and Skins

For support on my mods + skins, please use http://www.s2h.co.uk/forum/" rel="nofollow - my forum .


Posted By: numanme
Date Posted: 03 January 2008 at 4:11pm
just sent you a PM



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net