Jump to content
MakeWebGames

I need help Please read asap


? Sparks ?

Recommended Posts

Re: I need help Please read asap

 

<?php

require_once (DIRNAME(__FILE__) . '/globals.php');
$AnnouceCount = $ir['new_announcements'];
$Order = sprintf(
"SELECT * FROM " .
"`mod_announcements` " .
"ORDER BY `annouce_ID` DESC"
);
$Selected = $db->query ($Order);
?>
<h3>Annoucements</h3>


<table width='75%' cellspacing='0' border='1' class='table'>
  <tr>
     <th width='30%'>
        Staff Posted/Topic/Urgency
     </th>
     <th width='70%'>
        Announcement
     </th>
  </tr>
<?php
while($Info = $db->fetch_row($Selected))
{
  if($AnnouceCount > 0)
  {
     $AnnouceCount--;
     $NewInfo="?-?<font color='#FF000'>[b]New![/b]</font>";
  }
  else
  {
     $NewInfo="";
  }
  echo "
  <tr>
     <th colspan='2'>
        {$Info['annouce_NAME']}?-?".date('F j Y, g:i:s a', $Info['annouce_TIME']).$NewInfo."
     </th>
  </tr>
     <td>
        Topic: {$Info['annouce_TOPIC']}

        Urgency: {$Info['annouce_URGENCY']}

        Posted By: {$Info['annouce_POSTED']}

     </td>      
     <td valign=top>
        ".nl2br($Info['annouce_TEXT'])."

     </td>
  </tr>";
}
?>
</table>
<?php
if($ir['new_announcements'])
{
  $NoAnnoucements = sprintf(
  "UPDATE `users` SET
     `new_announcements` = '0'
  WHERE (`userid` = %u) " ,
  $userid);
  $db->query($NoAnnoucements);
}
$h->endpage();
?>
Link to comment
Share on other sites

Re: I need help Please read asap

go into your css file

find the table class

and change it to this

table.table { 
font-family: verdana, helvetica, arial, geneva, sans-serif;
       margin-top: 10%;
margin-left: 20%;
font-size: 14px;

 

then edit the necessary

PS

That is the edit for announcements, ill try find more for ya

Link to comment
Share on other sites

Re: I need help Please read asap

 

<?php

require_once (DIRNAME(__FILE__) . '/globals.php');
$AnnouceCount = $ir['new_announcements'];
$Order = sprintf(
"SELECT * FROM " .
"`mod_announcements` " .
"ORDER BY `annouce_ID` DESC"
);
$Selected = $db->query ($Order);
?>
<h3>Annoucements</h3>


<table width='75%' cellspacing='0' border='1' class='table'>
  <tr>
     <th width='30%'>
        Staff Posted/Topic/Urgency
     </th>
     <th width='70%'>
        Announcement
     </th>
  </tr>
<?php
while($Info = $db->fetch_row($Selected))
{
  if($AnnouceCount > 0)
  {
     $AnnouceCount--;
     $NewInfo="?-?<font color='#FF000'>[b]New![/b]</font>";
  }
  else
  {
     $NewInfo="";
  }
  echo "
  <tr>
     <th colspan='2'>
        {$Info['annouce_NAME']}?-?".date('F j Y, g:i:s a', $Info['annouce_TIME']).$NewInfo."
     </th>
  </tr>
     <td>
        Topic: {$Info['annouce_TOPIC']}

        Urgency: {$Info['annouce_URGENCY']}

        Posted By: {$Info['annouce_POSTED']}

     </td>      
     <td valign=top>
        ".nl2br($Info['annouce_TEXT'])."

     </td>
  </tr>";
}
?>
</table>
<?php
if($ir['new_announcements'])
{
  $NoAnnoucements = sprintf(
  "UPDATE `users` SET
     `new_announcements` = '0'
  WHERE (`userid` = %u) " ,
  $userid);
  $db->query($NoAnnoucements);
}
$h->endpage();
?>

 

Are you f**king obsessed with posting my codes today? -.-

Link to comment
Share on other sites

Re: I need help Please read asap

 

<?php

require_once (DIRNAME(__FILE__) . '/globals.php');
$AnnouceCount = $ir['new_announcements'];
$Order = sprintf(
"SELECT * FROM " .
"`mod_announcements` " .
"ORDER BY `annouce_ID` DESC"
);
$Selected = $db->query ($Order);
?>
<h3>Annoucements</h3>


<table width='75%' cellspacing='0' border='1' class='table'>
  <tr>
     <th width='30%'>
        Staff Posted/Topic/Urgency
     </th>
     <th width='70%'>
        Announcement
     </th>
  </tr>
<?php
while($Info = $db->fetch_row($Selected))
{
  if($AnnouceCount > 0)
  {
     $AnnouceCount--;
     $NewInfo="?-?<font color='#FF000'>[b]New![/b]</font>";
  }
  else
  {
     $NewInfo="";
  }
  echo "
  <tr>
     <th colspan='2'>
        {$Info['annouce_NAME']}?-?".date('F j Y, g:i:s a', $Info['annouce_TIME']).$NewInfo."
     </th>
  </tr>
     <td>
        Topic: {$Info['annouce_TOPIC']}

        Urgency: {$Info['annouce_URGENCY']}

        Posted By: {$Info['annouce_POSTED']}

     </td>      
     <td valign=top>
        ".nl2br($Info['annouce_TEXT'])."

     </td>
  </tr>";
}
?>
</table>
<?php
if($ir['new_announcements'])
{
  $NoAnnoucements = sprintf(
  "UPDATE `users` SET
     `new_announcements` = '0'
  WHERE (`userid` = %u) " ,
  $userid);
  $db->query($NoAnnoucements);
}
$h->endpage();
?>

 

Are you f**king obsessed with posting my codes today? -.-

ROFL!!!!!!!

Link to comment
Share on other sites

  • 3 weeks later...

Re: I need help Please read asap

 

Dude Wth It was in game modifications, Which means It was free so I posted It

Get over It champ

Might be true, that doesn't mean you should post his code everywhere you feel like. We would prefer that you link to his code/post, maybe a more general way of help can be provided by more people and the original author.

So please respect the owner a bit, it doesn't hurt ... it makes life easier as well.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...