Search Results for 'test'
-
AuthorSearch Results
-
November 29, 2007 at 2:55 pm #61602
In reply to: Permalink broken when in admin mode!
viveksivaram
Member@ chrishajer
thanks for the reply.
My site url is : http://aavaas.com
My forum url is : http://aavaas.com/forums
I have created a test user : bbpresstest
Password is : test
Currently there is only 1 post in my forum – “Your first topic”
When I am logged in the url for the same is : http://aavaas.com/forums/topic/1?replies=1
When I am logged out the url is : http://aavaas.com/forums/topic/1
I believe the later is a pretty permalink whereas the first is not.
Help here is appreciated. My .htaccess is located in the root folder with the following lines:
#
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /forums/
RewriteRule ^forum/([^/]+)/page/([0-9]+)/?$ /forums/forum.php?id=$1&page=$2 [L,QSA]
RewriteRule ^forum/([^/]+)/?$ /forums/forum.php?id=$1 [L,QSA]
RewriteRule ^topic/([^/]+)/page/([0-9]+)/?$ /forums/topic.php?id=$1&page=$2 [L,QSA]
RewriteRule ^topic/([^/]+)/?$ /forums/topic.php?id=$1 [L,QSA]
RewriteRule ^tags/([^/]+)/page/([0-9]+)/?$ /forums/tags.php?tag=$1&page=$2 [L,QSA]
RewriteRule ^tags/([^/]+)/?$ /forums/tags.php?tag=$1 [L,QSA]
RewriteRule ^tags/?$ /forums/tags.php [L,QSA]
RewriteRule ^profile/([^/]+)/page/([0-9]+)/?$ /forums/profile.php?id=$1&page=$2 [L,QSA]
RewriteRule ^profile/([^/]+)/([^/]+)/?$ /forums/profile.php?id=$1&tab=$2 [L,QSA]
RewriteRule ^profile/([^/]+)/([^/]+)/page/([0-9]+)/?$ /forums/profile.php?id=$1&tab=$2&page=$3 [L,QSA]
RewriteRule ^profile/([^/]+)/?$ /forums/profile.php?id=$1 [L,QSA]
RewriteRule ^view/([^/]+)/page/([0-9]+)/?$ /forums/view.php?view=$1&page=$2 [L,QSA]
RewriteRule ^view/([^/]+)/?$ /forums/view.php?view=$1 [L,QSA]
RewriteRule ^rss/?$ /forums/rss.php [L,QSA]
RewriteRule ^rss/forum/([^/]+)/?$ /forums/rss.php?forum=$1 [L,QSA]
RewriteRule ^rss/topic/([^/]+)/?$ /forums/rss.php?topic=$1 [L,QSA]
RewriteRule ^rss/tags/([^/]+)/?$ /forums/rss.php?tag=$1 [L,QSA]
RewriteRule ^rss/profile/([^/]+)/?$ /forums/rss.php?profile=$1 [L,QSA]
</IfModule>
vafaaaan
Memberit was a test plugin .. i tried to understand the db relationships, and i did .. now i know now how to update a post tag .. so there is nothing usable?
ok
vafaaaan
Memberthat was just a test if i understand the relationships between the tables. I can probably write a own plugin that updataes the tags bb_tags etc. but thats not a good solution
November 26, 2007 at 9:08 am #61717In reply to: Plugin: Enhanced Registration
Null
MemberNice, I like it.
Suggestion: auto deletion after xx days/hours. As I understand, this has te be done manualy by the admin? (with 200 regis spams a day this is gonna be a day job).
Is this the same mail where the password is in when you registrate? Or do we get 2 seperate mails. Would like to see it in 1 mail then.
Haven’t tested this (I am at work), so if my suggestions are already in, I appoligize
Null
November 26, 2007 at 9:06 am #61566In reply to: How Do I Do This?
chgogrrl99
Member<?php bb_get_header(); ?>
<?php if ( $forums ) : ?>
<div id="hottags">
<h2><?php _e('Hot Tags'); ?></h2>
<p class="frontpageheatmap"><?php bb_tag_heat_map(); ?></p>
</div>
<div id="discussions">
<?php if ( 0 > 1 ) : ?>
<h2><?php _e('Latest Discussions'); ?></h2>
<table id="latest">
<tr>
<th><?php _e('Topic'); ?> — <?php new_topic(); ?></th>
<th><?php _e('Posts'); ?></th>
<th><?php _e('Last Poster'); ?></th>
<th><?php _e('Freshness'); ?></th>
</tr>
<?php if ( $super_stickies ) : foreach ( $super_stickies as $topic ) : ?>
<tr<?php topic_class(); ?>>
<td><?php _e('Sticky:'); ?> <big><a href="<?php topic_link(); ?>"><?php topic_title(); ?></a></big></td>
<td class="num"><?php topic_posts(); ?></td>
<td class="num"><?php topic_last_poster(); ?></td>
<td class="num"><small><?php topic_time(); ?></small></td>
</tr>
<?php endforeach; endif; // $super_stickies ?>
<?php if ( $topics ) : foreach ( $topics as $topic ) : ?>
<tr<?php topic_class(); ?>>
<td><a href="<?php topic_link(); ?>"><?php topic_title(); ?></a></td>
<td class="num"><?php topic_posts(); ?></td>
<td class="num"><?php topic_last_poster(); ?></td>
<td class="num"><small><?php topic_time(); ?></small></td>
</tr>
<?php endforeach; endif; // $topics ?>
</table>
<?php endif; // $topics or $super_stickies ?>
<?php
if ( bb_forums() ) :
global $bb_forums_loop;
$_loop =& $bb_forums_loop;
bb_forum();
$skipForum = false;
while ($_loop) :
if ($_loop->walker->depth == 1) {
if (in_array(get_forum_id(), array(2, 3, 4, 5, 6, 7, 18, 19, 20, 101)))
$skipForum = true;
if ($skipForum) {
?>
<h2<?php bb_forum_class?>><a href="<?php forum_link(); ?>">Click Here To Go To the <?php forum_name(); ?> Forums</a></h2>
<?php
}
else {
?>
<h2<?php bb_forum_class?>><?php forum_name(); ?></h2>
<table id="forumlist">
<tr>
<th><?php _e('Main Theme'); ?></th>
<th><?php _e('Topics'); ?></th>
<th><?php _e('Posts'); ?></th>
</tr>
<?php
}
}
elseif (!$skipForum) {
?>
<tr<?php bb_forum_class(); ?>>
<td><?php bb_forum_pad( '<div class="nest">' ); ?><a href="<?php forum_link(); ?>"><?php forum_name(); ?></a><small><?php forum_description(); ?></small><?php bb_forum_pad( '</div>' ); ?></td>
<td class="num"><?php forum_topics(); ?></td>
<td class="num"><?php forum_posts(); ?></td>
</tr>
<?php
}
bb_forum();
if ($_loop === null || $_loop->walker->depth == 1) {
if (!$skipForum)
echo '</table>';
$skipForum = false;
}
endwhile; ?>
<?php endif; // bb_forums() ?>
<?php if ( bb_is_user_logged_in() ) : ?>
<div id="viewdiv">
<h2><?php _e('Views'); ?></h2>
<ul id="views">
<?php foreach ( bb_get_views() as $view => $title ) : ?>
<li class="view"><a href="<?php view_link(); ?>"><?php view_name(); ?></a></li>
<?php endforeach; ?>
</ul>
</div>
<?php endif; // bb_is_user_logged_in() ?>
</div>
<?php else : // $forums ?>
<h3 class="bbcrumb"><a href="<?php bb_option('uri'); ?>"><?php bb_option('name'); ?></a></h3>
<?php post_form(); endif; // $forums ?>
<?php bb_get_footer(); ?>November 26, 2007 at 8:21 am #61716In reply to: Plugin: Enhanced Registration
vafaaaan
MemberGreat! .. im gonna try it right now
brb..Update 1: No mail yet. Dont know if i have set that up correct. Can see this in phpmyadmin, in wp_users..
ID : 2
user_login : xxxxxxx
user_pass : 63db6f94498b383aa4eebb38b9d41505
user_nicename :
user_email : xxxxxx@gmail.com
user_url :
user_registered : 2007-11-26 08:21:45
user_activation_key :
user_status : 0
display_name :
user_activation_key shouldnt be empty ?
Update 2: in wp_usermeta..
umeta_id : 12
user_id : 2
meta_key : act_code
meta_value : 12345678 (eight numbers & letters value)
dammit! this is a winxp test server with wamp.. dont think mail() works here
November 26, 2007 at 6:49 am #2633Topic: Plugin: Enhanced Registration
in forum Requests & Feedbacklivibetter
MemberShould be used for TESTING ONLY
Download this file
Install:
Put
activate.phpto your template folder.Put
bb-activate.phpto your bbPress root folder.Put
EnhancedRegistrationdirectory tomy-pluginsOnly tested on kakumei template without other plugins. Currently, it only support user activation. User will receive an additional mail with a code for activation. They can click the link within that mail, or manually navigate to the activation page.
And Key Master can delete user haven’t activated over ## hours.
Possible features in later releases: Registration Approval, Registration Email Verification.
Please tell me what do you think!
November 26, 2007 at 6:02 am #61552In reply to: How Do I Do This?
chrishajer
ParticipantColor, bold and underline looks good.
I see the latest discussions are gone.
I see a logo but it’s under the login box, in Firefox 2.0.0.9 anyway. I won’t mess with that at all since you are going to redo it. You could move it over with some left-padding in the CSS if you wanted to.
For now, you could do something like add a text link to the website home, like I did here a long time ago:
http://www.riversideinfo.org/forum/
That is a modification to header.php to add that text link, and I think I modified the style.css to move it where I wanted it.
Regarding the cities, where’s livibetter?
(seriously, I haven’t looked at it at all…)
November 26, 2007 at 5:14 am #61550In reply to: How Do I Do This?
chrishajer
Participant> 1. I’d like to add our logo with either a button
> that says “Home” or something indicating back to
> the main page. I tried to add the logo included
> in a banner, but it wasn’t aligned correctly.
Try inserting it again so people can see it and help you get it aligned properly
> 2. I’d like to make the green lettering a bolder
> Color, maybe even change the size of the font.
In your theme, find this around line 21 and change to whatever you like:
a { color: #2e6e15; text-decoration: none; }
a:hover { color: #006400; }You can change the color and font weight and size there.
> 3. I’d like to eliminate “Latest Discussions”
> entirely.
In front-page.php, on line 11, change this:
<?php if ( $topics || $super_stickies ) : ?>to this
<?php if ( 0 > 1 ) : ?>That originally said “if there are topics or super_stickies” then do the rest, which is show the latest discussions. Changing it as shown will cause it to never show “Latest Discussions” because zero is never greater than one (the statement always evaluates false so the code block is skipped). If you want to actually rip out the code that would display the Latest Discussions, you would delete lines 12 to 41 in the file front-page.php in your theme. Those are the line numbers in the stock file, your line numbers might be different. Delete from
<?php if ( $topics || $super_stickies ) : ?>to
<?php endif; // $topics or $super_stickies ?>inclusive.
> 4. This message board is huge…Is there a way
> to anchor each city so we can put links on a
> page on the main site. Example: “Click Here To
> Go To the Chicago Forums” and they are taken to
> the Chicago part of the board.
I have to think about that one. I imagine there’s a way to do it, but I haven’t ever done it. Since the name of the city is not a link, you’d have to make that a link to that category, and then suppress the listing of the child forums on the front page. Or, you could just create a new front-page.php that links to only those parent forums. Can you post a link to a screenshot of how you accomplished the different cities like that? Something from your admin panel, or a link to the post here that guided you toward separating things into cities like that?
WAIT: is it this that allowed you to separate the cities? I think livibetter could probably help you do what you want there since that was their code initially.
vafaaaan
MemberYess .. i did it..
Wrote some lines that gets a posts TAGS .. how do i proceed ?
<?php
//
// Fetch a WP posts tags by Kent
//
$db_type = 'mysql';
$db_host = 'localhost';
$db_name = 'xxxxx';
$db_user = 'xxxxx';
$db_pass = 'xxxxx';
// Just picked one, for testing.
$post_id = "6";
@mysql_connect($db_host,$db_user,$db_pass) or die ("Couldnt connect to database!");
@mysql_select_db($db_name) or die ("Couldnt select the requested MySQL table!");
$fetch_post_tags = mysql_query("
SELECT
wp_posts.ID AS POID,
wp_term_relationships.object_id AS RELID,
wp_term_relationships.term_taxonomy_id AS TAXID,
wp_term_taxonomy.taxonomy AS TAXONO,
wp_term_taxonomy.term_id AS TAX_TERID,
wp_terms.term_id AS TERID,
wp_terms.name AS HOT_TAG_NAME
FROM
wp_posts,
wp_term_relationships,
wp_term_taxonomy,
wp_terms
WHERE
(wp_posts.ID = wp_term_relationships.object_id AND wp_posts.ID = '$post_id')
AND
(wp_term_taxonomy.taxonomy = 'post_tag' AND wp_term_relationships.term_taxonomy_id = wp_term_taxonomy.term_taxonomy_id)
AND
(wp_term_taxonomy.term_id = wp_terms.term_id)
ORDER BY wp_terms.name ASC
") or die ("Cant fetch data!");
if (mysql_num_rows($fetch_post_tags) > 0)
{
$rowid = 1;
echo "<table border="1">";
echo "<caption>WP posts tags</caption>";
echo "<tr style="background-color: #DDEAD5;">";
echo "<th scope="col">Post ID</th><th scope="col">Tag</th></tr>";
while ($blog = mysql_fetch_array($fetch_post_tags))
{
if ($rowid == 1)
{
echo "<tr><th scope="row">" . $blog['POID'] . "</th>";
}
else
{
echo "<tr><th scope="row"> </th>";
}
echo "<td>" . $blog['HOT_TAG_NAME'] . "</td></tr>";
$rowid++;
}
echo "</table>";
}
else
{
echo "Found nothing!";
}
?>Please dont kill me.. im no pro coder..
November 26, 2007 at 4:30 am #61548In reply to: How Do I Do This?
chgogrrl99
MemberOk…I’m Stuck.
This is what I feel I have left to do to my forum…if anyone can help.
1. I’d like to add our logo with either a button that says “Home” or something indicating back to the main page. I tried to add the logo included in a banner, but it wasn’t aligned correctly.
2. I’d like to make the green lettering a bolder Color, maybe even change the size of the font.
3. I’d like to eliminate “Latest Discussions” entirely.
4. This message board is huge…Is there a way to anchor each city so we can put links on a page on the main site. Example: “Click Here To Go To the Chicago Forums” and they are taken to the Chicago part of the board.
I know I have a lot of questions, but if I can get the answers to them, I can go to bed.
Oh, and check out the forums some of you have been so great about helping me with….
vafaaaan
Memberhmm.. posts gets n´s all over them…
projects. Please check back later for for more news regarding this.
n
nCode test
n n< ?php n// Testing.. n if (function()) n { etc...[code='php']
n< ?php
n// Testing..
n
if (function())
n
{
etc…November 22, 2007 at 3:08 am #61601In reply to: Permalink broken when in admin mode!
chrishajer
ParticipantIf you post the URL maybe someone can help.
If you create another user and log in / log out, does the same thing occur. or is it only as admin that the problem occurs? If it’s only as admin, it’s going to be hard to test by anyone other than you. If it happens to other users (like if you create a test user) then it can be seen by others as well.
November 22, 2007 at 12:40 am #61648In reply to: Suggestions and misc
vafaaaan
Memberhmm seems working .. have wp cats and stuff to the right .. same theme

forum root is.. ehh.. root
cant find where to change that to forums.phpUpdate: Found at the top in my-templates/topic.php and forum.php .. changed <?php bb_option(‘uri’); ?> to forums.php and it works fine
i feel happyUpdate2: changed in my-templates/footer.php. Removed almost all code
<?php do_action('bb_foot', ''); ?>
<?php wp_footer(); ?>
<?php
include($_SERVER['DOCUMENT_ROOT'] . '/myname/wp-content/themes/themename/footer.php');
?>
</body>
</html>So it runs with my WP theme footer

Need to slice up my WP header so i can do the same
Im just hacking and testing so if there is something i can do better say it

Looks a bit weird to have two admin/logins at my top right corner

Update3: Since i had forums.php i change in config.php
// What are you going to call me?
$bb->name = ‘Forum index’;
Looks better

Keep up the good work developers!
November 21, 2007 at 3:01 pm #61632In reply to: How to show forum title on latest topics list?
guerroloco
MemberPerfect, that’s it!
I thought I’d tried this statement already, but evidently not.
Thank you!
November 20, 2007 at 11:40 pm #61631In reply to: How to show forum title on latest topics list?
livibetter
MemberTry
forum_name($topic->forum_id);November 20, 2007 at 10:22 pm #61624In reply to: bbPress on localhost
Sam Bauers
ParticipantBetter to use the latest version from trunk than those diff files if possible.
November 20, 2007 at 8:09 pm #2620Topic: How to show forum title on latest topics list?
in forum Pluginsguerroloco
MemberJust wondering if there’s an easy way to add the forum title for each topic on the “latest discussions” list on the front page. i.e. I want to add an “In forum”: column to the latest discussion list table.
Something in the topics loop in front-page.php ought to do it…. but what? I tried get_forum_name(), but that takes the forum ID. Is the forum ID available anywhere in the $topic var inside the loop?
November 20, 2007 at 6:51 pm #56053In reply to: Latest WordPress & bbPress in another language!
diniscorreia
ParticipantAh, great! I’ve been translating bbPress to portuguese to use on my WPMU+bbPress project and when I try to set the language I get the error as well….
Anyways, I guess I’ll have to try merging the two PO files.
@ganzua, I don’t think you really need to define BBLANGDIR – it works because you have already defined the .mo file in WP config file. You get the error *if* you try to define BBLANG. However, if you leave BBLANG as ”, you won’t get the error.
I actually haven’t tried yet, but I think it make sense.
November 20, 2007 at 4:40 am #61622In reply to: bbPress on localhost
chrishajer
ParticipantI think you were bitten by an error that has been fixed in the latest trac release, but still exists in the production release. Take a look through the threads tagged 745:
https://bbpress.org/forums/tags/745
745 is the trac ticket where this was discussed. There are lots of workarounds listed in the forums and on trac.
https://trac.bbpress.org/ticket/745
Good luck.
November 18, 2007 at 11:01 pm #61531In reply to: bb/wp integration and username issues
joeby
MemberThat was a good lead, but I downloaded the plugin, and although it shows up (unlike the display-name plugin) activating it has no impact on old registrations.
I also tried to register a new account “Test User” — the confirmation screen says, “Your registration as TestUser was successful.” No space.
Although in a wacky twist of fate, the registration did also carry through to WP. And assigned the correct role once the user logged in, albeit with a changed username as indicated above.
November 18, 2007 at 3:31 pm #61503In reply to: get some trouble …
Andreas Grzybowski
Memberso – tested a lot.
my blog has now an error:
WordPress database error: [Table ‘summerdb.wp_post2cat’ doesn’t exist]
SELECT p2c.category_id AS cat_id, COUNT(p2c.rel_id) AS numposts, UNIX_TIMESTAMP(max(posts.post_date_gmt)) + ‘1’ AS last_post_date, UNIX_TIMESTAMP(max(posts.post_date_gmt)) AS last_post_date_gmt FROM wp_post2cat p2c INNER JOIN wp_posts posts ON p2c.post_id=posts.id WHERE 1 = 1 AND posts.post_type = ‘post’ AND posts.post_status = ‘publish’ AND posts.post_date_gmt <= ‘2007-11-18 15:26:18’ GROUP BY p2c.category_id ORDER BY numposts DESC
if i try to login in bb-admin like: http://www.summer-breeze-fanatics.de/forum/bb-admin/admin-base.php
i was redirectet to http://www.summer-breeze-fanatics.de/forum/
i can login with all my users from wordpress into bbpress.
i have all things done that was sayed in zhe docu and in this forum.
in my config.php under bbpress and in the wp-config.php.
but it doesn’t work very well and i don’t know how to figure out what i do wrong.
anyone has a tip or a little workaround?
thanks
Andy
November 18, 2007 at 1:40 pm #61525In reply to: difficulty integrating wp/bbp
joeby
MemberOK… Here’s the latest. You should know, I’m one step above clueless and very dangerous because of it…
went to myadmin to play with the database. I searched for capabilities and it returned all my user listings… Since I was nervous about deleting anything, I created a second account and gave it admin access.
I deleted the entry for the capabilities admin… and it deleted my admin access to wp. It changed that username (admin) to ‘no role on this system’ or something similar. (so I logged in with the other admin account and went back to give the original access again).
So the net result of that is that I still can’t get at a dashboard with either admin accounts in bb.
The other file issue was corrected when I changed prettylinks to false. Now I can read posts, edit profile etc. although as mentioned above, still no dashboard access.
Oh, yeah… Still confused about what I need to edit in the wp plugin to make it work correctly… Unless it IS working correctly since all my wp users could in theory log in and use the bb.
One other new thing that I didn’t realize was happening… WP usernames with spaces (test user) are not able to log into bb, however WP names without spaces (testuser) are able to log in without difficulties.
Thanks for the help… Perhaps someone can help me figure out where I went wrong?
November 17, 2007 at 3:16 pm #61477In reply to: Can not post or see profile after install
mrflowerpot
Membertested again.
The new post will appear on the main page, but can’t view.
November 17, 2007 at 3:07 pm #2603Topic: get some trouble …
in forum InstallationAndreas Grzybowski
MemberHi all,
i’ve installed bbforum (latest version).
i use WP Version 2.3.1 DE-Edition.
now – i don’t know how to integrate my bbpress with my wordpress.
i can’t login into the admin page to crate a now forum topic.
i don’t know how to set up bbpress into my wordpress.
i want a link to integrate bbpress.
can anyone help me?
how i can set up a new forum topic, integrate it with my wordpress?
thanks.
(info.: wordpress Version 2.3.1 DE-Edition
bbpress: latest.
www: http://www.summer-breeze-fanatics.de/
forum: http://www.summer-breeze-fanatics.de/forum/)
Andy
-
AuthorSearch Results