Simple Machines Community Forum

Customizing SMF => Tips and Tricks => Thema gestartet von: brandonroy in Januar 24, 2009, 11:20:16 NACHMITTAGS

Titel: [TIP/TRICK] Tinypic Image Upload Popup on Post/Reply Page
Beitrag von: brandonroy in Januar 24, 2009, 11:20:16 NACHMITTAGS
I disabled all attachments on board because the only thing my members upload are images. So instead of using my space on my server, I decided to let members use tinypic without ever leaving the post page! When users click the button that says "upload image" a popup shows with an upload form. Then gives them the bbcode to insert the image in their message.



Step 1: Download the attached html file at the bottom of this post.

Step 2: Upload that html file to a folder of your choice on your server (I use my root. Example: mysite.com/tinypic.html)

Step 3: Download the attached image button at the bottom of this post.

Step 4: Upload the image button to whatever image folder on your site that you want.

Open /Themes/YourTheme/Post.template.php

Find:

echo '
</td>
</tr>';
}

// Now start printing all of the smileys.
if (!empty($context['smileys']['postform']))


Add before:

echo '&nbsp;&nbsp;<a onclick="window.open(\'URL FOR YOUR TINYPIC HTML FILE HERE\',\'POPUP\',\'width=280,height=540,scrollbars=0\');return false;" href="#"><img src="URL FOR THE IMAGE BUTTON HERE" border="0"></a>';


Don't forget to update the above code with your own URL's for tinypic.html and for your image button! It should create a nice popup on the post page, and your users never have to leave your site to host an image.


Screenshots:

(http://i39.tinypic.com/65og2h.gif)


(http://i44.tinypic.com/2wp4cgk.gif)


(http://i39.tinypic.com/2dl273l.gif)
Titel: Re: [TIP/TRICK] Tinypic Image Upload Popup on Post/Reply Page
Beitrag von: Marcus Forsberg in Januar 25, 2009, 04:44:23 VORMITTAG
Pretty nice tip :)
Do you want me to move this to Tips and Tricks (http://www.simplemachines.org/community/index.php?board=72.0)?
Titel: Re: [TIP/TRICK] Tinypic Image Upload Popup on Post/Reply Page
Beitrag von: brandonroy in Januar 25, 2009, 04:45:58 VORMITTAG
Zitat von: Nas in Januar 25, 2009, 04:44:23 VORMITTAG
Pretty nice tip :)
Do you want me to move this to Tips and Tricks (http://www.simplemachines.org/community/index.php?board=72.0)?

Be my guest!
:)
Titel: Re: [TIP/TRICK] Tinypic Image Upload Popup on Post/Reply Page
Beitrag von: djstew in Januar 25, 2009, 10:02:38 VORMITTAG
i have to say, it does work. thanks you.
Titel: Re: [TIP/TRICK] Tinypic Image Upload Popup on Post/Reply Page
Beitrag von: enjoy1985 in Januar 25, 2009, 10:22:21 NACHMITTAGS
Pretty nice tip
thanks you.
Titel: Re: [TIP/TRICK] Tinypic Image Upload Popup on Post/Reply Page
Beitrag von: Özgür in Januar 31, 2009, 02:25:43 NACHMITTAGS
Thank you, i translate and share (with your name) my language board. http://www.simplemachines.org/community/index.php?topic=289634.0. is this np?
Titel: Re: [TIP/TRICK] Tinypic Image Upload Popup on Post/Reply Page
Beitrag von: brandonroy in Januar 31, 2009, 06:09:21 NACHMITTAGS
Zitat von: Özgür´ in Januar 31, 2009, 02:25:43 NACHMITTAGS
Thank you, i translate and share (with your name) my language board. http://www.simplemachines.org/community/index.php?topic=289634.0. is this np?

That's cool. no problem :)
Titel: Re: [TIP/TRICK] Tinypic Image Upload Popup on Post/Reply Page
Beitrag von: edi67 in Februar 01, 2009, 02:22:08 NACHMITTAGS
simply great i love this
Titel: Re: [TIP/TRICK] Tinypic Image Upload Popup on Post/Reply Page
Beitrag von: SwapsRulez in Februar 01, 2009, 10:27:36 NACHMITTAGS
Hell Yeah!!! You rock buddy, everything is working fine. Any chance of automatically inserting the code after upload. :P
Titel: Re: [TIP/TRICK] Tinypic Image Upload Popup on Post/Reply Page
Beitrag von: Jessikard in Februar 26, 2009, 07:14:08 NACHMITTAGS
works fine
Zitat von: SwapsRulez in Februar 01, 2009, 10:27:36 NACHMITTAGS
Hell Yeah!!! You rock buddy, everything is working fine. Any chance of automatically inserting the code after upload. :P
this would be very tricky - i hope for it
Titel: Re: [TIP/TRICK] Tinypic Image Upload Popup on Post/Reply Page
Beitrag von: 4Kstore in März 01, 2009, 03:44:19 NACHMITTAGS
Thanks!!! i translate (with credits) in spanish board.
http://www.simplemachines.org/community/index.php?topic=296442.0

Baiis!
Titel: Re: [TIP/TRICK] Tinypic Image Upload Popup on Post/Reply Page
Beitrag von: DakOon in März 02, 2009, 12:58:47 VORMITTAG
thanks  for  sharing  tips  here
Titel: Re: [TIP/TRICK] Tinypic Image Upload Popup on Post/Reply Page
Beitrag von: NHWD in März 02, 2009, 01:11:46 VORMITTAG
very useful thanks a lot!
Titel: Re: [TIP/TRICK] Tinypic Image Upload Popup on Post/Reply Page
Beitrag von: gift_ka in März 05, 2009, 01:34:45 VORMITTAG
It's work. thx
Titel: Re: [TIP/TRICK] Tinypic Image Upload Popup on Post/Reply Page
Beitrag von: JBlaze in April 24, 2009, 07:55:01 NACHMITTAGS
Very nice brandonroy.
Titel: Re: [TIP/TRICK] Tinypic Image Upload Popup on Post/Reply Page
Beitrag von: tooman in Mai 18, 2009, 12:06:55 NACHMITTAGS
gud job :)

i have used :)

