Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/Code)
 MOD: flash code [3.4]
 New Topic  Topic Locked
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 2

Ez4arab
Junior Member

479 Posts

Posted - 24 August 2002 :  15:06:43  Show Profile  Visit Ez4arab's Homepage
Title:add-ons:Flash Mod for version 3.4
Contributors: Ez4arab

Description
it allows users to put flash without useing html if it is closed.

Features:
- Administrative Control panel gives you control ON/OFF Flash
- Completely new script
- All code done in response.writes (for version 3.4 compatability)
- Users can customize width and height.


Ease of Installation (1-Hard, 10-Easy): 9
AttachmentDownload here


Demo: none at this time

If you have problems installing the mod, please post in the Mod Implementation forum.

File Modifications

config.asp --- 2
inc_post_buttons.asp ---1
inc_iconfiles.asp ---1
inc_code.asp ---1
inc_func_posting.asp ---1
inc_func_common.asp ---1
admin_config_features.asp ---1
pop_config_help.asp ---1

Note:
Do not upload any files need to be overwritten, you need to back up your old files.

YOU NEED TO updata database by insert this
Note use Alternative MOD Setup or use file dbs_flash.dbs and include this statment

Mod flash
[INSERT]
CONFIG_NEW
(C_VALUE,C_VARIABLE)#('1','STRSHOWFLASHBUTTON')
[END]






config.asp
LINE 127 add this
Dim strShowFlashButton ' <-- allow flash
LINE 392 add this
strShowFlashButton = Application(strCookieURL & "STRSHOWFLASHBUTTON")



inc_post_buttons.asp
at line 64 add this

if strShowFlashButton = "1" then
Response.Write "" & _
"<a href=""Javascript:flash();"" tabindex=""-1"">" & getCurrentIcon(strIconEditorFlash,"Insert Flash","align=""top""") & "</a>"
end if



inc_iconfiles.asp
Line 52 add this
Const strIconEditorflash = "icon_editor_flash.gif|23|22"


Ez4arab web site Ez4arab |

Edited by - Ez4arab on 24 August 2002 15:15:24

Ez4arab
Junior Member

479 Posts

Posted - 24 August 2002 :  15:12:14  Show Profile  Visit Ez4arab's Homepage
inc_code.asp
Line 91 add this

function flash() {
if (helpstat) {
alert("Inserts Flash tags, remember to enter width and height attributes before and after the Width:Height");
} else if (basic) {
AddTxt="[flash 150:150]http://[/flash]";
AddText(AddTxt);
} else {
txt3=prompt("Inserts URL of flash end with (.swf).","http://");
if (txt3!=null) {
txt=prompt("Width ","150");
if (txt!=null) {
txt2=prompt("Height.","150");
if (txt2!=null) {
if (txt3=="") {
AddTxt="[flash 150:150]"+txt3+"[/flash]";
AddText(AddTxt);
} else {
AddTxt="[flash "+txt+":"+txt2+"]"+txt3+"[/flash]";
AddText(AddTxt);
}
}
}
}
}
}


inc_code.js
line 267 add this

function flash() {
if (helpstat) {
alert("Inserts Flash tags, remember to enter width and height attributes before and after the Width:Height");
} else if (basic) {
AddTxt="[flash 150:150]http://[/flash]";
AddText(AddTxt);
} else {
txt3=prompt("Inserts URL of flash end with (.swf).","http://");
if (txt3!=null) {
txt=prompt("Width ","150");
if (txt!=null) {
txt2=prompt("Height.","150");
if (txt2!=null) {
if (txt3=="") {
AddTxt="[flash 150:150]"+txt3+"[/flash]";
AddText(AddTxt);
} else {
AddTxt="[flash "+txt+":"+txt2+"]"+txt3+"[/flash]";
AddText(AddTxt);
}
}
}
}
}
}

inc_func_posting.asp
Line 116 add this

