Jump to content
xisto Community

biggiebi

Members
  • Content Count

    16
  • Joined

  • Last visited

Posts posted by biggiebi


  1. I suck at explaining.

    So here I can get data from the MySQL database and I can print the info.

    But like how do I make it so it show a new

    <tr>									 <td class="topic"><?php echo $title ?></td>								 </tr>								 <tr>									 <td class="contenttext">										 <?php while ( $data = mysql_fetch_array($result) ) {	echo bb2html($data['message']) . '<br />';} ?>									   </td>								   </tr>
    everytime there's a new content?

    cause when i
    echo bb2html($data['message'])
    it shows all of flexbb_threads in 1
    <tr><td></td></tr>

    So like when i do
    echo bb2html($data['message'])
    I want it show
    <tr><td>Title1</td><td>Content1</td></tr><tr><td>Title2</td><td>Content2</td></tr>


  2. well could you help me with this?

    <?php$dbhost = 'host';$dbuser = 'username';$dbpass = 'password';$dbname = 'database';$conn = mysql_connect($dbhost, $dbuser, $dbpass) or die ('Error connecting to mysql');mysql_select_db($dbname);$result = mysql_query("SELECT name, message, poster FROM flexbb_threads WHERE id = 1");$data = mysql_fetch_array($result);$data['message'] = bb2html($data['message']);?> <div align="center">							 <table border="0" width="85%" class="contentbox">								 <tr>									 <td class="topic"><?php echo $data['name']; ?></td>								 </tr>								 <tr>									 <td class="contenttext">										 <?php echo $data['message']; ?>									   </td>								   </tr>								   <tr>									   <td class="by">										   Written by <?php echo $data['poster']; ?></a>									   </td>								   </tr>							</table>						</div><br><br><?php mysql_close($conn); ?>


  3. I've tried this to show all the content of the announcements forum.

    $result = mysql_query("SELECT name, message, poster FROM flexbb_threads WHERE forumid = 1");$data = mysql_fetch_array($result);echo $data['message'];
    name is the Title of the thread, message is the content, poster is the poster. forumid is the forum. forumid = 1 is the announcements. so yeah

    http://forums.xisto.com/no_longer_exists/

  4. Well I'm trying to get data from my MySQL database and post it on my frontpage.

    This is the query

    SELECT name, message, poster FROM flexbb_threads WHERE id = 1
    and the message is in BBC. so yeah...

  5. Window hldsupdatetool installation

    First you would need to download and install the tool here Install the hldsupdatetool in the C:/hlds or which ever drive you choose. Now to install the server you want to host. Go to Start > Run > cmd > cd\ > cd hlds and run the hldsupdatetool.exe. To install counter-strike 1.6 server type hldsupdatetool.exe -command update -game cstrike -dir c:/hlds

    and it will download the files to run a counter-strike 1.6 server. To see a list of game use the hldsupdatetool.exe -command update -game list .

     

    Linux hldsupdatetool Installation

    Agian we will need to download the tool to update the server but this time we're going to download the linux version. I'll show you how to install a server through SSH

     

    mkdir hlds
    This will make a new folder name hlds

    cd hlds
    This will change you to hlds directory

    wget http://storefront.steampowered.com/download/hldsupdatetool.bin
    This will download the tool to install a server on linux

    chmod +x hldsupdatetool.bin
    This will make the tool executable

     

    Now run

    ./steam
    and you should get

    Checking bootstrapper version …Getting version X of Steam HLDS Update ToolDownloading. . . . . . . . . . .Steam Linux Client updated, please retry the command
    Now to install a counter-strike 1.6 server

    ./steam -command update -game cstrike -dir /home/hlds
    Now it should download the linux version of the counter-strike server

     

     

    Running the server

     

    Windows - Go to C:\hlds and create a short of hlds.exe right click on the hlds.exe short and go to poperties

    add this after C:\hlds\hlds.exe "-console -game cstrike +port 27015 +map de_dust +maxplayers 16 -autoupdate" without quotes save and run the hlds.exe shortcut

     

    Linux - go to the hlds directory and type ./hlds_run -console -game cstrike +port 27015 +map de_dust +maxplayers 16 -autoupdate

     

     

    If your trying to run the server behind a router go to https://portforward.com/error.cgi

    To get your ip go to https://www.whatismyip.com/


  6. Or you can use the hldsupdatetool. This version is more effiecient and would take take up less resources if its a "dedicated" server

     

     

    Window hldsupdatetool installation

    First you would need to download and install the tool here Install the hldsupdatetool in the C:/hlds or which ever drive you choose. Now to install the server you want to host. Go to Start > Run > cmd > cd\ > cd hlds and run the hldsupdatetool.exe. To install counter-strike 1.6 server type hldsupdatetool.exe -command update -game cstrike -dir c:/hlds

    and it will download the files to run a counter-strike 1.6 server. To see a list of game use the hldsupdatetool.exe -command update -game list .

     

    Linux hldsupdatetool Installation

    Agian we will need to download the tool to update the server but this time we're going to download the linux version. I'll show you how to install a server through SSH

     

    mkdir hlds
    This will make a new folder name hlds

    cd hlds
    This will change you to hlds directory

    wget http://storefront.steampowered.com/download/hldsupdatetool.bin
    This will download the tool to install a server on linux

    chmod +x hldsupdatetool.bin
    This will make the tool executable

     

    Now run

    ./steam
    and you should get

    Checking bootstrapper version …Getting version X of Steam HLDS Update ToolDownloading. . . . . . . . . . .Steam Linux Client updated, please retry the command

    Now to install a counter-strike 1.6 server

    ./steam -command update -game cstrike -dir /home/hlds
    Now it should download the linux version of the counter-strike server

     

     

    Running the server

     

    Windows - Go to C:\hlds and create a short of hlds.exe right click on the hlds.exe short and go to poperties

    add this after C:\hlds\hlds.exe "-console -game cstrike +port 27015 +map de_dust +maxplayers 16 -autoupdate" without quotes save and run the hlds.exe shortcut

     

    Linux - go to the hlds directory and type ./hlds_run -console -game cstrike +port 27015 +map de_dust +maxplayers 16 -autoupdate

     

     

    If your trying to run the server behind a router go to https://portforward.com/error.cgi

    To get your ip go to https://www.whatismyip.com/

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.