Snaphaan
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Astra] Undefined array keyIt works! Thanks a million ??
Forum: Themes and Templates
In reply to: [Astra] Undefined array keyHere’s the drobox link..
Forum: Themes and Templates
In reply to: [Astra] Undefined array keyHi 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?Forum: Themes and Templates
In reply to: Storefront Child theme with custom jqueryFigured it out:
I had to replace the “$” sign in the initialization file (Parallax.js) with “jQuery”.
Forum: Themes and Templates
In reply to: npm install errorsThe links you provided seems to go nowhere
“We couldn’t find that plugin. Maybe you were looking for one of these?”
Forum: Themes and Templates
In reply to: Foundationpress – Parent or child?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.
Forum: Themes and Templates
In reply to: Foundationpress – Parent or child?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.
Forum: Hacks
In reply to: Multiple plugin setup pages without menu itemsI 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.
Forum: Hacks
In reply to: Multiple plugin setup pages without menu itemsI 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?
Forum: Plugins
In reply to: How would I link to a edit page from a plugin admin page?---- ---- |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.
Forum: Plugins
In reply to: How would I link to a edit page from a plugin admin page?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.
Forum: Hacks
In reply to: Running jquery inside plugin admin pageThanks a million for your response!!!
I’ve kinda found a work around enqueuing the script but it is… was not ideal.
Forum: Hacks
In reply to: Unserialize serialized data in wp_optionsThat 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!
Forum: Plugins
In reply to: Widget: cannot compare exact same stringsSomehow it’s working now. There’s probably some difference on how I store the data and what I want to retrieve.
Forum: Plugins
In reply to: Widget: cannot compare exact same stringsApologies for the typo:
if(strcmp($textarea, $block) == 0)
should actually be:
if(strcmp($textarea, $block) == 1)
as being true.