Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 30,176 through 30,200 (of 32,466 total)
  • Author
    Search Results
  • #57624
    fel64
    Member

    That’s a nice site, and I love the fact that you made a ‘fancy’ menu without using Flash. Also I really like the effect of that Start Selling badge :P. The colour for stickies in your forum is a bit dodgy though, it might look nicer if you used the sidebar orange for that (and for the green headers maybe). :)

    I don’t understand the necessity to use WP headers, though. Surely the amount of work needed to standardise the header is far less when you just copy the code? That’s got poor maintainability I admit, but there shouldn’t be anything you need to edit often in templates and if you really needed it you could write and use some wrapper functions that would determine which stuff to load.

    #57611
    fel64
    Member

    Actually, when I just try to add a new identity for testing, it seems to have automatically been set as a moderator.

    That’s a bit worrying! What happens if every user becomes a mod?

    Also remember WP is in version 2.1, while bb is still before official release at version 0.8. :)

    #56971
    Griffology
    Member

    Works great vilimaunula! I really love Dans/Vili avatar thingy :) It’s a nice solution.

    #56970
    Vili
    Participant

    Sorry for the confusion. :)

    It’s a WordPress plugin. And no, you don’t need to install any avatar-upload thing, or indeed any other extra plugin to get this to work.

    The function works both on WordPress and bbPress, but since it is a WordPress plugin (and thus a WordPress function) you will need to make WordPress functions available to bbPress. This is covered in the Integration with WordPress page in the bbPress documentation (see the last section, “Functions”).

    I hope this clears things up a little.

    #57516
    tecfre
    Member

    ohhh i really wish i could do that . I am no where close to programming in php . Is it not possible for me to request such kind of plugin as normally if you see its a feature in most of the sites as they show the lastest joined users and also online users with avatars :D

    #57235
    fel64
    Member

    Trent, do you think you could point this topic out to one of those people with mighty WP/bb mojo? Just a gentle pointing out or something. Nothing pushy. :)

    chrishajer
    Participant

    I have my wordpress install as the root of my website and then there is a folder beneath that for ‘forums’.

    So, my directory structure looks like this:

    /var/www/wp-config.php
    /var/www/forums/config.php

    In the bbpress config.php I have these (relevant) lines:

    $bb->path   = '/forums/';
    $bb->wp_home = 'http://www.website.com';
    $bb->wp_siteurl = 'http://www.website.com';

    For yours, since you have WordPress at wp_01, you would have something like this:

    /var/www/index.html <---- your website home, not WP home
    /var/www/wp_01/wp-config.php
    /var/www/wp_01/forums/config.php

    your config.php:

    $bb->path   = '/wp_01/forums/';
    $bb->wp_home = 'http://www.intar.org/wp_01';
    $bb->wp_siteurl = 'http://www.intar.org/wp_01';

    HTH

    Chris

    #57535

    In reply to: Plugin: lotsolinks

    fredvee
    Member

    Thanks for the brainstorming!

    Exactly, something relevant to the keyword. Cause as things are now, they give ways to ‘cheat’ somehow, and for example put in very common keywords. This would be partially avoidable by blacklisting articles and stuff like that maybe. I think it would be cool to read the page they wanna promote and get the keywords from the meta-tag “keywords” in that page. Just cause it is less comfortable to change those just for a forum, I hope people have more interesting things to do :P Furthermore they would be supposed to be relevant to the content.

    But this introduces other complications… As far as I know this would imply the use of function calls like get_file_contents and stuff, that many hosters deny for not local files. There is a way to get around this by using the curl libraries (?), but will they be installed on the hoster?

    Your idea is cool cause it basically resolves the problem! The only flaw I see is this would improve the pagerank of GOOGLE and not of the poster’s website. Cause I was in a ‘business stuff’ mood… :P Yeah, it would raise the visit counts. And in a trend of helping the spread of informations sounds like a plan. If I’ve seen right, it would definitely be more ‘forum users’ oriented than ‘topic poster’ oriented.

    Let’s not forget what fel64 said… cause if this system is based on the keywords (not tags) I still tend to think it would spoil the content of the topic itself. While if all is shifted to the tags of the topic, the magic happens (links from google, whatever) if the topic is well formatted (good tags etc.)

    But it’s early in the morning again, sorry.

    #52912
    citizenkeith
    Participant

    Ok, this time I deleted all the Media Wiki tables from the database, then reinstalled Media Wiki. This time, I didn’t use a prefix for the table names.

    I uploaded Authpress.php and added the code to Localsettings.php.

    Now when I try to login, I get these errors:

    Warning: Compilation failed: characters with values > 255 are not yet supported in classes at offset 33 in /web/abc/abc/citizenkeith.com/forums/wiki/includes/User.php on line 224

    Fatal error: Call to a member function on a non-object in /web/abc/abc/citizenkeith.com/forums/wiki/includes/SpecialUserlogin.php on line 320

    #57580

    In reply to: Hide a Topic?

    citizenkeith
    Participant

    fel64 – Thanks for the rundown. Unfortunately, I know very little about coding, so I’ll leave it up to somebody else. And that somebody may be dyaddydad! :)

    dyaddydad, I’d love to check out the plugin. Can you send it over to me so I can test it? kamera at gmail dot com. Thanks!

    #57602
    fel64
    Member

    No reason to delete the db! You can always use something like PHPmyAdmin to change entries. The relevant settings should be in wp_options.

    This was directly after you were in WP Admin > Options > General and changed only WordPress Address and Blog Address? You’d need to change back the options named “siteurl” and “home” respectively. Change them back to IP and see if the problem disappears.

    #56965
    Vili
    Participant

    daddy, you will need to use the “Vili’s avatar thingy” code that I posted above, and then just use the same function as with WordPress:

    <?php if(function_exists('cmd_show_avatar')){ cmd_show_avatar(); } ?>

    #57579

    In reply to: Hide a Topic?

    fel64
    Member

    The only other stuff is on this site: https://bbpress.org/documentation/

    Help out with the bbpulp site, though, if you can. :)

    #57577

    In reply to: Hide a Topic?

    fel64
    Member

    List of filters; there’s probably 5 – 10 there involving RSS. One of them will let you check if a topic is hidden and if so remove it. :)

    That would be a cool plugin. Add it when done.

    #57576

    In reply to: Hide a Topic?

    dyaddydad
    Member

    If anyone is interested, I just hacked together a plugin to so this.

    It was crazy as it look aproximately two seconds to do it, using the code base of the Forum Restriction plugin and about one line of change. Allow me to get a backend worked out and if someone likes I’ll post it up.

    Does anyone know how one would go about filtering the RSS feed out as well to prevent users from seeing this?

    #57574

    In reply to: Hide a Topic?

    fel64
    Member

    No, but it won’t be hard to write your own. Add a link to each topic (visible only to mods) to /hide.php?id=%topic_id%. In hide.php, check if the user is actually a moderator, if so add an entry to bb_topicmeta indicating this topic is hidden. Then use the right filter to monitor the topics and remove them from the list if it’s marked as hidden and the user isn’t a moderator. Finding the right filter might be hardest; I suspect it’s forum_topics but don’t know. List of filters here.

    [edit] oh yes, also worth adding another element to the new topic creation form, asking if it should be hidden, so that the topic won’t be visible in between creation and being marked as hidden.

    #57534

    In reply to: Plugin: lotsolinks

    citizenkeith
    Participant

    This would be really interesting if you were able to link those keywords (not tags! :D ) back to a specific page on the user’s website… not just the front page or whatever page they put in there. That way it would link to something relevant about the keyword.

    How about making the link be to a Google search of that website for that particular keyword? For example, if I defined “ludwig” as one of my keywords, the plugin would link to a Google search of my website, citizenkeith.com:

    http://www.google.com/search?q=site%3Acitizenkeith.com+ludwig

    Make sense? I think this would be much more useful and interesting for the users.

    #57584
    fel64
    Member

    It is probably possible; you would have to fopen the image in binary mode, read its width and if that’s too big delete/replace it I think. Quite complicated and very server-intensive.

    The superior solution, in my opinion, is to open your theme’s style.css, look for the #thread li entry and add to it:

    overflow: auto;

    That will then add scrollbars to each post if the width of an image exceeds its specified dimensions (for example, if you explicitly set the width of it (or one of its parent elements) (probably done in your theme already) but not the height, the image would stretch the post to the desired height but add scrollbars to the width).

    Alternatively you could add this to the end of your style.css file:

    #thread li img {
    max-width: 600px;
    }

    Or whatever width you want. This does not work so well; the image will load at full resolution, breaking the layout, and then be resized. It is also only supported by newer browsers; IE 6 will not recognise it.

    #57418
    Vili
    Participant

    I would personally just copy the bbPress CSS over to the WordPress one, so as to keep it all in one place. If you want to integrate the two, why then have more than one CSS file? :)

    #57545

    In reply to: single forum

    chrishajer
    Participant

    Search engines have no problems with 301 redirects.

    http://www.tamingthebeast.net/articles3/spiders-301-redirect.htm

    You could save this as your index.php and not have any trouble:

    <?php
    header("Status: 301 Moved Permanently", false, 301);
    header("Location: http://www.yourdomain.com/forum.php");
    exit();
    ?>

    What are the reasons you don’t like redirects?

    #57571
    ardentfrost
    Member

    Naw, I got rid of all my CRTs. I think I do see it, I just don’t notice it. Understand, I’m not artistic at all. All I did to make the rounded corners was take a round paint brush and put a dot on a blank thing, then split it into 1/4ths to make each corner I would need.

    I can probably blur them up, I’ll just have to play with it :)

    #57398
    fel64
    Member

    h2.postform is in /bb-templates/k2/style.css, line 194. It’s stretched like that because it by default takes up the whole width of the parent element, which is Secondary. It is more effective to set the width for Secondary than for the child elements, because the Secondary width will automatically control all the child elements too. :)

    Firebug is an invaluable HTML, CSS and JS debugger. :)

    #57068

    In reply to: Plugin: bbPortal 1.2

    Null
    Member

    Yeah, if you have WP installed go use it. If you don’t have it and want something izi, use this :D

    #57569
    ardentfrost
    Member

    yeah, I made the rounded corners kinda hard… what resolution do you run at? You’re probably just notice it more than I do… I should go back and fade them out a bit. That might look nice :)

    #57568
    fel64
    Member

    I see the corners, they just looked pixelated to me. I just prefer them smoothed out with anti-aliasing and I thought Gimp does that. :S

    Ahh, excellent. Another oversight :P

Viewing 25 results - 30,176 through 30,200 (of 32,466 total)
Skip to toolbar