Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - flash player
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

flash player

 Post Reply Post Reply Page  <12
Author
numanme View Drop Down
Senior Member
Senior Member
Avatar

Joined: 21 May 2003
Location: United Kingdom
Status: Offline
Points: 220
Post Options Post Options   Thanks (0) Thanks(0)   Quote numanme Quote  Post ReplyReply Direct Link To This Post 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 ***
'******************************************
Back to Top
numanme View Drop Down
Senior Member
Senior Member
Avatar

Joined: 21 May 2003
Location: United Kingdom
Status: Offline
Points: 220
Post Options Post Options   Thanks (0) Thanks(0)   Quote numanme Quote  Post ReplyReply Direct Link To This Post Posted: 02 January 2008 at 6:30am
any help!
Back to Top
Scotty32 View Drop Down
Moderator Group
Moderator Group


Joined: 30 November 2002
Location: Manchester, UK
Status: Offline
Points: 1682
Post Options Post Options   Thanks (0) Thanks(0)   Quote Scotty32 Quote  Post ReplyReply Direct Link To This Post 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 - WebWiz Mods and Skins

For support on my mods + skins, please use my forum.
Back to Top
numanme View Drop Down
Senior Member
Senior Member
Avatar

Joined: 21 May 2003
Location: United Kingdom
Status: Offline
Points: 220
Post Options Post Options   Thanks (0) Thanks(0)   Quote numanme Quote  Post ReplyReply Direct Link To This Post Posted: 03 January 2008 at 4:11pm
just sent you a PM
Back to Top
 Post Reply Post Reply Page  <12

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.