fString = replace(fString, "<EMBED WIDTH=""","[flash ", 1, -1, 1)
fString = replace(fString, """ HEIGHT=""",":", 1, -1, 1)
fString = replace(fString, """ SRC=""","]", 1, -1, 1)
fString = replace(fString, """ HIDDEN=""false"" AUTOSTART=""true"" LOOP=""true"" volume=""100""></EMBED>","[/flash]", 1, -1, 1)

inc_func_common.asp
Line 742 add this

fString = doCode(fString, "[flash ",":","<EMBED WIDTH=""",""" HEIGHT=""")
fString = doCode(fString, "]","[/flash]",""" SRC=""",""" HIDDEN=""false"" AUTOSTART=""true"" LOOP=""true"" volume=""100""></EMBED>")


admin_config_features.asp
Line 216 add this

" <tr valign=""middle"">" & vbNewLine & _
" <td bgColor=""" & strPopUpTableColor & """ align=""right""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><b>Show Format Flash Button:</b> </font></td>" & vbNewLine & _
" <td bgColor=""" & strPopUpTableColor & """><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>" & vbNewLine & _
" On:<input type=""radio"" class=""radio"" name=""strShowFlashButton"" value=""1""" & chkRadio(strShowFlashButton,0,false) & "> " & vbNewLine & _
" Off:<input type=""radio"" class=""radio"" name=""strShowFlashButton"" value=""0""" & chkRadio(strShowFlashButton,0,true) & ">" & vbNewLine & _
" <a href=""JavaScript:openWindow3('pop_config_help.asp?mode=features#strShowFlashButton')"">" & getCurrentIcon(strIconSmileQuestion,"","") & "</a></td>" & vbNewLine & _
" </tr>" & vbNewLine & _


pop_config_help.asp
Line 267 this line

" <tr>" & vbNewLine & _
" <td bgcolor=""" & strCategoryCellColor & """><a name=""strShowFlashButton""></a><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """ color=""" & strCategoryFontColor & """ ><b>Show Flash Buttons?</b></font></td>" & vbNewLine & _
" </tr>" & vbNewLine & _
" <tr>" & vbNewLine & _
" <td bgcolor=""" & strForumCellColor & """><font face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """ color=""" & strForumFontColor & """>" & vbNewLine & _
" This turns off or on the Flash Button in the Section of Format on the screen where your users post new topics/reply to existing topics.<br /><br /><font color=""" & strHiLiteFontColor & """>Note:</font> You must also have Forum Code enabled on your forum to use this feature." & vbNewLine & _


" <a href=""#top"">" & getCurrentIcon(strIconGoUp,"Go To Top Of Page","align=""right""") & "</a></font></td>" & vbNewLine & _
" </tr>" & vbNewLine & _

Ez4arab web site Ez4arab |

Edited by - Ez4arab on 24 August 2002 15:17:30
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 24 August 2002 :  17:44:25  Show Profile  Visit dayve's Homepage
inc_func_posting.asp
Line 116 add this

