edit the file phUploader.php and change the following lines to match your site...
Code: Select all
an example would be exactly what i use for here as follows...
//The name of your website
$websitename="";
// Full browser accessable URL to where files are accessed. With trailing slash.
$full_url="";
// Path to store files on your server If this fails use $fullpath below. With trailing slash.
$folder="";
Code: Select all
the css will need to be modified if you want things to look different for your site...
//The name of your website
$websitename="Live Members Only chat image uploader";
// Full browser accessable URL to where files are accessed. With trailing slash.
$full_url="http://www.livemembersonly.com/images/imageuploads/";
// Path to store files on your server If this fails use $fullpath below. With trailing slash.
$folder="./images/imageuploads/";
Code: Select all
after you have made the proper changes for your site, upload that file to your forum root.<style type="text/css">
body{
background: #000000;
font-family: Verdana, Arial, sans-serif;
font-size: 12pt;
text-align:center;
color: #CCCCCC;
}
.message {
font-family: Verdana, Arial, sans-serif;
font-size: 11pt;
color: #000000;
background-color:#669999;
}
a:link, a:visited {
text-decoration:none;
color: #F40000;
}
a:hover {
text-decoration:none;
color: #ffffff;
}
.table {
border-collapse:collapse;
border:1px solid #000000;
width:450px;
}
.table_header {
border:1px solid #000000;
background: #434343;
font-family: Verdana, Arial, sans-serif;
font-size: 11pt;
font-weight:bold;
color: #ffffff;
text-align:center;
padding:2px;
}
.upload_info {
border:1px solid #000000;
background: #CCCCCC;
font-family: Verdana, Arial, sans-serif;
font-size: 8pt;
color: #000000;
padding:4px;
}
.table_body {
border:1px solid #000000;
background: #CCCCCC;
font-family: Verdana, Arial, sans-serif;
font-size: 10pt;
color: #000000;
padding:2px;
}
.table_footer {
border:1px solid #000000;
background: #434343;
text-align:center;
padding:2px;
}
input,select,textarea {
font-family: Verdana, Arial, sans-serif;
font-size: 10pt;
color: #000000;
background: #ffffff;
border:1px solid #000000;
}
.copyright {
border:0px;
font-family: Verdana, Arial, sans-serif;
font-size: 9pt;
color: #CCCCCC;
text-align:right;
}
.copyright > a{
text-decoration:none;
color:#CCCCCC;
}
form {
padding:0px;
margin:0px;
}
</style>
next, you have to create the proper bbcode to work with it as it does here...
HS bbcode...
BBCode usage
Code: Select all
HTML replacement
[hsimg]{URL}[/hsimg]
Code: Select all
Help line
<div class="highslide-gallery">
<a href="{URL}" class="highslide" onclick="return hs.expand(this, { wrapperClassName: 'controls-in-heading', slideshowGroup: 'highslide' })"><img src="{URL}" alt="1" title="Click to enlarge" style="max-width:50px; max-height:30px;" /></a><div class="highslide-heading"></div>
</div>
Code: Select all
check Display on posting page and then submit.Highslide Img: [hsimg]link to image[/hsimg]
youtubeHS bbcode...
BBCode usage
Code: Select all
HTML replacement
[youtubehs]{IDENTIFIER}[/youtubehs]
Code: Select all
Help line
<a href="http://www.youtube.com/embed/{IDENTIFIER}?rel=0&wmode=transparent" onclick="return hs.htmlExpand(this, {align: 'center', objectType: 'iframe', width: 480, height: 385, allowSizeReduction: false, wrapperClassName: 'draggable-header no-footer', preserveContent: false, objectLoadTime: 'after'})" class="highslide"><img style="width: 50px; height: 25px; border:1px solid black;" alt="YouTube Video" src="http://i.ytimg.com/vi/{IDENTIFIER}/default.jpg" /></a>
Code: Select all
check Display on posting page and then submit.YouTube Highslide: [youtubehs]YouTube Video ID[/youtubehs]
next, add highslide to the chat extension as follows...
unzip highslide.zip and copy that folder to ext/spaceace/ajaxchat/
next is to add the button to chat...
open, ext/spaceace/ajaxchat/styles/your style/template/chat_body_input_full.html
find
Code: Select all
add before
<input type="button" class="button" onclick="popup('{FILENAME}/archive', 1000, 565); return false;" value="{{ lang('CHAT_ARCHIVE') }}" title="{{ lang('CHAT_ARCHIVE_EXPLAIN') }}" />
Code: Select all
save and upload changes and purge the board cache.<input type="button" class="button" onclick="popup('./phUploader.php', 550, 400); return false;" value="Image" title="Upload your images directly to this chat">
this should work as posted but if it doesn't, please let me know and i will do what i can to help