Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 29,026 through 29,050 (of 32,491 total)
  • Author
    Search Results
  • #60628
    _ck_
    Participant

    I’ll be getting back to bbPress, devoting much more time to my bbPress showcase/plugins/themes in October and hopefully that will help in it’s own little way to promote bbPress adoption (and therefore my original scheme of attracting more coders to it).

    The rush job on the WP 2.3 release is suspect. I personally felt it was way too soon and could have benefited from much more. I recently installed 2.3 for a new site and kept asking myself why are there the same problems/limitation I encountered with my first 2.0 setup? I notice 2.3 just happens to coincide with the release of the new “WordPress for Dummies” book and I believe the author is a close friend of Matt’s? Hmm. But oh well, enough ranting about WP and back to nagging about bbPress :-)

    #55748

    In reply to: Anonymous posting

    matt123
    Member

    Thanks for the code! Tried it out and it works. Right now akismet is catching a large percentage of the spam. If that changes I’m going to implement your solution!

    #60698
    mikecicc
    Member

    if u take a look at that bug tracking page

    https://trac.wordpress.org/ticket/3882

    you will see the exact problem i am having..has something to do with the “realpath” function of PHP … the way this guy explained the bug is my problem 100%…i replaced my tiny_mce_gzip.php file with the revised one from that site, still no luck…this is very frustrating..

    i have an error console running on my firefox, and i get this error every time i render the admin write page in WP

    Error: tinyMCE is not defined

    Source File: http://www.figmentrolling.com/wp-includes/js/tinymce/tiny_mce_config.php?ver=20070225

    Line: 36

    which is this line of code….

    tinyMCE.loadPlugin(“NextGEN”, “http://www.figmentrolling.com/wp-content/plugins/nextgen-gallery/js/”);

    which kind of makes since because that specific plugin (nextGen gallery) actually adds its own little button to the visual editor in order to add photos from your gallery to your posts….

    #52551
    outchy
    Member

    I can’t figure out how to hack this :/ Does anyone feel like helping me? :)

    #60694
    chrishajer
    Participant

    Did you take a look in the source of the rendered page for writing a new post, to see if the block of code with images from tinymce is actually there? Since this is an admin panel issue, it will be hard to help since no one can see what you’re seeing.

    I don’t use the visual rich editor in my WP install, so I’m not sure what I would see that could help you. I do have a tinymce directory in my install: ./wp-includes/js/tinymce

    #56558

    In reply to: Strut Your bbPress!

    Hi All:

    I just launched http://forums.apple2games.com/ using BBPress. Apple 2 Games Forum is a site dedicated to retro gaming on the Apple 2 systems.

    I’m super happy with bbPress… very clean code, super easy to “hack” and the price is right! Can’t say that about other bloated systems :)

    #60704
    chrishajer
    Participant

    Thanks Allen && Allen :) (please mark as [resolved])

    #60692
    chrishajer
    Participant

    What line from your wp-config.php? I don’t think I’ve ever added a line there, but my install is getting a little old. What line of code are you referring to?

    Can you check the source of the WP admin write page, to see if the icons SHOULD be there on display, or if anything else looks weird, maybe the path to the javascript?

    #2401
    mikecicc
    Member

    OK so i successfully completed a BBpress / WPress integration…logins are all synced and i can successfulled login to bb or wp…thats all straightened out and everything appears to be working great..

    one bug im noticing now is in WP, in my Visual Editor [write post], all the icons that were once there (Bold, Italic, Font, Font Size, Add Link, Add pic…etc.) that hole graphical bar dissappears…

    i’ve narrowed it down to some kind of caching problem…because i deactivated the integration pluggin in wordpress.. removed the line of code in my wp-config.php…cleared my cache and the visual editor re-appears

    now when i went back in to re-activate the bbpress integration plugin and got the bbpress back up, and go to check out my visual editor in WP, its there ! great!!! but just to be sure it wont go away, i clear my cache, refresh the page, and its gone again….any ideas?!!!?!

    THANKS FOR ANY HELP MY NINJAS

    #60682
    chrishajer
    Participant

    Can you add this line to your config.php right after the 4 MySQL setting lines:

    $bb->debug = 1;

    That should provide some useful information. Not sure if it will help here though.

    Nola1974
    Participant

    I knew it was something simple.. some sleep helped me figure out I was missing a ‘global $forum’

    I got it working with the following:

    In my theme’s functions:

    <?php

    function show_bblogin() {
    global $forum;
    if ( $forum ) {
    login_form();
    if ( is_bb_profile() ) profile_menu();
    } else {
    echo '<a href="/forum/">Visit the Forum!</a></br>';
    }

    }
    ?>

    and in my sidebar:

    <?php show_bblogin(); ?>

    Works like a champ.

    #60572
    fel64
    Member

    Yeah, cheers Chris for finding that one. :)

    Nola1974
    Participant

    I’m using the ThemePress theme, that uses the header/footer from the integrated wordpress install as well co-mingles the various template functions. What I’m trying to do is put code in the wordpress sidebar (not widget) that will show the bbpress profile link/login ONLY when the user is in the forum, otherwise it will show a link to go to the forum.

    In the sidebar, I’ve tried

    <?php if ( $forums ) :
    login_form();
    if ( is_bb_profile() ) profile_menu();
    endif; ?>

    Thinking that, since I can supposedly use each other’s functions, the if if ($forums) would work. I was wrong. :)

    I also tried trying to set $is_forum = 1; in front-page.php and in the sidebar:

    <?php
    function show_bbmenu() {
    if ( $is_forum ) :
    login_form();
    if ( is_bb_profile() ) profile_menu();

    endif; ?>
    }

    show_bbmenu();
    ?>

    Among other things and apparently I’m overlooking something stupid and easy but I’m afraid insomnia is not being kind to me this morning. :)

    (Did I mention I got stuck in an elevator at my office for an hour last night? grrrr)

    This is at adultaggregator.com/forum (warning, not safe for work.)

    #60570
    chrishajer
    Participant

    Line 55 has a typo:

    enforeach; ?>

    should be

    endforeach; ?>

    That takes care of the syntax error on line 60. I have no idea if the plugin works after that correction though.

    #60627
    talgalili
    Member

    Thanks SamBauers – I now see it :)

    Hopefully one of the other developer will through in a word as to their predictions for the system – I am very curious to know.

    #60651

    In reply to: Cookies

    jdawson
    Member

    Thank you Trent,

    This worked perfectly!

    Took me a while though to figure out why setting the cookie with the same password hashed as the one in the database wasn’t working, reason being, bbpress stores your password into the database as md5(yourpassword), fine — obvious! :)

    BUT … it stores your password in your session cookie as, md5(md5(yourpassword)) — So, there you go :)

    #2393
    dvdiveguy
    Member

    During installation when I go to step 2 I get the following access violation message

    PHP has encountered an Access Violation at 0AF7B927

    bbPress

    Second Step

    Now we’re going to create the database tables and fill them with some default data.

    1. Created table dvdgbb_forums

    2. Created table dvdgbb_posts

    3. Created table dvdgbb_topics

    4. Created table dvdgbb_topicmeta

    5. Created table dvdgbb_users

    6. Created table dvdgbb_usermeta

    7. Created table dvdgbb_tags

    8. Created table dvdgbb_tagged

    At this point the tables have actually been created in the database but I can’t go forward with the installation. So if I start again I get the following.

    First Step

    We found Steve who is already a “Key Master” on these forums. You may make others later.

    First Forum

    Forum Name:*

    Description:

    Double-check that username before continuing.

    From here everything goes fine and I get this

    Finished!

    Now you can log in with the username “Steve” and password “*Your WordPress password*”.

    Username

    Steve

    Password

    *Your WordPress password*

    Login address

    Diver Forums

    Were you expecting more steps? Sorry to disappoint. All done! :)

    Unfortunately, I never got a valid password in the process so I can’t login. So I tried the password reset and the send me the password features but to be able to email from my server I need to put 2 ini_set statements before the mail statement so it knows which smtp account to use (this is for server security). the problem is that I will have to search all the files looking for the mail function.

    Can you help me out here.

    Here is my System Info

    PHP Version 5.0.4

    mySQL Versions:

    Server: 4.1.12

    Client: 4.1.7

    Steve

    I’m adding to this because I have since found and edited the registriation_functions.php file so it would send emails. I used the reset password functions to get a new password via email. The first step had me go to a url with a key at the end. Once I got the password I tired to login and got a Key Not Found error. So I took the key part of the url from the first email and forced it into the user meta table in the database. After that, I could login successfully. However, now when I create a topic and post it and then try to view it or any other things like edit users or forums it always returns an unable to locate page error. Well that’s where I’m at now. Its 2am so I going to bed.

    #60650

    In reply to: Cookies

    Trent Adams
    Member

    Not sure which file actually ‘writes’ the cookie, but as you know you can play around quite a bit by changing things in config.php. For example:

    For default installs this effectively makes the cookie names:
    'bb_user_' . md5('bb_')
    'bb_pass_' . md5('bb_')

    You can override the name of the cookie by setting values for the following somewhere in config.php:
    $bb->usercookie = 'my_great_user_cookie_name'
    $bb->passcookie = 'my_great_pass_cookie_name'

    Other than that, another user might have to tell you what function creates the cookie and then check the code. function.php maybe?

    Trent

    #60647

    In reply to: Forum Structure

    kanni
    Member

    Hej guys

    I removed the parent category, that’s why you dont see anything. using the newest version (0.8.2.1 ). you can try it yourself, just rebuild the structure in the images above and you will see it doesn’t work…

    I noticed that the category in the admin menu jumps back when i refresh the page.

    thats what it should look like:

    http://img406.imageshack.us/img406/4117/richtigrv0.jpg

    and that is what it looks like after refreshing:

    http://www.monstrs.de/wp-content/uploads/2007/09/falsch.jpg

    changing ex to em didn’t change anything :/

    thanks for your help so far, all!

    e: here is a link to a completely new installation. same problem.

    http://monstrs.de/test/

    #60645

    In reply to: Forum Structure

    chrishajer
    Participant

    I found one problem in the CSS. On line 339 of style.css change this:

    padding-left: 2.5ex;

    to this:

    padding-left: 2.5em;

    That will take care of indenting the nested lists. Not sure if that is your problem or not, but it’s something.

    Also, for creating your own theme, you might want the copy the files over to a theme folder under “my-templates”. Then you can switch back to stock if there is a problem, and your theme files will not be overwritten by any upgrades.

    #60578
    chrishajer
    Participant

    1. No security problems most of the time. Every WYSIWYG editor I’ve seen allows the use of certain HTML code, and everything else is stripped away. With any piece of code, there can always be vulnerabilities, WYSIWYG or not. Without a WYSIWYG editor, there can still be cross site scripting and SQL injection errors.

    WYSIWG editor vulnerabilities

    http://www.google.com/search?q=WYSIWYG+editor+vulnerabilities

    2. Yes, it is used in large forums.

    #2381
    mrmacmac
    Member

    Hi there… I’m a vBulletin veteran, but am considering a switch over to bbPress to use in tandom with wordpress. Can anyone out there tell me the advantages of using bbPress compared to vBulletin? Is it just as powerful? Does it tie into WordPress seemlessly?

    I also need to know if some features I require are available in bbPress… Here is my shortlist:

    – Ability to act as forums admin (edit everything)

    – Ability to add moderators to specific forums

    – Custom avatars and signatures for users?

    – Spam and ‘bad word’ filters?

    – Private email/messaging system?

    – Can I create categories/subcategories?

    – Can I create little thumbnails for these categories?

    There’s more but that’s a short list… Any help anyone can give would be greatly appreciated :)

    #60499

    In reply to: Unread Topics

    henrybb
    Member

    That solution seems a bit hackish to me and prone to incompatibility if anything changes in the code, such as a new condition gets added to the query.

    #56760

    In reply to: Plugin: Avatar Upload

    LMD
    Participant

    Thumbnails are now an undocumented feature in version 0.8.3.

    It’s undocumented because I think it ought to be road tested first. To use thumbnails you have to enable the feature in the plugin file itself, it is not configurable in the admin options page.

    1. Open up bb-avatar-upload.php and in the configuration settings class, scroll down to the following section:

    // Use a thumbnail image (hidden feature for now). 1 = yes / 0 = no (default)
    $this->use_thumbnail = 0;
    $this->thumb_width = 25;
    $this->thumb_height = 25;

    Set $this->use_thumbnail to 1 to enable and change the dimensions if desired.

    When enabled, whenever a user uploads an avatar a smaller copy is created with the prefix ‘thumb.‘ So the avatar username.jpg will have a thumbnail called thumb.username.jpg (the file type changes with the avatar file type, so PNG avatars produce PNG thumbnails etc).

    2. You can access the thumbnail image with the following function call:

    echo avatarupload_displaythumb($user->ID);

    An image tag is returned with the class name avatar_thumb.

    <img src="thumb.username.jpg" width="25" height="25" alt="Username" class="avatar_thumb">

    I think that covers everything, let me know if you have any problems.

    #60597
    ozirr
    Member

    Thank you very much to answer the question… And now i will found gallery for wordpress, and integrate it :) Thanks…

Viewing 25 results - 29,026 through 29,050 (of 32,491 total)
Skip to toolbar