greymatter
Forum Replies Created
-
Forum: Plugins
In reply to: [Simple Intranet Directory] Customize Image Dimensions?Chris, not sure if you’ll see/read this??
Is there a way to hide images till searched for?
Thanks in advance!
Forum: Fixing WordPress
In reply to: WordPress & Lotus NotesAnyone have any thoughts?
Forum: Fixing WordPress
In reply to: User WidgetsThanks Ross, looks like a plan…
Forum: Fixing WordPress
In reply to: User WidgetsRoss,
Do you have an example of code in the template I could use if querying a new table in the db?
Thanks for your time.
Richard
Forum: Fixing WordPress
In reply to: User WidgetsSo use something unique in the user table?
Thanks!
Forum: Fixing WordPress
In reply to: User WidgetsThanks for the response!
Could i just use username?Forum: Fixing WordPress
In reply to: User WidgetsGreat!
I would like it to get the user id. The thing I don’t get is how it will get their content once logged in. I would like to use content area within the page I have set up.
I have something roughly working below. But I don’t want to put an id for every user in like I have used I need it to get it automatically 🙂
<?php
$user_id = get_current_user_id();
if ($user_id == 2) {
echo ‘<p>User Area</p>’; }
elseif ($user_id == 1) {
echo ‘<p>My Area 1</p>’;
} else {
echo “<p>Not logged in dude</p>”;
}
?>Thanks,
Forum: Fixing WordPress
In reply to: Admin Login on Front of WP Site?This worked fine and dandy – http://www.rlmseo.com/blog/require-login-for-wordpress-pages/
Thanks!
Forum: Fixing WordPress
In reply to: Admin Login on Front of WP Site?Thanks, will take a look and get back to you!
Forum: Fixing WordPress
In reply to: Admin Login on Front of WP Site?yes that would be ideal 🙂