1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

SMF Ad Revenue Sharing Mod

Discussion in 'Forum Management' started by codeber, Mar 6, 2007.

  1. ryukenden

    ryukenden Well-Known Member

    Messages:
    2,791
    Likes Received:
    38
    Best Answers:
    0
    Trophy Points:
    140
    #2
    This is great as I am starting a forum using smf.
     
    ryukenden, Mar 9, 2007 IP
  2. Chris369

    Chris369 Peon

    Messages:
    360
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I've just started an SMF forum too and will be including this, thanks :)
     
    Chris369, Mar 10, 2007 IP
  3. Chris369

    Chris369 Peon

    Messages:
    360
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I install this but don't see the settings anywhere for it? :confused:

    I uploaded it and applied the mod, what else do I need to do?
     
    Chris369, Mar 11, 2007 IP
  4. alisha

    alisha Peon

    Messages:
    137
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #5
    thanks was looking for this
     
    alisha, Mar 13, 2007 IP
  5. committed2u

    committed2u Peon

    Messages:
    100
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    hi codeber, i've the same problem like chris369, nothing change in my admin config panel. what should i do pal?
     
    committed2u, Oct 12, 2007 IP
  6. USPB

    USPB Peon

    Messages:
    887
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Will there be a TOS Violation with this mod
     
    USPB, Nov 18, 2007 IP
  7. neelesh

    neelesh Peon

    Messages:
    141
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #8
    There are not tos violation. The major drawback is that it install only in the default theme. or else, i think we can install it manually in other themes
     
    neelesh, Nov 23, 2007 IP
  8. sawz

    sawz Prominent Member

    Messages:
    8,225
    Likes Received:
    808
    Best Answers:
    0
    Trophy Points:
    360
    #9
    not really a major drawback, just do a little editing and any mod will work on any theme.
     
    sawz, Nov 24, 2007 IP
  9. Forest_Parks

    Forest_Parks Peon

    Messages:
    106
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #10
    How would we go about doing that editing?
     
    Forest_Parks, Dec 1, 2007 IP
  10. sawz

    sawz Prominent Member

    Messages:
    8,225
    Likes Received:
    808
    Best Answers:
    0
    Trophy Points:
    360
    #11
    each mod package contains the files to make that particular mod work. one of those files is an install.xml file or maybe its called install.mod
    you'll find them named each way.

    look a this file, its almost self explanatory. and the only files that need editing are the ones in your custom theme folder.

    most likely index.template.php boardindex.template etc.
    some themes have up to 5 files that may need editing, some only 1.
     
    sawz, Dec 1, 2007 IP
  11. simplyg123

    simplyg123 Well-Known Member

    Messages:
    3,855
    Likes Received:
    186
    Best Answers:
    0
    Trophy Points:
    175
    #12
    How the heck do you read xml... geez :( just when you think you got it all figured out
     
    simplyg123, Mar 17, 2008 IP
  12. sawz

    sawz Prominent Member

    Messages:
    8,225
    Likes Received:
    808
    Best Answers:
    0
    Trophy Points:
    360
    #13
    notepad, any text editor
     
    sawz, Mar 17, 2008 IP
  13. simplyg123

    simplyg123 Well-Known Member

    Messages:
    3,855
    Likes Received:
    186
    Best Answers:
    0
    Trophy Points:
    175
    #14
    i found a way using a parser, all the coding is too confusing, but the parser was perfect
     
    simplyg123, Mar 17, 2008 IP
  14. sawz

    sawz Prominent Member

    Messages:
    8,225
    Likes Received:
    808
    Best Answers:
    0
    Trophy Points:
    360
    #15
    he wants to view it, this particular xml file has mod install instructions. if you can read it, it tells you whats being changed.

    the ad management mod for instance, it only installs on the default theme, so to use with other themes, you have to edit several files.

    this is part of the xml, it says what code to add where:

    <operation>
            <search position="before"><![CDATA[                            </td>]]></search>
    <add><![CDATA[';
                                //Welcome Ads
                                if (function_exists("show_welcomeAds"))
                                {
                                    $ads = show_welcomeAds();
                                    if(!empty($ads))
                                    {
                                        echo '<td class="windowbg2">';
                                        if($ads['type']==0)
                                            echo $ads['content'];
                                        else
                                            eval($ads['content']);
                                        echo '</td>';
                                    }
                                    unset($ads);
                                }
                            echo ']]>
    </add>
    </operation>
    Code (markup):
    and thats what they wanted to see.

    use notepad, any text editor.
     
    sawz, Mar 18, 2008 IP
  15. zapiy

    zapiy Peon

    Messages:
    20
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #16
    Cheers looks like something i could use.
     
    zapiy, Mar 20, 2008 IP
  16. waiz86

    waiz86 Well-Known Member

    Messages:
    1,377
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    148
    Digital Goods:
    1
    #17
    another way of making it work is using ur FTP
    right click on the folder that contains the forum - go to properties / CHMOD
    and change the permission no to 777 or 755
    and it should work
     
    waiz86, Oct 19, 2008 IP