Search Results for 'code'
-
Search Results
-
Topic: where is edit-form.php used?
I’m trying to add the imageshack toolbar to my edit form, and I added it under the “post_content” field in
edit-form.php
but it’s not showing up anywhere.It worked when I just stuck it at the bottom of
post-form.php
, under the part about “Enter a few words (called tags)”I see a second “post_content” field in
post-form.php
… is this redundant code?It seems like this edit form should just be in
edit-form.php
and therefore changes only need to be made there and called when necessary (add presented as such depending on if it’s a reply/new post/edit/etc…Also, when trying to add it to the Reply form (in
topic.php
) I see a call topost_form();
.Logic (in my mind) would have it that this function is in the file called
post-form.php
– which I’ve already added the toolbar too, as well as added it toedit-form.php
.So where is this
post_form();
located?(I”m really not trying to be a pain in the butt!)
BTW, this is the imageshack toolbar:
<iframe src="http://www.imageshack.us/iframe.php?txtcolor=C0C0C0&type=blank&size=30" scrolling="no" frameborder="0" width="300" height="90" allowtransparency="true"> You must have an iframe-compatable browser to view the ImageShack.us upload form.</iframe>
You can see it in action on http://overnights.org when you create a new post, but no where else.
Topic: Forum Group
Hi again, what about grouping forums?
F.ex. if 10 forums already exist (http://jug.org.ua/forum/forums/list.page , i want to switch this forum to bbPress), it is handy to sort them out in some way.
Or just add smth. like “separator” between forum groups
And, do smth. with forum deletion; it can be quite complex and painful process to place existing topics, tags and comments somewhere.
Topic: Cache control while login
Hello, folks!
Greeting from Ukraine
Please consider cache control while log in, so we do not have to press “Ctrl+F5” after successful log in.
Topic: Problems installing
I’m trying to install bbpress and the config file is correct. The error I receive is,
microsoft.com/kb/q176113/ if ( !function_exists(‘wp_redirect’) ) : // [WP4273] function wp_redirect($location, $status = 302) { global $is_IIS; $location = preg_replace(‘|[^a-z0-9-~+_.?#=&;,/:%]|i’, ”, $location); $location = wp_kses_no_null($location); $strip = array(‘%0d’, ‘%0a’); $location = str_replace($strip, ”, $location); if ( $is_IIS ) { header(“Refresh: 0;url=$location”); } else { status_header($status); // This causes problems on IIS header(“Location: $location”); } } endif; if ( !function_exists(‘bb_verify_nonce’) ) : function bb_verify_nonce($nonce, $action = -1) { $user = bb_get_current_user(); $uid = $user->ID; $i = ceil(time() / 43200); //Allow for expanding range, but only do one check if we can if( substr(wp_hash($i . $action . $uid), -12, 10) == $nonce || substr(wp_hash(($i – 1) . $action . $uid), -12, 10) == $nonce ) return true; return false; } endif; if ( !function_exists(‘bb_create_nonce’) ) : function bb_create_nonce($action = -1) { $user = bb_get_current_user(); $uid = $user->ID; $i = ceil(time() / 43200); return substr(wp_hash($i . $action . $uid), -12, 10); } endif; // Not verbatim WP, bb has no options table and constants have different names. if ( !function_exists(‘wp_salt’) ) : function wp_salt() { global $bb; $salt = $bb->secret; if ( empty($salt) ) $salt = BBDB_PASSWORD . BBDB_USER . BBDB_NAME . BBDB_HOST . BBPATH; return $salt; } endif; if ( !function_exists(‘wp_hash’) ) : function wp_hash($data) { $salt = wp_salt(); if ( function_exists(‘hash_hmac’) ) { return hash_hmac(‘md5’, $data, $salt); } else { return md5($data . $salt); } } endif; if ( !function_exists(‘bb_check_admin_referer’) ) : function bb_check_admin_referer( $action = -1 ) { if ( !bb_verify_nonce($_REQUEST, $action) ) { bb_nonce_ays($action); die(); } do_action(‘bb_check_admin_referer’, $action); } endif; if ( !function_exists(‘bb_check_ajax_referer’) ) : function bb_check_ajax_referer() { global $bb; $cookie = explode(‘; ‘, urldecode(empty($_POST) ? $_GET : $_POST)); // AJAX scripts must pass cookie=document.cookie foreach ( $cookie as $tasty ) { if ( false !== strpos($tasty, $bb->usercookie) ) $user = substr(strstr($tasty, ‘=’), 1); if ( false !== strpos($tasty, $bb->passcookie) ) $pass = substr(strstr($tasty, ‘=’), 1); } if ( !bb_check_login( $user, $pass, true ) ) die(‘-1’); do_action(‘bb_check_ajax_referer’); } endif; if ( !function_exists(‘bb_break_password’) ) : function bb_break_password( $user_id ) { global $bbdb; $user_id = (int) $user_id; if ( !$user = bb_get_user( $user_id ) ) return false; $secret = substr(wp_hash( ‘bb_break_password’ ), 0, 13); if ( false === strpos( $user->user_pass, ‘—‘ ) ) return $bbdb->query(“UPDATE $bbdb->users SET user_pass = CONCAT(user_pass, ‘—‘, ‘$secret’) WHERE ID = ‘$user_id'”); else return true; } endif; if ( !function_exists(‘bb_fix_password’) ) : function bb_fix_password( $user_id ) { global $bbdb; $user_id = (int) $user_id; if ( !$user = bb_get_user( $user_id ) ) return false; if ( false === strpos( $user->user_pass, ‘—‘ ) ) return true; else return $bbdb->query(“UPDATE $bbdb->users SET user_pass = SUBSTRING_INDEX(user_pass, ‘—‘, 1) WHERE ID = ‘$user_id'”); } endif; if ( !function_exists(‘bb_has_broken_pass’) ) : function bb_has_broken_pass( $user_id = 0 ) { global $bb_current_user; if ( !$user_id ) $user =& $bb_current_user->data; else $user = bb_get_user( $user_id ); return ( false !== strpos($user->user_pass, ‘—‘ ) ); } endif; ?>
Fatal error: Call to undefined function: bb_current_user() in forums/bb-settings.php on line 146
I got the exact same kind of error yesterday while I was trying to install wordpress 2.0.5 but was able to install 2.0.4 no problem then upgrade to 2.0.5. Any help would be greatly appreciated.
Topic: Img tag plugin
Somebody should take the work done here and make it into a plugin, preferably one that will allow the use of img tags between
code
tags.You will be a hero.