Jump to content

Please let us edit announcements


Ogaden
 Share

Recommended Posts

No.

Why not?

 

 

<ni431> oh my

<ni431> something moved in my pants

<Kurdanak[Rose]> sorry, that was me

<Kurdanak[Rose]> carry on

* jack3top slaps Melisandre around with a large fishing trout

<Melisandre> The !@#$ was that for

<Melisandre> Noeryu was showing you porn, not me

<jack3top> for raping me just now

 

7EIPSS0.gif

Link to comment
Share on other sites

plz yes

x0H0NxD.jpg?1

 

01:05:55 <%fistofdoom> im out of wine

01:06:03 <%fistofdoom> i winsih i had port
01:06:39 <@JoshF{BoC}> fistofdoom: is the snowman drunk with you

01:07:32 <%fistofdoom> i knet i forgot somehnt

 

Link to comment
Share on other sites

No.

 

No means yes, and yes means anal. So yes

  • Upvote 2

The many forms of proof regarding Kastor's sexuality:


- Kastor: I already came out the closet.


- MaIone: I'm gay


* MaIone is now known as Kastor


- Henri: i'm a !@#$it


 


Skable: the !@#$ is a codo?


 


420kekscope.jpg

Link to comment
Share on other sites

Thats a bunch of work on sheepy. Its easy to make a basic annoucement system, but editing them takes much more time as he must work with the database much more.

 

...include an edit link in the post if you have the correct permissions.

<a href='edit.php?id=$announcement_id'>

...display the announcement in a text area field to allow editing...

<div class='announcement_div'>
    <form id='announcement_update' method='post'>
        <input type="textarea" name="new_announcement">
            <?php echo"$announcement";?>
        </textarea>
        <input type='submit'>
    </form>
</div>

...submit the form and update the announcement text and last update time. You could even update the 'announcement read' field in the database so all players in said alliance know that they have something new to read. 

<?php
    $announcement_id = $_GET['id'];
    $new_announcement = $_POST['new_announcement'];
    
    $stmt = $conn->prepare("UPDATE alliance_announcements SET text=?, update=? WHERE id=?");
    $stmt->bind_param('ssi', $new_announcement, $current_date_time, $announcement_id);
    $stmt->execute();
    $stmt->close();

   header("Location: announcements.php?updatesuccess=true");
?>

Obviously, this is way oversimplified but shouldn't take more than 30 minutes to actually code in. It's a needed feature that is easy to implement.

 

Please put this on your to-do list, Sheepy!

Edited by Iodine
  • Upvote 1
<Sheepy> Ah, it is Christmas this turn
 
<Sheepy> Sheepy-Claus is gonna be comin' down your chim-chim-chiminey

 

Link to comment
Share on other sites

...include an edit link in the post if you have the correct permissions.

<a href='edit.php?id=$announcement_id'>

...display the announcement in a text area field to allow editing...

<div class='announcement_div'>
    <form id='announcement_update' method='post'>
        <input type="textarea" name="new_announcement">
            <?php echo"$announcement";?>
        </textarea>
        <input type='submit'>
    </form>
</div>

...submit the form and update the announcement text and last update time. You could even update the 'announcement read' field in the database so all players in said alliance know that they have something new to read. 

<?php
    $announcement_id = $_GET['id'];
    $new_announcement = $_POST['new_announcement'];
    
    $stmt = $conn->prepare("UPDATE alliance_announcements SET text=?, update=? WHERE id=?");
    $stmt->bind_param('ssi', $new_announcement, $current_date_time, $announcement_id);
    $stmt->execute();
    $stmt->close();

   header("Location: announcements.php?updatesuccess=true");
?>

Obviously, this is way oversimplified but shouldn't take more than 30 minutes to actually code in.

Now That I think of it, Sheepy does already have code dealing with updating (User/alliance  Descriptions), so it should be even easier.

  • Upvote 1

2JTFBIP.gif

Leader of UPS

Link to comment
Share on other sites

You should all work on being infallible, much like myself.

 

EDIT: I realized after pressing the "Save Changes" button how much more ironic this post is than intended. :x

Edited by Kurdanak
  • Upvote 2
xzhPlEh.png?1

Link to comment
Share on other sites

  • Administrators

Please put this on your to-do list, Sheepy!

 

It is (and has been) on the to-do list.

  • Upvote 1

Is there a bug? Report It | Not understanding game mechanics? Ask About It | Got a good idea? Suggest It

Forums Rules | Game Link

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.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and the Guidelines of the game and community.