Advertisement:

Author Topic: [TIP/TRICK] Tinypic Image Upload Popup on Post/Reply Page  (Read 100336 times)

Offline tooman

  • Full Member
  • ***
  • Posts: 488
  • Gender: Male
  • kakikukaku
    • Pantai Utara Forum
Re: [TIP/TRICK] Tinypic Image Upload Popup on Post/Reply Page
« Reply #20 on: July 01, 2009, 06:32:42 AM »
nice :D

Offline gbsothere

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,780
  • I'm a Pappy!
Re: [TIP/TRICK] Tinypic Image Upload Popup on Post/Reply Page
« Reply #21 on: July 02, 2009, 07:56:05 AM »
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

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. 

My apologies, but I am taking a break from accepting PM requests for support.  If I am not currently assisting you, please do not ask as long as this notice is posted.  Thank you.
I Don't Want To Grow Old Alone

It has been proven that Steely Dan reduces the occurrence of road rage, according to an independent study.


A reminder about admin / ftp passwords etc.

Offline brandonroy

  • Jr. Member
  • **
  • Posts: 166
  • Gender: Male
    • Brandon
Re: [TIP/TRICK] Tinypic Image Upload Popup on Post/Reply Page
« Reply #22 on: July 02, 2009, 03:18:11 PM »
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!

Offline gbsothere

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,780
  • I'm a Pappy!
Re: [TIP/TRICK] Tinypic Image Upload Popup on Post/Reply Page
« Reply #23 on: July 02, 2009, 05:03:48 PM »
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.

My apologies, but I am taking a break from accepting PM requests for support.  If I am not currently assisting you, please do not ask as long as this notice is posted.  Thank you.
I Don't Want To Grow Old Alone

It has been proven that Steely Dan reduces the occurrence of road rage, according to an independent study.


A reminder about admin / ftp passwords etc.

Offline gbsothere

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,780
  • I'm a Pappy!
Re: [TIP/TRICK] Tinypic Image Upload Popup on Post/Reply Page
« Reply #24 on: July 02, 2009, 05:57:59 PM »
It works great, brandonroy, so much less problematic than the one I had.  Thanks!  :)
My apologies, but I am taking a break from accepting PM requests for support.  If I am not currently assisting you, please do not ask as long as this notice is posted.  Thank you.
I Don't Want To Grow Old Alone

It has been proven that Steely Dan reduces the occurrence of road rage, according to an independent study.


A reminder about admin / ftp passwords etc.

Offline Shadow1243

  • Semi-Newbie
  • *
  • Posts: 76
  • Gender: Male
    • DoktorTR.Net - Tıp Sitesi
Re: [TIP/TRICK] Tinypic Image Upload Popup on Post/Reply Page
« Reply #25 on: July 05, 2009, 10:49:11 AM »
Any chance of automatically inserting the code after upload?

Offline 1Chope

  • Jr. Member
  • **
  • Posts: 155
  • Gender: Male
    • GoBiafra Forums
Re: [TIP/TRICK] Tinypic Image Upload Popup on Post/Reply Page
« Reply #26 on: July 06, 2009, 06:39:49 AM »
Any chance of automatically inserting the code after upload?

Yeah It will be better,
Any Chance?

Offline jGEE

  • Newbie
  • *
  • Posts: 4
Re: [TIP/TRICK] Tinypic Image Upload Popup on Post/Reply Page
« Reply #27 on: July 11, 2009, 09:02:29 PM »
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(\'hxxp:hotrodgossip.org/tinypic.html\',\'POPUP\',\'width=280,height=540,scrollbars=0\');return [nonactive] false;" href="#"><img src="hxxp:hotrodgossip.org/memberimages/uploadimage.gif [nonactive]" border="0"></a>';
      echo '
            </td>
         </tr>';
   }

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

Offline gbsothere

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,780
  • I'm a Pappy!
Re: [TIP/TRICK] Tinypic Image Upload Popup on Post/Reply Page
« Reply #28 on: July 12, 2009, 09:08:36 AM »
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)?
« Last Edit: July 12, 2009, 09:14:07 AM by gbsothere »
My apologies, but I am taking a break from accepting PM requests for support.  If I am not currently assisting you, please do not ask as long as this notice is posted.  Thank you.
I Don't Want To Grow Old Alone

It has been proven that Steely Dan reduces the occurrence of road rage, according to an independent study.


