WordPress.org

Plugin Directory

Changeset 1661013


Ignore:
Timestamp:
05/19/17 17:38:29 (7 months ago)
Author:
videowhisper
Message:

Update

Location:
ppv-live-webcams/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ppv-live-webcams/trunk/ppv-live-webcams.php

    r1658155 r1661013  
    44Plugin URI: http://www.videowhisper.com/?p=WordPress-PPV-Live-Webcams 
    55Description: VideoWhisper PPV Live Webcams 
    6 Version: 2.8.1 
     6Version: 2.8.2 
    77Author: VideoWhisper.com 
    88Author URI: http://www.videowhisper.com/ 
     
    14301430                    'url_vars' => '1', 
    14311431                    'url_vars_fixed' => '1', 
     1432                    'studioID' => '', 
    14321433                    'id' => '' 
    14331434                ), $atts, 'videowhisper_webcams'); 
     
    14501451            $ajaxurl = admin_url() . 'admin-ajax.php?action=vmls_cams&pp=' . $atts['perPage']. '&pr=' . $atts['perrow'] . '&ob=' . $atts['order_by'] . '&cat=' . $atts['category_id'] . '&st=' . $atts['pstatus'] . '&sc=' . $atts['select_category'] . '&so=' . $atts['select_order'] . '&ss=' . $atts['select_status'] . '&sp=' . $atts['select_page']. '&id=' .$id; 
    14511452 
     1453            if ($atts['studioID']) $ajaxurl .= '&studioID=' . $atts['studioID']; 
    14521454            if ($atts['ban']) $ajaxurl .= '&ban=' . $atts['ban']; 
    14531455 
     
    25722574 
    25732575 
     2576 
     2577 
    25742578        //! AJAX Webcams List 
    25752579        function vmls_cams_callback() 
     
    26182622            $selectStatus = (int) $_GET['ss']; 
    26192623 
     2624            //studio 
     2625            $studioID = (int) $_GET['studioID']; 
     2626 
     2627 
    26202628            //output clean 
    26212629            ob_clean(); 
     
    26252633 
    26262634            $ajaxurl = admin_url() . 'admin-ajax.php?action=vmls_cams&pp=' . $perPage .  '&pr=' . $perRow . '&ss=' . $selectStatus . '&sc=' . $selectCategory . '&so=' . $selectOrder . '&sp=' . $selectPage .  '&id=' . $id; 
     2635 
     2636            if ($atts['studioID']) $ajaxurl .= '&studioID=' . $studioID; 
    26272637            if ($ban) $ajaxurl .= '&ban=' . $ban; //admin side 
    26282638 
     
    27222732            if (!$pstatus) $pstatus = ''; 
    27232733 
     2734            if ($studioID)  $args['meta_query'][] = array('key' => 'studioID', 'value' => $studioID); 
     2735 
    27242736            switch ($pstatus) 
    27252737            { 
     
    28712883                        $performersCode = ''; 
    28722884 
    2873                     if ($checkin) foreach ($checkin as $performerID) $performersCode .= ($performersCode ?',' :'' ) .  VWliveWebcams::performerNameID($performerID, $options); 
     2885                    if ($checkin) foreach ($checkin as $performerID) $performersCode .= ($performersCode ?',' :'' ) .  VWliveWebcams::performerLink($performerID, $options); 
    28742886 
    28752887 
     
    31603172        } 
    31613173 
     3174        function performerLink($id, $options) 
     3175        { 
     3176 
     3177            $name = VWliveWebcams::performerNameID($id, $options);; 
     3178 
     3179            if (!$options['performerProfile']) return $name; 
     3180 
     3181            $user = get_userdata($id); 
     3182            if (!$user) return ''; 
     3183 
     3184            return '<a href="'.$options['performerProfile'].$user->user_nicename.'">'.$name.'</a>'; 
     3185        } 
     3186 
    31623187 
    31633188        //! Studio Dashboard 
     
    59515976                        $clientCPM = VWliveWebcams::clientCPM($room_name, $options, $postID); 
    59525977 
    5953                         if ($clientCPM) $welcome .= '<BR>' . 'Private show cost per minute is: ' . ' ' . $clientCPM . ' ' . htmlspecialchars($options['currency']); 
     5978                        if ($clientCPM) $welcome .= '<BR>' . 'Private show cost per minute: ' . ' ' . $clientCPM . ' ' . htmlspecialchars($options['currency']); 
    59545979                    } 
    59555980 
     
    59956020 
    59966021 
    5997                     $welcome .= '<BR>' . 'Your current balance:' . ' ' . $balance; 
     6022                    $welcome .= '<BR>' . 'Your current balance:' . ' ' . $balance . ' ' . htmlspecialchars($options['currency']); 
    59986023 
    59996024 
     
    60046029                    $performerRatio = VWliveWebcams::performerRatio($room_name, $options, $postID); 
    60056030 
    6006                     if ($clientCPM) $welcome .= '<BR>' . 'Private show cost per minute for client is:' . ' ' . $clientCPM; 
     6031                    if ($clientCPM) $welcome .= '<BR>' . 'Private show cost per minute for client:' . ' ' . $clientCPM . ' ' . htmlspecialchars($options['currency']); 
    60076032 
    60086033                    if ($options['ppvGraceTime']) $welcome .= '<BR>' . 'Charging starts after a grace time:' . ' ' . $options['ppvGraceTime'] . 's'; 
    60096034 
    6010                     if ($clientCPM && $performerRatio) $welcome .= '<BR>' . 'Private show earning per minute for performer is:' . ' ' . number_format($clientCPM*$performerRatio, 2, '.',''); 
     6035                    if ($clientCPM && $performerRatio) $welcome .= '<BR>' . 'Private show earning per minute for performer:' . ' ' . number_format($clientCPM*$performerRatio, 2, '.','') . ' ' . htmlspecialchars($options['currency']); 
    60116036 
    60126037 
     
    60286053                    $groupMode = get_post_meta($postID, 'groupMode', true); 
    60296054 
    6030                     $welcome .= '<BR>' . 'Group Mode: ' . $groupMode; 
    6031                     $welcome .= '<BR>' . 'Group session cost per minute is: ' . ' ' . $groupCPM . ' ' . htmlspecialchars($options['currency']); 
     6055                    $welcome .= '<BR>' . 'Group Mode: ' . '<B>'.$groupMode.'</B>'; 
     6056                    $welcome .= '<BR>' . 'Group session cost per minute : ' . ' ' . $groupCPM . ' ' . htmlspecialchars($options['currency']); 
    60326057                } 
    60336058 
     
    65286553                if ($session->status>0) $disconnect = "Session was already ended."; 
    65296554 
    6530                 if ($cost) $credits_info .= '$' . $cost . '/'; 
    6531                 $credits_info .= '$' . $balance; 
     6555                if ($cost) $credits_info .=  $cost . htmlspecialchars($options['currency']) . '/'; 
     6556                $credits_info .=  $balance . htmlspecialchars($options['currency']); 
    65326557 
    65336558                //server session time to app ms 
     
    65356560 
    65366561 
    6537                 ?>timeTotal=<?php echo $maximumSessionTime?>&timeUsed=<?php echo $timeUsed?>&lastTime=<?php echo $currentTime?>&disconnect=<?php echo urlencode($disconnect)?>&statusInfo=<?php echo $credits_info?>&loadstatus=1&debug=<?php echo $debug?><?php 
     6562                ?>timeTotal=<?php echo $maximumSessionTime?>&timeUsed=<?php echo $timeUsed?>&lastTime=<?php echo $currentTime?>&disconnect=<?php echo urlencode($disconnect)?>&statusInfo=<?php echo urlencode($credits_info)?>&loadstatus=1&debug=<?php echo $debug?><?php 
    65386563                break; 
    65396564 
     
    68866911 
    68876912                echo '<h3>User Records Pending Review</h3>'; 
     6913 
    68886914 
    68896915                $args = array( 
     
    69046930                    ) 
    69056931                ); 
     6932 
     6933 
     6934 
    69066935                $users = get_users( $args ); 
    69076936                if (count($users)) 
     
    69106939                        echo '- <a href="admin.php?page=live-webcams-records&user_id=' . $user->ID . '">' . $user->user_login  .'</a><br>'; 
    69116940 
    6912                 } else echo 'No records pending review found.'; 
     6941                } else echo 'No records pending review found. Pending list includes only users that updated their records but were never verified.'; 
    69136942            } 
    69146943?> 
    6915     <BR> 
     6944    <BR>For more options: 
     6945    <BR>+ <a href="users.php?orderby=vwUpdated&order=desc">Browse Users that Recently Updated Records</a> 
    69166946    <BR>+ <a href="admin.php?page=live-webcams-records">Browse Users Pending Review</a> 
    6917     <BR>+ <a href="users.php?orderby=vwUpdated&order=desc">Browse Users that Recently Updated Records</a> 
    69186947    <BR>+ <a href="admin.php?page=live-webcams&tab=record">Configure Administrative Fields</a> 
    69196948 
     6949<p>Administrative records refers to custom fields defined by administrators that users can fill. These are only accessible by administrators and can be used for identity verification, collecting payout info. 
     6950</p> 
    69206951    </div> 
    69216952    <?php 
     
    69947025<h3>Shortcodes</h3> 
    69957026 
    6996 <h4>[videowhisper_webcams perPage="6" perrow="0" pstatus="" order_by= "edate" category_id="" select_status="" select_category="1" select_order="1" select_page="1" include_css="1" url_vars="1" url_vars_fixed="1"]</h4> 
     7027<h4>[videowhisper_webcams perPage="6" perrow="0" pstatus="" order_by= "edate" category_id="" select_status="" select_category="1" select_order="1" select_page="1" include_css="1" url_vars="1" url_vars_fixed="1" studioID=""]</h4> 
    69977028Lists and updates webcams using AJAX. Allows filtering and toggling filter controls. 
    69987029<br>order_by: edate = last time online (default) 
     
    70077038/ offline = currently offline 
    70087039<br>select_ .. : 0/1 (enables interface to select that control) 
    7009 <br> perPage : number of listings to show per page (if select_page="0" that's maximum that will show) 
    7010  
     7040<br>perPage : number of listings to show per page (if select_page="0" that's maximum that will show) 
     7041<br>studioID = filter based on studio account ID 
    70117042 
    70127043<h4>[videowhisper_campreview status="online" order_by="rand" category="" perPage="1" perRow="2" width="480px" height="360px"]</h4> 
     
    70237054 
    70247055<h4>[videowhisper_account_records]</h4> 
    7025 Shows account status and allows updating administrative records for current user. 
     7056Shows account status and allows updating administrative records for current user. Administrative records refers to custom fields defined by administrators that users can fill. These are only accessible by adminstrators and can be used for identity verification, collecting payout info. 
    70267057 
    70277058<h4>[videowhisper_caminfo cam="Room Name" info="cpm"]</h4> 
     
    70687099 
    70697100            return array( 
     7101 
     7102                'performerProfile' => get_site_url() . '/author/', 
     7103 
    70707104                'freeTimeLimit' => '1800', 
    70717105                'freeTimeLimitVisitor' => '600', 
     
    84768510Default:<br><textarea readonly cols="100" rows="3"><?php echo $optionsDefault['welcomePerformer']?></textarea> 
    84778511 
     8512 
     8513<h4>Performer Profile Link Prefix</h4> 
     8514<input name="performerProfile" type="text" id="performerProfile" size="80" maxlength="128" value="<?php echo $options['performerProfile']?>"/> 
     8515<br>Checked in performer links are available in webcam listings. Set blank to disable. 
     8516<br>Ex: http://yoursite.com/author/ (if profile is http://yoursite.com/author/[user_nicename] 
     8517<BR>Your user_nicename based link (for troubleshooting): 
     8518<?php 
     8519                echo $options['performerProfile'] . $current_user->user_nicename; 
     8520?> 
    84788521<h4>Parameters for Performer Videochat Interface</h4> 
    84798522<textarea name="parametersPerformer" id="parametersPerformer" cols="100" rows="10"><?php echo $options['parametersPerformer']?></textarea> 
  • ppv-live-webcams/trunk/readme.txt

    r1658158 r1661013  
    66Plugin URI: http://www.videowhisper.com/?p=WordPress-PPV-Live-Webcams 
    77Donate link: http://www.videowhisper.com/?p=Invest 
    8 Tags: ppv, videochat, webcam, cam, chat, video, live, plugin, shortcode, posts, admin, videowhisper, video chat, pay per minute, myCRED 
     8Tags: ppv, videochat, webcam, cam, chat, video, live, plugin, shortcode, posts, admin, VideoWhisper, video chat, pay per minute, myCRED 
    99Requires at least: 2.7 
    1010Tested up to: 4.7 
Note: See TracChangeset for help on using the changeset viewer.