Search Results for 'code'
-
Search Results
-
Using 0.9.0.5, I created a custom theme, doing it as instructed by copying template files into a my-templates/my-theme folder. I then created a new ‘role’ as one thread suggested, by modifying capabilities.php. No problems, and all works well.
For the Guest role I added, I allowed them to post replies, but not create new topics. Then I noticed that ‘Create Topic’ was showing on the topics page, but with no input area beneath it. I went through the theme template files over and over, but couldn’t find out where the [H2]Create Topic[/h2] (and similar for Reply) were. Odd. I finally tracked it down to a function in template-functions.php, around lines 136 – 142, where the titles are output, and then the post page called.
What this means is that A) the titles are not part of the post form (ie input area), and
a theme can’t be properly customised without hacking a core file, which will then be overwritten by an upgrade. I’ve hacked my template-functions.php, and will have to do so again when I upgrade. The good thing is that my theme template files now have the titles where they ought to be, and they can be easy customised.
I didn’t want to mess with the template-functions.php code in case I broke it, so I just remmed out the follow line, then added the titles to post-form.php and topic.php;
// echo ‘<h2 class=”post-form”>’ . $h2 . ‘</h2>’ . “n”;
I don’t know if this has been changed in 1.0, but don’t you think it should be? I realise that the ‘role’ change I made hacked a core file, but at least upgrading to 1.0 (when it’s marked as stable) will give me proper roles.
i’ve upgraded wp from 2.7.1 to 2.8, checked all the key for the cookie and
AUTH_KEY in wp-config is the same of BB_AUTH_KEY in bb-config, the same for SECURE_AUTH_KEY – BB_SECURE_AUTH_KEY,
LOGGED_IN_KEY – BB_LOGGED_IN_KEY, NONCE_KEY – BB_NONCE_KEY.
i’ve installed and activated the plugin bbPress Integration 1.0-rc-2 configured with the url of bbpress (http://www.site.com/forums/) saved the option, copy/past in wp-config.php for the “code” in the box which is:
define(‘COOKIEHASH’, ‘e99db1aecc456188d6dc1ccc37528ff8’);
define(‘COOKIE_DOMAIN’, ‘.www.site.com’);
define(‘SITECOOKIEPATH’, ‘/wp-admin’);
define(‘COOKIEPATH’, ‘/’);
i’m able to login in bbpress side, and i see the cookie wordpress_e99db1aecc456188d6dc1ccc37528ff8 for /forums/bb-admin, /forums/bb-plugins, /forums/my-plugins, /wp-admin, /wp-content/plugins and /.
i’ve other 2 cookies bb-user-settings-1 and bb-user-settings-time-1 for /forums/bb-admin.
when i try to go in wp-admin i’m slogged from wp and 2 new cookies appear, wordpress_test_cookie.
when i try to login in WP side i’m redirected to the login page every time.
if i remove the code generated by the Sam’s plugin i can login but i’m logged out from bbpress…
how resolve this problem? thanks for the help.