|
|
Scottie_Too_Hottie7 |
|
|
Posts: 217
Gender:  Male
Posts Per Day: 0.07
Reputation: 76.92%
Reputation Score: +10 / -3
Time Online: 1 days 10 hours 37 minutes
Age: 20
|
[htmlcode] tag completed!a total of 5 different code addons have to be done to 3 different files. LONG POST WARNING Languages/English/Post.lngSearch For 1;On The Line Above, Add The Following Code
|
Code
# HTMLCODE BBCODE $posttxt[151] = "ONLY ADMINS ARE ALLOWED TO USE THE [htmlcode] TAG"; $posttxt[152] = "Fix bbcode Errors"; $posttxt[153] = "Post After Fix?"; $posttxt[154] = "Removed [htmlcode] Tags";
|
|
Code/Post.plSearch For CoreLoad('Post',1);Add This BELOW that line
|
Code
# START OF [htmlcode] tag - by scott dennison (Scottie_Too_Hottie7) $htmlcode_error = "F"; # END OF [htmlcode] tag - by scott dennison (Scottie_Too_Hottie7)
|
|
Code/Post.plSearch For sub PostThread {Add This BELOW That Line
|
Code
# START OF [htmlcode] tag - by scott dennison (Scottie_Too_Hottie7) $htmlcode_error = "T"; # END OF [htmlcode] tag - by scott dennison (Scottie_Too_Hottie7)
|
|
Code/Post.plSearch For The Following Extract In The POSTTHREAD subroutine
Quoted Text
$FORM{'tempopen'} = $FORM{'tempopen'} || time; if($FORM{'tempopen'}) { fopen(TEMPFILE,"$prefs/Hits/$FORM{'tempopen'}.temp"); while(<TEMPFILE>) { chomp; if($FORM{"del_$_"} ne '') { unlink("$uploaddir/$_","$prefs/Hits/$_.txt"); $deleteatts = 1; next; } $addupload{$_} = 1; $totalusize += -s("$uploaddir/$_"); if(-e("$uploaddir/$_")) { $atturl .= "$_/"; } } fclose(TEMPFILE); $maxsize -= sprintf("%.2f",($totalusize/1024/1024)); # With other attachments, total size goes down.  } if($message eq '') { $error = $posttxt[54]; }
And Add This BELOW
|
Code
# START OF [htmlcode] tag - by scott dennison (Scottie_Too_Hottie7) loaduser($username); if ($userset{$username}->[4] ne 'Administrator') { if ($message =~ m/\[htmlcode\](.+?)\[\/htmlcode\]/) { $pt151 = $posttxt[151]; $pt152 = $posttxt[152]; $pt153 = $posttxt[153]; $pt154 = $posttxt[154]; $error = <<"EOT"; <script language="JavaScript"> function htmlcode_fix(dopost) { var them = msend.message.value; while(them.indexOf('[htmlcode]') != -1) { them = them.replace("[htmlcode]",""); } while(them.indexOf('[/htmlcode]') != -1) { them = them.replace("[/htmlcode]",""); } msend.message.value = them; if (dopost) { msend.submit.click(); } else { alert("$pt154"); } } </script> <center> $pt151 <BR> <button class=button onclick='htmlcode_fix(postafterfix.checked)'>$pt152</button> <input type="checkbox" name="postafterfix" id="postafterfix"> $pt153 </center> EOT } } else { $htmlcode_error = "F"; } # END OF [htmlcode] tag - by scott dennison (Scottie_Too_Hottie7)
|
|
Code/Routines.plWhere You Find Something Like The Extract Below
Quoted Text
$message =~ s~\[hr\]~<hr size="1" width="100%" color="$color{'border'}">~gsi; $message =~ s~\[sub\](.+?)\[/sub\]~<sub>$1</sub>~gsi; $message =~ s~\[sup\](.+?)\[/sup\]~<sup>$1</sup>~gsi; $message =~ s~\[mail\](.+?)\[/mail\]~<a href="mailto:$1">$1</a>~gsi; $message =~ s~\[mail=(.+?)\](.+?)\[/mail\]~<a href="mailto:$1">$2</a>~gsi; $message =~ s~\[move\](.+?)\[/move\]~<marquee>$1</marquee>~gsi;
Add This UNDERNEATH
|
Code
# START OF [htmlcode] tag - by scott dennison (Scottie_Too_Hottie7) while ($message =~ m/\[htmlcode\](.+?)\[\/htmlcode\]/) { if ($htmlcode_error eq "T") { $message =~ s~\[htmlcode\](.+?)\[/htmlcode\]~$1~gsi; } else { $htmlcode_tag = "<!-- START OF HTMLCODE //-->"; $htmlcode_tag .= Unformat($1); $htmlcode_tag_r1 = "[htmlcode]"; $htmlcode_tag_r2 = "[/htmlcode["; # $htmlcode_tag .= s~\[htmlcode\]~$htmlcode_tag_r1~gsi; # $htmlcode_tag .= s~\[/htmlcode\]~$htmlcode_tag_r2~gsi; $htmlcode_tag .= "<!-- END OF HTMLCODE //-->"; $message =~ s~\[htmlcode\](.+?)\[/htmlcode\]~$htmlcode_tag~gsi; } } # END OF [htmlcode] tag - by scott dennison (Scottie_Too_Hottie7)
|
|
Thankyou for reading such a long post |
|
NOTE : You may notice me not being on these forums for long times on end. |
|
|
|
|
|
Scottie_Too_Hottie7 |
|
|
Posts: 217
Gender:  Male
Posts Per Day: 0.07
Reputation: 76.92%
Reputation Score: +10 / -3
Time Online: 1 days 10 hours 37 minutes
Age: 20
|
Oops, i have missed off 2 ; symbols
edited origanl post |
|
NOTE : You may notice me not being on these forums for long times on end. |
|
|
|
|
|
Craig |
|
|
Posts: 3,611
Gender:  Male
Posts Per Day: 1.25
Reputation: 97.73%
Reputation Score: +215 / -5
Time Online: 14 days 15 hours 54 minutes
Location: Germany
Age: 41
|
This needs to be made into a mod  . Also needs to have a discription file with it describing what it does...other wise it will be lost on the forum buried under thousands of posts  . |
| Don't just ask a question. Instead ask a question, give us a screen shot and post a link to your forum. Help us help you make your forum better!If I helped...increase my Reputation by clicking here. |
|
|
|
|
|
riffplayer |
|
|
Posts: 263
Gender:  Male
Posts Per Day: 0.09
Reputation: 100.00%
Time Online: 2 days 4 hours 11 minutes
Location: Indiana
Age: 36
|
I agree - this looks really cool, but should be made into a mod so that it is easier to upload. |
|
|
|
|
|
Scottie_Too_Hottie7 |
|
|
Posts: 217
Gender:  Male
Posts Per Day: 0.07
Reputation: 76.92%
Reputation Score: +10 / -3
Time Online: 1 days 10 hours 37 minutes
Age: 20
|
please could one of u admins do that (craig,othellobloke,justin).
it was a struggle to do that as is is |
|
NOTE : You may notice me not being on these forums for long times on end. |
|
|
|
|
|
Scottie_Too_Hottie7 |
|
|
Posts: 217
Gender:  Male
Posts Per Day: 0.07
Reputation: 76.92%
Reputation Score: +10 / -3
Time Online: 1 days 10 hours 37 minutes
Age: 20
|
Thanks, OthelloBloke, all i need now is a unix version. anyone? |
|
NOTE : You may notice me not being on these forums for long times on end. |
|
|
|
|
|
Scottie_Too_Hottie7 |
|
|
Posts: 217
Gender:  Male
Posts Per Day: 0.07
Reputation: 76.92%
Reputation Score: +10 / -3
Time Online: 1 days 10 hours 37 minutes
Age: 20
|
IF YOU ARE ABOUT TO DOWNLOAD THE WINDOWS MOD, DON'T BECAUSE I FORGOT TO DISPLAY ONE BIT OF CODE sorry othellobloke, please could u redo it. Load.pl - Change The 'Unformat' Funtion To This Updated Version
|
Code
sub Unformat { ($temp) = $_[0]; $temp =~ s/ /\t/gi; $temp =~ s/ / /gi; $temp =~ s/\"/"/g; $temp =~ s/\|/\|/g; $temp =~ s/<br>/\n/g; $temp =~ s/>/>/g; $temp =~ s/</</g; $temp =~ s/\&/&/g; return $temp; }
|
|
|
|
NOTE : You may notice me not being on these forums for long times on end. |
|
|
|
|
|
Ryan |
|
|
Posts: 1,799
Gender:  Male
Posts Per Day: 0.65
Reputation: 85.15%
Reputation Score: +86 / -15
Time Online: 11 days 8 hours 2 minutes
Location: Ontario
Age: 32
|
Here are the Windows and Unix versions of this Enable HTML mod. The Windows version works on windows, but I'm not altogether sure about the Unix version.
Someone with Unix please test the Unix one. Any problems, ask Scottie!
 |
This post contains attachments; to download them you must login. |
|
|
|
|
|
|
|
Scottie_Too_Hottie7 |
|
|
Posts: 217
Gender:  Male
Posts Per Day: 0.07
Reputation: 76.92%
Reputation Score: +10 / -3
Time Online: 1 days 10 hours 37 minutes
Age: 20
|
Thanks  Now i just have to get rid of all my added code from my forum, then add the mod. |
|
NOTE : You may notice me not being on these forums for long times on end. |
|
|
|
|
|
Scottie_Too_Hottie7 |
|
|
Posts: 217
Gender:  Male
Posts Per Day: 0.07
Reputation: 76.92%
Reputation Score: +10 / -3
Time Online: 1 days 10 hours 37 minutes
Age: 20
|
This was origannly in the q+a section, but has now been completed
*** Threads have been Merged by Craig *** |
|
NOTE : You may notice me not being on these forums for long times on end. |
|
|
|
|
|
Ryan |
|
|
Posts: 1,799
Gender:  Male
Posts Per Day: 0.65
Reputation: 85.15%
Reputation Score: +86 / -15
Time Online: 11 days 8 hours 2 minutes
Location: Ontario
Age: 32
|
Changed the name so it's easier to find in search results. |
|
| Revision History (1 edits) |
| othellobloke - April 11, 2005, 6:13pm | | |
|
|
|
|
|
Scottie_Too_Hottie7 |
| February 27, 2009, 2:57pm |
|
|
Posts: 217
Gender:  Male
Posts Per Day: 0.07
Reputation: 76.92%
Reputation Score: +10 / -3
Time Online: 1 days 10 hours 37 minutes
Age: 20
|
I recently got an e-mail asking me to update this modification to support the latest version of E-Blah. However I do not have enough free time to update this modification. If anyone wants to pick this up and attempt it themselves, then it's fine by me. Oh and sorry for awakening a really old thread  |
|
NOTE : You may notice me not being on these forums for long times on end. |
|
|
|
|
|
|