A reminder about admin / ftp passwords etc.

Offline jGEE

  • Newbie
  • *
  • Posts: 4
Re: [TIP/TRICK] Tinypic Image Upload Popup on Post/Reply Page
« Reply #29 on: July 12, 2009, 11:01:43 AM »
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  :)

Offline jGEE

  • Newbie
  • *
  • Posts: 4
Re: [TIP/TRICK] Tinypic Image Upload Popup on Post/Reply Page
« Reply #30 on: July 12, 2009, 01:29:24 PM »
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








Offline gbsothere

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,780
  • I'm a Pappy!
Re: [TIP/TRICK] Tinypic Image Upload Popup on Post/Reply Page
« Reply #31 on: July 12, 2009, 04:30:56 PM »
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

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.




My apologies, but I am taking a break from accepting PM requests for support.  If I am not currently assisting you, please do not ask as long as this notice is posted.  Thank you.
I Don't Want To Grow Old Alone

It has been proven that Steely Dan reduces the occurrence of road rage, according to an independent study.


A reminder about admin / ftp passwords etc.

Offline jGEE

  • Newbie
  • *
  • Posts: 4
Re: [TIP/TRICK] Tinypic Image Upload Popup on Post/Reply Page
« Reply #32 on: July 12, 2009, 04:55:00 PM »
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 hxxp:hotrodgossip.org/simplemachinesforum/tinypic.html [nonactive] 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?

Offline gbsothere

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,780
  • I'm a Pappy!
Re: [TIP/TRICK] Tinypic Image Upload Popup on Post/Reply Page
« Reply #33 on: July 12, 2009, 05:16:10 PM »
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!
« Last Edit: July 12, 2009, 07:16:43 PM by gbsothere »
My apologies, but I am taking a break from accepting PM requests for support.  If I am not currently assisting you, please do not ask as long as this notice is posted.  Thank you.
I Don't Want To Grow Old Alone

It has been proven that Steely Dan reduces the occurrence of road rage, according to an independent study.


A reminder about admin / ftp passwords etc.

Offline Wariors of Fate

  • Newbie
  • *
  • Posts: 3
Re: [TIP/TRICK] Tinypic Image Upload Popup on Post/Reply Page
« Reply #34 on: July 24, 2009, 04:31:28 AM »
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: hxxp:www.liveatdhaka.com [nonactive]

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.

Offline jani01

  • Jr. Member
  • **
  • Posts: 100
    • Pakistan Biggest MP3 songs Portal
Re: [TIP/TRICK] Tinypic Image Upload Popup on Post/Reply Page
« Reply #35 on: July 24, 2009, 11:03:13 AM »
nice and simply great

Offline gbsothere

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,780
  • I'm a Pappy!
Re: [TIP/TRICK] Tinypic Image Upload Popup on Post/Reply Page
« Reply #36 on: September 09, 2009, 09:33:43 AM »
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:

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


And added AFTER:

Code: [Select]
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


My apologies, but I am taking a break from accepting PM requests for support.  If I am not currently assisting you, please do not ask as long as this notice is posted.  Thank you.
I Don't Want To Grow Old Alone

It has been proven that Steely Dan reduces the occurrence of road rage, according to an independent study.


A reminder about admin / ftp passwords etc.

Offline Joey Smith™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 6,356
  • Gender: Male
Re: [TIP/TRICK] Tinypic Image Upload Popup on Post/Reply Page
« Reply #37 on: September 23, 2009, 08:34:34 AM »
Any update on this?

Offline gbsothere

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,780
  • I'm a Pappy!
Re: [TIP/TRICK] Tinypic Image Upload Popup on Post/Reply Page
« Reply #38 on: September 23, 2009, 09:10:24 AM »
No.  I've been waiting on you to get here.   :D
My apologies, but I am taking a break from accepting PM requests for support.  If I am not currently assisting you, please do not ask as long as this notice is posted.  Thank you.
I Don't Want To Grow Old Alone

It has been proven that Steely Dan reduces the occurrence of road rage, according to an independent study.


A reminder about admin / ftp passwords etc.

Offline Joey Smith™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 6,356
  • Gender: Male
Re: [TIP/TRICK] Tinypic Image Upload Popup on Post/Reply Page
« Reply #39 on: September 29, 2009, 02:50:59 PM »
Can you screenshot the button placement?