Question About Html Register Script

This is guide mostly for website tools and code, for example CMS or registration scripts.
There can also be tools.

Moderators: osRose dev team, ospRose dev team, osiRose dev team, Moderators

Question About Html Register Script

Postby xxsmurfxx on Mon Oct 29, 2007 4:42 pm

Hi there all,

I had a question about scripts, is there too a html login/register script.
Because I work with html because i'm not very good at php.
Why should'nt I use the already made cms's like dynasty cms.
Because I want a jsut unique site for my server.
So maybe someone can help me with making a script or maybe you already have one.

Already Thanks,

Smurf :geek:
Image
Live Your Dreams -=Smurf=-
User avatar
xxsmurfxx
Rackie
Rackie
 
Posts: 153
Joined: Tue Oct 02, 2007 6:00 pm
Location: Uhm Home

Re: Question About Html Register Script

Postby lmame on Mon Oct 29, 2007 4:57 pm

No it's not possible since you need to get some values from your player, like his account name, his password, those kind of things you can't get from a HTML pages only website :)
The world is full of love and peace ^_^
Image
User avatar
lmame
Admin
Admin
 
Posts: 8997
Joined: Mon Aug 06, 2007 4:42 pm
Location: July City

Re: Question About Html Register Script

Postby xxsmurfxx on Mon Oct 29, 2007 5:07 pm

Could you maybe help me with inplenting a good php for my template??
This is my template now
http://img137.imageshack.us/img137/4927/90876384mt6.jpg


Smurf :geek:
Image
Live Your Dreams -=Smurf=-
User avatar
xxsmurfxx
Rackie
Rackie
 
Posts: 153
Joined: Tue Oct 02, 2007 6:00 pm
Location: Uhm Home

Re: Question About Html Register Script

Postby lmame on Mon Oct 29, 2007 9:03 pm

I'm sorry, I don't have time for this ;)
You should download an already existing CMS and see how hey do to make a register page, it shouldn't be difficult to change it your way.
The world is full of love and peace ^_^
Image
User avatar
lmame
Admin
Admin
 
Posts: 8997
Joined: Mon Aug 06, 2007 4:42 pm
Location: July City

Re: Question About Html Register Script

Postby xxsmurfxx on Mon Oct 29, 2007 10:15 pm

I already got the register working but now i wanna inplent the dynasty member and adminpanel,
But thats a little bit tuffer so maybe someone else can help me with that


Smurf :geek:
Image
Live Your Dreams -=Smurf=-
User avatar
xxsmurfxx
Rackie
Rackie
 
Posts: 153
Joined: Tue Oct 02, 2007 6:00 pm
Location: Uhm Home

Re: Question About Html Register Script

Postby Rifke on Tue Oct 30, 2007 2:19 am

as long as there is session_start(); above every page, you can easly include those files. I thought.

