Find Jobs
Hire Freelancers

mysql query into NATS4 database - link change - adult site

$30-250 USD

Geschlossen
Veröffentlicht vor mehr als 10 Jahren

$30-250 USD

Bezahlt bei Lieferung
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.....
Projekt-ID: 5147608

Über das Projekt

4 Vorschläge
Remote Projekt
Aktiv vor 10 Jahren

Möchten Sie etwas Geld verdienen?

Vorteile einer Ausschreibung auf Freelancer

Legen Sie Ihr Budget und Ihren Zeitrahmen fest
Für Ihre Arbeit bezahlt werden
Skizzieren Sie Ihren Vorschlag
Sie können sich kostenlos anmelden und auf Aufträge bieten
4 Freelancer bieten im Durchschnitt $195 USD für diesen Auftrag
Avatar des Nutzers
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 in 5 Tagen
5,0 (9 Bewertungen)
4,0
4,0
Avatar des Nutzers
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 in 3 Tagen
5,0 (2 Bewertungen)
1,2
1,2

Über den Kunden

Flagge von ITALY
Carnago VA, Italy
4,7
44
Zahlungsmethode verifiziert
Mitglied seit Apr. 8, 2008

Kundenüberprüfung

Danke! Wir haben Ihnen per E-Mail einen Link geschickt, über den Sie Ihr kostenloses Guthaben anfordern können.
Beim Senden Ihrer E-Mail ist ein Fehler aufgetreten. Bitte versuchen Sie es erneut.
Registrierte Benutzer Veröffentlichte Jobs
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Vorschau wird geladen
Erlaubnis zur Geolokalisierung erteilt.
Ihre Anmeldesitzung ist abgelaufen und Sie wurden abgemeldet. Bitte melden Sie sich erneut an.