miz
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Export User MetadataI think you are looking for something like if you have added a field named address to the extended profile and you would like it to be displayed on your site right?
If that is correct then you can use something like this to call on the address field
<?php if($user->address) : ?>
<p><strong>Contact Info:</strong>
<br />
Address: <?php echo $user->address; ?>
<br />
<?php endif; ?>
You would put this in any php document and link to it or even put it in your index or sidebar etc.
Forum: Plugins
In reply to: upcoming events plugin for birthdays/anniv?Well I followed the link back to jwurster’s site and had to hunt around a bit until I found wordpress plugins. Well for those of you who are interested here is the link to his modified plugin
https://www.jwurster.us/wordpress/plugins/countdownjForum: Plugins
In reply to: Adding a logged in user’s nameWell I fixed it ?? I had to refer to the plugin Admin bar from https://mattread.com/projects/wp-plugins/wp-admin-bar/
Anyways for anyone interested this is what I added
under function
display_menu()
I added global $user_identity;and then where the main stuff starts, i added….
"<li>"
. __('Welcome ', 'sem-admin-menu') . " "
. "<a href=""
. $site_path . "wp-admin/profile.php">"
. $user_identity
. "</a>"
. "</li>n"
Forum: Plugins
In reply to: Adding a logged in user’s namethank you for your help up to now… unfortunately the only support the author gives is paid support at least according to his site……… I think this is just a little thing which I have to figue out ?? hopefully someone else can help?
Thanks Again
Forum: Plugins
In reply to: Adding a logged in user’s nameHow do i call the function and if you look at how the code is formatted in the page or my pasteup it’s all within one <?php ?> tag.
So basically i need to add the calling of the function instaed of where i have typed “CALL FUNCTION IN THIS AREA BUT DON”T KNOW HOW TO?”
But how do i format the calling of the function properly within these code specs…
if ( $user_ID )
{
$o .= ( user_can_create_draft($user_ID)
? ( "<li>" . __('Welcome', "CALL FUNCTION IN THIS AREA BUT DON"T KNOW HOW TO?") . ""
. "</li>n"
Forum: Plugins
In reply to: Adding a logged in user’s namemastraw, thank you for the offer I really appreciate it……
I am also including a download link for the zipped file at my site:
https://www.jessas.com/adminmenu.zip
I have copied a larger chunk of the code and pasted it, please let me know if you need anymore……
function display_menu()
{
global $user_ID;
global $user_level;
global $user_nickname;
get_currentuserinfo();
if ( $user_nickname<> "" )
echo $user_nickname ;$site_path = trailingslashit(get_settings('home'));
$o = "";
$o .= "<div id="sem_admin_menu">n"
. "<ul>n";if ( $user_ID )
{
$o .= ( user_can_create_draft($user_ID)
? ( "<li>" . __('Welcome', "") . ""
. "</li>n"
. "<li>|</li>n"
."<li class="new_item">"
. __('New:', 'sem-admin-menu') . " "
. "<a href=""
. $site_path . "wp-admin/post.php">"
. __('Post', 'sem-admin-menu')
. "</a>"
. ( ( $user_level >= 5 )
? ( " • "
. "<a href=""
. $site_path . "wp-admin/link-add.php">"
. __('Link', 'sem-admin-menu')
. "</a>"
. " • "
. "<a href=""
. $site_path . "wp-admin/page-new.php">"
. __('Page', 'sem-admin-menu')
. "</a>"
)
: ""
)
. "</li>n"
. "<li>|</li>n" )
: ""
)Forum: Plugins
In reply to: Adding a logged in user’s nameHi thanks for the suggestion I tried that but the thing is that the plugin file which I am editing is written all within the <?php ?> tags and therefore the place I need to add it looks like this. Again i think this is where I would add it but am not sure. It would be after the Welcome, (Welcome shows up on my site as text). I don’t know if there is any way to attach the file here? but here is a link to the main plugin page
https://www.semiologic.com/software/admin-menu/Code:
if ( $user_ID )
{
$o .= ( user_can_create_draft($user_ID)
? ( "<li>" . __('Welcome', "") . ""
. "</li>
n"Forum: Fixing WordPress
In reply to: Login on front pagei would love to find out about this also…… please post or email it at miz2002[at]airpost.net
Forum: Plugins
In reply to: upcoming events plugin for birthdays/anniv?I would love to get your modified plugin especially the email someone tweak.
Thanks
miz