• Member Avatar for Niloofar24
    Niloofar24

    Began Watching Toggle (left-right) code doesn't work

    Hello. In javascript there is a jQuery slideToggle() Method that toggles up-down but i want it to toggles left-right. I found a code from [here](http://jsfiddle.net/abwVd/) and then i copied and …
  • Member Avatar for Niloofar24
    Niloofar24

    Replied To a Post in Need help with Bootbox.js library

    No answer?! It seems this forum is not activate enough.
  • Member Avatar for Niloofar24
    Niloofar24

    Replied To a Post in Need help with Bootbox.js library

    I placed those 2 files in the same directory as the html page and now when i click the Alert word, i face with it: (why it appears like this?) …
  • Member Avatar for Niloofar24
    Niloofar24

    Replied To a Post in Need help with Bootbox.js library

    Both bootstrap.min.js and bootbox.min.js files are in home directory. Should i place them in a cartain place?! No there is no errors.
  • Member Avatar for Niloofar24
    Niloofar24

    Replied To a Post in Need help with Bootbox.js library

    Well, first of all i copied this code: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>My page</title> <!-- CSS dependencies --> <link rel="stylesheet" type="text/css" href="bootstrap.min.css"> </head> <body> <p>Content here. <a class="alert" …
  • Member Avatar for Niloofar24
    Niloofar24

    Created Need help with Bootbox.js library

    Hello. I'm working on my own CMS. I want to use Bootbox.js which is a small JavaScript library which allows us to create programmatic dialog boxes using Bootstrap modals, without …
  • Member Avatar for Niloofar24
    Niloofar24

    Began Watching Need help with Bootbox.js library

    Hello. I'm working on my own CMS. I want to use Bootbox.js which is a small JavaScript library which allows us to create programmatic dialog boxes using Bootstrap modals, without …
  • Member Avatar for Niloofar24
    Niloofar24

    Marked Solved Status for settting Read More for cms posts

    Hi. I want to set `read more` for my cms posts. The code i found was `<?php the_content( $more_link_text , $strip_teaser ); ?> ` but still don't know how and …
  • Member Avatar for Niloofar24
    Niloofar24

    Replied To a Post in settting Read More for cms posts

    Thank you @joshuajames.delacruz. Thank you @lps.
  • Member Avatar for Niloofar24
    Niloofar24

    Replied To a Post in settting Read More for cms posts

    I understood. Before marking this discussion as solved, just want to ask one more question. @joshuajames.delacruz, would you please explaine this part of code for me? Specially this part `('/^.{1,260}\b/s', …
  • Member Avatar for Niloofar24
    Niloofar24

    Replied To a Post in settting Read More for cms posts

    I understood, but @lps, if you use the first model, it may breaks a word, am i right?! How would you solve it for yourself? I mean if you want …
  • Member Avatar for Niloofar24
    Niloofar24

    Marked Solved Status for problem with empty rows of db to echo (with certain ids if For loop)

    Hi. I'm working on my own CMS, i want the script to echo 3 posts in every page, and want the script to echo from the recent post and back …
  • Member Avatar for Niloofar24
    Niloofar24

    Replied To a Post in problem with empty rows of db to echo (with certain ids if For loop)

    Thank you i finally could edit my script as well as possible and now it works well, the script will echo 3 posts in every page and will start from …
  • Member Avatar for Niloofar24
    Niloofar24

    Replied To a Post in settting Read More for cms posts

    What i did finally was: foreach($result as $key => $row) { echo " <tr> <td>$row[ID] <td><a href='single-post-page.php?post=" . $row['ID'] . "'>" . $row['Title'] . "</a> <td>$row[Author] <td>" . substr($row['Content'], 0, …
  • Member Avatar for Niloofar24
    Niloofar24

    Replied To a Post in settting Read More for cms posts

    But @lps, what about breaking words? Without using `$string = substr($stringCut, 0, strrpos($stringCut, ' ')).'... <a href="/this/story">Read More</a>';` the text breaks in the middle of words. This is what i …
  • Member Avatar for Niloofar24
    Niloofar24

    Replied To a Post in settting Read More for cms posts

    @joshuajames.delacruz, would you please explain strrpos() for me? I have read about it. `strrpos(string,find,start)` please give me an example that contains the `start` part. `strrpos($stringCut, ' ')` means that variable …
  • Member Avatar for Niloofar24
    Niloofar24

    Replied To a Post in problem with empty rows of db to echo (with certain ids if For loop)

    Well i changed it a little: $output = array_slice($final_result, $from, $to); echo "--- output:--- <br>" . $output . "<br> --- <br>"; print_r($output); Still didn't find how to echo the variable: …
  • Member Avatar for Niloofar24
    Niloofar24

    Replied To a Post in problem with empty rows of db to echo (with certain ids if For loop)

    How can i echo the value of $output variable? $output = array_slice($final_result, $from, $to); echo "--- output:--- <br>" . $output; print_r($output); Line 3 doesn't echo anything and line 4 echo …
  • Member Avatar for Niloofar24
    Niloofar24

    Replied To a Post in settting Read More for cms posts

    So what can i do for my cms posts? I want it to link to actual post like what we see it wordpress.
  • Member Avatar for Niloofar24
    Niloofar24

    Created settting Read More for cms posts

    Hi. I want to set `read more` for my cms posts. The code i found was `<?php the_content( $more_link_text , $strip_teaser ); ?> ` but still don't know how and …
  • Member Avatar for Niloofar24
    Niloofar24

    Began Watching settting Read More for cms posts

    Hi. I want to set `read more` for my cms posts. The code i found was `<?php the_content( $more_link_text , $strip_teaser ); ?> ` but still don't know how and …
  • Member Avatar for Niloofar24
    Niloofar24

    Replied To a Post in problem with empty rows of db to echo (with certain ids if For loop)

    @lps, would you please guide me more with the array part? How should i set data after `foreach($result as $key => $row) {` line in an array? And please give …
  • Member Avatar for Niloofar24
    Niloofar24

    Replied To a Post in problem with empty rows of db to echo (with certain ids if For loop)

    Of course not @lps! I didn't copy and past your codes! This is what i did: $count = 0; while($count < 3){ $stmt = $conn->prepare("SELECT ID, Title, Author, Content FROM …
  • Member Avatar for Niloofar24
    Niloofar24

    Replied To a Post in problem with empty rows of db to echo (with certain ids if For loop)

    @lps, i removed the else part just to check the if part but it didn't work. I used this but why it doesn't work?! if($get_pages == 0){ $sql = "SELECT …
  • Member Avatar for Niloofar24
    Niloofar24

    Replied To a Post in problem with empty rows of db to echo (with certain ids if For loop)

    Well, it didn't work, nothing happend just the page try to load! And finally a blank page will be loaded.
  • Member Avatar for Niloofar24
    Niloofar24

    Replied To a Post in problem with empty rows of db to echo (with certain ids if For loop)

    Anny suggestion?!
  • Member Avatar for Niloofar24
    Niloofar24

    Marked Solved Status for creating confirm message before delete the post

    Hello friends! I want the script when user clicks the Delete botton to delete that post, a confirm message appears and ask if the user is sure to delete that …
  • Member Avatar for Niloofar24
    Niloofar24

    Replied To a Post in creating confirm message before delete the post

    Oh! How easy it was!! Thank you @AleMonteiro!
  • Member Avatar for Niloofar24
    Niloofar24

    Edited creating confirm message before delete the post

    Hello friends! I want the script when user clicks the Delete botton to delete that post, a confirm message appears and ask if the user is sure to delete that …
  • Member Avatar for Niloofar24
    Niloofar24

    Edited creating confirm message before delete the post

    Hello friends! I want the script when user clicks the Delete botton to delete that post, a confirm message appears and ask if the user is sure to delete that …
  • Member Avatar for Niloofar24
    Niloofar24

    Created creating confirm message before delete the post

    Hello friends! I want the script when user clicks the Delete botton to delete that post, a confirm message appears and ask if the user is sure to delete that …
  • Member Avatar for Niloofar24
    Niloofar24

    Began Watching creating confirm message before delete the post

    Hello friends! I want the script when user clicks the Delete botton to delete that post, a confirm message appears and ask if the user is sure to delete that …
  • Member Avatar for Niloofar24
    Niloofar24

    Marked Solved Status for problem with Array in my php script

    hi:) I want the script to check the db table to see if there is the same username as what the user has submit with the register form, then stop …
  • Member Avatar for Niloofar24
    Niloofar24

    Replied To a Post in problem with Array in my php script

    Well, the solution i found and works well: (Will post it for other members may have this problem too) $username = $_POST['username']; $sql = ("SELECT ID FROM Users WHERE Username …
  • Member Avatar for Niloofar24
    Niloofar24

    Created problem with empty rows of db to echo (with certain ids if For loop)

    Hi. I'm working on my own CMS, i want the script to echo 3 posts in every page, and want the script to echo from the recent post and back …
  • Member Avatar for Niloofar24
    Niloofar24

    Began Watching problem with empty rows of db to echo (with certain ids if For loop)

    Hi. I'm working on my own CMS, i want the script to echo 3 posts in every page, and want the script to echo from the recent post and back …
  • Member Avatar for Niloofar24
    Niloofar24

    Replied To a Post in problem with initializing a counter in a for loop in php script

    Yes it works ok now, thank you @creal.
  • Member Avatar for Niloofar24
    Niloofar24

    Marked Solved Status for problem with initializing a counter in a for loop in php script

    Hello! I have a little problem with a For Loop, this is a For Loop in my script: $last_id = $conn->lastInsertId(); for($a = $last_id ; $a > 0 ; $a--){ …
  • Member Avatar for Niloofar24
    Niloofar24

    Created problem with Array in my php script

    hi:) I want the script to check the db table to see if there is the same username as what the user has submit with the register form, then stop …
  • Member Avatar for Niloofar24
    Niloofar24

    Began Watching problem with Array in my php script

    hi:) I want the script to check the db table to see if there is the same username as what the user has submit with the register form, then stop …
  • Member Avatar for Niloofar24
    Niloofar24

    Replied To a Post in problem with initializing a counter in a for loop in php script

    I understood your explanation. Would you please help me more by give an example? Should i change this: `$last_id = $conn->lastInsertId();` to This? `$last_id = "SELECT MAX(ID) FROM Posts";` Or …
  • Member Avatar for Niloofar24
    Niloofar24

    Replied To a Post in problem with initializing a counter in a for loop in php script

    <?php include('connection.php'); try { $last_id = $conn->lastInsertId(); for($a = $last_id ; $a > 0 ; $a--){ $stmt = $conn->prepare("SELECT ID, Title, Author, Content FROM Posts WHERE ID=(:id)"); $stmt->bindParam(':id', $a, PDO::PARAM_INT); …
  • Member Avatar for Niloofar24
    Niloofar24

    Edited problem with initializing a counter in a for loop in php script

    Hello! I have a little problem with a For Loop, this is a For Loop in my script: $last_id = $conn->lastInsertId(); for($a = $last_id ; $a > 0 ; $a--){ …
  • Member Avatar for Niloofar24
    Niloofar24

    Created problem with initializing a counter in a for loop in php script

    Hello! I have a little problem with a For Loop, this is a For Loop in my script: $last_id = $conn->lastInsertId(); for($a = $last_id ; $a > 0 ; $a--){ …
  • Member Avatar for Niloofar24
    Niloofar24

    Began Watching problem with initializing a counter in a for loop in php script

    Hello! I have a little problem with a For Loop, this is a For Loop in my script: $last_id = $conn->lastInsertId(); for($a = $last_id ; $a > 0 ; $a--){ …
  • Member Avatar for Niloofar24
    Niloofar24

    Marked Solved Status for Want to create delete action for CMS posts

    Hello. There is an html table in admin page, with head columns (POST ID | POST TITLE | POST AUTHOR | ACTION). And in each row, will contain a post …
  • Member Avatar for Niloofar24
    Niloofar24

    Replied To a Post in Want to create delete action for CMS posts

    WOW :) I finally found where the problem comes from! I changed this: `<script src="https://code.jquery.com/jquery-1.11.2.min.js"></script>` With this: `<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>` And then when i clicked delete button, the alert message pointed …
  • Member Avatar for Niloofar24
    Niloofar24

    Replied To a Post in Want to create delete action for CMS posts

    oops! no sorry, i typed succes here in my last post wrongly, was my typing mistake. both messages were "Success", i checked again. oh...what a complicated problem! ok, thank you …
  • Member Avatar for Niloofar24
    Niloofar24

    Replied To a Post in Want to create delete action for CMS posts

    I did. Now when i click delete button, a popup message appears with the text "Succes" and when i click the "ok" button, the alert message disappers and a message …
  • Member Avatar for Niloofar24
    Niloofar24

    Replied To a Post in Want to create delete action for CMS posts

    sorry i didn't understand where to `alert(msg);` exactly.

The End.