many thank brandonroy :)
Titel: Re: [TIP/TRICK] Tinypic Image Upload Popup on Post/Reply Page
Beitrag von: visagoo in Mai 31, 2009, 11:18:55 NACHMITTAGS
thanks brandonroy it very useful.
Titel: Re: [TIP/TRICK] Tinypic Image Upload Popup on Post/Reply Page
Beitrag von: demonsmasher in Juni 30, 2009, 02:40:55 NACHMITTAGS
Where is the post.template at?
Titel: Re: [TIP/TRICK] Tinypic Image Upload Popup on Post/Reply Page
Beitrag von: tooman in Juni 30, 2009, 08:05:43 NACHMITTAGS
hi demonsmasher, tinypic mod is available in mod site, search it
Titel: Re: [TIP/TRICK] Tinypic Image Upload Popup on Post/Reply Page
Beitrag von: demonsmasher in Juni 30, 2009, 08:17:52 NACHMITTAGS
thanks.

I found the post. temp.
Titel: Re: [TIP/TRICK] Tinypic Image Upload Popup on Post/Reply Page
Beitrag von: tooman in Juli 01, 2009, 06:32:42 VORMITTAG
nice :D
Titel: Re: [TIP/TRICK] Tinypic Image Upload Popup on Post/Reply Page
Beitrag von: gbsothere in Juli 02, 2009, 07:56:05 VORMITTAG
Is this different than the TinyPic mod mentioned on the thread below?

I posted this concern on the thread for that mod here:

http://www.simplemachines.org/community/index.php?topic=314047.msg2139031#msg2139031 (http://www.simplemachines.org/community/index.php?topic=314047.msg2139031#msg2139031)

but the threadstarter seems to have abandoned the thread.   

If I use your downloads and coding, do I need to remove that TinyPic mod, first and will using your version eliminate the issue seen on the two screenshots I've posted on the thread I referenced above?

Thanks to brandonroy or to anyone else who can answer this. 

Titel: Re: [TIP/TRICK] Tinypic Image Upload Popup on Post/Reply Page
Beitrag von: brandonroy in Juli 02, 2009, 03:18:11 NACHMITTAGS
gbsothere, I don't know about that other Tinypic mod and I haven't seen it in action - But you shouldn't have a problem with my version!

If you do use mine, there's no need for the one you have installed, so uninstall it if you do!
Titel: Re: [TIP/TRICK] Tinypic Image Upload Popup on Post/Reply Page
Beitrag von: gbsothere in Juli 02, 2009, 05:03:48 NACHMITTAGS
Zitat von: brandonroy in Juli 02, 2009, 03:18:11 NACHMITTAGS
gbsothere, I don't know about that other Tinypic mod and I haven't seen it in action - But you shouldn't have a problem with my version!

