FM5280 ~ Smooth Jazz
Join PTS every Wednesday evening 9pm & Friday noon 12pm
Listen to FM5280   
   
Click Here to Listen to FM5280 Smooth Jazz


 

Main Menu   
   
HomeHome
    Home
Navigation
    Getting Started
    Playlist Schedule
    Listener Graphs
Discussions
    Forums
    Private Messages
    Shout Box
    Polls/Surveys
News
    News
    Stories Archive
    Submit News
    Reviews
Information
    Feedback
    Recommend Us
    Calendar
    Search
    Your Account
    Groups
    Profile
    Request Policy
    Docs
    I Like Tunes Stations
Advertising
    Advertising
    Statistics
Files & Links
    Web Links

 

Shout Box   
   

Only registered users can shout. Please login or create an account.

 

Google Ads   
   

 


Search for at
FM5280 Smooth Jazz Advanced Search


 
Recent Topics   Next 6 >>  
 Forum   Author   Replies   Last Post 
It's Been a Wonderfully Smooth Jazz ride - FM5280 is closing Web Site & Listen Issues DJCassio 16 Thu Sep 09, 2010 4:14 pm
Jimster View latest post
Twitter Script Web Site & Listen Issues DJCassio 2 Sat Sep 04, 2010 6:33 pm
DJCassio View latest post
Smooth Jazz Mix Show Smooth Jazz Discussion DonG 0 Sun Aug 29, 2010 3:37 pm
DonG View latest post
Buffering... again Web Site & Listen Issues ArmorBearer 6 Wed Aug 25, 2010 2:23 am
ArmorBearer View latest post
Calling on DJCassio for some help Web Site & Listen Issues GoreApostle 83 Mon Aug 23, 2010 1:02 am
GoreApostle View latest post
Why are there Bad Songs on Albums? Smooth Jazz Discussion Jolly 4 Fri Aug 20, 2010 5:08 pm
DJCassio View latest post

Logged in to listen project
Goto page Previous  1, 2
 
Post new topic   Reply to topic   printer-friendly view   Thank Post    FM5280 Smooth Jazz Forum Index -> Web Site & Listen Issues
View previous topic :: View next topic  
Author Message
DJCassio
Administrator
Administrator



Gender: Gender:Male
Joined: Jun 11, 2004
Posts: 974
Location: Denver
Reputation: 12.8
votes: 1
usa.png


Status: Offline
PostPosted: Fri Feb 05, 2010 3:40 pm Post subject: No icon Re: Logged in to listen project Reply with quote

I don't allow non-registered (guests) on my playlist page.

You could check for userid>1 and then eclose that section in brackets { }


Rob Oyler
Program Director, FM5280

Please login to see this link
Get registered or Log in
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger Visit member's Facebook: FM5280-Smooth-Jazz
GoreApostle
Smooth Jazz Forum King
Smooth Jazz Forum King



Gender: Gender:Male
Joined: Feb 24, 2007
Age: 41
Posts: 257
Location: Mobile, Al.
Reputation: 8.2Reputation: 8.2
usa.png


Status: Offline
PostPosted: Fri Feb 05, 2010 3:46 pm Post subject: No icon Re: Logged in to listen project Reply with quote

Like this?

Code:

