Search Results for 'code'
-
AuthorSearch Results
-
November 27, 2007 at 3:56 am #61722
In reply to: Plugin: Enhanced Registration
livibetter
MemberNovember 27, 2007 at 12:30 am #61572In reply to: How Do I Do This?
chgogrrl99
MemberOk, so I now know how to link the individual cities. I can use Livibetter’s new code and do it from the front page of the forum or I can do it from the Forum Page on our main site. Thanks to both of you…I’m really learning a lot!
So, now I’ve added the logo with a “Click Here” statement to direct people back to the main site. As you can see http://www.theangrywaiter.com/forum
it sits on top of the title.
I was thinking maybe I could move the title up higher and center it.
Don’t know how to do this.
Then I could make the logo and “Click Here” words clickable to the main site. (The main site and forum are not integrated if that makes a difference. They both reside in their own sub-directories.)
Don’t know how to do this either.
I have to go out for a while, but I’ll be back around 11:00 Chicago time.
Talk to you later.
fel64
Membervafaaaan, take a look at the wpdb documentation. It’s mostly the same.
William, no, that’s cool. I’ve got a comment, found the same problem, and trying to figure out where my code is going wrong. But I appreciate all the help you’ve already given me
November 26, 2007 at 8:54 pm #53014In reply to: Template: bbPress Forum Theme
mattpeckham
MemberFab Trent, that’s plenty close for now.
November 26, 2007 at 8:28 pm #60988In reply to: Can’t add additional tags to post
Andrew
MemberI thought you were proposing changes to the core files. If so I was wondering if this should be put in as a change to the code database, which would mean submitting a bug to the BBPress Trac database.
November 26, 2007 at 8:21 pm #53013In reply to: Template: bbPress Forum Theme
Trent Adams
MemberNot sure if they did or not, but it is pretty simple to change. Head to style.css and find the following:
#profile-menu {
list-style: none;
position: absolute;
right: 0;
}and change to something like the following:
#profile-menu {
margin-top: -20px;
margin-right: -20px;
padding: 20px;
float:right;
}Not perfect, but something to start from!
Trent
williamtildesley
MemberWith the plugin deactivated the database still shows only the two comments and again without the comment_type field filled in.
Is their anything I could provide you with to help you help me
November 26, 2007 at 7:13 pm #61706In reply to: Change Profile information
richsad
MemberMaybe I’m being thick today, but I don’t really see how a plugin solves my problem after looking at them. Indeed there is an apply_filter call to read the user profile info, but the names of the keys in the associative arrive are assumed in various places around the code. As far as I can tell there wasn’t any forethought into an admin wanting to replace the user info collected at registration with something relevant to the specific forums domain.
I think either I am missing some aspect of the plugins or this an area that could be improved upon for customization by the admin.
Am I missing something that anyone can see? The problem appears to be akismet.php where the key of the user profile info is hardcoded into the code. In my version of the file line 86 and 148 seem to assume the keys to info have not been modified.
November 26, 2007 at 6:16 pm #61721In reply to: Plugin: Enhanced Registration
Trent Adams
MemberIf the list of users to delete is empty, it gives the following error”
Warning: Invalid argument supplied for foreach() in /public_html/my-plugins/EnhancedRegistration/OptionsPage.php on line 37
0 user(s) have been deleted!Trent
November 26, 2007 at 12:15 pm #61719In reply to: Plugin: Enhanced Registration
vafaaaan
Memberok .. activated manually with the code .. worked, act_code is gone.
Keep up the good work
November 26, 2007 at 10:01 am #61569In reply to: How Do I Do This?
livibetter
MemberComment out third line from bottom in
forum.phplike<?php // post_form(); ?>November 26, 2007 at 9:51 am #61718In reply to: Plugin: Enhanced Registration
livibetter
MemberAuto-deletion would be considered in next release.
Users will get TWO mails. I will see if there a way to send only one mail.
This plugin thinks user has
act_codeusermeta hasn’t activated their account. If a account has been activated, then it doesn’t haveact_codeusermeta.November 26, 2007 at 9:29 am #61567In reply to: How Do I Do This?
livibetter
MemberThats works on my server. Are you sure you edited right
front-page.php? Do you have more than one template?November 26, 2007 at 9:13 am #53530In reply to: Fight Against Auto-Register Robot
Null
MemberYou can never stop spam registration if people hire people to sign up. Nor captcha or askimet or any other program can prevent that.
We can however block all registratingspambots with an empty www field like the starting post. Only problem is, it aint working
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 9:01 am #61565In reply to: How Do I Do This?
livibetter
MemberPlease post entire
front-page.php.November 26, 2007 at 8:58 am #61564In reply to: How Do I Do This?
chgogrrl99
MemberI got all the id’s and entered them into the line in the code…mine where 2, 3, 4, 5, 6, 7, 18, 19, 20, 101
then I uploaded the new frontpage.
Everything looks the same. So now I’m wondering how I use this. I mean, when I try to create a link from the main site to the “Chicago Forum” what do I put in the link box? http://theangrywaiter.com/forum takes me to the forum page, but nothing I do seems to take me directly to the Chicago Forum.
I must be doing something wrong
November 26, 2007 at 8:32 am #61562In reply to: How Do I Do This?
chgogrrl99
MemberI did…but if I click edit on the individual cities I see that the “positions” for each are different than the id’s I entered in the new code.
Maybe I should go back and enter those numbers instead.
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 8:20 am #61561In reply to: How Do I Do This?
livibetter
MemberWhy don’t you just backup current front-page.php and replace with new code, then see what you will get?
November 26, 2007 at 8:14 am #61559In reply to: How Do I Do This?
chgogrrl99
MemberOk…so I changed the code.
Now, what your saying is that on our main site if we build a “Forums” Page and put:
Click Here To Go To The Chicago Forums
Click Here To Go To The Atlanta Forums
Click Here To GO To The Denver Forums
ect.
it will automatically take people there?
November 26, 2007 at 7:56 am #61558In reply to: How Do I Do This?
livibetter
MemberThe Chicago forum’s id is 2
If the rest forums’ id are 3, 6, 12, then you should replace that line with
if (in_array(get_forum_id(), array(2, 3, 6, 12)))PS. you don’t need to add additional links, the new code will take care of that you mention in your question #4.
November 26, 2007 at 7:52 am #61557In reply to: How Do I Do This?
chgogrrl99
MemberOk, so I have the id’s. So I should replace the old code you gave me with the new code?
Then, on my main site I can add them as links:
For example: “Chicago Forums” link is http://www.theangrywaiter.com/forum/id=2
Is this correct?
November 26, 2007 at 7:23 am #61555In reply to: How Do I Do This?
livibetter
MemberYou have to put the forum ids into this line (no need to put them all into this line, you can let big cities to be shown in front-page.php)
if (in_array(get_forum_id(), array(2, 3, 4, 5, 6, 7)))You can get those id in Forum Management by move mouse over Edit links.
Those ids should belongs to top-level forums.
New code (edited):
<?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)))
$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() ?>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!
-
AuthorSearch Results