Sinisterly
Logging into MyBB via c# - Printable Version

+- Sinisterly (https://sinister.li)
+-- Forum: Coding (https://sinister.li/Forum-Coding)
+--- Forum: Coding (https://sinister.li/Forum-Coding--71)
+--- Thread: Logging into MyBB via c# (/Thread-Logging-into-MyBB-via-c)

Pages: 1 2


Logging into MyBB via c# - Travis - 06-09-2015

[hide]First you'll need to download: http://www.megafileupload.com/1Ewp/Login_To_Mybb.dll
Virus Scan: https://www.virustotal.com/en/file/73f4a268b5448bb9876d207a8902e862d31701d3cb08c156c50a980c8946a927/analysis/1433832142/
[/hide]

Next add it to your c# project

Add 2 textboxes(username/password)

Add a button(login)

Button code:
[hide]
Code:
Login_To_Mybb.MybbLogin Add = new Login_To_Mybb.MybbLogin();            dynamic res = Add.LoginToMybb("realityforum.net/member.php?action=login", textBox1.Text, textBox2.Text);            if (res == 1)            {                MessageBox.Show("Logged in!");                webBrowser1.Navigate("Where to redirect after logged in");            }            else            {                MessageBox.Show("Username/Password wrong try again!");            }        }
[/hide]

If you have any questions feel free to ask below.


RE: Logging into MyBB via c# - Zodiac - 06-09-2015

Quite an interesting share, thanks, Travis! Smile


RE: Logging into MyBB via c# - Travis - 06-09-2015

(06-09-2015, 07:47 AM)Nath Wrote: Quite an interesting share, thanks, Travis! Smile

This has been around for quite some time honestly Tongue


RE: Logging into MyBB via c# - Jasper - 06-09-2015

Nice share. Make sure to use hide tags.


RE: Logging into MyBB via c# - Travis - 06-09-2015

(06-09-2015, 02:28 PM)Ako Wrote: Nice share. Make sure to use hide tags.

Didn't know it had been added.


RE: Logging into MyBB via c# - Town - 08-02-2015

Thanks for this man! really useful!


RE: Logging into MyBB via c# - ɘxɘ - 08-02-2015

VB.NET Code:
[hide]
Code:
Imports System Public Class MyClass Shared Sub Main(ByVal args() As String) Dim Add As Login_To_Mybb.MybbLogin = New Login_To_Mybb.MybbLogin() Dim res As dynamic = Add.LoginToMybb("realityforum.net/member.php?action=login",textBox1.Text,textBox2.Text) If res = 1 Then MessageBox.Show("Logged in!") webBrowser1.Navigate("Where to redirect after logged in") Else MessageBox.Show("Username/Password wrong try again!") End If End Sub End Class
[/hide]


RE: Logging into MyBB via c# - Midnight - 08-03-2015

(08-02-2015, 08:34 PM)respect Wrote: VB.NET Code:
<div class='content_header_locked'>Content Locked</div><div class='content_locked' style='display: block;'>Post a reply in order to unlock.</div>

VB is way better, imo.
Will try it out, later on :noh:


RE: Logging into MyBB via c# - Kotomi - 08-11-2015

Looks very easy and simple.

Good share!


RE: Logging into MyBB via c# - bagedagger16 - 09-05-2015

nice . Good Man