If you do use mine, there's no need for the one you have installed, so uninstall it if you do!



Thanks so much, brandonroy.  The other one is a bit glitchy (as you might have seen on that link I gave) and I believe that yours might just be the fix I'm looking for. 

*off to make it happen*

Thanks, again.

Titel: Re: [TIP/TRICK] Tinypic Image Upload Popup on Post/Reply Page
Beitrag von: gbsothere in Juli 02, 2009, 05:57:59 NACHMITTAGS
It works great, brandonroy, so much less problematic than the one I had.  Thanks!  :)
Titel: Re: [TIP/TRICK] Tinypic Image Upload Popup on Post/Reply Page
Beitrag von: Shadow1243 in Juli 05, 2009, 10:49:11 VORMITTAG
Any chance of automatically inserting the code after upload?
Titel: Re: [TIP/TRICK] Tinypic Image Upload Popup on Post/Reply Page
Beitrag von: 1Chope in Juli 06, 2009, 06:39:49 VORMITTAG
Zitat von: Shadow1243 in Juli 05, 2009, 10:49:11 VORMITTAG
Any chance of automatically inserting the code after upload?

Yeah It will be better,
Any Chance?
Titel: Re: [TIP/TRICK] Tinypic Image Upload Popup on Post/Reply Page
Beitrag von: jGEE in Juli 11, 2009, 09:02:29 NACHMITTAGS
i'm new at this and kinda confused... Please help: where did i go wrong. i am using SMF 1.1.9. thank you joe  :'(

echo '<img src="', $settings['images_url'], '/bbc/divider.gif" alt="|" style="margin: 0 3px 0 3px;" />';
            $found_button = false;
         }
      }
        echo '&nbsp;&nbsp;<a onclick="window.open(\'http://hotrodgossip.org/tinypic.html\',\'POPUP\',\'width=280,height=540,scrollbars=0\');return false;" href="#"><img src="http://hotrodgossip.org/memberimages/uploadimage.gif" border="0"></a>';
      echo '
            </td>
         </tr>';
   }

   // Now start printing all of the smileys.
   if (!empty($context['smileys']['postform']))
Titel: Re: [TIP/TRICK] Tinypic Image Upload Popup on Post/Reply Page
Beitrag von: gbsothere in Juli 12, 2009, 09:08:36 VORMITTAG
Joe, I don't see your forum showing up in your links, just your main link.  For instance, if your forum directory is "smf" then that first link should be 'http://hotrodgossip.org/smf/tinypic.html\ and, again, if your forum directory is "smf" and say, for instance, you're using the default theme, then the next link to your image will be
<img src="http://hotrodgossip.org/smf/Themes/default/images/uploadimage.gif"

tinypic.html should be placed in smf's root directory, not hotrodgossips.org's root directory and your link should point to that.  uploadimage.gif should be placed in your theme's image folder and the link should point to that.  And, of course, Post.template.php should be put in your theme's directory.

Example:  smf---->tinypic.html
Example:  smf---->Themes--->default---->images---->uploadimage.gif
Example:  smf---->Themes---->default---->Post.template.php

(You'd have to change all that to the name of your forum's directory if it's not "smf" and to your own theme if it's not "default".)

Do you not have your forum in separate directory (like smf)?
Titel: Re: [TIP/TRICK] Tinypic Image Upload Popup on Post/Reply Page
Beitrag von: jGEE in Juli 12, 2009, 11:01:43 VORMITTAG
gbsothere -thank you very much!
I have a lot to learn but it is fun when i make a ton of mistakes then wyolla~ it works, lol.
I appreciate your help and will post back the results. I'm going to give it a shot! thanks again joe  :)
Titel: Re: [TIP/TRICK] Tinypic Image Upload Popup on Post/Reply Page
Beitrag von: jGEE in Juli 12, 2009, 01:29:24 NACHMITTAGS
Sorry for being such a putz but it would be nice if i could this this mod on my forum. I think i have everything in the correct place but the image button does not show in the post box. Maybe i didnot post the php code in the correct place???
i would appreciate any additional help







Titel: Re: [TIP/TRICK] Tinypic Image Upload Popup on Post/Reply Page
Beitrag von: gbsothere in Juli 12, 2009, 04:30:56 NACHMITTAGS
I'm sitting here staring at it, Joe and it looks as if everything's exactly where it should be.  Your links look good, your tinypic.html is in smf's root directory, Post.template.php looks parsed correctly and is in the default folder, uploadimage.gif is in default's images folder.   *stumped* 

