Jump to content


- - - - -

(FSY23) BBCode & Emoticons in Filter v1.1


  • Please log in to reply
9 replies to this topic

#1 Michael

Michael

    See code 431.322.12 of the Internet Privacy Act

  • Modders
  • PipPipPipPipPipPipPipPipPipPip
  • 22,042 posts
  • Location:Columbus, OH
  • Real Name:Michael McCune
  • IPB Version:v3.1.x
Contributor

Posted 24 October 2006 - 07:41 PM


File Name: (FSY23) BBCode & Emoticons in Filter v1.1
File Submitter: Michael
File Submitted: 24 Oct 2006
File Updated: 31 Jul 2007
File Category: IP.Board v2.3.x & v2.2.x Mods

Allows the use of BBCode and Emoticons in the word filter. That way, you can replace certain words with an appropriate emoticon or use bbcodes like [u],[b],[i],[url], etc.

Compatibility:
This mod is compatible with both the IP.Board 2.2.x and IP.Board 2.3.x series.

Requirements:
This mod was designed to be installed using the Universal Mod Installer, available from IPS Resources or Invision Modding.

Files Affected:
  • sources\classes\bbcode\class_bbcode.php
  • sources\classes\bbcode\class_bbcode_legacy.php


Click here to download this file
Michael McCune - IPS Marketplace Moderator

My Stuff: My Forum · My Resources · My Tutorials
Contact Me: Email · Facebook · Twitter

#2 naki_nicky

naki_nicky

    Novice

  • Members
  • PipPip
  • 12 posts
  • Location:New Zealand
  • Real Name:Nicky
  • IPB Version:v2.2.x

Posted 30 April 2007 - 01:17 AM

I updated the Universal Mod Installer and Installed this mod...

The bbcode (in my case the image) worked fine in the bad word list. But all the rest of the board emoticons are now erroring, this is what I see...

QUOTE
vars['EMOTICONS_URL']}/Banana.gif" style="vertical-align:middle" emoid=":Banana:" border="0" alt="Banana.gif"
Proceeded by a white box with red x.

This issue only started after installing the BBcode mod. I reverted the changes in the 2 php files and uninstalled the mod using the universal mod installer, and the issue remains.

As you can imagine this is making a huge mess of the forums

Any assistance would be greatly appreciated...

biggrin.gif Nicky


#3 Michael

Michael

    See code 431.322.12 of the Internet Privacy Act

  • Modders
  • PipPipPipPipPipPipPipPipPipPip
  • 22,042 posts
  • Location:Columbus, OH
  • Real Name:Michael McCune
  • IPB Version:v3.1.x
Contributor

Posted 30 April 2007 - 03:56 PM

If the error is still there after uninstalling this mod, then the mod has nothing to do with it.  All this mod does is change the order things are parsed in, it doesn't affect anything that would give you errors when you try to add emoticons to your posts now.
Michael McCune - IPS Marketplace Moderator

My Stuff: My Forum · My Resources · My Tutorials
Contact Me: Email · Facebook · Twitter

#4 naki_nicky

naki_nicky

    Novice

  • Members
  • PipPip
  • 12 posts
  • Location:New Zealand
  • Real Name:Nicky
  • IPB Version:v2.2.x

Posted 01 May 2007 - 01:01 AM

QUOTE(Michael @ May 1 2007, 03:56 AM) <{POST_SNAPBACK}>
If the error is still there after uninstalling this mod, then the mod has nothing to do with it.  All this mod does is change the order things are parsed in, it doesn't affect anything that would give you errors when you try to add emoticons to your posts now.


I had to replace the class_bbcode.php and the class_bbcode_legacy.php with fresh copies once uninstalling the mod for the emots to work correctly again.

I have tried to reinstall the mod 3 times now and I get the same issue each and every time. I have made sure it is completely uninstalled and all working before trying the mod install again...

Thanks for any further help in advance biggrin.gif
Nicky


#5 Michael

Michael

    See code 431.322.12 of the Internet Privacy Act

  • Modders
  • PipPipPipPipPipPipPipPipPipPip
  • 22,042 posts
  • Location:Columbus, OH
  • Real Name:Michael McCune
  • IPB Version:v3.1.x
Contributor

Posted 01 May 2007 - 02:33 AM

Can you please give me a specific list of steps to follow that will show the problem?  I don't think I understand what exactly is going on with your forum.
Michael McCune - IPS Marketplace Moderator

My Stuff: My Forum · My Resources · My Tutorials
Contact Me: Email · Facebook · Twitter

#6 naki_nicky

naki_nicky

    Novice

  • Members
  • PipPip
  • 12 posts
  • Location:New Zealand
  • Real Name:Nicky
  • IPB Version:v2.2.x

Posted 01 May 2007 - 03:07 AM

Sure biggrin.gif

1st I had to update the universal mod installer as I had the older version...

After doing this I did infact place a post on the forums that did work fine.

