Search Results for 'code'
-
Search Results
-
Hi,
I’m trying to integrate a bbpress forum into an existing codeigniter application. (which basically just means integrating the login/logout/update/register functions and syncrhonizing the databases).
I managed to do so by loading bbpress (simply including bb-load.php) on top of codeigniter and just calling the usual bb_login(), bb_logout() functions whenever needed.
However, I just realised that loading it that way drastically decrease performances (went from ~200 req/sec to ~10).
I now try to load bbpress just when I need it, but some strange things happend when bb-load.php is included AFTER codeigniter itself.
e.g, if bb-load.php is included anywhere before codeigniter/CodeIgniter.php, it works, if included after, it won’t load.
Basically what happened is that variables instantiated in the included scripts (like bb-load.php, or bb-settings.php for instance), are then ‘lost’ when reused as global variables elsewhere in bbpress files.
(for now the variable that cause me troubles if $bbdb, which is fine while still in settings.php, but is empty in others files/functions …)
I guess it may not only been related to bbpress but that’s the first time I see this … Anyone got this problem before ? Didn’t have much luck with Google …
Thanks in advance,
Topic: comments_popup_link
Topic: No Analytics for Admins
What if I wanted to only display my Google Analytics code for everyone but me…
I know this is probably simple but I don’t want to mess it up and loose tracking. I need something that says
if <> admin then
display google tracking code
end if
The problem is I am an old ASP guy and trying to learn this php stuff.
-James

I work with a server that’s almost completely firewalled in most of the time, makes doing anything that easy impossible
i’m looking for a way to use the same output like in wp for the comments like:
<?php comments_popup_link('no comments', 'one comment', ' % comments'); ?>instead of<?php forum_topics(); ?> <?php _e('post(s) or comment(s)'); ?>.so is there a php pendant in bbpress to count comments or posts the wordpress way?
thank’s in advance