Here is the link for your image and, as you can see, it's there:

http://hotrodgossip.org/simplemachinesforum/Themes/default/images/uploadimage.gif (http://hotrodgossip.org/simplemachinesforum/Themes/default/images/uploadimage.gif)

This is what it looks like in the reply area (different forums look different, but the image, itself, looks like this): 


I would suggest completely clearing the cache in your browser or even trying it in a different browser to see if that changes anything.  If not, then, hopefully, someone will come by with an "aha!" moment.    I hope this is resolved for you, Joe, because it really is a good mod and your posters will enjoy it.




Titel: Re: [TIP/TRICK] Tinypic Image Upload Popup on Post/Reply Page
Beitrag von: jGEE in Juli 12, 2009, 04:55:00 NACHMITTAGS
gbsothere i appreciate your help. Normally i use Firefox, so i tried IE -the button is just not there maybe the mod does not work with version 1.1.9.

i can paste the http://hotrodgossip.org/simplemachinesforum/tinypic.html in my browser and up comes the Tinypic box, even uploads a pic and the code works in a post -the mod just doesn't show up in my forum.

thank you again, joe

Anyone else have and solutions or reason why i can't get this mod to work?
Titel: Re: [TIP/TRICK] Tinypic Image Upload Popup on Post/Reply Page
Beitrag von: gbsothere in Juli 12, 2009, 05:16:10 NACHMITTAGS
I have 1.1.9., Joe, and it works well for me....   I tell you, I'm really stumped.  It may end up being something so obvious that we'll both feel like dummies.  *grin*

The parsing looks fine to me.  Unless you have other mods that use Post.template.php and may be interfering, I can't think why it wouldn't work.  You might get a fresh copy of Post.template.php from the default folder of the smf zip that you downloaded when you installed your forum (or upgraded to 1.1.9) and try the parse again on a clean file, then upload it to your Theme/default folder to see if that makes a difference.

Normally, I'd ask if you tried the Package Manager to install it, but this is simply a coding tip that brandonroy supplied, it didn't come with a zip file.

Good luck with it, Joe!
Titel: Re: [TIP/TRICK] Tinypic Image Upload Popup on Post/Reply Page
Beitrag von: Wariors of Fate in Juli 24, 2009, 04:31:28 VORMITTAG
Thanks and it does work in smf 1.1.10.

I have edited as you say. So it should work with 1.1.9 version. You can see mine working at: http://www.liveatdhaka.com

Though I placed the button image in the tp-image folder, but if one can input the path correctly in the post template, then it should work for all versions of SMF .

A great feature would be if user could select various host to host the image. I think you understand not only tinypic.com but others like imageshack and etc.

Again thanks for a nice and great idea.
Titel: Re: [TIP/TRICK] Tinypic Image Upload Popup on Post/Reply Page
Beitrag von: jani01 in Juli 24, 2009, 11:03:13 VORMITTAG
nice and simply great
Titel: Re: [TIP/TRICK] Tinypic Image Upload Popup on Post/Reply Page
Beitrag von: gbsothere in September 09, 2009, 09:33:43 VORMITTAG
I've found a way to make this work with RC1.2, although I don't like where the button is landing so if someone smarter than I would show me where to make a better choice, that would be great.   :)

In RC1.2, Themes/Post.template.php I found:

