Forum Replies Created
-
In reply to: How to know if my site is do follow
Dofollow link:
Nofollow link:
How to check if a link is Dofollow or not?
Just follow these simple steps to check whether any link is a Dofollow or not:
1. Right click on your site and click “View Page Source”
2. Look for the link in the HTML of the page.
3. The link is nofollowed if you see a rel=”nofollow” attribute. Otherwise, the link is dofollow.In reply to: Automatically follow linksYou should copy the website link in the link option of WordPress.
In reply to: getting logged in user infoTo check if the user is logged in, is_user_logged_in() is used:
function is_user_logged_in() {
$user = wp_get_current_user();
return $user->exists();
}
True if user is logged in, false if not logged in.To obtain the default data (such as User ID, User Login, etc.)of the user try this code:
global $bp; $the_user_id = $bp->loggedin_user->userdata->ID; $the_user_login = $bp->loggedin_user->userdata->user_login;
To get data for the current logged in user, this this:
`$the_first_name = bp_get_profile_field_data(‘field=First Name&user_id=’.bp_loggedin_user_id());Hope you find these code lines useful.
In reply to: Change the image size in post and video widthJust pick one out of blue
<object width=”425″ height=”344″><param name=”movie” value=”http://www.youtube.com/v/WDT3JBgJn6M…</param><param name=”allowFullScreen” value=”true”></param><param name=”allowscriptaccess” value=”always”></param><embed src=”http://www.youtube.com/v/WDT3JBgJn6M&hl=en_US&fs=1&” type=”application/x-shockwave-flash” allowscriptaccess=”always” allowfullscreen=”true” width=”425″ height=”344″></embed></object>Change width and height in the embeded codeThis code is to change the size of youtube embedded videos