WordPress.org

Plugin Directory

Changeset 567491


Ignore:
Timestamp:
07/04/12 18:37:13 (5 years ago)
Author:
elvito-solutions
Message:
 
Location:
elvito-bp/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • elvito-bp/trunk/admin/admin.php

    r565561 r567491  
    1313} 
    1414 
    15 function realnames_function() { 
    16     include("realnames.php"); 
     15function banner_function() { 
     16    include("banner.php"); 
    1717} 
    1818 
  • elvito-bp/trunk/admin/profiles.php

    r565875 r567491  
    106106<?php } ?> 
    107107 
    108 <form method="post" action="#" name="pr_form"> 
     108<form method="post" action="#" name="pr_form2"> 
    109109<tr> 
    110110<th valign="middle"> 
  • elvito-bp/trunk/admin/subscriptions.php

    r565791 r567491  
    4141<?php $paypal = $wpdb->get_var($wpdb->prepare("SELECT option_value FROM bb_profiles_settings WHERE option_name = 'paypal';")); ?> 
    4242 
    43 <h2>Subscriptions BETA</h2> 
    44 <p>This section has been released as a BETA so that people can give feedback and also inform me of bugs. If you have a suggestion then email me at ashley.johnson@elvito-solutions.com</p> 
     43<h2>Subscriptions</h2> 
    4544<form method="post" action="#" name="pr_form3"> 
    4645<table class="widefat page" cellspacing="0" style="width:95%"> 
  • elvito-bp/trunk/frontend.php

    r565783 r567491  
    7474add_shortcode( 'elvitosub', 'create_page' ); 
    7575 
     76function banner_rotator($atts, $content = null)  
     77{ 
     78    global $wpdb; 
     79     
     80    $group = $atts['id']; 
     81    $get_items = $wpdb->get_results("SELECT * FROM bb_banner WHERE banner_group='$group'"); 
     82     
     83    $counter = rand(0, count($get_items)-1); 
     84     
     85    $i = 0; 
     86     
     87    foreach($get_items as $item): 
     88        if ($i == $counter): 
     89                echo $item->banner_html; 
     90                $i++; 
     91            else: 
     92                $i++; 
     93        endif; 
     94    endforeach; 
     95     
     96} 
     97 
     98add_shortcode( 'banner_rotate', 'banner_rotator' ); 
     99 
    76100function bp_pm_group_tabs() { 
    77101    global $bp, $group_name, $wpdb; 
  • elvito-bp/trunk/loader.php

    r565783 r567491  
    77 Author URI: http://www.elvito-solutions.com 
    88 License: GNU GENERAL PUBLIC LICENSE 3.0 http://www.gnu.org/licenses/gpl.txt 
    9  Version: 1.3 
     9 Version: 1.33 
    1010 Text-Domain: bp-elvito 
    1111 Site Wide Only: true 
     
    3838                            option_name text, 
    3939                            option_value text) {$charset_collate};"); 
     40                             
     41    $wpdb->query("CREATE TABLE bb_banner_groups ( 
     42                            id bigint(20) NOT NULL AUTO_INCREMENT PRIMARY KEY,  
     43                            group_name text, 
     44                            group_desc text) {$charset_collate};"); 
     45     
     46    $wpdb->query("CREATE TABLE bb_banner ( 
     47                            id bigint(20) NOT NULL AUTO_INCREMENT PRIMARY KEY,  
     48                            banner_html text, 
     49                            banner_group text) {$charset_collate};"); 
    4050 
    4151    $wpdb->query("CREATE TABLE bb_upgrades ( 
     
    8090        add_submenu_page( 'elvito-information', 'Profile Manager', 'Profile Manager', 'manage_options', 'elvito-profiles', 'profiles_function'); 
    8191        add_submenu_page( 'elvito-information', 'Subscriptions', 'Subscriptions', 'manage_options', 'elvito-subscriptions', 'subscriptions_function'); 
    82         //add_submenu_page( 'elvito-information', 'Full Names', 'Full Names', 'manage_options', 'elvito-realnames', 'realnames_function'); 
     92        add_submenu_page( 'elvito-information', 'Banner Rotator', 'Bannner Rotator', 'manage_options', 'elvito-rotator', 'banner_function'); 
    8393     
    8494} 
  • elvito-bp/trunk/readme.txt

    r567444 r567491  
    44Requires at least: 2.8 
    55Tested up to: 3.4 
    6 Stable tag: 1.3 
     6Stable tag: 1.33 
    77 
    88Elvito BP contains features that help you to monetize your blog by allowing you to hide certain fields from non-paying members. 
     
    1616* Hide Profile Fields from Non-Paying Members 
    1717* Simple to use interface 
     18* Banner Rotator in Posts for affiliate banners. BETA 
    1819* Create subscriptions with paypal intergration 
    1920* Teaser profiles (where the user can fill out the information but its not viewable to other users) 
     
    5253== Changelog == 
    5354 
     55= 1.33 = 
     56 
     57* Made amendments to subscription 
     58* Created a banner rotator for posts BETA 
     59 
    5460= 1.3 = 
    5561 
Note: See TracChangeset for help on using the changeset viewer.