Advertisement:

Author Topic: Buy Me A Drink  (Read 38373 times)

Offline anakmacan

  • Full Member
  • ***
  • Posts: 444
  • Gender: Female
Re: Buy Me A Drink
« Reply #40 on: January 24, 2010, 02:57:06 PM »
Great modddd!!!!!!!! im sending a little donation right now ^^

Offline Andiiieee[:

  • Semi-Newbie
  • *
  • Posts: 85
  • Gender: Female
  • "..I think I should get off her first." - Nirvana
    • Zoinkers
Re: Buy Me A Drink
« Reply #41 on: February 06, 2010, 01:39:07 AM »
 Type     Action     Description
1.    Execute Modification    ./Sources/Admin.php    Test failed
2.    Execute Modification    ./Sources/Load.php    Test failed
3.    Execute Modification    ./Sources/Profile-Modify.php    File not found
4.    Execute Modification    ./Sources/ManageSettings.php    File not found
5.    Execute Modification    ./index.php    Test failed
6.    Execute Modification    ./Themes/default/languages/index.english.php    Test successful
7.    Execute Modification    ./Themes/default/languages/Admin.english.php    Test failed
8.    Execute Modification    ./Themes/default/Display.template.php    Test failed
9.    Extract File    ./Themes/default/images/buy_beer_large.gif    
10.    Extract File    ./Themes/default/images/buy_beer_small.gif    
11.    Extract File    ./Themes/default/images/buy_soda_large.gif    
12.    Extract File    ./Themes/default/images/buy_soda_small.gif    
13.    Extract File    ./Themes/default/images/buy_coffee_large.gif    
14.    Extract File    ./Themes/default/images/buy_coffee_small.gif    
15.    Extract File    ./Themes/default/images/buy_cigar_large.gif    
16.    Extract File    ./Themes/default/images/buy_cigar_small.gif    
17.    Extract File    ./Themes/default/images/buy_drink_large.gif    
18.    Extract File    ./Themes/default/images/buy_drink_small.gif    
19.    Extract File    ./Themes/default/Buyme.template.php    
20.    Extract File    ./Sources/Buyme.php    
21.    Execute Code    install20.php    

can i have these files please?
A girl like me would be really happy with a forum like you! ;)

My SMF Forums:

Offline GazOutEast

  • Jr. Member
  • **
  • Posts: 309
  • Gender: Male
  • If it's fixed - I can break it
Re: Buy Me A Drink
« Reply #42 on: February 06, 2010, 02:38:11 AM »
Type     Action     Description
1.    Execute Modification    ./Sources/Admin.php    Test failed
2.    Execute Modification    ./Sources/Load.php    Test failed
3.    Execute Modification    ./Sources/Profile-Modify.php    File not found
4.    Execute Modification    ./Sources/ManageSettings.php    File not found
5.    Execute Modification    ./index.php    Test failed
6.    Execute Modification    ./Themes/default/languages/index.english.php    Test successful
7.    Execute Modification    ./Themes/default/languages/Admin.english.php    Test failed
8.    Execute Modification    ./Themes/default/Display.template.php    Test failed

can i have these files please?

Which version of SMF are you using - it looks like you're trying to install a mod for SMF 2.0 onto SMF 1.1.x
I have 20:20 vision - I can see anything bigger than 20" x 20"

Offline ForumMustang.com

  • Full Member
  • ***
  • Posts: 474
  • Gender: Male
  • SMF French Translator
    • forummustang on Facebook
    • Ford Mustangs
Re: Buy Me A Drink
« Reply #43 on: February 12, 2010, 03:05:32 PM »
I managed to install the mod on SMF RC2 with your files after a few tries but I am having troubles with the icon in the profile area. On one forum the icon is showing twice and on another one it's showing three times.
I checked the code in the display.template.php file and it's how it should be and with no duplicate:

