Find Jobs
Hire Freelancers

mysql query into NATS4 database - link change - adult site

$30-250 USD

Cerrado
Publicado hace más de 10 años

$30-250 USD

Pagado a la entrega
Hi...... I need a mysql query for my adult website....and NATS4.... here are instructions... ---- I will move all forum users to NATS as NCR users...."free" member into nats as "active" ---- mysql query that exist now: 1. when user login into blog page.... the query check if his username exist into forum db only if yes... create username into blog and tube db..... and make sync 2. when user login into blog the query check if he is into blog already (means that he is included into forum and tube) if yes , check his blog membership package....... and modify permissions into forum and tube free or member mysql query that we need to create 1. when user login into blog page the query check if username exist into NATS db only if yes, create username into blog-forum-tube db and make sync works into my site (is already active) 2. when user login into blog page, if he already exist into blog...... the query check if membership package into NATS db if NCR or active member, or no active if NCR...assign "free" package into YM if no-active...ex-member.......assign "free" package into YM if active....assign "member" package. ---nats table------------------------------------------------------------------ When querying the NATS db for authentication, you will first need to query the member table with a query similar to this. select memberid, status from member where username = 'some username' and siteid = 'X'; Where X is the id of the site the member is trying to login into. If you want to add a concept of network (join one site have access to all) you can remove siteid from that query all together or provide a list of site ids. You will end up with something like this. select memberid, status from member where username = 'some username'; Or something like this. select memberid, status from member where username = 'some username' and siteid in ('X', 'Y', 'Z'); If you are going with a network concept, I strongly suggest making sure that member usernames are unique across all sites. You can do this by setting UNIQUE_MEMBER_NAMES value to 'For all sites' on the NATS config admin -> surfer page. Otherwise the last 2 queries might return multiple records. Once you have the member record, you can examine the status field. 0 = Never joined - just filled out the NATS join form for a paid join option but did not get approved by a biller 1 = Active (NCR or paid) 2 = Expired To distinguish between NCR or paid, you will need to do an additional query against the member_subscription table. select optionid from member_subscription where memberid = 'memberid from the member query above' where active = 1; You will then need to look at the optionid value for each result row that you get. If the value of the optionid field corresponds to the NCR join option for all rows, then this is an NCR member. If optionid value corresponds to a paid join option for any of the records, then this is a paid member. You can get the option id value from NATS site admin -> options. It is in the first column (labeled ID). ------------------------------------------------------------------ change links into all site.. join and upgrade.... also into video redirection normal join page [login to view URL]<?=$_REQUEST['nats']?$_REQUEST['nats']:'MC4wLjEuMS4wLjAuMC4wLjA'?>&step=2 upgrade link for NCR (or ex-members) to active member [login to view URL][username]=<username>&signup[email]=<email> link must be dinamic....and take username and email of the user that is logged IN into join page...username and email must be hidden...in this way the user cannot change them during upgrade lost password link my site: [login to view URL]~1~ ---------------------------------------- delivery to me the doc about mysql query into nats.....with all variables.....
ID del proyecto: 5147608

Información sobre el proyecto

4 propuestas
Proyecto remoto
Activo hace 10 años

¿Buscas ganar dinero?

Beneficios de presentar ofertas en Freelancer

Fija tu plazo y presupuesto
Cobra por tu trabajo
Describe tu propuesta
Es gratis registrarse y presentar ofertas en los trabajos
4 freelancers están ofertando un promedio de $195 USD por este trabajo
Avatar del usuario
Hi I work towards providing reliable, relevant and robust IT solutions at most competitive prices to my customers. I ensure 100% customer satisfaction so lets start thanks
$195 USD en 5 días
5,0 (9 comentarios)
4,0
4,0
Avatar del usuario
Hello Sir, We are very much positive for your project. We are eager to share our work process for your project. So, please reply us once. We also have some questions but due to word limitation we unable to ask. So, please reply us for more discussion in detail. Looking forward for your quick and favorable reply... Thank you, TechMorning eSolutions
$144 USD en 3 días
5,0 (2 comentarios)
1,2
1,2

Sobre este cliente

Bandera de ITALY
Carnago VA, Italy
4,7
44
Forma de pago verificada
Miembro desde abr 8, 2008

Verificación del cliente

¡Gracias! Te hemos enviado un enlace para reclamar tu crédito gratuito.
Algo salió mal al enviar tu correo electrónico. Por favor, intenta de nuevo.
Usuarios registrados Total de empleos publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Cargando visualización previa
Permiso concedido para Geolocalización.
Tu sesión de acceso ha expirado y has sido desconectado. Por favor, inica sesión nuevamente.