SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 30/11/2019, 12:14 AM   #1
EAGLE
Little Clucker
 
Join Date: Nov 2019
Posts: 18
Reputation: 0
Default How to connect a gamemode to phpbb forum ?

Hello, I have a question, simple

How I can link the accounts of phpbb or fluxBB forum to my gamemode

The user need to connect with his forum username / password

Actually, I don't know how de-hash the password forum for connect user to the server
EAGLE is offline   Reply With Quote
Old 30/11/2019, 06:39 AM   #2
Proxus
Huge Clucker
 
Proxus's Avatar
 
Join Date: May 2018
Location: United Kingdom
Posts: 440
Reputation: 20
Default Re: How to connect a gamemode to phpbb forum ?

I'm pretty sure they have a database to store that data (possibly in PhpMyAdmin, depending on what you use, you can find tutorials for accessing and using that)

Why would you unhash the password? That's definitely not secure. Hash their pass attempt (if you're using a dialog, use inputtext) and use strcmp to compare the saved password and the hashed version of the password they just entered.
__________________
Developer @ Trucknation
"Never tell people how to do things. Tell them what to do and they will surprise you with their ingenuity"


IMPORTANT LINKS
An upcoming mix of trucking & light roleplay
Proxus is offline   Reply With Quote
Old 30/11/2019, 12:12 PM   #3
Kwarde
High-roller
 
Kwarde's Avatar
 
Join Date: Nov 2009
Location: The Netherlands
Posts: 2,713
Reputation: 1668
Default Re: How to connect a gamemode to phpbb forum ?

phpBB doesn't save it's data to phpmyadmin but to a selected server (most commonly, MySQL with MySQLi extension). Phpmyadmin is just a webscript that allows you to view and manage data on whatever server you are connected to.

To use the same data that phpbb uses you just have to connect to the same database phpbb does. You could even use the sessions table to tell them IG if they are logged in to the forums or not.

PhpBB ftw tho
__________________
When the opportunity presents itself to flip-a da table, uh, you flip-a da table.

Discord: Kwarde#1966
Kwarde is online now   Reply With Quote
Old 30/11/2019, 01:19 PM   #4
EAGLE
Little Clucker
 
Join Date: Nov 2019
Posts: 18
Reputation: 0
Default Re: How to connect a gamemode to phpbb forum ?

Ok guys thanks, @proxus can you give me an example please ?
EAGLE is offline   Reply With Quote
Old 30/11/2019, 01:23 PM   #5
Symon
Gangsta
 
Symon's Avatar
 
Join Date: Apr 2019
Location: Italy
Posts: 883
Reputation: 85
Default Re: How to connect a gamemode to phpbb forum ?

I found this with a little search:

https://forum.sa-mp.com/showthread.php?t=486271

A bit outdated tho.
Symon is offline   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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Little Problem with connecting UCP to phpbb forum Rolyn Scripting Help 0 28/05/2016 02:50 PM
[FilterScript] Integração de fórum phpBB com o servidor Mandrakke Lançamentos/Releases 38 19/03/2014 10:48 PM
PHPBB Forum Bot Problems Saurik Everything and Nothing 12 26/09/2013 04:11 AM
Little help with phpBB forum. Andrɘ Everything and Nothing 3 19/12/2011 07:11 AM
[HELP ME ] Please i wanna create a officiel Forum with phpBB , Help me ! -Roleplay- Everything and Nothing 8 19/10/2011 07:35 PM


All times are GMT. The time now is 08:36 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.