Go Back   NiceCoder Community Forums > Nicecoder Products > IndexU > v5.x
Register Projects FAQ Members List Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-11-2008, 06:45 AM
Registered User
 
Join Date: Feb 2007
Posts: 46
pimpmaster is on a distinguished road
Default Want to show contents for Sponsored ONLY

Hi, I have made a custom page (http://www.domain.com/page.php?id=custom_page) and on that page I have information I only want paying (Sponsored and maybe Premium) users to see.

As it is now it is like this:
Code:
Content visible to License Owner only.
But this only controls if the user is logged in or not. I also want to connect any of their links' status and allow them to see the contents of the page IF any of their links are Sponsored or Premium.

Is this possible?
Reply With Quote
  #2 (permalink)  
Old 08-11-2008, 12:10 PM
Bruceper's Avatar
Nicecoder Team
 
Join Date: Jun 2002
Location: Winnipeg Canada
Posts: 4,032
Bruceper is on a distinguished road
Default

You would not be able to determine if a logged in user is a paid listing owner without writing some PHP code and joining some database tables. There is simply no easy way to do this and IndexU doesn't record anything about payments in the users table.

By the way, you only need to end with <%/if%>
Reply With Quote
  #3 (permalink)  
Old 08-11-2008, 03:38 PM
Registered User
 
Join Date: Feb 2007
Posts: 46
pimpmaster is on a distinguished road
Default

Well, I managed to put together an SQL-query which gives me what I want.

Code:
Content visible to License Owner only.
But how do I convert that to some sort of variable similar to <%if $login_status_logged_in%> to be able to check wheter true or false in a custom page? Where is this variable <%if $login_status_logged_in%> declared?
Reply With Quote
  #4 (permalink)  
Old 08-11-2008, 04:03 PM
Bruceper's Avatar
Nicecoder Team
 
Join Date: Jun 2002
Location: Winnipeg Canada
Posts: 4,032
Bruceper is on a distinguished road
Default

You're on your own for the programming end, I'm not a programmer, I can only hack things to death until they almost work.
Reply With Quote
  #5 (permalink)  
Old 08-11-2008, 04:27 PM
Registered User
 
Join Date: Feb 2007
Posts: 46
pimpmaster is on a distinguished road
Default

Well, at least that's an honest reply. I probably have to turn my hopes to the Helpdesk in that case...
Reply With Quote
  #6 (permalink)  
Old 08-11-2008, 05:04 PM
Bruceper's Avatar
Nicecoder Team
 
Join Date: Jun 2002
Location: Winnipeg Canada
Posts: 4,032
Bruceper is on a distinguished road
Default

I answer the help desk too, although I can forward your question onto the programmers, it is not their function to write code for clients, only to answer questions in regards to the existing code.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
basic, premium & sponsored links all show up on "links rotator" why? mxwebsites v5.x 2 01-30-2007 12:50 PM
"show" or "don't show" of data fields depending on level of listing macangelo v5.x 1 01-22-2007 09:18 PM
Sponsored Links Shophere v5.x 1 12-21-2006 04:40 AM
Insert Flash contents??? cabesoul Tutorials, Hints & Tips 7 04-30-2006 02:23 AM
Contents of URL field Nax Pre-Sales Questions 1 05-11-2005 03:58 PM

HACKER SAFE certified sites prevent over 99.9% of hacker crime.

All times are GMT -5. The time now is 06:44 PM.


Powered by vBulletin®
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO
SSL Certificate