// Check to see if user is listening for at least 20 minutes to make a request
  if ($userdata['user_id'] <1>open("SELECT last_seen_listening FROM userinfo WHERE userid = ".$userdata['user_id']);
  $user_row = $SAMdb->row();
  $seconds = (strToTime(date("Y-m-d H:i:s",time())) - strToTime($user_row['last_seen_listening']));
  if ($seconds < 0)
    $seconds = -1 * $s;
  $minutes = intval($seconds / 60);
  if($minutes <= 20)  
   $requestok = true;
   else
   $requestok = false;


Please login to see this link
Get registered or Log in
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
DJCassio
Administrator
Administrator



Gender: Gender:Male
Joined: Jun 11, 2004
Posts: 974
Location: Denver
Reputation: 12.8
votes: 1
usa.png


Status: Offline
PostPosted: Sat Feb 06, 2010 8:21 am Post subject: No icon Re: Logged in to listen project Reply with quote

No, that code would produce an error.  It would be more like this.
PHP:
if ($userdata['user_id'] > 1) {
// Check to see if user is listening for at least 20 minutes to make a request 
  
$SAMdb->open("SELECT last_seen_listening FROM userinfo WHERE userid = ".$userdata['user_id']); 
  
$user_row $SAMdb->row(); 
  
$seconds = (strToTime(date("Y-m-d H:i:s",time())) - strToTime($user_row['last_seen_listening'])); 
  if (
$seconds 0
    
$seconds = -$s
  
$minutes intval($seconds 60); 
  if(
$minutes <= 20)   
   
$requestok true
  }
   else 
   
$requestok false
 


Rob Oyler
Program Director, FM5280

Please login to see this link
Get registered or Log in
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger Visit member's Facebook: FM5280-Smooth-Jazz
Don't Buy Any FM Transmitter Until You've Seen Our FM Transmitter
GoreApostle
Smooth Jazz Forum King
Smooth Jazz Forum King



Gender: Gender:Male
Joined: Feb 24, 2007
Age: 41
Posts: 257
Location: Mobile, Al.
Reputation: 8.2Reputation: 8.2
usa.png


Status: Offline
PostPosted: Mon Feb 08, 2010 11:00 am Post subject: No icon Re: Logged in to listen project Reply with quote

I tried that change and it only rendered a blank white borked page.  I changed it back and it worked for logged in members.  Hoever, even the way I have it set a non-member viewing the Playlist page gets that error I posted.  How would I set things, like you do, so that non-registered visitors can't view my Playlist page or maybe send them to the registration page with a message telling them they have to be a member in order to view the Playlist page?  I have gotten the ShoutCAST script, posted on Scott's site, to work but it doesn't calculate the listening time from what I can tell because I have been listening to two days and it still gives me the 'Tune In' button on the request pages.  The script works though.  Haha.  Thanks for any help on this matter.


Please login to see this link
Get registered or Log in
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
DJCassio
Administrator
Administrator



Gender: Gender:Male
Joined: Jun 11, 2004
Posts: 974
Location: Denver
Reputation: 12.8
votes: 1
usa.png


Status: Offline
PostPosted: Mon Feb 08, 2010 11:42 am Post subject: No icon Re: Logged in to listen project Reply with quote

Those pages are modules correct?  Go to the Modules admin and make them Registered Users only.


Rob Oyler
Program Director, FM5280

Please login to see this link
Get registered or Log in
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger Visit member's Facebook: FM5280-Smooth-Jazz
GoreApostle
Smooth Jazz Forum King
Smooth Jazz Forum King



Gender: Gender:Male
Joined: Feb 24, 2007
Age: 41
Posts: 257
Location: Mobile, Al.
Reputation: 8.2Reputation: 8.2
usa.png


Status: Offline
PostPosted: Mon Feb 08, 2010 11:49 am Post subject: No icon Re: Logged in to listen project Reply with quote

DUH!!! Gosh.  I can't believe I even posted how to do that.  Thanks DJ.


Please login to see this link
Get registered or Log in
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Join Merpud1 every Friday evening 9pm & Saturday morning 10am ET
Display posts from previous:
Post new topic  Reply to topic   printer-friendly view   Thank Post FM5280 Smooth Jazz Forum Index ->  Web Site & Listen Issues All times are UTC - 5 Hours
Goto page Previous  1, 2
Page 2 of 2


 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum

Related topics
 Topics   Replies   Author   Views   Last Post 
No new posts Web Host Switch 2 DJCassio 503 Sat Jul 01, 2006 8:07 pm
DJCassio View latest post
No new posts New Web Host & Domain Transfer 1 DJCassio 278 Thu Sep 08, 2005 8:09 am
DJCassio View latest post
No new posts I'll be looking for a new web host 1 DJCassio 386 Mon Aug 08, 2005 5:30 pm
danielle View latest post
No new posts Host Server DOWN Again!!! 0 DJCassio 354 Mon Jul 12, 2004 7:35 pm
DJCassio View latest post
No new posts Host server PHP crash 0 DJCassio 324 Sat Jun 19, 2004 11:05 am
DJCassio View latest post
 




Powered by phpBB © 2001, 2006 phpBB Group

chromo Theme by effectica ©
Forums ©
Powered by Nuke Evolution theme designed by effectica.com

FM5280~Smooth Jazz is part of the LoudCity network,
which provides blanket license coverage for FM5280~Smooth Jazz to
 ASCAP, BMI, SESAC and SoundExchange.

Spambot Killer
Site Map

[News Feed] [Forums Feed] Powered by HTML Purifier[Validate robots.txt]


PHP-Nuke Copyright © 2006 by Francisco Burzi.
All logos, trademarks and posts in this site are property of their respective owners, all the rest © 2006 by the site owner.
Powered by Nuke Evolution 2.0.7 - Nuke-Evolution Xtreme 2.0 Edition.

This site is cached. Click here to update the cache.
[ Page Generation: 0.37 Seconds | Memory Usage: 12.04 MB ]

Do Not Click