This is the main index file...
  1.  
  2. <?php session_start(); ?>
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
  4. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
  5. <?php
  6. require ('functions/config.php');
  7. require ('functions/functions.php');
  8.  
  9. $rs = mysql_connect($dbhost, $dbuser, $dbpasswd) or die('Could not establish database connection.');
  10. mysql_select_db($dbname,$rs) or die(mysql_error());
  11.  
  12. ?>
  13. <head>
  14.   <title><?php echo $DynCMS['title'] ?> - Powered by Dynasty CMS v1</title>
  15.   <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
  16.   <link rel="stylesheet" type="text/css" href="css/style.css" />
  17.   <link rel="stylesheet" type="text/css" href="css/colour.css" />
  18. </head>
  19.  
  20. <body>
  21.   <div id="main">
  22.  
  23. <div id="links" style="width: 726px; height: 24px"><?php echo $DynCMS['title'] ?> - powered by dynastycms
  24.  
  25. </div>
  26.     <div id="logo"></div>
  27.     <div id="menu">
  28.       <ul>
  29.  
  30.         <li><a href="index.php?op=home">Home</a></li>
  31.         <li><a href="index.php?op=register">Register</a></li>
  32.         <li><a href="index.php?op=downloads">Downloads</a></li>
  33.         <li><a href="<?php echo $DynCMS['forums'] ?>">Forums</a></li>
  34.         <li><a href="index.php?op=rankings">Rankings</a></li>
  35.         <li><a href="index.php?op=info">Info</a></li>
  36.  
  37.         <li><a href="index.php?op=staff">Staff</a></li>
  38.  
  39.         <li><a href="<?php if(!session_is_registered(User_Name)) {
  40.         echo '?op=login';
  41.         } else {
  42.         echo '?op=user';
  43.         }
  44.         ?>">User Panel</a></li>
  45.     <li><a href="<?php if(!session_is_registered(Admin)) {
  46.         echo '?op=admin_login';
  47.         } else {
  48.         echo '?op=admin';
  49.         }
  50.         ?>">Admin</a></li>
  51.  
  52.  
  53.       </ul>
  54.     </div>  
  55.   <div id="content">
  56.       <div id="column1">
  57.             <div class="sidebaritem" style="width:168px;">
  58.     <h1>Server Status</h1>
  59.     <p><?php echo "Login Server:&nbsp;".$log_status; ?></p>
  60.     <p><?php echo "Character Server:&nbsp;".$char_status; ?></p>
  61.     <p><?php echo "World Server:&nbsp;".$world_status; ?></p>
  62.     <p>Total Online:&nbsp;<?php onlineTotal(); ?></p>
  63. </div>
  64. <div class="sidebaritem" style="width:168px;">
  65.     <h1>Statistics</h1>      
  66.     <p>Total Accounts:&nbsp; <?php accTotal(); ?></p>
  67.     <p>Total Characters:&nbsp; <?php charTotal(); ?> </p>
  68.     <p>Total GameMasters:&nbsp; <?php gmTotal(); ?></p>
  69.     <p>Total Clans:&nbsp; <?php clanTotal(); ?></p>
  70. </div>
  71. <div class="sidebaritem" style="width:168px;">
  72.     <h1>Server Rates</h1>        
  73.     <p>Exp Rate:&nbsp; <?php echo $exprate; ?></p>
  74.     <p>Drop Rate:&nbsp; <?php echo $droprate; ?> </p>
  75.     <p>Zuly Rate:&nbsp; <?php echo $zulyrate; ?></p>
  76. </div>
  77. <div class="sidebaritem" style="width:168px;">
  78.     <h1>Voting Links</h1>        
  79.     <p><?php echo $vote1 ?></p>
  80.     <p><?php echo $vote2 ?></p>
  81.  
  82. </div></div>
  83.  
  84. <br><br><div>
  85. <center>
  86.  
  87.  
  88. <?PHP
  89. if (isset($_GET['write'])) {
  90.     $argv = explode('-',$_GET['write']);
  91.     settype($argv,'array');
  92.     $_GET['op'] = @$argv[0];
  93.     $_GET['url'] = @$argv[1];
  94.     $_GET['do'] = @$argv[2];
  95.     $_GET['key'] = @$argv[3];
  96. }
  97. $op = !isset($_GET['op']) ? home : $_GET['op'] ;
  98.  
  99.    if (is_file("modules/".$op.".php")) {
  100.         include("modules/".$op.".php");
  101.    
  102.    } else { 
  103.         include ('modules/home.php');
  104.    }
  105. ?>
  106. </div>
  107.     </div></center>
  108.     <div id="footer">
  109.       copyright &copy; 2007 DynastyCMS
  110.         </div>
  111.  
  112.   </div>
  113. </body>
  114. </html>
  115.  

So if you just change the layout of it to your website, you can use that one with your graphics.
Rifke
Pero pero
Pero pero
 
Posts: 719
Joined: Thu Aug 09, 2007 3:01 pm
Location: Belgium


Return to PHP / Web Guides, Scripts and tools.

Who is online

Users browsing this forum: No registered users and 7 guests