Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 31,226 through 31,250 (of 32,431 total)
  • Author
    Search Results
  • #53966
    Null
    Member

    Nice

    Btw stubled on the BLIX theme from bbPress. It uses for each (I asked about this in some other posts) in it’s menu and could be the answer of my nr 1 problem.

    Some peace of code:

    foreach ($pages as $page) {

    $page_id = $page->ID;

    $page_title = $page->post_title;

    $page_name = $page->post_name;

    if ($page_name == "archives") {

    (is_page($page_id) || is_archive() || is_search() || is_single())?$selected = ' class="selected"':$selected='';

    echo "<li".$selected."><a href="".get_page_link($page_id)."">Archives</a></li>n";

    }

    Now to confert it to this plugin, have to change ‘location’ input to: is_archive() || is_search() etc. Going to play with this :)

    #51961
    ccmve
    Member

    I’m getting this error in WP2.1:


    WordPress database error: [Table ‘wordpress.bb_topics’ doesn’t exist]

    SELECT * FROM bb_topics WHERE topic_status = 0 ORDER BY topic_time DESC LIMIT 10

    —-

    The table wordpress.bb_topics doesn’t exist because my bbpress database is named bbpress. So the proper database place to look would be bbpress.bb_topics

    Any way to fix this issue?

    #1329
    Null
    Member

    Okay here it is, bbMenu 0.1 beta

    What does it do?

    It adds a menu to you bbPress site, which you can re-order yourself using drag and drop at the adminpage.

    I am releasing this beta in hope to get some help concerning these issues:

    1) I need some “better” way to store/ get the page-id comparison from the database. Currently, the script compares the page-id with ‘location’ from the database table. It’s only possible to add just 1 value to this, so if the page id = front-page it will return true and give the <a> an id= current and the link will be underlined.

    The thing is, I need to add more stuff cause now only the front page is id-ed as current as the forum link is active, while topic-page should return as current aswell, cause I want this page to be “under” the forum link as well.

    I’ve tried filling the location in the table like this: front-page || topic-page, but this will not work, cause the script will check front-page || topic-page = page-id instead of picking just one to see if it is the same as page-id.

    Hope I do make any sense, just check the script.

    2) In IE the underline doesn’t show. It works in all other browsers, don’t know why.

    To do:

    1) Use some hooks for the admin pages (need bbPress 0.80 to do this right)

    2) Be able to click the menu title in the menu (in the admin) to change it into what ever you like

    3) Some documentation so people (plugin builders) can add their own pages

    4) Use scriptaculous instead of the scripts I use now (more options)

    Download the beta:

    http://www.sourceskins.com/bbMenu-0.1.zip

    #1328
    linickx
    Participant

    Hi

    Probably me being blind, but I could find a function that returned the post authors website url.

    In my theme I didn’t want the username to be a hyperlink (in post.php), I wanted to add buttons, for profile, website, & PM.

    I wrote one to get my tests working.. but is there an “official” way ?

    function post_author_url() {

    if ( get_user_link( get_post_author_id() ) ) {

    echo get_user_link( get_post_author_id() ) ;

    } else {

    bb_get_option('uri');

    }

    }

    #53822

    In reply to: k2 for bbpress

    linickx
    Participant

    thanks Sabutay, you’re right that was missing, I was trying to avoid editing any of the php templates, but I agree this “part” is critical to the look of the theme.

    I’d like to move the “Profile / admin / log out” boxes into these tabs, as I think it would make them fit nicely, but the functions output this a <p> rather than <ul> by default :o(

    #53821

    In reply to: k2 for bbpress

    sabutay
    Member

    I’ve made a little modification, i add a tab-line in the header.php, just like the same as k2 theme.

    You can see it here:

    http://www.ahumder.org/forum

    For modification, first put these lines in the style.css

    /*- Main Menu in Header */

    ul.menu {

    margin: 0;

    padding: 0;

    position: absolute;

    bottom: 0;

    left: 20px;

    width: 90%;

    }

    ul.menu li {

    display: inline;

    margin: 0;

    }

    ul.menu,

    ul.menu li a {

    padding: 5px 15px 6px;

    }

    ul.menu li a {

    font-size: 1em;

    color: white;

    margin: 0;

    }

    ul.menu li a:hover {

    background: #333;

    color: #eee !important;

    text-decoration: none;

    }

    ul.menu li.current_page_item a,

    ul.menu li.current_page_item a:hover {

    color: #333 !important;

    background: white;

    text-decoration: none;

    }

    .admintab {

    position: absolute;

    right: 0px;

    }

    * html .admintab { padding: 5px 15px 6px } /* IE hack */

    a img,:link img,:visited img { border:none }

    After that put these lines into header.php. But changes the href lines to your site.

    <ul class="menu">

  • Ana Sayfa
  • Forum
  • Resimler
  • Duyuru Listesi
  • İletişim
  • Hope it’s useful for you, and linickx may be you could add this mod to your style.css

#53555

Ok I’ve been looking at rss.php code but I’m unfamiliar with it, and while I was hoping to find a nice clean SQL Query line, there isn’t any and I don’t know where to look. But, in case someone know where to find it, it should be a line like this:

sql0=”SELECT * FROM bb_topics ORDER BY topic_time DESC limit 0,35″;

now let’s say our first forum is restricted and the fifth forum is private . The way to severe them from the feed would be to change the query to:

sql0=”SELECT * FROM bb_topics where forum_id not in (5, 1) ORDER BY topic_time DESC limit 0,35″;

of course, the nice, clean way to do this would be to use the bb_press API to store the restricted or private forums id and then restrict the query internally, but I don’t know how to do this. I’m new to WP and BB altogether.

#53862

In reply to: Bozo problem

Trent Adams
Member

Sorry, wrong location. Search database bb_usermeta table for is_bozo and you will find your bozo information in there. If you are integrated with WordPress, it will be the wp_usermeta table (as in my case). Here is an example of one of the entries in the database for a bozo:

umeta_id user_id meta_key meta_value

696 106 is_bozo b:1;

Trent

#53921

In reply to: post or reply by email

Trent Adams
Member

Your hired! ;)

