[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!
Get Involved
Locked
User avatar
Sunka
Registered User
Posts: 566
Joined: Wed Mar 26, 2008 2:48 pm
Location: Croatia, Zvoneca
Contact:

[DEV]Image Hosting Sites in Reply

Post by Sunka » Wed Oct 15, 2008 7:32 am

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.
www.pijanitvor.com

Gardening & Fishing - If you want, I will open english subforum for you ==> send me PM here ||

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 » Wed Oct 22, 2008 6:27 am

I would be interested.

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

Re: [DEV]Image Hosting Sites in Replay

Post by Sunka » Wed Oct 22, 2008 9:50 am

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.
www.pijanitvor.com

Gardening & Fishing - If you want, I will open english subforum for you ==> send me PM here ||

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 » Mon Oct 27, 2008 12:17 am

Cheers man, i will check it out, and comment on it.
Sexy mod man :?

User avatar
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 » Wed Oct 29, 2008 4:45 am

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
Contact:

Re: [DEV]Image Hosting Sites in Replay

Post by Sunka » Wed Oct 29, 2008 8:02 am

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...
www.pijanitvor.com

Gardening & Fishing - If you want, I will open english subforum for you ==> send me PM here ||

trigger33
Registered User
Posts: 4
Joined: Wed Mar 19, 2008 9:28 pm

Re: [DEV]Image Hosting Sites in Reply

Post by trigger33 » Tue Nov 18, 2008 9:19 am

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
Contact:

Re: [DEV]Image Hosting Sites in Reply

Post by Sunka » Tue Nov 18, 2008 9:30 am

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:
www.pijanitvor.com

Gardening & Fishing - If you want, I will open english subforum for you ==> send me PM here ||

Locked

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

Who is online

Users browsing this forum: No registered users and 39 guests