This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2012-02-04 20:44:36

elfin8er
Scratcher
Registered: 2012-01-15
Posts: 1000+

Custom Login/Register FluxBB Help!

I'm trying to make a login button on my website, that allows users to login/register for the forums, via the home page of my website. I am hosting the forum on my own website, and MySQL host. I pretty much want to use the fluxbb login/register for everything on my website. Would that be possible? Could I make it so that users can login, and then comment on different places through my website? If so, then how? I'm kind of new to PHP, so as much as possible would be the best.


http://i1340.photobucket.com/albums/o723/stevetheipad/goldlittlesig.png

Offline

 

#2 2012-02-04 20:57:31

ProgramCAT
Scratcher
Registered: 2011-12-13
Posts: 500+

Re: Custom Login/Register FluxBB Help!

If what you mean by commenting on pages is a guestbook, there are plenty of free plugins and scripts on the internet.


Programming is an art...
Goodbye, Scratch. I am leaving because of the exams coming up at our school, though I'll check the forums once or twice a week.

Offline

 

#3 2012-02-04 21:05:47

elfin8er
Scratcher
Registered: 2012-01-15
Posts: 1000+

Re: Custom Login/Register FluxBB Help!

ProgramCAT wrote:

If what you mean by commenting on pages is a guestbook, there are plenty of free plugins and scripts on the internet.

Cool thanks. I'll check it out.


http://i1340.photobucket.com/albums/o723/stevetheipad/goldlittlesig.png

Offline

 

#4 2012-02-04 21:28:18

elfin8er
Scratcher
Registered: 2012-01-15
Posts: 1000+

Re: Custom Login/Register FluxBB Help!

Hmm. Plugins weren't quiet what I was looking for. It may be what I'm looking for, but I can't find one that would work.


http://i1340.photobucket.com/albums/o723/stevetheipad/goldlittlesig.png

Offline

 

#5 2012-02-04 21:29:54

ProgramCAT
Scratcher
Registered: 2011-12-13
Posts: 500+

Re: Custom Login/Register FluxBB Help!

If you know enough PHP you could just write a custom one.


Programming is an art...
Goodbye, Scratch. I am leaving because of the exams coming up at our school, though I'll check the forums once or twice a week.

Offline

 

#6 2012-02-04 21:36:16

elfin8er
Scratcher
Registered: 2012-01-15
Posts: 1000+

Re: Custom Login/Register FluxBB Help!

ProgramCAT wrote:

If you know enough PHP you could just write a custom one.

That's what my problem is. This is only, like me second time with PHP. I know HTML, and a bit of CSS, and that's it. I've used it many times, just not my self.


http://i1340.photobucket.com/albums/o723/stevetheipad/goldlittlesig.png

Offline

 

#7 2012-02-04 22:05:30

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Custom Login/Register FluxBB Help!

If you look at the login code for FluxBB you could just copy it and use the same system for keeping the login session.

Offline

 

#8 2012-02-04 22:13:17

elfin8er
Scratcher
Registered: 2012-01-15
Posts: 1000+

Re: Custom Login/Register FluxBB Help!

Magnie wrote:

If you look at the login code for FluxBB you could just copy it and use the same system for keeping the login session.

I tried, but maybe I was doing it wrong. I went into register.php, and copied the text in the file, and then I made a new file, and called it register.php, and then I went to it, and it was just white. I know it's not my computer being slow again, because the other register works. I think that maybe I need another file in the same directory as the register.php. Do I need the login, and logout.php as well?


http://i1340.photobucket.com/albums/o723/stevetheipad/goldlittlesig.png

Offline

 

#9 2012-02-04 22:36:59

trinary
Scratcher
Registered: 2012-01-29
Posts: 1000+

Re: Custom Login/Register FluxBB Help!

You probably should add the other pages into the same directory. It would be helpful if you also posted the code for all the files.


http://trinary.tk/images/signature_.php

Offline

 

#10 2012-02-04 22:53:12

elfin8er
Scratcher
Registered: 2012-01-15
Posts: 1000+

Re: Custom Login/Register FluxBB Help!

trinary wrote:

You probably should add the other pages into the same directory. It would be helpful if you also posted the code for all the files.

The code would be too long for a post, and would take a very long time to upload all of the files. Google flubb, and click on the first link, and then click download. You can download the files and take a look, if you want. I also want the page to redirect to the homepage if possible. I was thinking of just making a link on the home page saying register, that links to the register.php page that works, but the thing is, after I register, it would redirect me to the forums but I want it to redirect to the home page when the link is pressed, BUT if the user clicks on register from the forums, it redirects them to the forums. To do that, I wanted to have two pages, but again, I don't know what code I need, and don't need, and what files I need or don't need.


http://i1340.photobucket.com/albums/o723/stevetheipad/goldlittlesig.png

Offline

 

#11 2012-02-04 23:45:06

elfin8er
Scratcher
Registered: 2012-01-15
Posts: 1000+

Re: Custom Login/Register FluxBB Help!

Bump


http://i1340.photobucket.com/albums/o723/stevetheipad/goldlittlesig.png

Offline

 

#12 2012-02-04 23:52:36

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Custom Login/Register FluxBB Help!

elfin8er wrote:

Magnie wrote:

If you look at the login code for FluxBB you could just copy it and use the same system for keeping the login session.

I tried, but maybe I was doing it wrong. I went into register.php, and copied the text in the file, and then I made a new file, and called it register.php, and then I went to it, and it was just white. I know it's not my computer being slow again, because the other register works. I think that maybe I need another file in the same directory as the register.php. Do I need the login, and logout.php as well?

Yeah, the register.php copy probably needs to be in the same folder as the rest of the forums, or your need to change the PHP code so it imports/includes the files from the correct folder.

Cause there is probably something like: include("include/functions.php"); or include("include/config.php");

But if it's in another folder it'll try including a non-existent file.

Offline

 

#13 2012-02-04 23:56:57

elfin8er
Scratcher
Registered: 2012-01-15
Posts: 1000+

Re: Custom Login/Register FluxBB Help!

Magnie wrote:

elfin8er wrote:

Magnie wrote:

If you look at the login code for FluxBB you could just copy it and use the same system for keeping the login session.

I tried, but maybe I was doing it wrong. I went into register.php, and copied the text in the file, and then I made a new file, and called it register.php, and then I went to it, and it was just white. I know it's not my computer being slow again, because the other register works. I think that maybe I need another file in the same directory as the register.php. Do I need the login, and logout.php as well?

Yeah, the register.php copy probably needs to be in the same folder as the rest of the forums, or your need to change the PHP code so it imports/includes the files from the correct folder.

Cause there is probably something like: include("include/functions.php"); or include("include/config.php");

But if it's in another folder it'll try including a non-existent file.

So you're saying that somewhere in the forms folder, there's a file called include/configuration.PHP?


http://i1340.photobucket.com/albums/o723/stevetheipad/goldlittlesig.png

Offline

 

#14 2012-02-05 00:32:35

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Custom Login/Register FluxBB Help!

I'm not entirely sure, but in the register.php, login.php, logout.php, etc, I am sure there are some lines of code saying: include("somefolder/somefile.php"); in each of the files. You want to change those to the corresponding folders. So if the default forum folder is /site/forums and the register.php is in /site/forums it is including the config file (for MySQL) from this folder/file: /site/forums/include/config.php. If you make a copy of register.php in the /site folder, then you need to change the include url from include/config.php to forums/include/config.php.

If you look at the first 100 lines of code, I'm sure you'll see an include() function and understand a little more of what I mean.

Offline

 

Board footer