|
|
Scottie_Too_Hottie7 |
|
|
Posts: 216
Gender:  Male
Posts Per Day: 0.13
Reputation: 76.92%
Reputation Score: +10 / -3
Time Online: 1 days 10 hours 23 minutes
Age: 17
|
[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 |
|
Please Increase My Reputation Remember NOTE : You may notice me not being on these forums for long times on end. |
|
|
|
|
|
Scottie_Too_Hottie7 |
|
|
Posts: 216
Gender:  Male
Posts Per Day: 0.13
Reputation: 76.92%
Reputation Score: +10 / -3
Time Online: 1 days 10 hours 23 minutes
Age: 17
|
Oops, i have missed off 2 ; symbols
edited origanl post |
|
Please Increase My Reputation Remember NOTE : You may notice me not being on these forums for long times on end. |
|
|
|
|
|
Craig |
|
|
Posts: 3,619
Gender:  Male
Posts Per Day: 2.13
Reputation: 97.73%
Reputation Score: +215 / -5
Time Online: 14 days 15 hours 11 minutes
Location: Germany
Age: 38
|
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.15
Reputation: 100.00%
Time Online: 2 days 3 hours 50 minutes
Location: Indiana
Age: 33
|
I agree - this looks really cool, but should be made into a mod so that it is easier to upload. |
|
|
|
|
|
Scottie_Too_Hottie7 |
|
|
Posts: 216
Gender:  Male
Posts Per Day: 0.13
Reputation: 76.92%
Reputation Score: +10 / -3
Time Online: 1 days 10 hours 23 minutes
Age: 17
|
please could one of u admins do that (craig,othellobloke,justin).
it was a struggle to do that as is is |
|
Please Increase My Reputation Remember NOTE : You may notice me not being on these forums for long times on end. |
|
|
|
|
|
Scottie_Too_Hottie7 |
|
|
Posts: 216
Gender:  Male
Posts Per Day: 0.13
Reputation: 76.92%
Reputation Score: +10 / -3
Time Online: 1 days 10 hours 23 minutes
Age: 17
|
Thanks, OthelloBloke, all i need now is a unix version. anyone? |
|
Please Increase My Reputation Remember NOTE : You may notice me not being on these forums for long times on end. |
|
|
|
|
|
Scottie_Too_Hottie7 |
|
|
Posts: 216
Gender:  Male
Posts Per Day: 0.13
Reputation: 76.92%
Reputation Score: +10 / -3
Time Online: 1 days 10 hours 23 minutes
Age: 17
|
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; }
|
|
|
|
Please Increase My Reputation Remember NOTE : You may notice me not being on these forums for long times on end. |
|
|
|
|
|
Ryan |
|
|
Posts: 1,799
Gender:  Male
Posts Per Day: 1.14
Reputation: 85.00%
Reputation Score: +85 / -15
Time Online: 11 days 8 hours 2 minutes
Location: Ontario
Age: 29
|
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. |
|
|
| Read about Canada's Holocaust "Hidden from History" - http://www.ryanpaul.ca/canadas-holocaust/ |
|
|
|
|
|
Scottie_Too_Hottie7 |
|
|
Posts: 216
Gender:  Male
Posts Per Day: 0.13
Reputation: 76.92%
Reputation Score: +10 / -3
Time Online: 1 days 10 hours 23 minutes
Age: 17
|
Thanks  Now i just have to get rid of all my added code from my forum, then add the mod. |
|
Please Increase My Reputation Remember NOTE : You may notice me not being on these forums for long times on end. |
|
|
|
|
|
Scottie_Too_Hottie7 |
|
|
Posts: 216
Gender:  Male
Posts Per Day: 0.13
Reputation: 76.92%
Reputation Score: +10 / -3
Time Online: 1 days 10 hours 23 minutes
Age: 17
|
This was origannly in the q+a section, but has now been completed
*** Threads have been Merged by Craig *** |
|
Please Increase My Reputation Remember NOTE : You may notice me not being on these forums for long times on end. |
|
|
|
|
|
Ryan |
|
|
Posts: 1,799
Gender:  Male
Posts Per Day: 1.14
Reputation: 85.00%
Reputation Score: +85 / -15
Time Online: 11 days 8 hours 2 minutes
Location: Ontario
Age: 29
|
Changed the name so it's easier to find in search results. |
| Read about Canada's Holocaust "Hidden from History" - http://www.ryanpaul.ca/canadas-holocaust/ |
|
| Revision History (1 edits) |
| othellobloke - April 11, 2005, 6:13pm | | |
|
|
|
|
|
|