Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 02-27-2011, 12:23 PM   #1
DWB
Registered User
 
Industry Role:
Join Date: Jul 2003
Location: Encrypted. Access denied.
Posts: 31,779
What WP plugin will do this?

I need to be able to add a note or author comment after each blog post and would like to have it highlighted like this is. I see it on many blogs but can't find a plugin to do it.



Thanks in advance.
DWB is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-27-2011, 01:23 PM   #2
MrGusMuller
Confirmed User
 
MrGusMuller's Avatar
 
Industry Role:
Join Date: Oct 2010
Location: Portugal
Posts: 1,262
Edit the post page and had div with proper css and content in it? :S
__________________
StagCMS - Adult CMS - user friendly adult content management system - speed up your websites with no SQL connections
ICQ: 63*23*43*113

MrGusMuller is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-27-2011, 01:31 PM   #3
DWB
Registered User
 
Industry Role:
Join Date: Jul 2003
Location: Encrypted. Access denied.
Posts: 31,779
Quote:
Originally Posted by MrGusMuller View Post
Edit the post page and had div with proper css and content in it? :S
Yea I could hard code it in but I'd like to be able to use it on and off. Like an excerpt for example. If you don't put anything there, nothing shows up. Same idea.

I figured there is plugin for this but I could be wrong.
DWB is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-27-2011, 01:32 PM   #4
MrGusMuller
Confirmed User
 
MrGusMuller's Avatar
 
Industry Role:
Join Date: Oct 2010
Location: Portugal
Posts: 1,262
try to add this in your /wp-content/themes/YOURTEMPLATE/single.php

PHP Code:
<div style="background-color:#f5f5b7; border-color:#e2d6ac; border-style: dashed; padding:10px;">

    
YOUR MSG
    
</div
before
PHP Code:
<div class="comments"


You can also create a shortcode for that, like [note msg="blablabla"]....

Hit me if u need help
__________________
StagCMS - Adult CMS - user friendly adult content management system - speed up your websites with no SQL connections
ICQ: 63*23*43*113


Last edited by MrGusMuller; 02-27-2011 at 01:33 PM..
MrGusMuller is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-27-2011, 01:33 PM   #5
Kiopa_Matt
Confirmed User
 
Industry Role:
Join Date: Oct 2007
Posts: 1,448
It's not a plugin. I don't know Wordpress much expect reverse engineering it, but there's comments, and then there's admin comments, or something to that affect. Maybe it's "author comments".

Anyway, it's in the CSS. You have to find a theme that supports it, then copy it.

PS. Don't quote me on that, as I could be wrong. Again, I don't know WP very well.
__________________
xMarkPro -- Ultimate Blog Network Management
Streamline your marketing operations. Centralize management of domains, pages, Wordpress blogs, sponsors, link codes, media items, sales and traffic statistics, plus more!
Kiopa_Matt is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-27-2011, 01:39 PM   #6
MrGusMuller
Confirmed User
 
MrGusMuller's Avatar
 
Industry Role:
Join Date: Oct 2010
Location: Portugal
Posts: 1,262
Quote:
Originally Posted by DirtyWhiteBoy View Post
Yea I could hard code it in but I'd like to be able to use it on and off. Like an excerpt for example. If you don't put anything there, nothing shows up. Same idea.

I figured there is plugin for this but I could be wrong.

You can create a shortcode for that.
Its easy shit.
Add something like this to ur /wp-content/themes/YOURTHEME/functions.php

PHP Code:
function myNote ($atts$msg)
{
    
    
extract(shortcode_atts(array(
                
"atts" => '',
                
"msg" => ''
        
), $atts));
 
 return 
'<div style="background-color:#f5f5b7; border-color:#e2d6ac; border-style: dashed; padding:10px;">'.$msg.'</div>';
      
}
add_shortcode('note''myNote'); 

then, in the post that you want to call, write [note msg="blalbla bla bla"] where you want the warning
__________________
StagCMS - Adult CMS - user friendly adult content management system - speed up your websites with no SQL connections
ICQ: 63*23*43*113


Last edited by MrGusMuller; 02-27-2011 at 01:44 PM..
MrGusMuller is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-27-2011, 01:44 PM   #7
Agent 488
Registered User
 
Industry Role:
Join Date: Feb 2006
Posts: 22,511
post the blog you see it on.
Agent 488 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-27-2011, 01:53 PM   #8
Jdoughs
Confirmed User
 
Jdoughs's Avatar
 
Industry Role:
Join Date: Mar 2004
Location: Great White North
Posts: 5,794
Lots of hard solutions for an easy problem.

Search "WP Author Plugin" in google, there is dozens of them, you could also just add it as a custom field and have a lot more control over it (ie an endless amounts of text/image/author combinations and even advertisements).

