[Aphrodite] Simple Image Upload

Specific instructions on how to apply certain mods to certain styles.

Moderator: Moderators

[Aphrodite] Simple Image Upload

Postby MrBass on Fri Aug 26, 2005 8:38 am

Simple change to CyberAliens Simple Image Upload mod to fit in with the Aphrodite style.

Rather than adding a link below the message body box it adds a button to the existing bbCode buttons.

Code: Select all
#
#-----[ OPEN ]----------------------------------------------
#
templates/ca_aphrodite/posting_body.tpl

#
#-----[ FIND ]----------------------------------------------
#
w_help = "{L_BBCODE_W_HELP}";

#
#-----[ AFTER, ADD ]----------------------------------------
#
g_help = "Upload image to PostImage.org and add to message (alt+g)";

#
#-----[ FIND ]----------------------------------------------
#
         <td><span class="genmed">
           <input type="button" class="button" accesskey="w" name="addbbcode16" value="URL" style="text-decoration: underline; width: 40px" onClick="bbstyle(16)" onMouseOver="helpline('w')" />
           </span></td>

#
#-----[ AFTER, ADD ]----------------------------------------
#
         <td><span class="genmed">
           <input type="button" class="button" accesskey="g" value="Remote Img" style="width: 100px" onClick="window.open('http://www.postimage.org/index.php?mode=phpbb&tpl=.&forumurl=' + escape(document.location.href), '_imagehost', 'resizable=yes,width=500,height=400');return false;" onMouseOver="helpline('g')" />
           </span></td>

#
#-----[ FIND ]----------------------------------------------
#
         <td colspan="9">
           <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td><span class="genmed button"> &nbsp;{L_FONT_COLOR}:

#
#-----[ REPLACE WITH ]--------------------------------------
#
         <td colspan="10">
           <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td><span class="genmed button"> &nbsp;{L_FONT_COLOR}:

#
#-----[ FIND ]----------------------------------------------
#
         <td colspan="9"><input type="text" name="helpbox" size="45" maxlength="100" style="width:450px; font-size:10px" class="helpline" value="{L_STYLES_TIP}" readonly="readonly" /></td>

#
#-----[ REPLACE WITH ]--------------------------------------
#
         <td colspan="10"><input type="text" name="helpbox" size="45" maxlength="100" style="width:450px; font-size:10px" class="helpline" value="{L_STYLES_TIP}" readonly="readonly" /></td>

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
MrBass
The heart has reasons that reason cannot know. --Pascal

Pete's Place | Pete's Forum
Latest MOD: File Upload Manager Installation guide coming soon...
User avatar
MrBass
Moderator
Moderator
 
Posts: 711
Joined: Thu Feb 17, 2005 2:06 pm
Location: Pete's Place

Postby Bicet on Mon Sep 05, 2005 4:50 pm

Really nice integration!
User avatar
Bicet
Coder
Coder
 
Posts: 247
Joined: Mon Nov 15, 2004 7:50 pm

Postby Mikey Bee on Mon Apr 10, 2006 9:36 pm

What should I call the file and which directory should it go into?

Cheers,

Mike
Mikey Bee
Registered User
Registered User
 
Posts: 61
Joined: Tue Jan 31, 2006 10:54 am

Postby DooBDee on Mon Apr 10, 2006 9:40 pm

Hello,

What do you mean, which file?

If you are referring to addform.html

Create file "addform.html" in your forum root directory and put this code in it (click on "download" link in code header to download it)

[code filename=addform.html]<html>
<head>
</head>
<body>
<script language="javascript" type="text/javascript">
<!--
function add_code()
{
var text = unescape(document.location.search.substring(1));
opener.document.forms['post'].message.value = opener.document.forms['post'].message.value + text;
opener.focus();
window.close();
}
add_code();
//-->
</script>
</body>
</html> [/code]
DooBDee
Website Ninja
DooBDee.net
User avatar
DooBDee
Moderator
Moderator
 
Posts: 3530
Joined: Tue Mar 01, 2005 6:28 pm
Location: DooBDee.net

Postby Mikey Bee on Mon Apr 10, 2006 9:59 pm

Hi,

I've already got the simple image upload feature installed so was wondering where the code change from Mr Bass comes in to play.

Mike
Mikey Bee
Registered User
Registered User
 
Posts: 61
Joined: Tue Jan 31, 2006 10:54 am

Postby DooBDee on Mon Apr 10, 2006 10:02 pm

Hello,

It is located in the first instruction as posted by MrBass

Code: Select all

#-----[ OPEN ]---------------------------------------------- 

templates/ca_aphrodite/posting_body.tpl 
DooBDee
Website Ninja
DooBDee.net
User avatar
DooBDee
Moderator
Moderator
 
Posts: 3530
Joined: Tue Mar 01, 2005 6:28 pm
Location: DooBDee.net

Postby Mikey Bee on Mon Apr 10, 2006 10:09 pm

Having a bad hair day. Sorry :(

Thanks for your help. I shall return back to under the newbie stone that I came from and will never trouble you again. Until the next time ;)
Mikey Bee
Registered User
Registered User
 
Posts: 61
Joined: Tue Jan 31, 2006 10:54 am

I need some modifications to upload images to my server

Postby rewlie on Sat Apr 15, 2006 10:15 am

Hello there,

I like the mods a lot, decent, but I want to change the upload location to my own server, since I'm not noob enough to edit the code, here i am asking for help from you guys the expert, i know it's possible but i dont know what the code is, can someone show me the code please??
as always, newbie :)
rewlie
Registered User
Registered User
 
Posts: 1
Joined: Sat Apr 15, 2006 10:07 am

Postby DooBDee on Sat Apr 15, 2006 10:47 am

Hello,

Uploading images to your own server wont actually be possible with this MOD. You will be looking to install this MOD: http://www.phpbb.com/phpBB/viewtopic.php?t=74505
DooBDee
Website Ninja
DooBDee.net
User avatar
DooBDee
Moderator
Moderator
 
Posts: 3530
Joined: Tue Mar 01, 2005 6:28 pm
Location: DooBDee.net

good

Postby Gossioii0 on Fri Apr 17, 2009 2:36 pm

I feel good that there are people like you too. Thanks for this great weblog of yours. Its surely going to get me to go to higher places!
Gossioii0
Registered User
Registered User
 
Posts: 3
Joined: Mon Mar 09, 2009 6:23 am


Return to How to mod some styles

Who is online

Users browsing this forum: No registered users and 2 guests

cron