Any Butterfly Marketing Script/PHP Experts Here?

12 replies
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.
#butterfly #experts #marekting #script or php
  • Profile picture of the author jminkler
    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.
    {{ DiscussionBoard.errors[3344808].message }}
    • Profile picture of the author Tim Brownlaw
      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
      {{ DiscussionBoard.errors[3372646].message }}
  • Profile picture of the author Aj Wilson
    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
    Signature
    {{ DiscussionBoard.errors[3376365].message }}
    • Profile picture of the author jminkler
      Originally Posted by Aj Wilson View Post

      Now there's a professional expert reply ...
      - aj
      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.
      {{ DiscussionBoard.errors[3400071].message }}
      • Profile picture of the author Aj Wilson
        I agree Jarret,

        The code is out dated and messy ... however,

        If you were applying for a job, would you tell your prospective
        employer their workplace was a dump, but you'd still like the job?

        You PM'd if I had a budget, the answer is absolutely yes.

        Although I'd like to work with professionals who would like to solve
        the problems presented, not abuse the site and offend the owner?

        I understand correcting the code is a major task on it's own ...

        and Im in the process of interviewing developers to re-create/secure and update the script.

        Everything on the current site is for testing and development purposes,
        along with a working demo for the developers to look at, to see how it functions.

        Everything will be competely optimized and streamlined before the launch.

        You sound like you know your php and I honestly think that's fantastic.
        You truly do sound like an expert in your field, a quality to admire.

        But good manners is also a quality I look for when interacting with others.
        As that is a quality I most admire as well.

        all the very best Jarret,

        I appreciate your expertise and concern for the bad coding.

        You're right, it's bad and messy,
        but that's what we're working with at this point in time.
        Signature
        {{ DiscussionBoard.errors[3400224].message }}
        • Profile picture of the author jminkler
          Originally Posted by Aj Wilson View Post

          I agree Jarret,

          The code is out dated and messy ... however,

          If you were applying for a job, would you tell your prospective
          employer their workplace was a dump, but you'd still like the job?

          You PM'd if I had a budget, the answer is absolutely yes.

          Although I'd like to work with professionals who would like to solve
          the problems presented, not abuse the site and offend the owner?

          I understand correcting the code is a major task on it's own ...

          and Im in the process of interviewing developers to re-create/secure and update the script.

          Everything on the current site is for testing and development purposes,
          along with a working demo for the developers to look at, to see how it functions.

          Everything will be competely optimized and streamlined before the launch.

          You sound like you know your php and I honestly think that's fantastic.
          You truly do sound like an expert in your field, a quality to admire.

          But good manners is also a quality I look for when interacting with others.
          As that is a quality I most admire as well.

          all the very best Jarret,

          I appreciate your expertise and concern for the bad coding.

          You're right, it's bad and messy,
          but that's what we're working with at this point in time.
          Wasn't applying for anything, I can code this from scratch in less than a day, not worth my time. I was simply warning you of the dangers of using this script, and of getting freelancers of the quality that reside on oDesk or vWorker. Especially if you give them this script as a starting point. In the course of the last week alone I have seen 5 sites to do "minor" work, and ALL of them had HUGE holes in them, all coded by previous freelancers outsourced to the lowest bidder.

          This script does make attempts at security but in truth falls way short of the mark. I asked what your budget was to gauge if you were in the correct ballpark to get your project done right. I have no desire to do this sort of project. I am only here to help as I have posted such comments on so many of the threads in here warning of the security risks brought up by some of the suggested "solutions" made.

          If you want to re-do this script I would only suggest creating diagrams of what you want, possibly with screenshots of the current code. Don't show them this source code at all. Have them build it from scratch in Object Oriented php5 using a framework like CodeIgnitor, Zend, Symfony etc.
          {{ DiscussionBoard.errors[3400377].message }}
          • Profile picture of the author Aj Wilson
            Originally Posted by jminkler View Post

            Have a budget?
            Then why PM and ask for a budget? [Edit]

            Com'on Jarret,

            You weren't asking me for a bugdet to 'test' me, to see if Im willing pay
            and how much?? ... you had no idea I was actually hiring developers until my 2nd post.

            No-where have I mentioned hiring freelancers on any 'lance' sites,
            Im in the process of interviewing locally for that part of the project.

            I have hired developers for parts of the project yes.

            But anyway,

            Tim kindly offered to assist and has already GIVEN
            me the solution for FREE. And it works perfect.

            He's the type of professional I'd like to work with
            so we wont waste any more of your time ...

            thank you for your expertise with the project descriptions
            and your security / coding concerns.
            Signature
            {{ DiscussionBoard.errors[3400447].message }}
            • Profile picture of the author jminkler
              Originally Posted by Aj Wilson View Post

              Then why PM and ask for a budget? [Edit]

              Com'on Jarret,

              You weren't asking me for a bugdet to 'test' me, to see if Im willing pay
              and how much?? ... you had no idea I was actually hiring developers until my 2nd post.

              No-where have I mentioned hiring freelancers on any 'lance' sites,
              Im in the process of interviewing locally for that part of the project.

              I have hired developers for parts of the project yes.

              But anyway,

              Tim kindly offered to assist and has already GIVEN
              me the solution for FREE. And it works perfect.

              He's the type of professional I'd like to work with
              so we wont waste any more of your time ...

              thank you for your expertise with the project descriptions
              and your security / coding concerns.

              Don't worry, they will find your sites online, and gladly abuse you.

              http://www.2600.com/hacked_pages/200...homas.loc.gov/
              http://www.2600.com/hacked_pages/200...w.idgames.com/

              Think even WP is secure?
              http://wordpress.org/support/topic/h...61-turksecinfo

              Joomla?
              http://forum.joomla.org/viewtopic.php?p=1987976

              Directory Scripts
              http://www.myaddirectory.com/Category/Entrepreneurs/172

              Hmmm and ever wonder what Mike did with all that contact info?
              http://www.BlueFartworld.com/BlueFar...l-centers.html

              What Happens when you cant code your backend right?
              http://www.BlueFartworld.com/BlueFar...gin-497-a.html
              (and I've seen recent products online just sitting there on amazon links)

              Or just ask people here
              Originally Posted by Just_Mel View Post

              Just set up my first BM site...took about a week and a half and did everything I needed it too right out of the box.

              I also set up a blog and forum with it, and just did some tweaking to those codes to get them to match - then added them into the link in the membership pages - worked great but unfortunately the dang site got hacked last night...

              But yes, the sky is the limit with what you can do with this script & a bit of knowledge (or a programmer)LOL


              But, ok, use whatever you want, and ignore the obvious.

              and keep running this software on your clickmelink site ..
              {{ DiscussionBoard.errors[3402206].message }}
              • Profile picture of the author sonia2012
                You mean the textarea box ? it's possible you can add link in reply textarea box by the use of WYSIWYG (What You See Is What You Get). Try to research in the online about the tinyMCE there are lots of stuff there.
                {{ DiscussionBoard.errors[3426887].message }}
        • Profile picture of the author ced28
          Originally Posted by Aj Wilson View Post

          I agree Jarret,

          The code is out dated and messy ... however,

          If you were applying for a job, would you tell your prospective
          employer their workplace was a dump, but you'd still like the job?

          You PM'd if I had a budget, the answer is absolutely yes.

          Although I'd like to work with professionals who would like to solve
          the problems presented, not abuse the site and offend the owner?

          I understand correcting the code is a major task on it's own ...

          and Im in the process of interviewing developers to re-create/secure and update the script.

          Everything on the current site is for testing and development purposes,
          along with a working demo for the developers to look at, to see how it functions.

          Everything will be competely optimized and streamlined before the launch.

          You sound like you know your php and I honestly think that's fantastic.
          You truly do sound like an expert in your field, a quality to admire.

          But good manners is also a quality I look for when interacting with others.
          As that is a quality I most admire as well.

          all the very best Jarret,

          I appreciate your expertise and concern for the bad coding.

          You're right, it's bad and messy,
          but that's what we're working with at this point in time.
          Hi AJ,

          I know this is a pretty old thread. Got here by googling butterfly marketing script php expert...LOL

          I'm wondering, we are 4 years later now, did you get the script updated?

          Script was working great for me when I was running php version 5.2.x

          But now my hosting company upgrade me to a new server and I'm now running php version 5.4.41.

          The script don't work properly using php 5.4.x

          Anyways, I'm taking a chance to see if you have updated the script and If the script is working for you on at least php version 5.3.x ++++

          Thanks,
          - Cedric
          {{ DiscussionBoard.errors[10127346].message }}
          • Profile picture of the author Aj Wilson
            Hey Cedric,

            Wow, this IS old .. lol.

            I ended up paying Tim above^^ (The so called "php expert") over $1500AU for modifications and updates to the script ... that he never completed.

            Basically took my money and gave nothing ... then wanted the code for my custom software that was connected to the site ... WTF? Ended up dumping him and the script altogether.

            Happily use wordpress based plugins & software these days.
            I have not touched (and wouldn't bother using) the BM Script for projects anymore.

            Can kindly recommend other scripts you might like to use, but that would depend on what you are trying to achieve ...

            All the best mate,

            - aj
            Signature
            {{ DiscussionBoard.errors[10128504].message }}
            • Profile picture of the author ced28
              Hey Aj,

              Thanks for getting back to me.

              Yeah for sure will not use the BM script for any new projects.

              I end up purchasing Smart member unlimited license, This thing ROCK, they are adding new features everyday so this will be my new membership platform from now on.

              To go back to the Butterfly marketing script...

              In case someone else will read this...

              I was able to fix my problem.

              When I upgraded my server, I went from MySQL version 5.0.96 to MySQL Version 5.6.23

              That when the signup form STOP working.

              The problem that occurred was that tables did not have a default value set, which under default mysql configurations will produce an error instead of working.

              To fix the issue, I had to disable the check to allow database tables without default values to work correctly.

              The exact setting that was disabled is `STRICT_TRANS_TABLES` which is a mysql mode that helps to enforce newer database methods.

              So now everything working fine on my Butterfly sites

              Thanks again for getting back to me Aj.

              - Cedric
              {{ DiscussionBoard.errors[10145812].message }}

Trending Topics