{
echo '
<tr>
<td align="right"></td>
<td valign="middle">
', template_control_richedit($context['post_box_name'], 'bbc'), '
</td>
</tr>';



And added AFTER:

echo '&nbsp;&nbsp;<a onclick="window.open(\'URL FOR YOUR TINYPIC HTML FILE HERE\',\'POPUP\',\'width=280,height=540,scrollbars=0\');return false;" href="#"><img src="URL FOR THE IMAGE BUTTON HERE" border="0"></a>';



The button is landing up at the top left of the BBC field, just above "Subject": but, hey, it works.   :D


Titel: Re: [TIP/TRICK] Tinypic Image Upload Popup on Post/Reply Page
Beitrag von: Tyrsson in September 23, 2009, 08:34:34 VORMITTAG
Any update on this?
Titel: Re: [TIP/TRICK] Tinypic Image Upload Popup on Post/Reply Page
Beitrag von: gbsothere in September 23, 2009, 09:10:24 VORMITTAG
No.  I've been waiting on you to get here.   :D
Titel: Re: [TIP/TRICK] Tinypic Image Upload Popup on Post/Reply Page
Beitrag von: Tyrsson in September 29, 2009, 02:50:59 NACHMITTAGS
Can you screenshot the button placement?
Titel: Re: [TIP/TRICK] Tinypic Image Upload Popup on Post/Reply Page
Beitrag von: gbsothere in September 29, 2009, 03:14:20 NACHMITTAGS
Sure, and thanks!

In 1.1.10, the Upload button is placed just to the right of the BBC buttons and just above the smilies:




But in 2.x, it's located above the subject line.  I can live with it, but others may prefer it to be similar to 1.1.10.  Try as I might, I can't seem to land it there. 





Titel: Re: [TIP/TRICK] Tinypic Image Upload Popup on Post/Reply Page
Beitrag von: Tyrsson in September 29, 2009, 05:04:52 NACHMITTAGS
Ok, if you will post all the edits you are using then I can try to test it out and see if can come up with a fix. I know some of the edits may already be in this topic but I have a lot going on today and it will be easier to answer your question if I get the exact edits you have made for this (including any mods you may have installed along with this to add this to the forum).
Titel: Re: [TIP/TRICK] Tinypic Image Upload Popup on Post/Reply Page
Beitrag von: gbsothere in September 29, 2009, 06:32:08 NACHMITTAGS
Thanks for checking it out, Tyrsson and absolutely no hurry, at all.   :)

In RC1.2, Themes/Post.template.php I found:

{
echo '
<tr>
<td align="right"></td>
<td valign="middle">
', template_control_richedit($context['post_box_name'], 'bbc'), '
</td>
</tr>';



And added AFTER:

echo '&nbsp;&nbsp;<a onclick="window.open(\'URL FOR YOUR TINYPIC HTML FILE HERE\',\'POPUP\',\'width=280,height=540,scrollbars=0\');return false;" href="#"><img src="URL FOR THE IMAGE BUTTON HERE" border="0"></a>';

(I placed my own url for the tinypic.html file and the image in this code.)

On the first page/post of this thread, there is also the tinypic.html file to place in the forum's root and the uploadimage.gif to put in Themes/(theme)/images.  (I use default). 

Most of these mods were added after this TinyPic Tip but none of them use the Post.template.php.

Titel: Re: [TIP/TRICK] Tinypic Image Upload Popup on Post/Reply Page
Beitrag von: bombasa in November 03, 2009, 02:39:56 NACHMITTAGS
First of all i would like to thank the author of this trick ;) and gbsothere for porting it to smf 2.0

I think i did fix it on smf 2.0 RC1.2 :

In Post.template.php :

Find :

{
echo '
<tr>
<td align="right"></td>
<td valign="middle">
', template_control_richedit($context['post_box_name'], 'bbc'), '
</td>
</tr>';
}


And add after :

{
echo '
<tr>
<td align="right"></td>
<td valign="middle">
<a onclick="window.open(\'URL OF TINYPIC.HTML\',\'POPUP\',\'width=280,height=540,scrollbars=0\');return false;" href="#"><img src="URL OF THE GIF HERE" border="0"></a></td>
</tr>';
}


Titel: Re: [TIP/TRICK] Tinypic Image Upload Popup on Post/Reply Page
Beitrag von: gbsothere in November 05, 2009, 05:42:50 NACHMITTAGS
bombasa, it works beautifully and thanks so much for posting it.

:)


(Note for new viewers:  Bombasa's code is for 2.0.  The code for 1.x is found on the first post but the code alone isn't enough, you must download the attached tinypic.html file and uploadimage.gif.)
Titel: Re: [TIP/TRICK] Tinypic Image Upload Popup on Post/Reply Page
Beitrag von: DaBoss48 in November 09, 2009, 03:51:17 VORMITTAG
I added this like bombasa showed but only his is for 2.0 RC1.2 and I am on RC2. It works on RC2 only problem is that the button is placed right next to the Post and Preview buttons. I am wondering if somebody can fix it so the button can be right next to the smileys again? Thank You!
Titel: Re: [TIP/TRICK] Tinypic Image Upload Popup on Post/Reply Page
Beitrag von: jani01 in November 09, 2009, 08:42:34 VORMITTAG
really great effort.