Trent

#53949

In reply to: redirection error

donharry
Member

now it works, but there is another problem while trying to edit the profile

Warning: require(profile-edit.php) [function.require]: failed to open stream: No such file or directory in /www/htdocs/w0056475/superheldenclub/videos/community/profile.php on line 20

Fatal error: require() [function.require]: Failed opening required ‘profile-edit.php’ (include_path=’.:/usr/share/php:..’) in /www/htdocs/w0056475/superheldenclub/videos/community/profile.php on line 20

#53948

In reply to: redirection error

donharry
Member

thank you guys! I knew there was something wrong with my details, but I didn’t catch it – my fault, should have read everything more specificly. thank you very much! :)

#53000

Download the updated beta version here:

https://plugins-dev.bbpress.org/browser/posts-since-last-visit/trunk/since-last-visit.php?format=raw

Demo here:

http://la-school.com/bbpress/ (Test/test)

It requires Onlinelist 1.4 to work!!

As requested in another thread here, If you want to indicate new posts with an icon next to the topic do it this way:

<?php if ($topic->topic_time > view_since_last_visit_user()) : ?>

DISPLAY IF NEW

<?php else : ?>

DISPLAY IF NOT NEW

<?php endif; ?>

add this in front of you topic title.

At the moment the topic still stay “new” even if you’ve already seen it, till the next visit. Gonna fix this in next version.

Any Feedback?

#1326
plaggi
Member

Hi!

First off all, thank you very much for this great piece of code! :-)

We’re using bbpress as forum for our citizen journalism project “Bürgerzeitung Köln” at http://bz.koeln.de. Because our users prefer german language, we decide to do a translation. And of course we will make it public and available for everyone.

So, as ‘only’ 133 translations are waiting to be done, there should be a public Alpha availabe by the end of this week. It will be a “Sie”-Version, but it shouldn’t be a problems doing a “Du”-Version as well, later.

