Search Results for 'code'
-
AuthorSearch Results
-
September 7, 2009 at 6:14 pm #78734
In reply to: Where to put adsense code?
Olaf Lederer
Participantjust example code…
header.php (the two divs between body and wrapper)
<body id="<?php bb_location(); ?>">
<div style="position:relative;width:1200px;border:1px solid red;margin:0 auto;">
<div style="width:120px;left:0;top:200px;position:absolute;height:600px;background-color:yellow;"></div>
<div id="wrapper">footer.php (the div before the action)
</div>
</div>
<?php do_action('bb_foot'); ?>
</body>
</html>I checked this only i firefox (Ubuntu) and of course the header background image is only between the new container (put the background into the body style.
@floor97,
before you’re able to tweak themes you need to know some CSS
September 7, 2009 at 4:05 pm #78716In reply to: How to load the header of my theme?
pixelgirl
MemberI guessed I’ll have to do that, but I have no idea which files I need to edit. The bbpress header file looks so much different from the wp file. It works somehow on the buddypress page. I want the same for me
Another option might be, that I just work on the existing bbpress theme and try to adjust the design as good as possible. I’d be happy to be able to load my buddypress navigation at least, the rest can be done with using the local css files. Other good ideas are welcome.
pxlgirl.
September 7, 2009 at 2:14 pm #78249In reply to: New Theme – Need Theme Name
_asg_
MemberThe slider won’t open for me.
Firebug states:
$("#open") is undefined
anonymous() slide.js (line 4)
anonymous() jquery-1....2.min.js (line 19)
anonymous([function(), function()], function(), Object name=F) jquery-1....2.min.js (line 12)
anonymous() jquery-1....2.min.js (line 19)
anonymous() jquery-1....2.min.js (line 19)
[Break on this error] $("#open").click(function(){n slide.js (line 4)The forum url is http://rainrider.eu/bbpress if you would like to take a look
September 7, 2009 at 12:56 pm #78686In reply to: call register form via php tag
johnnydoe
Memberah alright i see,
thank’s for the clear explanation kawauso, sounds plausible, thank’s olaf.
see you around
September 7, 2009 at 12:47 pm #78733In reply to: Where to put adsense code?
Adam Harley (Kawauso)
MemberOkay I can’t work out how to get it to position relative to the theme, since it just… disappears if I try aligning it properly at
left: -1000px. Putting<div style="position: absolute; left: 100px;">and</div>around it will put it on the left of the screen outside the layout though, just fixed against the side of the screen rather than the layout.@Olaf: this theme does some awful things if you try aligning anything to its left using a div
September 7, 2009 at 12:41 pm #78732In reply to: Where to put adsense code?
fl00r97
MemberThanks for your reply Olaf, but I think this is beyond my understanding.
Can you please elaborate?
Thanks!
Ben
September 7, 2009 at 12:39 pm #78036In reply to: Important update for bbpress seo tools
Olaf Lederer
Participant@dragunoff, upgrade to the latest bbpress version
September 7, 2009 at 12:36 pm #78731In reply to: Where to put adsense code?
Olaf Lederer
ParticipantHi, to place an ad box like this you need to tweak the existing theme.
Try to open an extra div container inside the header tpl file and close the container inside the footer tpl.
inside this container you can place the forum plus a banner (of course you need to change some css code)
EDIT: btw adsense doesn’t have a great CTR for forums
September 7, 2009 at 11:52 am #78730In reply to: Where to put adsense code?
fl00r97
MemberSeptember 7, 2009 at 11:49 am #76218In reply to: Closed registrations
Adam Harley (Kawauso)
Member@pixelgirl Give me your forums’ link and I’ll see if I can register ;P you might still get spambots if they work out how to spam bbPress forums. Brutally brutal way would be to change
$_POST && 'post' == strtolower($_SERVER['REQUEST_METHOD'])inregister.phpin bbPress’ base directory tofalse, which would turn off processing for any data passed to the register page.September 7, 2009 at 11:43 am #76217In reply to: Closed registrations
pixelgirl
MemberI closed the registrations the brutal way.
I removed all <form></form> in register.php and added a message instead. Quick and dirty, but effective since I’m using bbpress with wpmu+buddypress, so users don’t need to register in the forums. pxlgirl.
September 7, 2009 at 11:42 am #78729In reply to: Where to put adsense code?
Adam Harley (Kawauso)
MemberI don’t usually work with adsense so I don’t know what the div it’s in is called. If you can post a link to your site with AdSense running I can probably work out some CSS though.
September 7, 2009 at 11:39 am #78728In reply to: Where to put adsense code?
fl00r97
MemberIncredible fast response, thanks!
I corrected the link, please try again.
Ben
September 7, 2009 at 11:36 am #78727In 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 ?
-
AuthorSearch Results