Working it as a custom field allows you to add it wherever you want, but also with any text/image/etc that you want to put.
__________________
LinkSpun - Premier Adult Link Trading Community - ICQ - 464/\281/\250
Be Seen By New Webmasters/Affiliates * Target out webmasters/affiliates based on niches your sites are for less than $20 a month.
AmeriNOC - Proudly hosted @ AmeriNOC!
Jdoughs is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-27-2011, 02:03 PM   #9
harvey
Confirmed User
 
harvey's Avatar
 
Industry Role:
Join Date: Jul 2001
Location: 127.0.0.1
Posts: 9,266
you're over complicating things, just do this:

Code:
<?php if(get_post_meta($post->ID, 'author-comment', true)): ?>
<div style="somestyle"><?php echo get_post_meta($post->ID, 'author-comment', true); ?></div>
<?php endif; ?>
then just use a custom field named author-comment (or whatever) with the text you want and apply the style as you want.

Alternatively, if your theme doesn't use excerpts, then you can simply place the_excerpt() there, so you'll only need to add an excerpt to display that text, and if you don't input anything, then nothing will be displayed.
__________________
This post is endorsed by CIA, KGB, MI6, the Mafia, Illuminati, Kim Jong Il, Worldwide Ninjas Association, Klingon Empire and lolcats. Don't mess around with it, just accept it and embrace the truth
harvey is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-27-2011, 02:57 PM   #10
DWB
Registered User
 
Industry Role:
Join Date: Jul 2003
Location: Encrypted. Access denied.
Posts: 31,779
Quote:
Originally Posted by MrGusMuller View Post
You can create a shortcode for that.
Its easy shit.
Add something like this to ur /wp-content/themes/YOURTHEME/functions.php

PHP Code:
function myNote ($atts$msg)
{
    
    
extract(shortcode_atts(array(
                
"atts" => '',
                
"msg" => ''
        
), $atts));
 
 return 
'<div style="background-color:#f5f5b7; border-color:#e2d6ac; border-style: dashed; padding:10px;">'.$msg.'</div>';
      
}
add_shortcode('note''myNote'); 

then, in the post that you want to call, write [note msg="blalbla bla bla"] where you want the warning
My theme is throwing an error when I try this. Saying I can't modify the header.

Also flagging me when I try to create a custom field. Grrrrr.

It's a Woo Theme.
DWB is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-27-2011, 03:27 PM   #11
DWB
Registered User
 
Industry Role:
Join Date: Jul 2003
Location: Encrypted. Access denied.
Posts: 31,779
I messed something up in my functions page that was creating the error for the custom field. Working on that now.
DWB is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-27-2011, 04:00 PM   #12
DWB
Registered User
 
Industry Role:
Join Date: Jul 2003
Location: Encrypted. Access denied.
Posts: 31,779
OK... I think the custom field will work, but how do I tell it to call just 1 key (key is called "note")?

If I put the_meta() it calls them all.
DWB is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-27-2011, 04:02 PM   #13
DWB
Registered User
 
Industry Role:
Join Date: Jul 2003
Location: Encrypted. Access denied.
Posts: 31,779
Quote:
Originally Posted by harvey View Post
you're over complicating things, just do this:

Code:
<?php if(get_post_meta($post->ID, 'author-comment', true)): ?>
<div style="somestyle"><?php echo get_post_meta($post->ID, 'author-comment', true); ?></div>
<?php endif; ?>
then just use a custom field named author-comment (or whatever) with the text you want and apply the style as you want.

Alternatively, if your theme doesn't use excerpts, then you can simply place the_excerpt() there, so you'll only need to add an excerpt to display that text, and if you don't input anything, then nothing will be displayed.
Bingo, that did the trick.

Thanks everyone.
DWB is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-27-2011, 06:18 PM   #14
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,297
Quote:
Originally Posted by DirtyWhiteBoy View Post
Bingo, that did the trick.

Thanks everyone.
if you are using woothemes, they have their own shortcodes for notices. like you see on this page.

scoll down

http://www.woothemes.com/2011/02/new-ideas-feb-11/

more info

http://www.woothemes.com/2010/08/woo...rk-shortcodes/

http://www.woothemes.com/2011/02/we-...ur-shortcodes/
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-27-2011, 07:04 PM   #15
chris_joseph
Confirmed User
 
chris_joseph's Avatar
 
Industry Role:
Join Date: Apr 2006
Location: at the Office!
Posts: 1,056
check this plug-in http://wordpress.org/extend/plugins/...x/screenshots/
__________________
Web and Graphic Designer
Hit me up on ICQ#291166250

chris_joseph is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.