Then i continued to install the BBCode & Emoticons in Filter V1.1 mod as per your instructions. I.E. running the universal mod installer. Doing the file edits and proceeding to the Admin CP to switch the mod on.

Everything seems to install smoothly until I go to place a post. The image that i wish the badword to be replaced with works correctly BUT the emoticons no longer work. Instead I see (for example the following was supposed to be an emoticon called Banana.gif which is usually activated by :Banana:)

QUOTE
vars['EMOTICONS_URL']}/Banana.gif" style="vertical-align:middle" emoid=":Banana:" border="0" alt="Banana.gif"


Before installing the mod I would see the Banana.gif image.

This happened with the mod turned either on or off in Admin CP.

Now while trying to seek fixes for this I did come across another couple of issues that have involved altering the class_bbcode.php file. The 1st of which told me to recount the topics which of course then changed ALL emots to what you see above, with of course the file name altered. So I had to go through each of the 700+ posts individually and alter the BBcode for the emoticons back to what they should have been.

After not finding too much help on this topic i tried to uninstall the mod, using the uninstall option in the components page. This did not alter anything, the emots were still being replaced by the "code" above. So i proceeded to reverse the changed to the class_bbcode.php and the class_bbcode_legacy.php. This too did not fix my issue. I removed the bbcode mod_install file from the mod_install folder. This too did nothing. I then installed a fresh copy of both class_bbcode.php and the class_bbcode_legacy.php files. This fixed the issue, but now no BBcode in filter.

After thinking that maybe I done something wrong with the install I have now reinstalled the mod 3 times following your instructions word for word and each time having the same difficulties.

Before having this mod installed I had no other mods installed that affected emoticons in any way. I have since though installed the mod to add the smileys to topic titles. But this was after the 2nd try at reinstalling this mod.

In the class_bbcode.php file i found the following segment:
CODE
        //-----------------------------------------
        // Remove slashes added by preg_quote
        //-----------------------------------------
        
        $code = stripslashes($code);
        
        $this->emoticon_count++;
        
        return "<img src=\"{$this->ipsclass->vars['EMOTICONS_URL']}/$image\" style=\"vertical-align:middle\" emoid=\"".trim($code)."\" border=\"0\" alt=\"$image\" />";
    }


This seems to be the error I am seeing. Not knowing much at all about coding, php or the how to's with IPB, I don't know what, if any, relevance this has to my error, but it is what I am seeing.

Thankyou biggrin.gif
Nicky


#7 naki_nicky

naki_nicky

    Novice

  • Members
  • PipPip
  • 12 posts
  • Location:New Zealand
  • Real Name:Nicky
  • IPB Version:v2.2.x

Posted 03 May 2007 - 10:21 PM

I am still having the same issue, 3 days on... I have no idea if it is something I am doing wrong, but I have tried multiple times now to no avail sad.gif

smile.gif Nicky


#8 naki_nicky

naki_nicky

    Novice

  • Members
  • PipPip
  • 12 posts
  • Location:New Zealand
  • Real Name:Nicky
  • IPB Version:v2.2.x

Posted 20 July 2007 - 01:33 AM

Still having this issue 3 months on, now on 2 boards same thing and when i replace the BBcode PHP files back to the original BBcode files from the install folder and it fixes the issue!

The new boards are on a completely diff domain and webhosting company from the other boards if that makes any difference?

Anyone else having or had this issue?

Thanks smile2.gif
Nicky


#9 DawPi

DawPi

    in search of lost time..

  • Modders
  • PipPipPipPipPipPipPipPipPip
  • 2,214 posts
  • Location:Cracow, Poland
  • Real Name:David
  • IPB Version:v3.2.x
Contributor

Posted 20 April 2008 - 11:39 AM

Michael - everything work great, but in this mod i found one bug.

When i post 'mod my god' and word 'mod' is linked to www.mymod.com everything work great, but.. when i re-edit i have double parse word 'mod' and link is broken ;) Can you help me ?

EDIT:
how to disable word filter in topic titles ?

Edited by DawPi, 20 April 2008 - 12:39 PM.

Dawid Pieron
intermedia - owner, developer and ip.board modder
Need custom mod, conversion service, any ip.board related job or support for any of my paid mods or services?
www | mail | facebook | twitter | buy licence

#10 Michael

Michael

    See code 431.322.12 of the Internet Privacy Act

  • Modders
  • PipPipPipPipPipPipPipPipPipPip
  • 22,042 posts
  • Location:Columbus, OH
  • Real Name:Michael McCune
  • IPB Version:v3.1.x
Contributor

Posted 20 April 2008 - 02:09 PM

That has nothing to do with this mod, it has to do with your attempt to auto-link that text to a URL.  This mod does not do anything about URLs with the word filter.
Michael McCune - IPS Marketplace Moderator

My Stuff: My Forum · My Resources · My Tutorials
Contact Me: Email · Facebook · Twitter




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users