Search Results for 'codes'
-
AuthorSearch Results
-
May 12, 2010 at 1:47 pm #88017
In reply to: Warning: Visiting this site may harm your computer!
KasparasParticipantFirst you need to secure YOUR own computer becouse some viruses can harm .php files by FTP, inserting some dangerous codes.
Try to delete your Zenko theme.
Check these files with http://www.virustotal.com/:
http://car-n-car.com/wp-content/themes/Zenko/scripts/js/easytabs.js
http://car-n-car.com/wp-content/plugins/theme-my-login/theme-my-login.css?ver=2.9.2 http://car-n-car.com/wp-content/plugins/sociable/sociable.css?ver=2.9.2
http://car-n-car.com/wp-content/themes/Zenko/includes/js/jquery.validate.min.js?ver=1.5.1
http://car-n-car.com/wp-content/themes/zenko/scripts/js/wp-highlight_src.js
May 12, 2010 at 1:27 pm #34195Topic: Warning: Visiting this site may harm your computer!
in forum InstallationcncMemberRecently I got this mesg who drives me crazy..
Warning: Visiting this site may harm your computer!
I don’t know what happened to my blog and forums.. I think all was secure and safe in my site.. I have talked to my hosting company they clean it.. but the problem is still there..
http://www.car-n-car.com (wordpress)
http://www.car-n-car.com/forums (bbpress)
It’s really disturbing me… how can I fix it?
is there any wordpress or bbpress authenticated plugin who defend my site from suspicious codes, and hackers attacks..
please guide me to remove this bloody mesg…. otherwise my site will useless
help me again…
Regards,
cNc
May 10, 2010 at 3:49 pm #88232In reply to: How do you write this?
gerikgMemberI’m trying to see if I can create a theme via pixopoint that works for everyone. It requires you to put
<?php require( 'xxxx/1.html' ); ?>, <?php require( 'xxxx/2.html' ); ?>, <?php require( 'xxxx/3.html' ); ?>, etc.
in different locations of the bbPress theme.The xxxx changes with every server. Instead of finding and replacing all instances of the codes. I wanted to create another file that you can put in the path and it will fill all the xxxx.
Does that make sense?
April 13, 2010 at 4:06 pm #86846In reply to: bbPress post -> WordPress
rabbitdkMemberNot sure that does exactly what I want, btw I am no good with codes, but that is explained pretty detailed so I could probably try it out (however, I just messed up my bbPress install while messing with permalinks )
I want the full forum post to be published as a blog entry, by the click of a button, to promote the posts as you said
April 4, 2010 at 10:50 pm #33930Topic: extract image from post content
in forum InstallationpsycheangelsMemberfunction get_post_img(){
global $bbdb;
$topic_id_ft = get_topic_id(); //topic id for getting text of first post of the topic
$first_post = (int) $bbdb->get_var("SELECT post_id FROM $bbdb->posts WHERE topic_id = $topic_id_ft ORDER BY post_id ASC LIMIT 1");
$content = substr(strip_tags(strip_shortcodes(get_post_text($first_post))),0);
preg_match('/[img](.*?)[/img]/i', $content, $matches);
$src = $matches[1];
echo $src;
}modified from here http://bbpress.org/forums/topic/show-a-snippet-of-the-post-under-the-topic-title#post-39260
March 31, 2010 at 9:36 am #84567In reply to: bbPress mobile version
chandersbsMemberStill looking forward to the codes……
March 7, 2010 at 6:54 am #84556In reply to: bbPress mobile version
chandersbsMember@BerryReview I’d love to use that plugin if available, I don’t mind editing the codes at all.
I tested your page with this website http://iphonetester.com/ and it’s looking good.
Good work, man!
March 1, 2010 at 3:37 pm #85527In reply to: Help with Basic Command to Add New Profile Fields
deadlyhifiParticipantPresumably if I changed (or removed) the spelling of the codes in the names (not that I will), it would break and any info people had put in previously would be lost.
Only if you changed the name of the value. i.e.
'first_name' => array(0, __('What do they call you?')),
should be fine, as long as the first_name stays intact.
And I’ve increased the number parameter at the end of your add_action(‘extra_profile_info’, ‘add_descriptions’,15); – even I could work out that was important.
That number is the priority that the function should get in relation to everything else that’s loading on the page. Read about that here: https://codex.wordpress.org/Function_Reference/add_action
My code, btw, was at point got from this forum somewhere, so I can’t take credit for it. But it shows that anything in the functions.bb-pluggable.php file is easily replaced or manipulated.
March 1, 2010 at 3:20 pm #85526In reply to: Help with Basic Command to Add New Profile Fields
James BlackerMemberThat’s great! That’s brilliant Tom, thanks very much. I was obviously missing a few commands there!
Thanks both of you, you just made a lot of integral practitioners very happy with their new found ability to register what they’re doing with their practice for mind, body, spirit and shadow on their new forum. Here’s the handiwork in action: http://wholelifewholeworld.com/forums/profile/james-blacker
Presumably if I changed (or removed) the spelling of the codes in the names (not that I will), it would break and any info people had put in previously would be lost.
And I’ve increased the number parameter at the end of your add_action(‘extra_profile_info’, ‘add_descriptions’,15); – even I could work out that was important.
Tom, if you’re on a roll, do you have an insight for the one I posted on why linking poster names to their Profile doesn’t support usernames with spaces? Presumably you’ve linked Posts to people’s Profiles on your forum having done the extra work to modify your own profile pages?: https://bbpress.org/forums/topic/are-usernames-with-spaces-sensible
Thanks again, both, greatly appreciated.
Cheers, James.
PS. Paul, no relation to my colleague, Gary Hawke, presumably? http://integral-uk-symposium.wholelifewholeworld.com/meet-the-people/gary-hawke/
February 23, 2010 at 10:10 pm #33254Topic: Unwanted ads in bbPress Themes
in forum ThemesgerikgMemberI don’t know if anyone cares but I’ll just put it out there:
Every Theme you download from bbpressthemes.net (I can guarantee you the original authors didn’t do it) the headed.php has advertising codes….
<script language="javascript">
document.write('<style> #a1dd122 { margin: -40000px; position: absolute; text-align:right; } </style>');
</script><a href="somewebsite" id="a1dd122">blah</a>Is this considered okay???
February 23, 2010 at 9:33 am #85298In reply to: Really basic stuff
directory-sieveMemberwhy not start paid support? that can be useful for the funds and at the same time noobs will get proper support without having to work on the codes which they would never understand…
February 15, 2010 at 11:29 am #85011In reply to: Completely remove tags?
Marius-MemberThat entire code` should I find those #codes in the stylesheet and plase the // infront of?
Are you saying that I dont need to delete anything from the php files if I use this code. I just let everything be, and place that in the CSS?
–
I tried putting it in Firebug, and nothing happened.
February 15, 2010 at 1:24 am #85008In reply to: Completely remove tags?
Marius-MemberTo be more specific. I use Kakumei theme, so what files include tag codes?
I know post-form.php, front-page.php probably has them. But which others?
Is it safe for me to just delete those lines from these files? Or should I do something else?
February 11, 2010 at 8:41 pm #84892In reply to: bbPress as a WordPress Plugin – Thoughts
paulhawkeMemberMy experience of the WordPress codebase extends to version 2.9.1, I cannot speak to what is going on with version 3.0. Matt said something about bbPress being hosted on a page using a WP short-code at one point. As far as I know, there is no facility for page slugs to handle wildcards (from what I have seen). If you wanted to host bbPress as a plugin using a short-code on a WordPress page, it’s my guess that you would need to have different short-codes for the front page, topics page, views page, single topic, etc. Either that, or you recode the entire bbPress GUI to be Ajax based and run on a single page in-place. Somehow you need to extend the WordPress roles to encompass the bbPress side of the house.
When you go down this road you eventually get to the point of Drupal – amazingly vague and configurable database, slow because it’s got to be all-things-to-all-people and … well … yeah. I would rather not see either WordPress or bbPress end up there.
It it’s favour we can strip out a large portion of the codebase that deals with preferences, users, filters, plugins, themes, sidebar widgets and so on. We gain a lot from the main WordPress codebase but its worrying the “bloat” that comes with that approach.
January 30, 2010 at 7:08 pm #84477In reply to: Keeping spam out of forums
onthebeach96MemberSpammers suck, they are impossible to stop it seems. Recaptcha seems good but people don’t like typing codes just to post their forum posts. It’s sort of a crap shoot.
@grassrootspa I read that Akismet may not work perfectly as a plugin, so I don’t know what to do.
January 25, 2010 at 8:37 pm #84269DailytalkerMemberDid you follow the steps decribed in this topic?
Did you install the plugin?
Did you change the permalinks to “name” before activating the plugin?
Did you change the codes in your htaccess?
Did you write as rewrite base /?
Thats what I have in the htaccess of my wp-frontpage:
RewriteBase /
So it really must work. I am pretty sure.
January 11, 2010 at 2:36 am #83736In reply to: Delimeter Separate Tags
chrishajerParticipantTo space them out, could you do something like this?
#tag-page a {
margin-right: 10px;
}I think I would add an additional div to your template so that this
#tag-page a
doesn’t affect all the links on the page. Just wrap the section you want this to work on in something like<div id="tag-heat-map">
.If you want to do use a bullet instead after each link, you could do this also, but I am not certain what browsers actually support text generated by the
:after
pseudo-element (I think it’s CSS 2.1):#tag-page a:after {
content: "%5C2007%5C00B7%5C2007";
}The 2007 is a digit space, and the 00B7 is a middot. Maybe something like that? Not even related to bbPress really.
EDIT: above, those %5C are supposed to be backslashes but I can’t keep them from being translated or decoded or whatever. Should be character encoding from here:
December 24, 2009 at 11:09 pm #81781In reply to: What's happening with bbPress?
DailytalkerMemberKevin, you can check yourself:
Old forum:
http://www.dailytalk.ch/forums/index.php
(I had pretty urls before but I removed them when I moved this forum into another folder.)
New forum:
http://www.dailytalk.ch/forum/
The old forum had a tinymce-editor with a lot of cool features…drop-down menu for font-size, drop-down menu for different font-style, drop-down menu for different font-color, you could put some letters up (for example “CO2” you could write with the 2 higher than the other letters and also deeper etc.) movies, pictures, links, quotes with name of the original author, message function to reporte abusive messages to the moderators, you could temporary ban members, you could move posts from one topic to another in a very easy and very nice way, sophisticated privat messaging, high security level no spam, you could in an easy way change the login requirements, sophisticated admin-section, admins could see the IP-Number of the visitors, very easy mod (=plugins) upload through integrated ftp-upload, ssi-functions and so on….
The change to bbpress was not an easy decision for me. In my opinion bbpress is still an adventure. Many bbpress-projects are on release candidate level. I used SMF for 3 years and was happy. The problem is that I also have blogs on wordpress and wordpress mu. I had some problems with integration of SMF into wordpress. There are certainly some very old bridges but the different codings didn’t make it easy to me. I integrated SMF with SSI-Functions to wordpress…but I think that because of the similiar coding bbpress is much easier to integrate into wordpress. Thats why I finally decided to give bbpress a chance. I’m somebody who likes to try out new or other things.
@hpguru, what you say is not true at all!!! I never ever had problems with spam when I used SMF!!! SMF offers different register opportunities. They have in the admin-section a so called registration management which offers four different options for registration:
1) Registration Disabled:
Disables the registration process, which means that no new members can register to join your forum.
2) Immediate Registration
New members can login and post immediately after registering on your forum.
3) Member Activation
When this option is enabled any members registering to the forum will have a activation link emailed to them which they must click before they can become full members
4) Member Approval
This option will make it so all new members registering to your forum will need to be approved by the admin before they become members.
Further they have captcha-codes which need to be entered in a registration field. (You can even change the level of those codes. They have different difficulty-levels).
New updates are shown in the admin section…is very simliar to wordpress and you can easy update with integrated ftp-upload.
December 22, 2009 at 2:33 am #82912In reply to: 3 topics I can't find the answers to
stulynnMemberNow I’m in a pickle. I cannot visibly see an admin screen for bbpress and therefore I can’t login to try to make changes. I did add this path in bb-config
$bb->uri = ‘http://your-domain-name.com/forum-path/’;
(after key codes) and it’s done nothing. My folder in file manager has been changed from bbpress to forum. I tried to change it back but because I can’t get into bbpress admin I can’t change the admin link. Right now I’d be happy to go back to bbpress and not forum and believe you me when I say I’ll become backup queen.
Can anyone please help?!!
December 21, 2009 at 6:03 pm #32602Topic: Bug in post count?
in forum InstallationhpguruMemberHi, i have very good bbPress forum. I like bbPress. I am use a bbPress 1.0.2 but i may found 1 new bug.
I go to my bbPress dashboard and see posts count, thats say: 4024 posts.
Then i go to bb-admin/posts.php and i see 1 – 20 / 4,121. This mean i have 4121 posts on my forum.
I try recounting without any help to this problem.
My plugins now:
Akismet
Human Test For bbPress
Topics Per Page
bbSmilies (maybe smilies from WordPress plugin, i change it name, when i modified smilies codes)
November 11, 2009 at 2:15 am #81301In reply to: Post_Text Front Page
DoobusMemberA bit surprised no one has chimed in yet, didn’t think it was that difficult to achieve.
Anyways here is the code that I found in another thread:
<?php
function get_post_teaser($chars = 200){
global $bbdb;
$topic_id_ft = get_topic_id(); //topic id for getting text of first post of the topic
$first_post = (int) $bbdb->get_var("SELECT post_id FROM $bbdb->posts WHERE topic_id = $topic_id_ft ORDER BY post_id ASC LIMIT 1");
$content = substr(strip_tags(strip_shortcodes(get_post_text($first_post))),0, $chars); //gets the first 200 chars of the post
return $content;
}
?>I figured it’s the same basis, however since I’m pretty much brain dead in regards to php I can’t for the life of me make the post_text show fully. This code strips out html code so links don’t show, how can the code be altered to allow html? I figure this code is similar to WordPress’ content_excerpt. If there is another way, I’m open to suggestions.
Sorry for all the newbie questions, I assure you I’ve tried my best to track down my issues in the forum search before asking my questions, unfortunately due to lack of a codex and documentation I’m pretty much at a lost.
October 27, 2009 at 7:54 am #80920In reply to: Display Custom-Userfields in Forumposts
ArioMemberIt is possible I would think. I am going to do some experimenting on it but if you are looking for a good plugin to deconstruct and learn from (what I am doing since I lack the skill to make something from scratch) then try looking at the Gaming Codes plugin.
October 9, 2009 at 12:53 am #80307In reply to: Making `from` a link in Topic View
chandersbsMemberThanks for posting the solution also, I was looking at my codes if I could get a solution, but I couldn’t, when I looked back at this topic, I saw the solution already posted.
October 2, 2009 at 12:34 am #80011gerikgMemberThe way I did it was to duplicate kakamei theme (not the blue) and put it in the my-template.
Then started with the BB header, I copied what was in the WP header. I took everything out after the body tag except for the “main” div. The BB footer I did the same. I just made sure there were enough div closing tags. Then copied over the codes that apply for the header and footer from the WP css. Most WP theme has two column one main and one sidebar. I treated BB like it was wordpress, one side the main section and the other sidebar. I treated the MAIN div as the main section and View/Hottags as the sidebar. I know this is not the best explanation but I hope you get the idea. It just takes a lot of css work.
September 27, 2009 at 2:37 pm #50311In reply to: Combined Register + Post
Adam Harley (Kawauso)MemberOkay, after much lucky guessing with regards to the user object handling, I have an ALPHA VERSION of a plugin to do this. There’s nothing to stop spambots, this is purely a proof of concept, I’ll try adding a captcha or something later if necessary. Email verification sounds like a royal pain though. Save the files exactly where I’ve said and as ever, make sure you leave no whitespace around the PHP tags. Apart from that, please test it but it’s your own risk if you run it on a production server.
my-plugins/register-post/load.php:
<?php
/*
Plugin Name: Register & Post
Description: Allows a user to register and make a post at the same time.
Author: Kawauso
Version: Alpha
*/
// Add the post form
add_action( 'post_post_form', 'register_post_form' );
function register_post_form() {
global $h2, $forum, $topic;
if( bb_is_user_logged_in() )
return;
// Setup the register form
$profile_info_keys = bb_get_profile_info_keys();
unset( $profile_info_keys['first_name'], $profile_info_keys['last_name'], $profile_info_keys['display_name'], $profile_info_keys['occ'], $profile_info_keys['from'], $profile_info_keys['user_url'], $profile_info_keys['interest'] );
$bb_register_error = new WP_Error;
$user_login_error = $bb_register_error->get_error_message( 'user_login' );
?>
<style type="text/css">p#post-form-forum-container{display:none}</style>
<form class="postform post-form" id="postform" method="post" action="<?php bb_uri( 'my-plugins/register-post/create.php', null, BB_URI_CONTEXT_FORM_ACTION )?>">
<h2 class="postform">Register and post?</h2>
<fieldset>
<table width="100%">
<tr class="form-field form-required required<?php if ( $user_login_error ) echo ' form-invalid error'; ?>">
<th scope="row">
<label for="user_login"><?php _e('Username'); ?></label>
<?php if ( $user_login_error ) echo "<em>$user_login_error</em>"; ?>
</th>
<td>
<input name="user_login" type="text" id="user_login" size="30" maxlength="30" value="<?php echo $user_login; ?>" />
</td>
</tr>
<?php
if ( is_array($profile_info_keys) ) :
foreach ( $profile_info_keys as $key => $label ) :
$class = 'form-field';
if ( $label[0] ) {
$class .= ' form-required required';
}
if ( $profile_info_key_error = $bb_register_error->get_error_message( $key ) )
$class .= ' form-invalid error';
?>
<tr class="<?php echo $class?>">
<th scope="row">
<label for="<?php echo $key?>"><?php echo $label[1]?></label>
<?php if ( $profile_info_key_error ) echo "<em>$profile_info_key_error</em>"; ?>
</th>
<td>
<input name="<?php echo $key?>" type="text" id="<?php echo $key?>" size="30" maxlength="140" value="<?php echo $$key?>" />
</td>
</tr>
<?php
endforeach; // profile_info_keys
endif; // profile_info_keys
?>
</table>
<br />
<?php
bb_load_template( 'post-form.php', array('h2' => $h2) );
bb_nonce_field( bb_is_topic() ? 'create-post_' . $topic->topic_id : 'create-topic' );
if ( bb_is_forum() ) {
echo '<input type="hidden" name="forum_id" value="' . $forum->forum_id . '" />' . "n";
} elseif ( bb_is_topic() ) {
echo '<input type="hidden" name="topic_id" value="' . $topic->topic_id . '" />' . "n";
}
echo "n</fieldset>n</form>n";
}my-plugins/register-post/create.php:
<?php
require_once('../../bb-load.php');
$profile_info_keys = bb_get_profile_info_keys();
unset( $profile_info_keys['first_name'], $profile_info_keys['last_name'], $profile_info_keys['display_name'], $profile_info_keys['occ'], $profile_info_keys['from'], $profile_info_keys['user_url'], $profile_info_keys['interest'] );
$user_login = '';
$user_safe = true;
$bb_register_error = new WP_Error;
if ( $_POST && 'post' == strtolower($_SERVER['REQUEST_METHOD']) ) {
$_POST = stripslashes_deep( $_POST );
$_POST['user_login'] = trim( $_POST['user_login'] );
$user_login = sanitize_user( $_POST['user_login'], true );
if ( $user_login !== $_POST['user_login'] ) {
$bad_input = true;
if ( $user_login )
$bb_register_error->add( 'user_login', sprintf( __( "%s is an invalid username. How's this one? <strong>%s</strong>" ), esc_html( $_POST['user_login'] ), $user_login ) );
else
$bb_register_error->add( 'user_login', sprintf( __( '%s is an invalid username.' ), esc_html( $_POST['user_login'] ) ) );
}
foreach ( $profile_info_keys as $key => $label ) {
if ( is_string($$key) )
$$key = esc_attr( $$key );
elseif ( is_null($$key) )
$$key = esc_attr( $_POST[$key] );
if ( !$$key && $label[0] == 1 ) {
$bad_input = true;
$$key = false;
$bb_register_error->add( $key, sprintf( __( '%s is required' ), $label[1] ) );
}
}
if ( !$bad_input ) {
// Invoke non-user post checks here
if ( !$post_content = trim($_POST['post_content']) )
bb_die(__('You need to actually submit some content!'));
if ( isset($_POST['topic']) && $forum_id = (int) $_POST['forum_id'] ) {
$topic = trim( $_POST['topic'] );
if ('' == $topic)
bb_die(__('Please enter a topic title'));
} elseif ( isset($_POST['topic_id'] ) ) {
$topic_id = (int) $_POST['topic_id'];
bb_check_admin_referer( 'create-post_' . $topic_id );
}
if ( !topic_is_open( $topic_id ) )
bb_die(__('This topic has been closed'));
// Invoke registration
$user_id = bb_new_user( $user_login, $_POST['user_email'], null );
if ( is_wp_error( $user_id ) ) { // Error creating user
foreach ( $user_id->get_error_codes() as $code )
$bb_register_error->add( $code, $user_id->get_error_message( $code ) );
if ( $bb_register_error->get_error_message( 'user_login' ) )
$user_safe = false;
} elseif ( $user_id ) { // Registration success
foreach( $profile_info_keys as $key => $label )
if ( strpos($key, 'user_') !== 0 && $$key !== '' )
bb_update_usermeta( $user_id, $key, $$key );
do_action('register_user', $user_id);
// Create the current user object
$wp_auth_object->set_current_user( $user_id );
$bb_current_user = $wp_auth_object->current;
// Do last minute post/topic checks
if ( !empty($topic) && $forum_id = (int) $_POST['forum_id'] ) {
if ( !bb_current_user_can('write_posts') )
bb_die(__('You are not allowed to post. Are you logged in?'));
if ( !bb_current_user_can( 'write_topic', $forum_id ) )
bb_die(__('You are not allowed to write new topics.'));
if ( !bb_current_user_can( 'write_topic', $forum_id ) )
bb_die(__('You are not allowed to write new topics in this forum.'));
bb_check_admin_referer( 'create-topic' );
$topic_id = bb_new_topic( $topic, $forum_id, $tags );
}
if ( !bb_current_user_can( 'write_post', $topic_id ) )
bb_die(__('You are not allowed to post in this topic.'));
// Create the new post
$post_id = bb_new_post( $topic_id, $_POST['post_content'] );
$tags = trim( $_POST['tags'] );
bb_add_topic_tags( $topic_id, $tags );
$link = get_post_link( $post_id );
$topic = get_topic( $topic_id, false );
if ( $topic->topic_posts )
$link = add_query_arg( 'replies', $topic->topic_posts, $link );
do_action( 'bb-post.php', $post_id );
if ( $post_id )
wp_redirect( $link );
else
wp_redirect( bb_get_uri(null, null, BB_URI_CONTEXT_HEADER) );
exit;
}
}
}
// If you've reached this point, there must have been an error
$user_login_error = $bb_register_error->get_error_message( 'user_login' );
if( empty( $user_login_error ) ) // For some reason, error strings are not always available (i.e. for invalid emails)
$user_login_error = __( 'Something went wrong! Check what you entered and try again.' );
bb_die( $user_login_error ); -
AuthorSearch Results