Forum Replies Created

Viewing 15 replies - 1 through 15 (of 23 total)
  • Thread Starter Snaphaan

    (@snaphaan)

    It works! Thanks a million ??

    Thread Starter Snaphaan

    (@snaphaan)

    Here’s the drobox link..

    Astra Settings

    Thread Starter Snaphaan

    (@snaphaan)

    Hi Herman. Thanks for the response!

    I deleted the Astra theme and reinstalled it. Same issue. I have the estra settings but not sure how to attach file. Should I just copy paste the text/code?

    Thread Starter Snaphaan

    (@snaphaan)

    Figured it out:

    I had to replace the “$” sign in the initialization file (Parallax.js) with “jQuery”.

    Thread Starter Snaphaan

    (@snaphaan)

    The links you provided seems to go nowhere

    “We couldn’t find that plugin. Maybe you were looking for one of these?”

    Thread Starter Snaphaan

    (@snaphaan)

    What would be the best way of creating a Foundationpress child theme?

    I have found this child theme (the trickster) but I am not sure how it was set-up. Should I just go about doing it like always and not bother with all the stuff like bower components, grunt etc?

    I’m only going to use sass.

    Any advice would be appreciated.

    Thread Starter Snaphaan

    (@snaphaan)

    Thank you for the reply ??

    Foundationpress uses bower, grunt and sass which might complicate the child theme setup a bit. I actually only want to use sass. in the child theme.

    Thread Starter Snaphaan

    (@snaphaan)

    I GOT IT!!

    Well, sort of.

    I created a normal submenu item for the plugin’s main admin menu. I then linked to it like so:

    <a href="<?php echo admin_url().'admin.php?page=SL_edit&name='.$slname ?>">Edit</a>

    This subpage displays a new form with the values of the particular entry displayed in the edit boxes.

    It’s so stupid and simple but what got me confused is why I am using submenu items instead of “just another page”.

    I will give a working code example when I have the time for those beginners who might want something similar.

    Thread Starter Snaphaan

    (@snaphaan)

    I have linked to another file called edit.php.

    <td><a href="<?php echo plugin_dir_url(__FILE__).'edit.php?name='.$slname ?>">Edit</a>

    It works. But now I am taken out of the WP dashboard area onto a new page. Is there any way to link up with a page that stays on the dasboard?

    Thread Starter Snaphaan

    (@snaphaan)

    ----              ----
    |some| ---------> |new |
    |link|            |page|
    |    |            |    |
     ----              ----
    
    My current        My new
    single            single
    plugin            plugin
    admin backend     backend
    page...           page...

    This is all I need.

    How do I go about doing this?

    Any advice, direction, just a hint would be enormously appreciated.

    Thread Starter Snaphaan

    (@snaphaan)

    Let’s try to explain this differently:

    I have a form like so:

    <form type="" action ="" >
       // foreach loop for every entry...
          <label for="something">Some label</label>
          // echo some current values retrieved from DB
          <input type="submit" name="edit" "<?php echo esc_attr($_POST['edit']); ?>" />
      ... end loop
    </form>

    All my entries are displayed as a list on the plugin’s admin/setup page:

    // get * values from $wpdb and iterate through them:
    
    ------ ------------- --------- ----------- <edit button>
    ------ ------------- --------- ----------- <edit button>
    ------ ------------- --------- ----------- <edit button>
    ------ -------------- --------- ---------- <edit button>

    Right, so when I click the <edit button> I would like to be transferred to a new page where the current entry values are grabbed and displayed in <input and <textarea> boxes. So the person can change the values he needs to without copy and pasting each value again.

    That is why I need to connect to another page! To grab the values and create a new form field for upload.

    Make sense?

    It would have been great if the displayed text area could be transformed into a input area with the older entry displayed in each box! But I guess that requires some serious jquery or whatnot.

    What would be the best way to go about this? Do I need to call up a function, add a action=”to some page”?

    I’ve been at this for days and I can’t figure out what I’m supposed to do. I can think of a lot of looooong winded ways to go about it but I’m sure there should be more sufficient ways.

    Any help would be appreciated.

    Thread Starter Snaphaan

    (@snaphaan)

    Thanks a million for your response!!!

    I’ve kinda found a work around enqueuing the script but it is… was not ideal.

    Thread Starter Snaphaan

    (@snaphaan)

    That was a big help in pushing me in the right direction. Thank you!!

    After reading up a bit more I assigned the values to variables like so.

    foreach ( $text_widgets as $widget => $value) {
    $title = $value['title'];
    }

    and now I can work the rest of my magic!

    Thread Starter Snaphaan

    (@snaphaan)

    Somehow it’s working now. There’s probably some difference on how I store the data and what I want to retrieve.

    Thread Starter Snaphaan

    (@snaphaan)

    Apologies for the typo:
    if(strcmp($textarea, $block) == 0) should actually be:
    if(strcmp($textarea, $block) == 1) as being true.

Viewing 15 replies - 1 through 15 (of 23 total)