Search Results for 'code'
-
Search Results
-
Topic: Permalinks question.
There seemed to have been some earlier discussion on editing the permalinks structure of bbpress (http://bbpress.org/forums/topic/permalinks-slugs-modification-removing-forum), and I’m wondering if things are different in version 1.01.
What I would like to be able to do is have all of the posts look like domain.com/g/post-name. The reason for this is that I have a vanity url, with the idea that the complete url will spell out a sentence.
So far, the best I can do is domain.com/g/topic/post-name. Is there a way to either get rid of the “topic” part of the permalink structure, or otherwise hardcode it to be “g” isntead of “topic?”
Thank you.
Hello,
I was wondering if someone can point me in the right direction. Though I am a webmaster, marketing is my forte and cutting code is quite foreign to me but I get by.
Have the
members_online.phpplugin installed and though I like to see who’s been online today, I don’t want potential advertisers seeing that information or indeed forum members as it can provide a distorted view of site traffic stats.Here is the snippet of code from the
front-page.phpfile which generates the summary on the forum front page.<div id="useronline">
<h3><?php _e('ONLINE TODAY'); ?></h3>
<p><?php do_action('members_online_today',''); ?></p>
</div>Can someone please tell me what to do to make that output visible only to admins?
Thank you in advance
Hi!
First of all, sorry for my bad english… I try to explain my intention as good as i can.
I tried to show this ” | ” before or after a php tag in my own template. For example my post.php contains this code
<div class="poststuff"><?php printf( __('Posted %s ago'), bb_get_post_time() ); ?> <a href="<?php post_anchor_link(); ?>">Permalink</a> <?php post_ip_link(); ?> <?php post_edit_link(); ?> <?php post_delete_link(); ?></div>What i want is that e.g. before <?php post_ip_link(); ?> is displayed the above mentioned character. If i insert it before the php tag it also displayed to “normal users”. Normally the ip link is only displayed for admins. And so i´d like to see the | only as admin.
The output for normal users should look like this: Posted 38 minutes ago | Permalink
The output for admins should look like this: Posted 38 minutes ago | Permalink | 127.0.0.1 | Edit | Delete
If i add this “|” manually before the tags, for normal users it looks like this: Posted 38 minutes ago | Permalink | | |
Any ideas how this can be done?
Hi,
i’ve installed WP (not mu) 2.8.1 and bbPress 1.0.1 with user and cookie integration, users work without problem but the cookie not.
i’ve installed the bbpress integration plugin added the code to my wp-config.php but nothing change… the key are checked, i really don’t know how to resolve this… please help me… thanks!
On both Chrome and Safari (latest stable on both, and up-to trunk on Chrome) these do not work for me:
– Adding/Removing from favorites ajax script within a viewed topic: Clicking on the span wrapped anchor shows animation but state unchanged.
– keymaster removal of posts: input box and animation plays, upon refreshing page (Manual F5) posts re-appear.
These situations do not occur with FireFox or I.E.
I’ve also replaced jQuery 1.2.6 with jQuery 1.3.2 (without errors, and requires a few php changes to the script loader) but this does not work. I had thought maybe there were fixes to 1.3.2 ajax code.
Still not discounting my own server config, and I haven’t fully debugged the javascript yet. I have jQuery debug up and running, just going to be a while.
Stack is: WPMU 2.8.1 >> BBPress 1.0.1
Anyone have similar issues?
InetpubNewwwwrootforums