Jump to content
DevFuse Forums

Lindsey

Customers
  • Posts

    74
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Lindsey

  1. Fabolous Ft Lil Mo - Can't Let You Go
  2. I would either go for this one or a dell Mini. I ordered a Dell mini for my mum in July 22nd, but never got it till the 28th of august. So Just be carfull with dell. (Plus I can get you $6.00 off the laptop its self via Scorptech.) :)
  3. Never seen that article :). Kinda confused tho, How would I add this into the html part of things? <?php /** * initiate ipb functions */ $ipblink = new ipbAuthentication; /** * logging a user in */ if(isset($_REQUEST['username']) && isset($_REQUEST['password'])) { $returnCode = $ipblink->doLogin(); if( $returnCode == 'SUCCESS' ) { // login success, redirect. } else { // login faile, display error print $returnCode; } } else { // no login details provided } class ipbAuthentication { /** * initialisation function to setup IPSregistry */ protected function init() { /** * Edit this path, to where you have your forum installed. */ $forum_path = 'devforums'; /** * We will change directories so that proper directory is picked up */ chdir( $forum_path ); /** * Get some basic IPB files */ define( 'IPB_THIS_SCRIPT', 'public' ); require_once( $forum_path . '\initdata.php' ); /** * Get IPB registry */ require_once( IPS_ROOT_PATH . 'sources/base/ipsRegistry.php' ); require_once( IPS_ROOT_PATH . 'sources/base/ipsController.php' ); /** * initialise the ipsRegistry */ $this->ipbRegistry = ipsRegistry::instance(); $this->ipbRegistry->init(); } /** * logs a user in, username and password should be in $_REQUEST['username'] and $_REQUEST['password'] */ public function doLogin() { /** * call the initialisation function */ $this->init(); /** * get the IPB login handler wrapper */ require_once( IPS_ROOT_PATH . 'sources/handlers/han_login.php' ); /** * setup the handler class */ $login = new han_login( $this->ipbRegistry ); $login->init(); /** * verify the login and do any necessary tasks. form variables must be called 'username' & 'password' */ $login->verifyLogin(); return $login->return_code; } } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title><?php echo $_SERVER["HTTP_HOST"] ; ?> :: Log In</title> <style type='text/css' media='all'> @import url('http://<?php echo $_SERVER["HTTP_HOST"] ;?>/main.css'); </style> </head> <body><p> </p> <form id='install-form' action='index.php?action=login&do=submit' method='post'> <input type='hidden' name='_sd' value='b%3A0%3B'> <div id='ipswrapper'> <div class='main_shell'> <div id='navigation'> <ul id='section_buttons'> <li class='active'><span>Log In</span></li> </ul> </div> <div class='content_shell'> <div class='package'> <div> <div class='content_wrap'> <div style='clear:both'></div> <h2> This Login system is still in the works.</h2> <input type='hidden' name='do' value='login' /> <br /> <fieldset> <legend>Log In</legend> <div id='login_controls'> <label for='username'>Sign In Name</label> <input type='text' size='20' id='username' name='username' value='UserName'> <label for='password'>Password</label> <input type='password' size='20' id='password' name='password' value='PassWord'> </div> </fieldset> <br /> <div style='float: right'> <input type='submit' class='nav_button' value='Next >' /> </div> </div></div></div></div></div></div></form></body></html>
  4. Hello, Right, so what I'm trying todo is have http://mysite.com/index.php as my main site splash page. Now on that splash page I have a login form. (Code is below.) What I need down is to hook it into a forum so it validates the login or not. But if the login is incorrect it will go back to http://mysite.com/index.php?act=loginfailed <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title><?php echo $_SERVER["HTTP_HOST"] ; ?> :: Log In</title> <style type='text/css' media='all'> @import url('http://<?php echo $_SERVER["HTTP_HOST"] ;?>/main.css'); </style> </head> <body><p> </p> <form id='install-form' action='index.php' method='post'> <input type='hidden' name='_sd' value='b%3A0%3B'> <div id='ipswrapper'> <div class='main_shell'> <div id='navigation'> <ul id='section_buttons'> <li class='active'><span>Log In</span></li> </ul> </div> <div class='content_shell'> <div class='package'> <div> <div class='content_wrap'> <div style='clear:both'></div> <h2> This Login system is still in the works.</h2> <input type='hidden' name='do' value='login' /> <br /> <fieldset> <legend>Log In</legend> <div id='login_controls'> <label for='username'>Sign In Name</label> <input type='text' size='20' id='username' name='username' value='UserName'> <label for='password'>Password</label> <input type='password' size='20' id='password' name='password' value='PassWord'> </div> </fieldset> <br /> <div style='float: right'> <input type='submit' class='nav_button' value='Next >' /> </div> </div></div></div></div></div></div></form></body></html> So in other words, Fill in login form > Click next > Checks against a forums database if user/pass is valid > If not valid, goes back to index.php and shows an error. > But if valid, goes to a whole different file. .
  5. Just one thing that comes to my head at the moment (heads a bit full atm :P) After a user has rated a video, that user can no longer change his/her vote. Useful if user has made the wrong rating. [#REF]
  6. Lindsey

    Firefox 4

    Not as bad as 3.2 GiG worth :P
  7. Lindsey

    Firefox 4

    Firefox 4 is looking like chrome :(. But its for the better I guess...
  8. NT folk here. Kinda sucks up here lol. Looking at moving to the city at the end of the year... :)

  9. Why is (ismadman) smelling bad socks? :P

  10. Just noticed you live in Australia too :D

  11. Sorry :P I know your not new. Was just thinking of the obvious. :P
  12. Just a guess here, is the template empty within the skin it's self?
  13. Pisaldi, Not sure what you are trying to say. :) Could you explain more?
  14. Have you looked at this yet? Might be worth renewing just to try this out. :)
  15. Hey Michael, Thanks heaps! :D. That's what I was after. :)
  16. I will use it :D. Can use html/bbcode in the Rules. Select what usergroups can view it :D Thanks hehe
  17. Hey guys, just wondering. Is it possible to make a template group called "website_template" With a skin bit called "website_contactUs" and then pull that info on my main website? So for example. Call the main SkinTemplates so the basic header/footer will show, then in the middle have skin bit "webiste_contactUs" shown? If that made sense.
  18. Lindsey

    IPB 3.0.1

    http://www.invisionpower.com/index.php?app...mp;showfile=205
  19. Sounds good. Was just thinking out loud :)
  20. So Instead of the bug tracker like this Forums > Bug tracker > Paid Modifications 3.0.x > Report bug here it will be Forums > Bug tracker > Paid modifications 3.0.x > $PRODUCT NAME$ > report bug
  21. Hello, It might be a good idea to create new bug tracker category's for each paid modification. Will be easy to sort through when addressing bug reports... Thanks!
  22. Nope did not work out at all. :( http://www.speedtest.net/result/510956426.png Exchange is being upgraded to the 5.8* mbps up speed this week so up is better then 50 :P
×
×
  • Create New...