GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Looking for a wordpress plugin (https://gfy.com/showthread.php?t=905641)

stickyfingerz 05-16-2009 05:57 PM

Looking for a wordpress plugin
 
Need a wordpress plugin that generates an embed code for users to post pics that are included in posts. Similar to Lol cats etc. Anyone... anyone.... Buller Buller ? :winkwink::helpme

Miguel T 05-16-2009 05:59 PM

That could be done with custom fields mate.

stickyfingerz 05-16-2009 06:04 PM

Quote:

Originally Posted by AbsolutePorn (Post 15860471)
That could be done with custom fields mate.

I don't want to have to do it by hand for each post though. Custom fields won't be able to do it automatically when I make a post with an image will it?

stickyfingerz 05-16-2009 06:38 PM

Found one that will do what I want, which is make the embed code the user gets auto link back to the site they are linking the image from if they post it somewhere, but the dl link isn't working doh! Any more input?

pornguy 05-16-2009 06:49 PM

Post what you found. Lets take a look at it.

fris 05-16-2009 07:32 PM

Quote:

Originally Posted by stickyfingerz (Post 15860481)
I don't want to have to do it by hand for each post though. Custom fields won't be able to do it automatically when I make a post with an image will it?

just write a small function and put it in functions.php and insert it into your theme template.

fris 05-16-2009 08:06 PM

im in a giving mood today.

[sharelink] in your post or page will create the share link(s) like on lolcats, and it will take use the attached image, so no need for custom fields.

Code:


<?php

function sharelink_shortcode($content)
{
    $attachments = get_children(array('post_parent' => get_the_ID(), 'post_type' => 'attachment', 'post_mime_type' => 'image', 'orderby' => 'menu_order'));
    $img = array_shift($attachments);
    $imagelink = wp_get_attachment_image_src($img->ID,'full');
    $image = $imagelink[0];
    $permalink = get_permalink();
    $home = get_bloginfo('home');
    $content = 'Link: <input type="text" value="'.$permalink.'" size="30"><br/><br/>';
    $content .= 'Image Code: <input type="text" size="45" value="<a href=&quot;'.$home.'&quot;><img src=&quot;'.$image.'&quot; border=&quot;0&quot; alt=&quot;funny pics&quot;></a>">';
    return $content;
}

add_shortcode('sharelink','sharelink_shortcode');

?>


fris 05-16-2009 08:09 PM

http://www.blogdojo.com/share.phps

if you want the source, make sure to put in your functions.php in your theme

stickyfingerz 05-16-2009 10:43 PM

Quote:

Originally Posted by fris (Post 15860686)
http://www.blogdojo.com/share.phps

if you want the source, make sure to put in your functions.php in your theme

Much thanks Fris. Ill take a look at this in the morning when I am more sober. hehe. :thumbsup

CaptainWolfy 05-17-2009 12:22 AM

fris is the man for wp :)

fris 05-17-2009 09:31 AM

let me know if you have any issues i tried it on a 2.7 site of mine, worked fine

stickyfingerz 05-17-2009 10:09 AM

Quote:

Originally Posted by fris (Post 15861698)
let me know if you have any issues i tried it on a 2.7 site of mine, worked fine

Its working, but I am getting this error.

Warning: array_shift() [function.array-shift]: The argument should be an array in /web/sites/myaccount/mydomain.com/wp-content/themes/TweetMeBlue/functions.php on line 254

and yes I am using the tweetmeblue theme hehe.

<a href="http://mydomain.com"><img src="" border="0" alt="funny pics"></a>

And it doesn't auto generate the actual image url, just shows up blank. I am using the wordpress upload function for my pics as I have a plugin to auto watermark all the images that get uploaded, so may be that is why its not working. Hit me up if you want to look at the site itself. Its a mainstream site so Id rather not post it here.

fris 05-17-2009 10:21 AM

gonna hit you up in a few

DWB 05-17-2009 01:21 PM

Fris rocks.

uno 05-17-2009 11:29 PM

Quote:

Originally Posted by stickyfingerz (Post 15860857)
Much thanks Fris. Ill take a look at this in the morning when I am more sober. hehe. :thumbsup

Fris is the man with helpful tips.

uno 05-17-2009 11:30 PM

Quote:

Originally Posted by stickyfingerz (Post 15861791)
Its working, but I am getting this error.

Warning: array_shift() [function.array-shift]: The argument should be an array in /web/sites/myaccount/mydomain.com/wp-content/themes/TweetMeBlue/functions.php on line 254

and yes I am using the tweetmeblue theme hehe.

<a href="http://mydomain.com"><img src="" border="0" alt="funny pics"></a>

And it doesn't auto generate the actual image url, just shows up blank. I am using the wordpress upload function for my pics as I have a plugin to auto watermark all the images that get uploaded, so may be that is why its not working. Hit me up if you want to look at the site itself. Its a mainstream site so Id rather not post it here.

Send me a link to the WP watermark plugin por favor.

AAB 05-17-2009 11:37 PM

I'm working on mine and will be releasing it soon, but need to tweak out a few issues. It's already used on a few blogs, for example Beer Steak - let me know if you'd like to beta test before it's officially released.

The way it works right now is that it automatically recognizes whether there is a picture embedded in the post and if it is, it will generate both HTML and BBCode codes at the bottom of the post. Text to go with it is customizeable. It also automatically posts generated links on attachment pages (so each image in the gallery has its own code).

All codes are SEO friendly, which is the purpose (to help you build up links with relevant anchor keywords).

fris 05-18-2009 06:41 AM

I wrote a plugin to do this after helping ryan with this.

stickyfingerz 05-18-2009 06:42 AM

Quote:

Originally Posted by uno (Post 15863262)
Send me a link to the WP watermark plugin por favor.

I shall. I found it easier to batch images offline thought to be honest even though it was working.

stickyfingerz 05-18-2009 06:43 AM

Quote:

Originally Posted by fris (Post 15863834)
I wrote a plugin to do this after helping ryan with this.

Yes you rock man. New plugin works great. :thumbsup

HowlingWulf 05-18-2009 06:16 PM

I've been using TDO Mini Forms but I'd like to see this plugin as well. Are you going to publish it anywhere Fris?

fris 05-19-2009 06:32 AM

Quote:

Originally Posted by HowlingWulf (Post 15865878)
I've been using TDO Mini Forms but I'd like to see this plugin as well. Are you going to publish it anywhere Fris?

what it basically does is when making a post you attach an image, and in your post you enter [shareit] and it will display the image, plus the linking codes to embed, link, etc

no need to insert image into the post, [shareit] displays it so you dont have to put <img src html codes in your post.

also you can style the way its outputted via the shareit.css file.

stickyfingerz 05-21-2009 08:09 AM

Quote:

Originally Posted by fris (Post 15866953)
what it basically does is when making a post you attach an image, and in your post you enter [shareit] and it will display the image, plus the linking codes to embed, link, etc

no need to insert image into the post, [shareit] displays it so you dont have to put <img src html codes in your post.

also you can style the way its outputted via the shareit.css file.

Its a great plugin. Super easy and handy. :thumbsup


All times are GMT -7. The time now is 04:10 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc