Welcome to the E-Blah Community!
We would like to welcome you to our community and invite you to register an account or login.
Being a registered member is important, as it gives you several advantages over the normal Guest status. After registering you will be able to download files and images, post messages, and access member-only portions of the forum - just to name a few. Registration is quick and simple, and only takes about a minute of your time.

E-Blah Community    Modifications    Modification Archive  ›  Enable HTML v1.0 Moderators: 10 Series Support Team
Users Browsing Forum
No Members and 2 Guests

Enable HTML v1.0  This thread currently has 5,365 views. Print
3 Pages « 1 2 3 Recommend Thread
Scottie_Too_Hottie7
March 29, 2005, 8:07am Report to Moderator Report to Moderator

E-Blah Member
Posts: 217
Gender: Male
Posts Per Day: 0.04
Reputation: 76.92%
Reputation Score: +10 / -3
Time Online: 1 days 10 hours 37 minutes
Age: 28
[htmlcode] tag completed!

a total of 5 different code addons have to be done to 3 different files.

LONG POST WARNING




Languages/English/Post.lng

Search 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.pl

Search 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.pl

Search 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.pl

Search 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>
                             &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                             <input type="checkbox" name="postafterfix" id="postafterfix">
                             &nbsp;&nbsp;
                             $pt153
                             </center>
EOT
                   }
              }
              else {
                                       $htmlcode_error = "F";
              }
         # END OF [htmlcode] tag - by scott dennison (Scottie_Too_Hottie7)    





Code/Routines.pl

Where 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 = "&#091htmlcode&#093";
                   $htmlcode_tag_r2 = "&#091&#047htmlcode&#091";
#                    $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.
Logged Offline
Private Message Private message YIM YIM Windows Live Messenger WLM Reply: 30 - 41
Scottie_Too_Hottie7
March 29, 2005, 10:28am Report to Moderator Report to Moderator

E-Blah Member
Posts: 217
Gender: Male
Posts Per Day: 0.04
Reputation: 76.92%
Reputation Score: +10 / -3
Time Online: 1 days 10 hours 37 minutes
Age: 28
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.
Logged Offline
Private Message Private message YIM YIM Windows Live Messenger WLM Reply: 31 - 41
Craig
March 29, 2005, 11:20am Report to Moderator Report to Moderator

SQL Support Team
Posts: 3,611
Gender: Male
Posts Per Day: 0.64
Reputation: 97.73%
Reputation Score: +215 / -5
Time Online: 14 days 16 hours 9 minutes
Location: Germany
Age: 49
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.
Logged Offline
Site Site Private Message Private message ICQ ICQ Reply: 32 - 41
riffplayer
March 29, 2005, 12:01pm Report to Moderator Report to Moderator

E-Blah Member
Posts: 263
Gender: Male
Posts Per Day: 0.05
Reputation: 100.00%
Time Online: 2 days 4 hours 12 minutes
Location: Indiana
Age: 44
I agree - this looks really cool, but should be made into a mod so that it is easier to upload.
Logged Offline
Private Message Private message Reply: 33 - 41
Scottie_Too_Hottie7
March 29, 2005, 12:49pm Report to Moderator Report to Moderator

E-Blah Member
Posts: 217
Gender: Male
Posts Per Day: 0.04
Reputation: 76.92%
Reputation Score: +10 / -3
Time Online: 1 days 10 hours 37 minutes
Age: 28
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.
Logged Offline
Private Message Private message YIM YIM Windows Live Messenger WLM Reply: 34 - 41
Scottie_Too_Hottie7
March 31, 2005, 1:27am Report to Moderator Report to Moderator

E-Blah Member
Posts: 217
Gender: Male
Posts Per Day: 0.04
Reputation: 76.92%
Reputation Score: +10 / -3
Time Online: 1 days 10 hours 37 minutes
Age: 28
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.
Logged Offline
Private Message Private message YIM YIM Windows Live Messenger WLM Reply: 35 - 41
Scottie_Too_Hottie7
March 31, 2005, 2:50am Report to Moderator Report to Moderator

E-Blah Member
Posts: 217
Gender: Male
Posts Per Day: 0.04
Reputation: 76.92%
Reputation Score: +10 / -3
Time Online: 1 days 10 hours 37 minutes
Age: 28
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/ &nbsp; &nbsp; /\t/gi;
    $temp =~ s/ &nbsp;/  /gi;
    $temp =~ s/\&quot;/"/g;
    $temp =~ s/\&#124;/\|/g;
    $temp =~ s/<br>/\n/g;
    $temp =~ s/&gt;/>/g;
    $temp =~ s/&lt;/</g;
    $temp =~ s/\&amp;/&/g;
    return $temp;
}





NOTE : You may notice me not being on these forums for long times on end.
Logged Offline
Private Message Private message YIM YIM Windows Live Messenger WLM Reply: 36 - 41
Ryan
April 10, 2005, 7:06pm Report to Moderator Report to Moderator

Inactive Support Team
Posts: 1,799
Gender: Male
Posts Per Day: 0.33
Reputation: 85.15%
Reputation Score: +86 / -15
Time Online: 11 days 8 hours 2 minutes
Location: Ontario
Age: 40
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!



Logged Offline
Site Site Private Message Private message YIM YIM Reply: 37 - 41
Scottie_Too_Hottie7
April 11, 2005, 3:57am Report to Moderator Report to Moderator

E-Blah Member
Posts: 217
Gender: Male
Posts Per Day: 0.04
Reputation: 76.92%
Reputation Score: +10 / -3
Time Online: 1 days 10 hours 37 minutes
Age: 28
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.
Logged Offline
Private Message Private message YIM YIM Windows Live Messenger WLM Reply: 38 - 41
Scottie_Too_Hottie7
April 11, 2005, 4:02am Report to Moderator Report to Moderator

E-Blah Member
Posts: 217
Gender: Male
Posts Per Day: 0.04
Reputation: 76.92%
Reputation Score: +10 / -3
Time Online: 1 days 10 hours 37 minutes
Age: 28
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.
Logged Offline
Private Message Private message YIM YIM Windows Live Messenger WLM Reply: 39 - 41
Ryan
April 11, 2005, 6:11pm Report to Moderator Report to Moderator

Inactive Support Team
Posts: 1,799
Gender: Male
Posts Per Day: 0.33
Reputation: 85.15%
Reputation Score: +86 / -15
Time Online: 11 days 8 hours 2 minutes
Location: Ontario
Age: 40
Changed the name so it's easier to find in search results.

Revision History (1 edits)
othellobloke  -  April 11, 2005, 6:13pm
Logged Offline
Site Site Private Message Private message YIM YIM Reply: 40 - 41
Scottie_Too_Hottie7
February 27, 2009, 2:57pm Report to Moderator Report to Moderator

E-Blah Member
Posts: 217
Gender: Male
Posts Per Day: 0.04
Reputation: 76.92%
Reputation Score: +10 / -3
Time Online: 1 days 10 hours 37 minutes
Age: 28
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.
Logged Offline
Private Message Private message YIM YIM Windows Live Messenger WLM Reply: 41 - 41
3 Pages « 1 2 3 Recommend Thread
Print

E-Blah Community    Modifications    Modification Archive  ›  Enable HTML v1.0