A Forum

Posted on Tuesday 29th May 2007 at 07:28 PM
MCP
MCP's Avatar
Is there a script being made for the RMB User System? If so please let me know when so I may use it.

Or let me know where I can get one to work with the RMB User System.

Thanks! :)
Posted on Tuesday 29th May 2007 at 07:51 PM
Diablosblizz
Diablosblizz's Avatar
It could be quiet simple actually.

I would start to make one if I know how to do the &id=77 part. I know how to get the ?topic but the and screws me up.

Anybody have any idea?
Posted on Tuesday 29th May 2007 at 08:42 PM
DanielXP
DanielXP's Avatar
PHP Code
  1. <?
  2. $id = (int)$_GET['id'];
  3. echo $id;
  4. //This will get the &id=* and echo the number out.
  5. //(int) is to stop SQL injections on numbers.
  6. ?>


PHP Code
  1. <?
  2. if(isset($_GET['topic'])){
  3. //This is the ?topic URL
  4. }
  5. ?>


I would make a PM system but im busy coding V4 ;)
Posted on Tuesday 29th May 2007 at 08:48 PM
SkillMaster
SkillMaster's Avatar
[php]
<?php
switch($_GET[page]) this would make it ?page=
{
default:
break;

case 'write': this would make it ?page=write.
break;
}
?>
[php]

You can change them, i found this is the easiest way.
Posted on Tuesday 29th May 2007 at 09:27 PM
SkillMaster
SkillMaster's Avatar
PHP Code
  1. <?php
  2. switch($_GET[page]) this would make it ?page=
  3. {
  4. default:
  5. break;
  6.  
  7. case 'write': this would make it ?page=write.
  8. break;
  9. }
  10. ?>


Sorry
Posted on Tuesday 29th May 2007 at 09:39 PM
Diablosblizz
Diablosblizz's Avatar
To Daniel:

I don't understand:

PHP Code
  1. <?php
  2. switch($_GET['topic']){
  3. $_GET['id']; {
  4.  
  5. default:
  6. blah blah
  7. break;
  8.  
  9. case 'dude':
  10. blah blah
  11. break;
  12. ?>


How would I get how it gets the number (unless thats from mysql)
Posted on Tuesday 29th May 2007 at 11:20 PM
DanielXP
DanielXP's Avatar
PHP Code
  1. <?php
  2. switch($_GET['topic']){
  3. $id = (int)$_GET['id'];
  4. echo $id;
  5. default:
  6. echo "blah blah";
  7. break;
  8.  
  9. case 'dude':
  10. echo "blah blah";
  11. break;
  12. ?>
Posted on Wednesday 30th May 2007 at 05:20 AM
SkillMaster
SkillMaster's Avatar
Diablos use mine much easier.
Posted on Wednesday 30th May 2007 at 07:28 PM
MCP
MCP's Avatar
Ok This has not meaning at all to me. lol I do not understand, Daniel. Where is the script you posted getting the threads and posts from? Don't I need to make the forum first?
Posted on Wednesday 30th May 2007 at 07:42 PM
Diablosblizz
Diablosblizz's Avatar
MCP:

1. Maybe you should start to learn a bit of PHP before asking help.
2. You would have to use mysql_querys to post the information into a table, and again to get the ID and name and message.

SkillMaster:

1.I know how to do that, but I am guessing that the &id=77 is the mysql?

I just don't understand how he got the &id
Topic is locked