Search Results for 'code'
-
AuthorSearch Results
-
September 7, 2009 at 11:36 am #78727
In reply to: Where to put adsense code?
Adam Harley (Kawauso)
MemberYour image link returns a 403 Forbidden error, a direct link to your website would be much easier to work with anyway. I’d recommend putting it in
header.phpand using either tables or CSS to align it to the left of the main content.September 7, 2009 at 11:33 am #31664Topic: Where to put adsense code?
in forum Themesfl00r97
MemberDear all, this might be a rather rudimentair question so please bear with me

I would like to have adsense ads on the very left of my website across the site.
Please see: http://www.fotoshack.us/fotos/37269adsense.jpg
Thanks!
September 7, 2009 at 10:36 am #78708In reply to: Change position for post inputfield
Adam Harley (Kawauso)
MemberRight.
In
topics.php, delete:<?php if ( topic_is_open( $bb_post->topic_id ) ) : ?>
<?php post_form(); ?>
<?php else : ?>
<h2><?php _e('Topic Closed') ?></h2>
<p><?php _e('This topic has been closed to new replies.') ?></p>
<?php endif; ?>Then after the first
<?php topic_pages( array( 'before' => '<div class="nav">', 'after' => '</div>' ) ); ?>, insert:<?php if ( $page === 1 ) : ?>
<?php if ( topic_is_open( $bb_post->topic_id ) ) : ?>
<?php post_form( array( 'last_page_only' => false ) ); ?>
<?php else : ?>
<h2><?php _e('Topic Closed') ?></h2>
<p><?php _e('This topic has been closed to new replies.') ?></p>
<?php endif; ?>
<?php endif; ?>It’ll be different if you’re using something that’s radically different to Kakumei, but the general idea is to take the bit that looks something like the first part and put
<?php if ( $page === 1 ) : ?>and<?php endif; ?>around it, changepost_form()topost_form( array( 'last_page_only' => false ) )then move it to the top of the page.September 7, 2009 at 10:16 am #77515In reply to: All RSS Feeds Broken?
Adam Harley (Kawauso)
Memberhttps://www.yousendit.com/download/YkxKZGlsaTEzS3BjR0E9PQ
Try that. The RSS validation is complaining that the xml header is on the 2nd line, rather than the first, so there’s a line return being inserted somewhere. If FTPing those over the old ones doesn’t work, it’s the dev’s problem
September 7, 2009 at 10:09 am #77514In reply to: All RSS Feeds Broken?
kirpiit
MemberI just double-checked all the 3 files you previously indicated. I downloaded them from my server and inspected them: there are no trailing spaces nor anything. They all start fine with a standard
<?phpopening.For a while I hoped it was that trivial, but there must be something else
September 7, 2009 at 9:16 am #78035In reply to: Important update for bbpress seo tools
Ivaylo Draganov
Memberthis version does not work correctrly on bbPress 0.9 branch. I get these PHP Warnings:
Warning: Missing argument 1 for bb_get_topic_tags(), called in /.../forum/my-plugins/bb-seo-tools.php on line 102 and defined in /.../forum/bb-includes/functions.php on line 1058
Warning: Invalid argument supplied for foreach() in /.../forum/my-plugins/bb-seo-tools.php on line 105September 7, 2009 at 8:49 am #31659Topic: Change position for post inputfield
in forum TroubleshootingBaraBajen
MemberHi,
hoping for help, since I´m not in no way good enough to find this answer.
The inputfiled for posts/replys in atopic seems to be attached to the page where the first post in a topic was made. Since I´ve using the the threads so that the latest post gets on top in the first page (and therefore the first post ends upp last in the last page). What happens is that the posting (input)-field ends upp on the last page.
Is it possible to change in the code så that the posting field ends upp connected to the last posting/reply. And then (hopefully on page one).
Anybody?
September 7, 2009 at 6:33 am #78684In reply to: call register form via php tag
Adam Harley (Kawauso)
MemberThere isn’t exactly as counterpart to
login_form()for registering because it’s not expected to be embedded I guess. If you look underregister.phpthough, you can see the internal function template call isbb_load_template( 'register.php', $_globals );where$_globalsare set earlier in the page before some code that handles the form output (ignore them at your own peril).The
register.phptemplate is also set up to be a full page though with calls to the header and footer functions, as well as a safety check for logged in users, so you’d probably need to cut it down and save it as a separate template to call.I’m pretty sure there’s been some discussion of embedding a register page in a template before in the forums, so you might want to look for that too.
September 7, 2009 at 12:12 am #31650Topic: call register form via php tag
in forum Themesjohnnydoe
Memberhello bb’ans,
if
<?php login_form(); ?>calls the login form template, what calls the register form?i’ve tried as a php hardcore ultra mega pro the
<?php register_form(); ?>idea, but that’s somehow not the way how it should be
September 6, 2009 at 4:38 pm #78682In reply to: Where to restore BBpress Tag (bbpress 1.0.2)
Ashish Kumar (Ashfame)
ParticipantI have no clue on this. It might be a pain to do manually but if I were you I would peek into the bbPress’s code responsible for upgrading the database. Good luck!
September 6, 2009 at 4:37 pm #77513In reply to: All RSS Feeds Broken?
Adam Harley (Kawauso)
Member@kirpi.it Nevermind, ignore what I said earlier. You have a space or a line return before the opening
<?phpinrss2.php. Seems to be a consistent problem copying from the forums.
September 6, 2009 at 2:41 pm #78681In reply to: Where to restore BBpress Tag (bbpress 1.0.2)
wsokc
MemberWell, its good Idea btw.. but I already walk 90% here, go back and do the upgrading will take time
is there any manual way to do this ?
September 6, 2009 at 2:29 pm #78692In reply to: Avatar sharing between buddypress and bbpress
gerikg
Memberthis is the code I use… (in post.php) hopefully that can lead you in the right track to finding the right code for your plugin.
<?php echo bp_core_get_avatar( get_post_author_id() ); ?>September 6, 2009 at 2:20 pm #78557In reply to: Free hosting for bbPress
Olaf Lederer
ParticipantI think you need more since there are sites providing buddypress+wordpress+bbpress

