Search Results for 'code'
-
Search Results
-
Topic: img plugin bug
sorry to be posting a bug so soon, but ive been using the Allow Images plugin and everything seems to be in order, but then suddenly it started rejecting img tags and now i cant seem to get it back… if i do a full on
<img src="whatever">
it just returns this:<img>
Anyone have any ideas why this might be happening?
I noticed someone had done this (lotsofcars blog??), where bbPress loads into a standard static wordpress page. I have the ‘execphp.php’ plugin installed, should this be as simple as copy-pasting the index code into the body of the page text (using html view), and making sure the paths to the rest of bbPress files are correct?? Or is there another, smarter method?
Topic: detail of Style.css ?
In which line of style.css describ those color????
f.ex: sticky color is on the line 161 of style.css
1) the color of your forums name? (the one on the right-top corner)
2) the background color of forums ?
3) the title of table ?(the gray one on the top: Topic — Add New » Posts Last Poster Freshness …)
4) the original topic color ? (there 2 colors i think)
5) those words color? (Hot tags, Latest Discussions, Forums, View..)
6) the white line under under those title: Hot tags, lastest discussions…?
7) all link words ?( add new, no-reply, untag… the original color is green)
all link words ?(when mose hover)
background color of the bottom section of forums ?(there is : xxxxxxx is proudly powered by bbPress)
9) Now, when u add a new topic, theres a table which ask u the subjet, the content, the tag and the ection. i want to change the background color of this table, which line it is?
10)Now, when u look at a topic, theres the original post and reply. the background of each one is on which line?
11)last thing..: i want to also change those word (the word, not the color) : ‘Enter a few words(call tag)separeted by spaces to help someone find your topic’ and ‘ pick a section’
Thank you a lot!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
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.