Any Butterfly Marketing Script/PHP Experts Here?

by 12 replies
15
Hey guys,

I'm wondering if there's any PHP Experts fluent with the Butterfly Marketing Script here?

Basically I'm looking for a fix for when the admin sends a message
via email & site inbox,

Emails will return any hyperlinks as "clickable",
however, the site inbox returns hyperlinks as regular text.

Anyone know/or found a fix to render the site inbox hyperlinks properly?

I've looked in the caterpillar forum, but that's pretty much dead.
and Im not part of the BFM2.0 Developers (paid) community either ...

any further advice or assistance would be greatly appreciated.

Thanks in advance!

- aj


p.s.

PM if you like.
#programming #butterfly #experts #marekting #script or php
  • I looked at the code, but it burned my eyes, the code is horrid. I don't doubt there are all sorts of complex unfixable bugs in there.
    • [1] reply
    • Ok, got it running on my installation.

      ** These changes only affect the members area inbox.

      Out of the box, it could never display, clickable links as it uses a text area and just displays the text ( html ).

      So I got rid of the textarea and made it into a div with scroll bars.
      Next was to scan the text and turn them into links.

      So it converts the system links and you can put in your own links which must start with a www or http and it will convert it.
      It even converts email address...
      And if you do happen to stick in the full html link catastrophe, it doesn't mess it up.
      I borrowed some tricks from wordpress.

      Only problem is that the [[unsub]] addy never gets filled in and I can't find it anywhere in my version of BMS...

      Although - having an unsub link inside a members area inbox is a little silly. It'd be better to have a tick box.

      There is some silly things going on inside the script- that's a big surprise!!

      == 2 Files changed and 1 added
      • [ 1 ] Thanks
  • Now there's a professional expert reply ...

    Great work and thanks for the PM Tim,.. really appreciate it.
    I'll get back to you shortly mate, have some more news for you.

    You're right about the unsub link though ...

    It is a bit silly, but kinda good it's not active for the site inbox.

    I've got a mod to give users ad credits just for keeping their inbox msgs
    'read' and if they want, they can just delete the msgs anyway, instead of unsubbing

    (yet they can still unsub from their personal email vs the site inbox)

    cheers Tim!
    chat soon buddy,

    - aj
    • [1] reply
    • What didn't like my reply?

      Here's why I say that this code is horrific

      $$var_get_1 = addslashes($value_get_1);
      $_GET[$key_get_1]=addslashes($value_get_1);

      Using bad assumptions to clean user input before it gets sent to database.

      Using
      /* public: sequence numbers */
      function nextid($seq_name) {

      bad logic to get the next_id (this will surely crack at some point under heavy load)

      Using unbound mysql queries

      ...

      Im not even going to mention the poor layout of the code itself. This was coded for PHP 3-4. We're at PHP 5.3+ now .. this is why they just gave this script away ... it's a pile of unsecure junk.
      • [1] reply

Next Topics on Trending Feed