WP Twitip ID free WordPress plugin
Description
WP Twitip ID free WordPress plugin
Details
WP Twitip ID functionality:
Adds an extra field to the comment form for user to enter their twitter username
Echo out the twitter id associated with the comment being displayed
Echo out a html link pointing to the users twitter page using “Click Here To Follow Me On Twitter”
Display link as an image
Ouput just the @ username
Return the twitter id as a variable to be used by php
Automatically display Twitter: @username
Display html before the extra field
Display html after the extra field
Add a class name to the extra field
disable javascript field addition for manual form editing
Configuration
Put field after object ID
Enter the ID of the field or object that you want the extra field to be displayed after
defaults to url
Labels are before fields?
If your comments.php file puts the label before the field check this box
defaults to off
Don’t use Javascript
If you edit your comments.php file and add a field manually, you need to select this (manual adding requires field to have name=”atf_twitter_id”)
defaults to off
HTML before field
Custom html you want to add before the field is added
defaults to
HTML after Field
Custom html you want to add after the field is added
defaults to
Twitter ID
(if you check labels are before fields, you can enter this html into the html before field
Field class
the class you want to apply to the field
defaults to textarea
Twitter Image URI
Image url for image output
Twitter anchor text
Text to display in link for text output
Adding to your template
Open your themes comments.php file and add this line
if(function_exists(wp_twitip_id_show)) {
wp_twitip_id_show(“auto”);
}
You can use “image” or “text” or “user”
“image” = show linked image using image url in settings page
“text” = show text link using anchor text in settings page
“user” = show just the @username
“return” = return the twitter id as a variable for use in custom php
“auto” = show Twitter: @commentluv in a span with class twitter_id
example:
within the comments loop (foreach($comments as $comment)) I put this below the date output in comments.php
“return” = return the twitter id to be used as a variable
example:
I has a .kadence-column_9e318b-46 > .kt-inside-inner-col{padding-top:0.62em;padding-bottom:1.8em;padding-left:1.6em;padding-right:1.6em;border-color:rgba(2, 44, 83, 0.3);border-top-width:1px;border-right-width:1px;border-bottom-width:1px;border-left-width:1px;border-top-left-radius:20px;border-top-right-radius:20px;border-bottom-right-radius:20px;border-bottom-left-radius:20px;box-shadow:0px 0px 4px 1px rgba(0, 20, 46, 0.2);}.wp-block-kadence-column.kadence-column_9e318b-46 > .kt-inside-inner-col{margin-top:0em;margin-bottom:0em;margin-right:0em;margin-left:0em;}.kadence-column_9e318b-46 > .kt-inside-inner-col{background-color:var(--global-palette9, #ffffff);}img.h-100.w-100{
border-radius: 20px;
}