[DEV]Image Hosting Sites in Reply

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment!
Scam Warning
Locked
User avatar
Sunka
Registered User
Posts: 566
Joined: Wed Mar 26, 2008 2:48 pm
Location: Croatia, Zvoneca

[DEV]Image Hosting Sites in Reply

Post by Sunka »

Hi to all :mrgreen:
My first little modification.

Link for Photobucket and TinyPic in Reply body, with opening in Popup window.
Full costumize for your needs (color of links, popup width & hight...)
Need code from Photobucket and TinyPic, or use default one (like in screenshots)
Add on for this quick reply too.

Screenshots:
If someone interested, I will post how to do it, but I suspect that this MOD will ever be released because I do not know how to create MODX file :mrgreen:
Last edited by Sunka on Wed Oct 29, 2008 8:03 am, edited 2 times in total.
User avatar
MrMontana
Registered User
Posts: 86
Joined: Wed Sep 03, 2008 7:14 am

Re: [DEV]Image Hosting Sites in Replay

Post by MrMontana »

I would be interested.
User avatar
Sunka
Registered User
Posts: 566
Joined: Wed Mar 26, 2008 2:48 pm
Location: Croatia, Zvoneca

Re: [DEV]Image Hosting Sites in Replay

Post by Sunka »

OK, here we go...
  • Go HERE to create your own Photobucket plug-in code, and also HERE for TinyPic plug-in code

    Or you can just use mine (just change web page address (www.pijanitvor.com/forum) in Photobucket code to fit your web page address, but it is not important :mrgreen: )...

    Paste code in notepad++ and save it both (or just one that you want) like .html file.
    Use this name for saving html files: photobucket.html and tinypic.html

    Photobucket code:

    Code: Select all

    <html>
    <head>
    </head>
    <body>
    <iframe name="plugin" src="http://photobucket.com/plugin?width=200&height=350&largeThumb=&pbaffsite=www.pijanitvor.com/forum&bg=%23cfecec&border=true&bordercolor=%23006600&url=&linkType=img&textcolor=%23006600&linkcolor=%23333399&media=image&btntxt=&searchenabled=false&searchlinkcolor=&searchbgcolor=" bgcolor="transparent" width="220" height="380" frameborder="0" scrolling="no"></iframe>
    </body>
    </html>
    TinyPic code:

    Code: Select all

    <html>
    <head>
    </head>
    <body>
    <script type="text/javascript">
    tinypic_layout = 'narrow';
    tinypic_type = 'images';
    tinypic_links = 'forum';
    tinypic_language = 'en';
    tinypic_search = 'false';
    tinypic_autoload = true;
    </script>
    <script src="http://plugin.tinypic.com/j/plugin.js" type="text/javascript"></script>
    </body>
    </html>
  • Put this html files in your forum/styles/"your template name"/template
  • OPEN

    forum/styles/"your template name"/template/posting_editor.html

    FIND

    Code: Select all

    <!-- INCLUDE attributes.html -->	
    	<!-- INCLUDE posting_buttons.html -->
    
    	<div id="smiley-box">
    		<!-- IF S_SMILIES_ALLOWED and .smiley -->
    			<strong>{L_SMILIES}</strong><br />
    			<!-- BEGIN smiley -->
    ADD BEFORE

    Code: Select all

    <a href="{T_TEMPLATE_PATH}/tinypic.html" onclick="popup(this.href, 270, 290); return false;"><b><font color="#6600CC">TinyPic</font></b></a>   &bull;   <a href="{T_TEMPLATE_PATH}/photobucket.html" onclick="popup(this.href, 236, 374); return false;"><b><font color="#fc3c00">Photobucket</font></b></a>
  • If you want to see it in quick reply MOD too, do it this:
  • OPEN

    forum/styles/"your template name"/template/quick_reply.html

    FIND

    Code: Select all

    <!-- INCLUDE posting_buttons.html -->
    
    		<div id="smiley-box">
    			<!-- IF S_SMILIES_ALLOWED and .smiley -->
    				<strong>{L_SMILIES}</strong><br />
    				<!-- BEGIN smiley -->
    ADD BEFORE

    Code: Select all

    <a href="{T_TEMPLATE_PATH}/tinypic.html" onclick="popup(this.href, 270, 290); return false;"><b><font color="#6600CC">TinyPic</font></b></a>   &bull;   <a href="{T_TEMPLATE_PATH}/photobucket.html" onclick="popup(this.href, 236, 374); return false;"><b><font color="#fc3c00">Photobucket</font></b></a>
  • Go to ACP of your forum...Purge cache, and refresh style template, and then go to your forum and refresh browser cache (CTRL + F5)

    ---------------------------------------------------------------------------------------------------------------------------------
  • You can change width and high of pop up window in code to fit your style: popup(this.href, 236, 374)
  • You can change font color in code to fit your style: <font color="#fc3c00">
  • If you want just Photobucket put just this code:

    Code: Select all

    <a href="{T_TEMPLATE_PATH}/photobucket.html" onclick="popup(this.href, 236, 374); return false;"><b><font color="#fc3c00">Photobucket</font></b></a>
    And if you want only TinyPic, put just this code:

    Code: Select all

    <a href="{T_TEMPLATE_PATH}/tinypic.html" onclick="popup(this.href, 270, 290); return false;"><b><font color="#6600CC">TinyPic</font></b></a>
__________________________________________________________________________________________

I hope this is help you...

Please comment :mrgreen:
Last edited by Sunka on Wed Oct 29, 2008 8:03 am, edited 1 time in total.
User avatar
MrMontana
Registered User
Posts: 86
Joined: Wed Sep 03, 2008 7:14 am

Re: [DEV]Image Hosting Sites in Replay

Post by MrMontana »

Cheers man, i will check it out, and comment on it.
Sexy mod man :?
Anyasha
Registered User
Posts: 704
Joined: Mon Aug 07, 2006 4:02 am
Name: Anyasha

Re: [DEV]Image Hosting Sites in Replay

Post by Anyasha »

Don't you mean "reply" instead of "replay"? :?
Kiss me, I'm Polish!
User avatar
Sunka
Registered User
Posts: 566
Joined: Wed Mar 26, 2008 2:48 pm
Location: Croatia, Zvoneca

Re: [DEV]Image Hosting Sites in Replay

Post by Sunka »

Yes, reply...my english is not so good
Shame one me...but I try, oh My God, I try so hard :mrgreen:
Thanks for leting me know...
trigger33
Registered User
Posts: 4
Joined: Wed Mar 19, 2008 9:28 pm

Re: [DEV]Image Hosting Sites in Reply

Post by trigger33 »

hej sunko

i am trying to implement this idea of yours into my site, but....i am using subsilver2 style and there is no posting_editor.html file in my styles template folder....

help pls
User avatar
Sunka
Registered User
Posts: 566
Joined: Wed Mar 26, 2008 2:48 pm
Location: Croatia, Zvoneca

Re: [DEV]Image Hosting Sites in Reply

Post by Sunka »

I am using only prosilver, I do not know subsilver...
But, this is so small modification, that I think somebody with just a little knowledge about programming will know how to do it with subsilver...
If somebody knows, let write solution here for everybody else. :mrgreen:
Locked

Return to “[3.0.x] MODs in Development”