thanks for this.
Titel: Re: [TIP/TRICK] Tinypic Image Upload Popup on Post/Reply Page
Beitrag von: DaBoss48 in November 10, 2009, 10:38:31 NACHMITTAGS
Does anybody know how to make this work for 2.0 RC2? Please if you do then please tell us  :)
Titel: Re: [TIP/TRICK] Tinypic Image Upload Popup on Post/Reply Page
Beitrag von: bombasa in November 30, 2009, 11:05:10 VORMITTAG
Finally !!! I did it !

I managed to get it working with the help of this awsome MOD (http://custom.simplemachines.org/mods/index.php?mod=1862)

Well to apply the hack on 2.0 RC2, you should do the following :

Find : /Themes/default/GenericControls.template.php

Find :

<textarea class="editor" name="', $editor_id, '" id="', $editor_id, '" rows="', $editor_context['rows'], '" cols="', $editor_context['columns'], '" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);" onchange="storeCaret(this);" tabindex="', $context['tabindex']++, '" style="', $context['browser']['is_ie8'] ? 'max-width: ' . $editor_context['width'] . '; min-width: ' . $editor_context['width'] : 'width: ' . $editor_context['width'], '; height: ', $editor_context['height'], ';', isset($context['post_error']['no_message']) || isset($context['post_error']['long_message']) ? 'border: 1px solid red;' : '', '">', $editor_context['value'], '</textarea>

Add after :

<div>
<a onclick="window.open(\'url of html file\',\'POPUP\',\'width=280,height=540,scrollbars=0\');return false;" href="#"><img src="url of img file" border="0">
</div>


It should work

Edit : the new code position should prevent the popup window from being accessed while you click on the text area.
Titel: Re: [TIP/TRICK] Tinypic Image Upload Popup on Post/Reply Page
Beitrag von: Joker™ in Dezember 06, 2009, 01:52:27 VORMITTAG
Zitat von: bombasa in November 30, 2009, 11:05:10 VORMITTAG
Finally !!! I did it !

I managed to get it working with the help of this awsome MOD (http://custom.simplemachines.org/mods/index.php?mod=1862)

Well to apply the hack on 2.0 RC2, you should do the following :

Find : /Themes/default/GenericControls.template.php

Find :

<textarea class="editor" name="', $editor_id, '" id="', $editor_id, '" rows="', $editor_context['rows'], '" cols="', $editor_context['columns'], '" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);" onchange="storeCaret(this);" tabindex="', $context['tabindex']++, '" style="', $context['browser']['is_ie8'] ? 'max-width: ' . $editor_context['width'] . '; min-width: ' . $editor_context['width'] : 'width: ' . $editor_context['width'], '; height: ', $editor_context['height'], ';', isset($context['post_error']['no_message']) || isset($context['post_error']['long_message']) ? 'border: 1px solid red;' : '', '">', $editor_context['value'], '</textarea>

Add after :

<div>
<a onclick="window.open(\'url of html file\',\'POPUP\',\'width=280,height=540,scrollbars=0\');return false;" href="#"><img src="url of img file" border="0">
</div>


It should work

Edit : the new code position should prevent the popup window from being accessed while you click on the text area.


bro can u tell where will the button will appear to upload pics ?
Titel: Re: [TIP/TRICK] Tinypic Image Upload Popup on Post/Reply Page
Beitrag von: bombasa in Dezember 06, 2009, 10:26:07 VORMITTAG
It should be like that



This is still a temporary fix, if anyone has a better one, he can post it there.
Titel: Re: [TIP/TRICK] Tinypic Image Upload Popup on Post/Reply Page
Beitrag von: Joker™ in Dezember 06, 2009, 10:38:10 VORMITTAG
bro no such icon for me


Titel: Re: [TIP/TRICK] Tinypic Image Upload Popup on Post/Reply Page
Beitrag von: bombasa in Dezember 06, 2009, 04:39:51 NACHMITTAGS
You should upload the uploadimage.gif and tinypic.html from the first post : http://www.simplemachines.org/community/index.php?topic=288169.msg1894568#msg1894568 to your host then change the "url of html file" and "url of img file" with the current address of these files.
Titel: Re: [TIP/TRICK] Tinypic Image Upload Popup on Post/Reply Page
Beitrag von: Joker™ in Dezember 06, 2009, 11:29:19 NACHMITTAGS
it worked .... thank you  :D thanx alot  :)
Titel: Re: [TIP/TRICK] Tinypic Image Upload Popup on Post/Reply Page
Beitrag von: Joker™ in Dezember 07, 2009, 01:49:57 VORMITTAG
i just found a bug ...... after implementing this site is unable to send pm's to users ...