fString = replace(fString, "<EMBED WIDTH=""","[flash ", 1, -1, 1)
fString = replace(fString, """ HEIGHT=""",":", 1, -1, 1)
fString = replace(fString, """ SRC=""","]", 1, -1, 1)
fString = replace(fString, """ HIDDEN=""false"" AUTOSTART=""true"" LOOP=""true"" volume=""100""></EMBED>","[/flash]", 1, -1, 1)

inc_func_common.asp
Line 742 add this

fString = doCode(fString, "[flash ",":","<EMBED WIDTH=""",""" HEIGHT=""")
fString = doCode(fString, "]","[/flash]",""" SRC=""",""" HIDDEN=""false"" AUTOSTART=""true"" LOOP=""true"" volume=""100""></EMBED>")


This part of the code is what I made for 3.3 and will be buggy when using certain smilies in the post at the same time. I am currently working on the code to use OBJECT instead of just EMBED.

Go to Top of Page

Ez4arab
Junior Member

479 Posts

Posted - 24 August 2002 :  19:14:13  Show Profile  Visit Ez4arab's Homepage
quote:

This part of the code is what I made for 3.3 and will be buggy when using certain smilies in the post at the same time. I am currently working on the code to use OBJECT instead of just EMBED.



yes i am using ur code for that because it has width and height.

then i made mofiy inc_code.asp and inc_code.js to let users decide the width and hieght.

default hit falsh will gives
[flash 150:150]http://[flash]

this will remove the smile bug. unless if member change the code.


Once your finsh yours it will be part of updata of this mod

Ez4arab web site Ez4arab |
Go to Top of Page

Heynow
Junior Member

374 Posts

Posted - 06 November 2002 :  15:00:09  Show Profile  Visit Heynow's Homepage  Send Heynow an AOL message  Send Heynow a Yahoo! Message
Thanks for the mod.



Political Forums
:::Stay n Chat

Edited by - Heynow on 06 January 2003 23:30:41
Go to Top of Page

Ez4arab
Junior Member

479 Posts

Posted - 06 November 2002 :  19:55:59  Show Profile  Visit Ez4arab's Homepage
thanx Heynow777 for the icon

Ez4arab web site Ez4arab |
Go to Top of Page

Heynow
Junior Member

374 Posts

Posted - 06 November 2002 :  20:51:20  Show Profile  Visit Heynow's Homepage  Send Heynow an AOL message  Send Heynow a Yahoo! Message
Your welcome.


Political Forums
:::Stay n Chat
Go to Top of Page

crash
Advanced Member

Netherlands
2064 Posts

Posted - 07 November 2002 :  18:27:00  Show Profile  Visit crash's Homepage
quote:
Originally posted by dayve
I am currently working on the code to use OBJECT instead of just EMBED.

dayve, any luck yet? please keep me posted!

cHosting.nl
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 09 November 2002 :  12:13:00  Show Profile  Visit dayve's Homepage
oh man, I totally gaffed this off. I need to get back on track with it. just have had bigger fish to fry lately. I have a 4 day weekend so maybe I'll take a peep at it.

Go to Top of Page

crash
Advanced Member

Netherlands
2064 Posts

Posted - 09 November 2002 :  18:47:28  Show Profile  Visit crash's Homepage
please keep me posted on this one! and thanks for the effort!

cHosting.nl
Go to Top of Page

kymera
New Member

51 Posts

Posted - 24 November 2002 :  19:40:52  Show Profile
does anyone have the flash picture
Go to Top of Page

msperry
Starting Member

USA
48 Posts

Posted - 24 November 2002 :  22:53:50  Show Profile  Visit msperry's Homepage
Here's 2 more Icons for it



- Michael
NovaSheep.Com
Go to Top of Page

jmarkling
Starting Member

Denmark
34 Posts

Posted - 06 January 2003 :  08:18:34  Show Profile  Visit jmarkling's Homepage  Send jmarkling an ICQ Message
It would be more than helpfull, if u could tell where I should add the diffirent code parts, be cause the code-line numbers won't add-up if u, as I am, are using other Mods, and have editet the code a lot...

Exampel(don't do this):

Find in config_ex.asp around line 310
**************************************
strLinkTextDecoration = Application(strCookieURL & "STRLINKTEXTDECORATION")
strVisitedLinkColor = Application(strCookieURL & "STRVISITEDLINKCOLOR")
strVisitedTextDecoration = Application(strCookieURL & "STRVISITEDTEXTDECORATION")
**************************************

Right below that insert:
**************************************
strShowFlashButton = Application(strCookieURL & "STRSHOWFLASHBUTTON")
**************************************


Regards Markling

www.pw3.dk

JEM

Edited by - jmarkling on 06 January 2003 08:49:42
Go to Top of Page

zbenggg
Junior Member

Israel
227 Posts

Posted - 06 January 2003 :  12:36:48  Show Profile
config.asp not work...

I love Israel
Go to Top of Page

crash
Advanced Member

Netherlands
2064 Posts

Posted - 06 January 2003 :  18:17:13  Show Profile  Visit crash's Homepage
now that is a very clear comment!

cHosting.nl
Go to Top of Page

jkmcgrath
Junior Member

USA
145 Posts

Posted - 06 January 2003 :  19:13:47  Show Profile  Visit jkmcgrath's Homepage

Delta Force Seals
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Next Page
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.29 seconds. Powered By: Snitz Forums 2000 Version 3.4.07