Code: [Select]
            // Any custom fields for standard placement?
            if (!empty($message['member']['custom_fields']))
            {
                foreach ($message['member']['custom_fields'] as $custom)
                    if (empty($custom['placement']) || empty($custom['value']))
                if ($message['member']['buy_on'])
                    {
                        if (!$modSettings['BuyMeIcon']) echo'';

                            echo '
                      <li><a href="', $scripturl, '?action=buyme;u=', $message['member']['id'], '" title="'.$txt['buy_description_icon'] . $message['member']['buy_type']. '"><img src="' . $settings['images_url'] . '/'.$message['member']['buy_icon'].'" alt="'.$txt['buy_description_icon'].$message['member']['buy_type'].'" border="0" /></a></li>';
                            }       

Any idea what could be wrong?

Offline Keith Tysinger

  • Semi-Newbie
  • *
  • Posts: 58
  • Gender: Male
Re: Buy Me A Drink
« Reply #44 on: March 15, 2010, 02:33:45 AM »
Support for SMF 2.0 RC 3 is out now. I'm afraid I never made a version for RC 2.

bperry921-- I would have been very happy to help you had you emailed me. I have this page bookmarked now and will check it much more often! Only two small changes were necessary to make the script install on RC3. Thanks for the suggestions for future versions. Holler at me anytime @ keith.tysinger@gmail.com

For the others with problems installing this script: it will only install in the versions listed. These are the only versions I have tested it on. It works with 2.0 RC1-1 and RC3 but not RC2. Every time the SMF team changes the templates for newer versions, I have to make some small adjustments. It's frustrating to everyone.

Check out my demo site, www.madcoder.biz/forum

This goes directly to a post where you can see the mod in action:

http://madcoder.biz/forum/index.php?topic=2.0
« Last Edit: March 15, 2010, 03:55:02 AM by Keith Tysinger »
Contact me for all of your website design needs.

Offline Keith Tysinger

  • Semi-Newbie
  • *
  • Posts: 58
  • Gender: Male
Re: Buy Me A Drink
« Reply #45 on: March 15, 2010, 03:43:48 AM »
It looks like you have installed the software multiple times. The problem shouldn't be hard to fix, just remove the additional code from display.template.php

Email me the templates and I can edit them for you. Didn't you get some errors before you installed this?


I managed to install the mod on SMF RC2 with your files after a few tries but I am having troubles with the icon in the profile area. On one forum the icon is showing twice and on another one it's showing three times.
I checked the code in the display.template.php file and it's how it should be and with no duplicate:

Code: [Select]
            // Any custom fields for standard placement?
            if (!empty($message['member']['custom_fields']))
            {
                foreach ($message['member']['custom_fields'] as $custom)
                    if (empty($custom['placement']) || empty($custom['value']))
                if ($message['member']['buy_on'])
                    {
                        if (!$modSettings['BuyMeIcon']) echo'';

                            echo '
                      <li><a href="', $scripturl, '?action=buyme;u=', $message['member']['id'], '" title="'.$txt['buy_description_icon'] . $message['member']['buy_type']. '"><img src="' . $settings['images_url'] . '/'.$message['member']['buy_icon'].'" alt="'.$txt['buy_description_icon'].$message['member']['buy_type'].'" border="0" /></a></li>';
                            }       

Any idea what could be wrong?
Contact me for all of your website design needs.

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,375
    • StoryBB/StoryBB on GitHub
Re: Buy Me A Drink
« Reply #46 on: March 15, 2010, 07:47:33 AM »
For the others with problems installing this script: it will only install in the versions listed. These are the only versions I have tested it on. It works with 2.0 RC1-1 and RC3 but not RC2. Every time the SMF team changes the templates for newer versions, I have to make some small adjustments. It's frustrating to everyone.

Sorry to say but that's the price of updating mods for release candidates and not final builds. Nowhere does it say that the templates "must not change" between now and 2.0 final.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline Keith Tysinger

  • Semi-Newbie
  • *
  • Posts: 58
  • Gender: Male
Re: Buy Me A Drink
« Reply #47 on: March 15, 2010, 08:50:32 AM »
I understand. I have always liked to upgrade to the newest RC, but I think I will stop that and wait for finals. RC2-3 was a very tempting upgrade due to the new Curve theme!


For the others with problems installing this script: it will only install in the versions listed. These are the only versions I have tested it on. It works with 2.0 RC1-1 and RC3 but not RC2. Every time the SMF team changes the templates for newer versions, I have to make some small adjustments. It's frustrating to everyone.

Sorry to say but that's the price of updating mods for release candidates and not final builds. Nowhere does it say that the templates "must not change" between now and 2.0 final.
Contact me for all of your website design needs.

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,375
    • StoryBB/StoryBB on GitHub
Re: Buy Me A Drink
« Reply #48 on: March 15, 2010, 08:52:35 AM »
Well, RC2 was a nightmare because of Curve. RC2 -> RC3 is relatively painless and strongly encouraged because of security concerns. Given the way the tracker is going, I think we can expect maybe RC4 before final, maybe not.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline bloox

  • Newbie
  • *
  • Posts: 3
Re: Buy Me A Drink
« Reply #49 on: March 16, 2010, 11:05:16 AM »
Hello is not working with rc3 i tryed both versions 1.1 - 1.2


Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,375
    • StoryBB/StoryBB on GitHub
Re: Buy Me A Drink
« Reply #50 on: March 16, 2010, 11:16:34 AM »
What other mods do you have installed?
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline bloox

  • Newbie
  • *
  • Posts: 3
Re: Buy Me A Drink
« Reply #51 on: March 16, 2010, 11:31:23 AM »

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,375
    • StoryBB/StoryBB on GitHub
Re: Buy Me A Drink
« Reply #52 on: March 16, 2010, 11:32:37 AM »
I think it's conflicting with the changes made by Thank-O-Matic.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline bloox

  • Newbie
  • *
  • Posts: 3
Re: Buy Me A Drink
« Reply #53 on: March 16, 2010, 11:36:51 AM »
I installed thankomatik after this but im gonna try unistalling it

Do you know also why i have double files like this?

Quote
BoardIndex.php~
Admin.php~
Groups.php~

edit: tried , still the same
« Last Edit: March 16, 2010, 11:41:34 AM by bloox »

Offline Keith Tysinger

  • Semi-Newbie
  • *
  • Posts: 58
  • Gender: Male
Re: Buy Me A Drink
« Reply #54 on: March 16, 2010, 02:13:25 PM »
I will install thank-o-matic this afternoon and let you know what I find out.

The files beginning with a ~ are backup files. I assume they are the the older version right before a mod is installed. I'm not completely sure since it's done automatically by SMF.
Contact me for all of your website design needs.

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,375
    • StoryBB/StoryBB on GitHub
Re: Buy Me A Drink
« Reply #55 on: March 16, 2010, 02:58:13 PM »
That's exactly what the ~ files are, saved copies of the file before the last mod install.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline Keith Tysinger

  • Semi-Newbie
  • *
  • Posts: 58
  • Gender: Male
Re: Buy Me A Drink
« Reply #56 on: March 17, 2010, 01:46:31 AM »
Bloox:

It is conflicting with the referrals mod. The referrals mod had some errors on uninstall; however, when I uninstalled it my mod was able to install.

Code: [Select]
$select_columns = '
mem.referrals_no, mem.referrals_hits, mem.referred_on, mem.referred_by,
IFNULL(lo.log_time, 0) AS is_online, IFNULL(a.id_attach, 0) AS id_attach, a.filename, a.attachment_type,


The referrals mod adds the second line which breaks the "search and replace" of my installation. Frankly, I'm not sure how I could fix the conflict because the third line is used twice in the Load.php file.
Contact me for all of your website design needs.

Offline Bob Perry of Web Presence Consulting

  • Sophist Member
  • *****
  • Posts: 1,003
  • Gender: Male
  • (T)ogether (E)veryone (A)chieves (M)ore
    • Bobert921 on Facebook
    • https://www.linkedin.com/in/bperry921/ on LinkedIn
    • @bperry921 on Twitter
    • Web Presence Consulting
Re: Buy Me A Drink
« Reply #57 on: March 17, 2010, 02:10:44 PM »
With a HEAVILY modified SMF 2.0 RC3 system, you'll most likely need to do a manual install, I've got it installed and it seems to function perfectly for admin user, but there are several flaws for normal users, it's filling up my SMF error log with the following two errors for guest users who visit one of my posts where the BuyMe icons is suppose to be displayed but guests and normal users alike get that dern ugly box with the x in it instead of displaying the BuyMe icon...



Also, normal registered users also have a screwed up dialogue to add the BuyMe options in their Profile options, it doesn't display the nice narrative display but it displays just fine for admin user?
Best Regards,
Bob Perry



"The world is moving so fast these days that the man who says it can't be done is generally interrupted by someone doing it." Elbert Hubbard

Offline Keith Tysinger

  • Semi-Newbie
  • *
  • Posts: 58
  • Gender: Male
Re: Buy Me A Drink
« Reply #58 on: March 17, 2010, 04:33:04 PM »
Bob, I can only guess that the errors are related. I think fixing the language files should do the trick.

When you did the manual install,  did you add the language code to the right language file? It sounds like you added it to the admin lang files. I will check when I get home tonight. I can't remember how many different language files were modded. Should be an easy fix.
Contact me for all of your website design needs.

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,375
    • StoryBB/StoryBB on GitHub
Re: Buy Me A Drink
« Reply #59 on: March 17, 2010, 04:36:50 PM »
I suspect part of the issue is that the language file cache hasn't been cleared. Once any lang file is modified, Admin > Maintenance > Routine > Empty the file cache.

As for the icon being missing, check what URL is being generated for it.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.