cogmios
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: 2.9.2 site hackedfrom what i read on the other forums chmod-ing the files to non ‘open’ should help.
Forum: Fixing WordPress
In reply to: Fatal error: Call to undefined function register_setting() insolved: lists.automattic.com/pipermail/wp-hackers/2010-May/031802.html
thanks andrewnacin.com !
Forum: Fixing WordPress
In reply to: Fatal error: Call to undefined function register_setting() inbasically… I dont know what function call to add in the “add_options_page” when I’m using classes and methods. They all seem to fail or get a out of scope of class.
They all seem ot fail.
I think the method “AdminForm” should work it just displays the form, but somehow I can’t get the thing to work either with self::, this->, parent::, <name_of_class>, <name_of_instance> etc…
Forum: Fixing WordPress
In reply to: Fatal error: Call to undefined function register_setting() inUsing $this when not in object context
Forum: Fixing WordPress
In reply to: Fatal error: Call to undefined function register_setting() incall_user_func_array() expects parameter 1 to be a valid callback, cannot access parent:: when no class scope is active in
hmm?
Forum: Fixing WordPress
In reply to: Fatal error: Call to undefined function register_setting() inrequire_once(ABSPATH . ‘/wp-admin/includes/plugin.php’);
require_once(ABSPATH . WPINC . ‘/pluggable.php’);seems to help.
Adding the options page still does not work, i try:
add_options_page($this->mStrSpecificPluginAdminPageTitle, $this->mStrSpecificPluginAdminMenuTitle, $this->mStrSpecificPluginAdminAccessLevel, $this->mStrSpecificPluginAdminFile, 'parent::AdminForm');I tried ‘self::AdminForm’, ‘$this->AdminForm’ etc… but it is actually in the parent of the class calling add_options_page.
Forum: Fixing WordPress
In reply to: Fatal error: Call to undefined function register_setting() inok… what global do i have to include to have my classes know about wp functions like register_setting and add_options_page without me copying the core code in the classes?
Forum: Fixing WordPress
In reply to: Fatal error: Call to undefined function register_setting() innow the next…
Call to undefined function add_options_pageForum: Fixing WordPress
In reply to: Fatal error: Call to undefined function register_setting() inwell… i dont know if its nice but
global $new_whitelist_options; $new_whitelist_options[ $this->PluginSettingsGroup ][] = $this->mStrPluginOptionsName;seems to work π
Forum: Fixing WordPress
In reply to: Abstract Class for Admin Options Pluginswhat I want to determine if i should call the admin class directly from my “specific code” class to “get the admin options” to use them OR if i should create another class that uses both my specific code class and the admin class and only there do the init from the options.
so that the specific code class does not have to rely on there being an admin class present (by calling adminclass->getoptions)
Forum: Fixing WordPress
In reply to: wp_remote_get SU badgeok got it, i should ofcourse take the body element of the array…duh
Forum: Fixing WordPress
In reply to: Insert (few) ads in between the posts on the homepageI do this out of my head:
at the top <?php $counter=0 ?>
in the loop <?php $counter++ ?>
in the check:
<?php if ($counter==3 ||$counter==6 ||$counter==9) {
<<ADD ADVERTISING HERE>>
}
?>Forum: Plugins
In reply to: [Plugin: The WordPress Bar] Somehow does only work when I am logged inok… I think it is wp supercache. Ofcourse when I am logged in… its another state then when i am logged out.
I think …. it does not work with caching enabled?
Forum: Fixing WordPress
In reply to: wp query tags does not return anythingsolved!
Always the same lesson: turn off caching before testing… (see how I found it out: http://edward.de.leau.net/resolved-cant-display-specific-tags-in-wordpress-sidebar-20100411.html
p.s. I’m still looking for a way to have independent paging of multiple Wp-Query results on a page.
It will probably mean passing multiple query vars e.g. /page/31 would mean input for the main query loop and /page/31+but+with+specific+page+13+of+an+applet would then mean within that page page 13 of a specific applet.
I wonder if someone made something like this already?
Forum: Fixing WordPress
In reply to: Insert (few) ads in between the posts on the homepagejust add a $counter and then check for the 3rd, 6th, 9th with adding the same code.