plz see the pic below


Titel: Re: [TIP/TRICK] Tinypic Image Upload Popup on Post/Reply Page
Beitrag von: Joker™ in Dezember 08, 2009, 04:56:31 VORMITTAG
bump  ::)
Titel: Re: [TIP/TRICK] Tinypic Image Upload Popup on Post/Reply Page
Beitrag von: Joker™ in Dezember 12, 2009, 01:57:06 VORMITTAG
Zitat von: sid2varun in Dezember 07, 2009, 01:49:57 VORMITTAG
i just found a bug ...... after implementing this site is unable to send pm's to users ...

plz see the pic below





hasn't anyone faced the prob as i have faced ???
Titel: Re: [TIP/TRICK] Tinypic Image Upload Popup on Post/Reply Page
Beitrag von: Mayhem30 in Dezember 12, 2009, 11:41:53 NACHMITTAGS
Is it possible to modify the code so we can control what "resize" options are available to the users?
Titel: Re: [TIP/TRICK] Tinypic Image Upload Popup on Post/Reply Page
Beitrag von: Shadow1243 in Januar 24, 2010, 01:47:09 NACHMITTAGS
Still working?
Titel: Re: [TIP/TRICK] Tinypic Image Upload Popup on Post/Reply Page
Beitrag von: Joker™ in Februar 05, 2010, 07:51:23 VORMITTAG
Made it working at last  ;D

open

/themes/default/post.template.php

Find:

// Finally, the submit buttons.


Add Before:

echo '<div>
      <a onclick="window.open(\'url of html file\',\'POPUP\',\'width=280,height=540,scrollbars=0\');return false;" href="#"><img

src="url of img file" border="0"></a>
</div>';


http://www.simplemachines.org/community/index.php?topic=288169.msg1894568#msg1894568 << get images from 1st post

i've tested on RC2 Default curve theme n its working absolutely fine ....

i check Private message problem also n it's also vanished ;)
Titel: Re: [TIP/TRICK] Tinypic Image Upload Popup on Post/Reply Page
Beitrag von: Joker™ in Februar 06, 2010, 02:49:59 NACHMITTAGS
like in tinypicu must have pic on ur pc to be uploaded

but on imageshack site there is option to give them any image link on web ... they will upload it themselves n give u imageshack link .....

so u dont have to do extra work to save the pic to ur pc first n then upload ....

Hope i was able to express myself this time properly ...

so i want imagehack.us instead of tinypic.com

for that i got 2 scripts also

http://ezbitz.com/tag/imageshack/
http://elliottback.com/wp/using-the-imageshack-xml-api/

i tried to use Ist site script in html file
n second one in js file

but nothing worked n im all confused right now...

can some one tell me a nice elaborated solution for this...

thanx in advance ;)
Titel: Re: [TIP/TRICK] Tinypic Image Upload Popup on Post/Reply Page
Beitrag von: Dharshan in August 02, 2010, 07:33:16 VORMITTAG
bookmark!
Titel: Re: [TIP/TRICK] Tinypic Image Upload Popup on Post/Reply Page
Beitrag von: Masterd in August 02, 2010, 10:35:57 VORMITTAG
How can I integrate this into a quick reply?
Titel: Re: [TIP/TRICK] Tinypic Image Upload Popup on Post/Reply Page
Beitrag von: ɔɔɔɔɔɔuɥoɾ in August 02, 2010, 12:30:31 NACHMITTAGS
Just noticed this, I will use, thanks
Titel: Re: [TIP/TRICK] Tinypic Image Upload Popup on Post/Reply Page
Beitrag von: Dharshan in August 04, 2010, 03:53:15 VORMITTAG
Thank you.... This is great!

i just love it. "Simplicity is technology" yeah as Joker said can we have this changed to Imageshack...

but i can live with this
Titel: Re: [TIP/TRICK] Tinypic Image Upload Popup on Post/Reply Page
Beitrag von: Joker™ in August 04, 2010, 03:55:59 VORMITTAG
working on imageshack thing these days ;) , hope one day can get it working
Titel: Re: [TIP/TRICK] Tinypic Image Upload Popup on Post/Reply Page
Beitrag von: Rik© in August 04, 2010, 04:29:46 VORMITTAG
Zitat von: Joker™ in August 04, 2010, 03:55:59 VORMITTAG
working on imageshack thing these days ;) , hope one day can get it working

Check my Simple ImageShack mod
http://custom.simplemachines.org/mods/index.php?mod=134