Greetz, Sven

#53947

In reply to: redirection error

so1o
Participant

the problem is your config.php

it should be

$bb->domain = 'http://videos.superheldenclub.de';

$bb->path = '/community/';

and not

$bb->domain = 'http://videos.superheldenclub.de/community';

$bb->path = '/';

#53150
chrishajer
Participant

Sorry for the double post. The first time I posted, I got a 408 Request Timeout error:

Request Timeout

This request takes too long to process, it is timed out by the server. If it should not be timed out, please contact administrator of this web site to increase ‘Connection Timeout’.

https://bbpress.org/forums/bb-post.php

#53148
chrishajer
Participant

Mike Baptiste, maybe I don’t understand how the whole thing works, but in my database, they are stored without the href information, in the bbpress_posts table, and the <a href= stuff is added upon display. So checking the see that they are not there in the database might not be a valid check. Mine are stored without the href and they display fine and are clickable.

Also, when entering a URL in a post, I don’t enter the href or anything else, I just put the URL in there, with a http://, and it becomes clickable automagically when it’s displayed. Without the http://, it appears that sometimes they are not identified as links by bbPress (especially when there is no www. at the beginning.)

I just registered at your forum, made a post with a link in it, just the URL, and it is clickable. Maybe you’re doing too much work trying to add the <a href=""> </a> stuff? I never tried to know that it doesn’t work. Things that look like URLs are made clickable by bbPress.

#53146
Geezerjim
Participant

Heh. The 2 body tags was something left over from downloading Trent’s template of this forum. I’ve cleaned up the errors now, leaving only one for target=”_blank” and one for having start=”1″ inside the

<ol> tag which comes from bbPress. It is still occurring. I’m trying to see if there is something in common with the places that it’s happening. The odd thing is the links won’t work on a small part of the page, will on others.

#53953

In reply to: Display name plugin

frenadoll
Member

OK!! I have it working, thanks a lot ;)

Solution: (for next users)

forums/my-plugins/display_name.php

#52557
A1ex
Member

Excuse :)

The plugin is available for download here.

Плагин можно загрузить здесь.

#53145
chrishajer
Participant

Yeah, the alt tag missing is not causing the problem. That was a lot of the errors. Ignoring those errors, there are still others. Two <body> tags was interesting…

#53917

In reply to: New Posts

I know what you want. I think doing it the css way is the easyest way at the moment!

My Plugin will be some view type, yes… but I just imagine that your idea could be added to it, too! Just gimme a bit time :)

#1323
donharry
Member

I just completed the installation, looks like it were working but nothing exept for the login, the posting itself and the registration is working. so can’t read the posts – but write them. config should be ok, .htaccess for pretty permalinks doesn’t work both ways and even without pretty permalinks it doesn’t work. help, please! :)

http://videos.superheldenclub.de/community/

#53757
spencerp
Member

Can you still me, or.. can you see me vaguley..?

Damn grammar mistakes.. Meant: “Can you still see me,”

I didn’t have my normal amount of pepsi then sigh..

I think it’s interesting how programming has gone to the dummies.

Hey, who you calling “dummies”?!?! =P I don’t think “this” is considered programming.. but, some might think it is.. =/

spencerp

#53545
davidbessler
Member

Releasing 1.3 tonight. There is no table called forum_restriction_db. I am storing the variable via the bb_update_option() function. Try v1.3 and let me know what happens.

#1201
baptiste
Member

I’m working to setup a new site with WP 2.1 and bbPress 0.75 So far the integration has worked very well and I’ve primarily been tweaking the themes.

Anyway, one weird thing I’ve noticed is if I include a link in a post (std a href=””) and submit it, the href attribute is stripped out completely. All that is left in the post when I edit it again is the link text surrounded by empty a tags (tried to use & lt ; in my post and it got converted to tags – wild)

I plan to dig through the code a bit and see what might be causing this. I’m not using any plugins beyond the standard WP integration on. It’s a fairly stock install.

Viewing 25 results - 31,226 through 31,250 (of 32,431 total)
Skip to toolbar