success with your free hosting site
September 6, 2009 at 11:36 am #76967In reply to: Kin Kakumei (Gold Kakumei)
Marius-
Memberkirpi.it, here is the code, like Kawauso pointed out:
#latest th a, #forumlist th a, #favorites th a {style.css (line 714)
-moz-border-radius-bottomleft:6px;
-moz-border-radius-bottomright:6px;
-moz-border-radius-topleft:6px;
-moz-border-radius-topright:6px;
background-color:#9D0000;
border:1px solid #FFFFFF;
color:#FFFFFF;
padding:2px;You can see this theme in action at http://www.michaeljackson.no/forum
September 6, 2009 at 10:26 am #76966In reply to: Kin Kakumei (Gold Kakumei)
Adam Harley (Kawauso)
MemberIt’s using class
new-topic, so you’d need.newtopic {}… it can’t be found because there’s no actual CSS affecting it specifically. I’d recommend using Mozilla Firefox’s DOM inspector or looking at the HTML source to find class/ID tags for things.Oh, and it’s affected by (in Kakumei at least):
#latest th a, #forumlist th a, #favorites th aanda:visitedSeptember 6, 2009 at 8:22 am #77510In reply to: All RSS Feeds Broken?
Adam Harley (Kawauso)
MemberThat’s weird. Seems to be throwing
<![CDATAin still… could you check if there’s arss2.phpin your template’s directory and if so either change that or delete it? That’s the only thing I can think of that might be causing that. Forgot themes usually copy everything.September 6, 2009 at 7:15 am #78646In reply to: If BBpress then, else
Ashish Kumar (Ashfame)
ParticipantIf they are deeply integrated then you will have a hard time figuring this out as if you ask
Is this is WP?WP will say yes and if you askIs this is bbP?then bbP will say yes and if they are deeply integrated then both questions will return a yes.September 6, 2009 at 1:47 am #76108In reply to: Categories at the top?
Adam Harley (Kawauso)
MemberHmm? I accidentally left the comment saying
// List forumsin there, but in actual fact that will only return categories, not forums in them because it does thebb_get_forum_is_category()check. If you’re referring to the normal forum code infrontpage.php, taking that out will take out the normal list of forums you see there, so I’m not sure if that’s what you want to do.September 6, 2009 at 1:34 am #78593In reply to: Need to fix a couple of things in theme
Adam Harley (Kawauso)
MemberSorry about that!
September 6, 2009 at 12:27 am #76107In reply to: Categories at the top?
rgregory1
MemberThanks mate, and then I remove the similar code at the bottom? Because if I understand correctly, I will then have two listings of forums.
September 5, 2009 at 10:27 pm #78591In reply to: Need to fix a couple of things in theme
Adam Harley (Kawauso)
Member@ashfame have a look at the bottom of
front-page.php, it should read<div class="bbcrumb"><a href="<?php bb_uri(); ?>"><?php bb_option('name'); ?></a> » <?php _e('Add New Topic'); ?></div>. Your code seems to have somehow dropped everything between the last two PHP snippets and the trailing</div>too. That’s not being returned by the breadcrumb function though at least, so it should be easier to fix
if it doesn’t work with your template’s front-page.php deleted/renamed though, there might be something wrong with your core files.
September 5, 2009 at 9:46 pm #78590In reply to: Need to fix a couple of things in theme
Adam Harley (Kawauso)
Member@gerikg he’s trying to fix an additional
<a>with no closing tag in the new post form, not generate a link to it
September 5, 2009 at 9:02 pm #31639Topic: If BBpress then, else
in forum Installationgerikg
MemberWPMU+BuddyPress+BBpress
How do you write the php code to say
if in a bbpress side
do this
if wordpress (or else) do that.
?
September 5, 2009 at 7:08 pm #78588In reply to: Need to fix a couple of things in theme
chandersbs
MemberMaybe you can hardcode the URL like this http://domain/forum.php?id=9#postform
-
AuthorSearch Results