The upcoming v4 will also feature 'auto-insert/insert-at-cursor', mark image private and resize.

-Rik©

ps transloading will be added too in due time...
Titel: Re: [TIP/TRICK] Tinypic Image Upload Popup on Post/Reply Page
Beitrag von: Dharshan in August 04, 2010, 04:33:00 VORMITTAG
Joker™ Great. thanks.

got this working on my SMF 1.1.11 and SMF 2 RC3

had the PM prob and fixed it too...

will see if we could put this into a mod in future.

if you need any help lemme know
Titel: Re: [TIP/TRICK] Tinypic Image Upload Popup on Post/Reply Page
Beitrag von: ascaland in August 05, 2010, 11:41:28 NACHMITTAGS
This is a great tip, well done.
Titel: Re: [TIP/TRICK] Tinypic Image Upload Popup on Post/Reply Page
Beitrag von: Dharshan in August 06, 2010, 12:07:25 VORMITTAG
Zitat von: Rik© in August 04, 2010, 04:29:46 VORMITTAG
Zitat von: Joker™ in August 04, 2010, 03:55:59 VORMITTAG
working on imageshack thing these days ;) , hope one day can get it working

Check my Simple ImageShack mod
http://custom.simplemachines.org/mods/index.php?mod=134

The upcoming v4 will also feature 'auto-insert/insert-at-cursor', mark image private and resize.

-Rik©

ps transloading will be added too in due time...

hey Rik,

Nice mod. a suggestion :), remove all those other links and make it present only the forum code, so that it would be really easy for users, and also if u could make it auto insert the code that would be very nice.

cheers!

PS: i have a server error displayed when trying to use this mod. may be it clashes with other mods.
Titel: Re: [TIP/TRICK] Tinypic Image Upload Popup on Post/Reply Page
Beitrag von: Rik© in August 06, 2010, 03:49:55 VORMITTAG
Zitat von: Dharshan in August 06, 2010, 12:07:25 VORMITTAG
hey Rik,

Nice mod. a suggestion :), remove all those other links and make it present only the forum code, so that it would be really easy for users, and also if u could make it auto insert the code that would be very nice.

cheers!

PS: i have a server error displayed when trying to use this mod. may be it clashes with other mods.
Which error? (error log)
Check the sis folder permission, should be 755....

-Rik©

ps With SIS4 you can select which 'links' to show.
Titel: Re: [TIP/TRICK] Tinypic Image Upload Popup on Post/Reply Page
Beitrag von: dimspace in April 23, 2013, 12:15:06 NACHMITTAGS
Zitat von: Joker™ in Februar 05, 2010, 07:51:23 VORMITTAG
Made it working at last  ;D

open

/themes/default/post.template.php

Find:

// Finally, the submit buttons.


Add Before:

echo '<div>
      <a onclick="window.open(\'url of html file\',\'POPUP\',\'width=280,height=540,scrollbars=0\');return false;" href="#"><img

src="url of img file" border="0"></a>
</div>';


http://www.simplemachines.org/community/index.php?topic=288169.msg1894568#msg1894568 << get images from 1st post

i've tested on RC2 Default curve theme n its working absolutely fine ....

i check Private message problem also n it's also vanished ;)

works grand in 2.0.3

slightly funkier button  for those that like funky
Titel: Re: [TIP/TRICK] Tinypic Image Upload Popup on Post/Reply Page
Beitrag von: foropimiento in April 23, 2014, 03:51:36 VORMITTAG
still working  ;D

It would be possible to upload the images to a specific user account? So do not be delete in the future

Thank you
Titel: Re: [TIP/TRICK] Tinypic Image Upload Popup on Post/Reply Page
Beitrag von: Ninja ZX-10RR in April 28, 2014, 09:29:04 NACHMITTAGS
Zitat von: foropimiento in April 23, 2014, 03:51:36 VORMITTAG
still working  ;D

It would be possible to upload the images to a specific user account? So do not be delete in the future

Thank you
P.s.: Actually no need of editing files manually.. Just install this mod (http://custom.simplemachines.org/mods/index.php?mod=1862) that does the same thing without even opening another tab, it uses a javascript function and it still works on my smf 2.0.7
Titel: Re: [TIP/TRICK] Tinypic Image Upload Popup on Post/Reply Page
Beitrag von: engrz in Mai 12, 2016, 08:23:32 VORMITTAG
Post.template.php is not available in the template im using. for example: vVide by webtiryaki

how to edit in this template?