Search Results for 'code'
-
AuthorSearch Results
-
July 14, 2009 at 7:27 am #76113
In reply to: Integration
eneko.astorkiza
MemberI have the same problem. I have integrated them and i can use wordpress users to login, but if i logon to wordpress i’m not loged into bbpress
Wp –> 2.8
bbpress –> 1.0.1
July 14, 2009 at 6:51 am #71466In reply to: No Emails Being Sent – Anyone solve this yet?
Murali N
MemberThis is what I made…
Does this works…
………………………………………………………………………………………………………………………………………
if ( !function_exists('bb_mail') ) {
function bb_mail($to, $subject, $content, $headers=''){
require_once('PATH_TO/Swift/lib/Swift.php');
require_once('PATH_TO/Swift/lib/Swift/Connection/SMTP.php');
$swift =& new Swift(new Swift_Connection_SMTP("smtp.gmail.com",587));
$smtp->setUsername("telecomdiary.forums");
$smtp->setpassword("xxxxxxx");
$swift =& new Swift($smtp);
$from = new Swift_Address("telecomdiary.forums@gmail.com","Telecom Forums | by Telecom Diary");
$message =& new Swift_Message($subject, $content);
if ($swift->send($message, $to, $from)) {return true;}
else{ echo "Message failed to send to ".$to." from ".$from;}
$swift->disconnect();
}
}
?>…………………………………………………………………………………………………………………………………………………….
Any replacements require??
July 14, 2009 at 5:15 am #76117In reply to: How to insert ads other than google ads
chrishajer
ParticipantIf the plugin is for google ads, just change that portion to your ad code. All the plugins do is embed code wherever you want (depending on the plugin.) If you want to use some other ad code, just change or configure the plugin to do that.
If you are using OpenX, just insert the code into your templates wherever you want to see the ads, as johnhiler suggests.
July 14, 2009 at 3:31 am #75833In reply to: Fatal Error on Plugin Activation
_ck_
ParticipantI sure hope you have really good backups because you are just begging to have your entire database corrupted by forcing my plugins to work with 1.0
see this part:
Beginning upgradeā¦
Tags copied to taxonomy tables: bb_upgrade_1080
Display names populated: bb_upgrade_1090
Index forum_stickies dropped: bb_upgrade_1100
>>> DoneThat’s where bbPress is trashing all your current data by copying over the old data from your 0.9 tables, like the topicmeta and old tag tables, back into bb_meta.
July 13, 2009 at 7:44 pm #76097In reply to: New to BBPRESS — need help with ad plugins please!
birdy404
MemberThanks a lot guys.
@ Chris…i know how to add new forums etc. what i’m trying to figure out is how to add a new directory to the plugins to enable ads. i’ve downloaded a plugin and the read me file says:
“Unpack the zip to your
/my-plugins/
directory”. WHERE IS THAT?“Copy and paste this:
<?php bbad_ad_block(); ?>
as the first line of post.php (before<div class="threadauthor">
) in whichever theme you are using. I.e. yoursite.com/forums/bb-templates/kakumei/post.php.”i’m confused. please help.
thanks.
July 13, 2009 at 7:19 pm #75832In reply to: Fatal Error on Plugin Activation
citizenkeith
ParticipantAs of yesterday, I was using the following plugins:
Allow Images 0.7.1
BBCode Buttons Toolbar 0.0.9
BBcode Lite 1.0.3
bbPress Smilies 0.0.8
Human Test for bbPress 0.9.2
Members Online 0.0.1
Topics Per Page 0.0.5
Unread Posts 0.9.3
Autoloaded:
Hidden Forums 0.0.9
Quote (mod by ck) 0.2mod
Year Long Cookes – Remember Me 0.0.2
I didn’t have a problem for days. This morning, I uploaded and activated the following:
bbPress Signatures 0.20
New User Notification Email 0.0.2
Hidden Forums Tag Filter 0.0.6
Just a few minutes ago, I tried to post to the forum, but I was logged off after hitting “Send Post” and my post didn’t make it. I then went to the admin panel and had the dreaded “Database Upgrade” message again. After upgrading, I checked my plugins. They were all fine, except Members Online,
Topics Per Page and Unread Posts were deactivated.
My guess is that there’s a problem with New User Notification Email.
Thoughts?
July 13, 2009 at 7:13 pm #76100Ipstenu (Mika Epstein)
ModeratorYou’ll need to add this to your bb-config.php file, to share logins:
define('WP_AUTH_COOKIE_VERSION', 1);
Should be fine, I was running that pair up until yesterday
July 13, 2009 at 5:23 pm #76087In reply to: problem after installing
Ashish Kumar (Ashfame)
ParticipantMay be you are out of track and I guess its a new forum setup. How about deleting the database and all the files and do it again. Make sure you do empty the database and recreate the sub-folder
forum
.July 13, 2009 at 4:38 pm #76085In reply to: problem after installing
Ashish Kumar (Ashfame)
ParticipantDid the installation went smooth or any issues were there? I would recommend checking the database if it really contains the tables created and then the
bb-config.php
file to check if its filled with required data.July 13, 2009 at 2:08 pm #68324smi1ey
Memberashfame’s guide is pretty clear on the steps. For me, the key was going to http://YOURSITE/wp-admin/options, grabbing the AUTH keys there, then pasting them in the correlating section of the bbPress config.php file in the install. Once they both had the exact same cookie codes in their config files, it worked like a charm.
July 13, 2009 at 10:07 am #76005In reply to: Problem adapting theme from wordpress
Ashish Kumar (Ashfame)
ParticipantNice
July 13, 2009 at 9:39 am #73758In reply to: functions.php
_ck_
ParticipantYou can emulate the
functions.php
in theme directories quite easily in 0.9Put this into a regular plugin and I suggest naming it
_functions.php
with a leading underscore so you don’t even have to activate it. Install it and then when afunctions.php
is found inside the currently active theme, it will be loaded with the regular plugins. Since it’s so tiny, if you have a collection of mini-plugins you can just put it in there instead.<?php
/*
Plugin Name: functions.php
*/
$template_functions_include = bb_get_active_theme_directory() . 'functions.php';
if ( file_exists( $template_functions_include ) ) { require_once( $template_functions_include ); }
?>In theory you might even be able to put that code into the
header.php
inside of the templates if you are making a theme you want to distribute for 0.9July 13, 2009 at 6:39 am #76063In reply to: Need help with some colour alterations.
Ashish Kumar (Ashfame)
ParticipantIf changes made by you are not reflecting in CSS, then there is something which is over riding it. You need to catch that.
Like the priority order in Inline, Internal and then External.
Read more here – http://www.plus2net.com/html_tutorial/css-types.php
Hope that helps
July 13, 2009 at 6:34 am #76002In reply to: Problem adapting theme from wordpress
Ashish Kumar (Ashfame)
ParticipantDid you read my reply over bbshowase? Thats the way it can be solved. To help you in your aim, install Firebug on Firefox. Run it using
F12
and then you can catch the DIV you want.Hope that helps
July 13, 2009 at 5:32 am #75690In reply to: Update bbPress Wikipedia page!
_ck_
ParticipantJust for “fun” I’ve tallied the bbPress release history so far:
2009-07-08 03:59 1.0.1
2009-07-03 03:54 1.0 Bechet
2009-06-17 13:09 1.0-rc-3
2009-06-10 14:41 1.0-rc-2
2009-06-03 23:02 0.9.0.5
2009-05-12 13:38 1.0-rc-1
2009-01-07 20:00 1.0-alpha-6
2009-01-02 05:06 0.9.0.4
2009-01-02 05:05 1.0-alpha-5
2008-12-14 10:21 1.0-alpha-4
2008-12-10 02:20 0.9.0.3
2008-10-08 20:04 1.0-alpha-2
2008-08-09 13:11 1.0-alpha-1 (backpress)
2008-04-25 11:41 0.9.0.2
2008-04-03 10:54 0.9.0.1
2008-04-02 22:45 0.9 Brubeck
2008-01-02 20:03 0.8.3.1
2007-09-26 19:59 0.8.3
2007-06-19 16:04 0.8.2.1
2007-06-18 19:06 0.8.2 (pretty permalinks, plugin management, sub-forums)
2007-02-21 01:53 0.8.1 (timezone configuration, forum deletion)
2007-02-08 15:47 0.8 Desmond
2007-01-15 14:56 0.75
2007-01-05 20:01 0.74
2006-10-27 18:51 0.73 (installer, rewrite rules, multi-language support, new template)
2006-10-13 20:38 0.72 Bix (first public release)
2004-12-26 03:20 0.70 (live on WordPress.org 2004-12-28)July 13, 2009 at 5:15 am #76057thion
MemberBeing there, read that – still it’s not it. I’m trying to figure our the BB_Query function by reading about WP_Query on Codex
. Anyone have other ideas?
July 13, 2009 at 1:32 am #75754In reply to: Can I display topic ID?
chrishajer
ParticipantI think this will get you the numeric topic id:
<?php topic_id(); ?>
Just put that in your template file wherever you want to show the id. This is with version 0.9 and the id is echoed, so there’s no need to do that. Just put it next to topic_title(); wherever you want to show it.
July 12, 2009 at 7:17 pm #76051In reply to: would this work for links?
Ashish Kumar (Ashfame)
ParticipantPlace the navigation DIV code just after the
<div id="header">
.......................
</div>and before the
<div id="main">
<?php if ( is_bb_profile() ) profile_menu(); ?>July 12, 2009 at 5:52 pm #15299Topic: would this work for links?
in forum Themesazcs
Memberwhere would i put this code? in the header?
<div id=”navigation”>
<ul id=”nav”>
- “><?php _e(‘Home’,’rag’); ?>
- About
- InterviewscompetitionOur projects
<div id=”search”>
<form method=”get” id=”searchform” action=”<?php bb_option(‘uri’); ?>search.php”>
<div>
<input type=”text” size=”38″ class=”search” id=”s” maxlength=”100″ name=”q” value=”<?php _e(‘Search the forums…’,’rag’); ?>” onfocus=”if(this.value==this.defaultValue)this.value=”;” onblur=”if(this.value==”)this.value=this.defaultValue;” />
<input class=”search-submit” name=”submit” type=”submit” id=”search-submit” tabindex=”8″ value=”<?php _e(‘Go’,’rag’); ?>” />
</div>
</form>
</div>
</div>
July 12, 2009 at 5:21 pm #76020In reply to: theme help please
Ashish Kumar (Ashfame)
ParticipantPlease don’t use Capital letters. Its considered as shouting.
Glad that you did it.
July 12, 2009 at 5:20 pm #74438In reply to: Nginx Rewrite Rules for Pretty Permalinks
Ashish Kumar (Ashfame)
ParticipantJuly 12, 2009 at 5:01 pm #75913johnhiler
Member@ashfame – Have you studied WordPress plugins at all? The approach is pretty similar, and there’s a nice codex over there too:
July 12, 2009 at 5:00 pm #75992In reply to: how to add a sticky in post
Ashish Kumar (Ashfame)
ParticipantAre you on v1.0 now? If yes you are out of luck as most of the plugins won’t work with the newer version due to a lot of code which has been changed in bbPress.
P.S. – You can email me at
ashishsainiashfame@gmail.com
July 12, 2009 at 4:47 pm #76018In reply to: theme help please
Ashish Kumar (Ashfame)
Participant<div id="blah">
<div class="box">
Content
</div>
<div class="box">
Content
</div>
<div class="box">
Content
</div>
</div>These are containers to hold data. A bigger container can have a smaller container
Page contents are divided in DVIs and then styling to these contents is applied through CSS.
Got it now?
July 12, 2009 at 4:38 pm #76016In reply to: theme help please
Ashish Kumar (Ashfame)
ParticipantNow that DIV you need to find out yourself.
Install Firebug (Firefox Add-on).
Open your forum and press
F12
.Now find the respective DIV.
You are new to CSS. So go by Hit n Trial method
-
AuthorSearch Results