Marty
Forum Replies Created
-
Think I got it… copied the file “/plugins/wp-user-frontend/templates/account.php”
to “/themes/my-theme/wpuf/account.php” were any changes I make wont be updated after plugin updates are applied!… also allows me to add my own action hook: do_action(‘wpuf_custom_account_content_before’)then in my theme function file I can call & hook into that new action!
Thanks!quick and dirty would be to open the file: wpuf-dashboard.php
then around line 423 or so.. just after
<h3><?php _e( 'Author Info', 'wpuf' ); ?></h3>paste this in..
<?php if(function_exists( get_wpseo_options )){ //echo "<h2>Wordpress SEO Installed</h2>"; $current_user = wp_get_current_user(); $user_googleplus = get_the_author_meta('googleplus', $current_user->ID ); $user_twitter = get_the_author_meta('twitter', $current_user->ID ); $user_facebook = get_the_author_meta('facebook', $current_user->ID ); echo "<h2>Social Media</h2>"; echo '<p class="wpuf-user-name">Google: '.$user_googleplus.'</p>'; echo '<p class="wpuf-user-name">Facebook: '.$user_facebook.'</p>'; echo '<p class="wpuf-user-name">Twitter: '.$user_twitter.'</p>'; } ?>all it does is check to see if WPSEO options function exists
then pulls out the get_the_author_meta info, and displays it on the page, like i said quick and dirty,will be deleted if there’s any updates to the plugin!
Would be better with conditional checks around each to see if they have any values before echo’ing to the screen, then add icons etc..
Marty
cheers Eric, ill have a wee look, let you know how i get on…
If I echo out the current plugin options
$options = get_option("wptm_configuration");the array comes back as..
Array ( [cat_image] => Array ( [type] => text [taxonomy] => ) [cat_link] => Array ( [type] => text [taxonomy] => ) [cat_custom] => Array ( [type] => text [taxonomy] => ) )Are the taxonomy values ment to be set?
Forum: Themes and Templates
In reply to: Loop through a specific category on single.phpa little something what im looking for, a loop within a loop?
ideas? suggestions?
Forum: Plugins
In reply to: [Plugin: WP Super Cache] Integration with another bot tracker plugin?ahh, I see, so if its half on with my function utilising the ‘mfunc’ it should run the code? but if the user has the supercache on full then there’s no chance that my code will be picked up on each bot crawl?
cheers
Forum: Plugins
In reply to: How to DROP TABLE from databasehow about….
function pluginUninstall() { global $wpdb; $table = $wpdb->prefix."your_table_name"; //Delete any options thats stored also? //delete_option('wp_yourplugin_version'); $wpdb->query("DROP TABLE IF EXISTS $table"); }than all you do is hook into wordpress when its being de-activated
register_deactivation_hook( __FILE__, 'pluginUninstall' );that should clean up the database a little..
Forum: Plugins
In reply to: earching for a plugin where users can posts linkshave you searched for a comments plugin were you might be able to add fields to it, not just the usual name email msg? much like cforms?
not tried myself but worth a look?Forum: Plugins
In reply to: earching for a plugin where users can posts linkswhy not just use the comments of the post or page your displaying and tell them to post links there?
Forum: Plugins
In reply to: Searching For a Pluginis the data for the zip/postcodes & people/persons, located in your wordpress database? or would that have to be bolted on from another location? its very vague…
you could build a custom plugin for that, but it’s the data?
Forum: Fixing WordPress
In reply to: Nested loop helpanyone.?
Forum: Fixing WordPress
In reply to: Nested loop helpwhat i need is
‘check for posts from category’
if posts
-
loop
end loopelse ( // much the same as – Sorry no posts found )
query from other category
if posts-
loop
end loopendif
end first if
Forum: Plugins
In reply to: Counter Strike: Source Server Status Plugin ?Well, A few weeks later and its here..
http://www.martin-gardner.co.uk/counterstrike-server-info-plugin-for-wordpress/
Features
* Widget Control Panel
* Enable disable server values
* Current Map imageIf you find any bugs or have any ideas, please mail me.
Demo here: http://www.homelessclan.co.uk
on the right sidebar.Forum: Plugins
In reply to: WP-Forecast not working after WordPress 2.8same here….
any help out there would be great.
the main plugin site is still using wp 2.7.1
so there’s is still working..[UDPATE]
login to the admin section,
go to your forecast options,
select the widget your using,
Go to “Preselect wordpress transfer method”,
I changed mine from default to fsockopen,that seems to be working fine now..
[/UPDATE]Forum: Plugins
In reply to: NextGEN Gallery Creates Huge Blank SpaceI just recently updated my install of the NextGen Gallery,
while doing so, i had a vision of inspiration, for using the gallery slide show feature as a rotating header banner image for one of the sites ive been working on,
Created a new gallery, uploaded the banner images,
created a new sidebar widget(‘header_images’), added a slide show
with a fixed width and height to it, along with the gallery i wanted to use, and exclude all other galleries,In my header.php file for the template, were the header banners used to load, i replaced that with the function code to check for a widget, and bobs your uncle ive got a rotating header, with nice image changing effects 🙂
the gallery idea can be seen here..
http://www.sew4uchaircovers.co.uk