Buy Me A Drink

Started by Keith Tysinger, April 17, 2009, 09:11:12 AM

Previous topic - Next topic

anakmacan

Great modddd!!!!!!!! im sending a little donation right now ^^

Andiiieee[:

 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:

GazOutEast

Quote from: TheZoink 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

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"

chadon

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:

            // 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?

Keith Tysinger

#44
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 @ [email protected]

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
Contact me for all of your website design needs.

Keith Tysinger

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?


Quote from: chadon 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:

            // 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.

Arantor

Quote from: Keith Tysinger on March 15, 2010, 02:33:45 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.

Keith Tysinger

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!


Quote from: Arantor on March 15, 2010, 07:47:33 AM
Quote from: Keith Tysinger on March 15, 2010, 02:33:45 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.
Contact me for all of your website design needs.

Arantor

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.

bloox

Hello is not working with rc3 i tryed both versions 1.1 - 1.2


Arantor

What other mods do you have installed?


Arantor

I think it's conflicting with the changes made by Thank-O-Matic.

bloox

#53
I installed thankomatik after this but im gonna try unistalling it

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

QuoteBoardIndex.php~
Admin.php~
Groups.php~

edit: tried , still the same

Keith Tysinger

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.

Arantor

That's exactly what the ~ files are, saved copies of the file before the last mod install.

Keith Tysinger

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.

$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.

Bob Perry of Web Presence Consulting

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

Keith Tysinger

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.

Arantor

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.

Advertisement: