Hope ur weekend is going well...
here is a link that I found....
I'm trying to do something like that....just adding an extra input box in the form...
but its not working out....
Its simple and the instructions are for setting it up on the Flashback Forum index page, but you could put this anywhere on your site using any skin with a little know how.
I might make templates for the other Jamroom default skins if I see an interest in it.
Hope You Enjoy It!
great initiative but i cant seem to have this work for my Proton2 template.
I change every instance of flashback to Proton 2 and uploaded all files to my proton2 folder but nothing showed up.
Can someone please help to tell me what else i need to do?
Thanks.
Joined: 08 Oct 2004
Posts: 6639
Location: Tornado Alley!
Posted: 01/04/10 15:40
mixy:
great initiative but i cant seem to have this work for my Proton2 template.
I change every instance of flashback to Proton 2 and uploaded all files to my proton2 folder but nothing showed up.
Can someone please help to tell me what else i need to do?
Thanks.
Nothing's showing up on the site yet.Or do you mean the files i edited?
Sorry am asking too many questions but i dont understand what you want me to show you.
I followed ur instructions on adding the codes to the cfg and css files.Although i could find the
Code
{include file="$SKIN_DIR/jr_overall_header.tpl"}
in the proton 2 template.
I also changed nova to proton2 in the following shout files
Code
{* load some defaults from our config file *}
{config_load file="`$SKIN_DIR`/Proton2.cfg"}
{* bring in our language strings *}
{jr_lang_prepare skin="Proton2" default="en-US"}
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html dir="{jr_lang id="direction" default="ltr"}">
<head>
<title>{$system_name}: Shout Box!</title>
<meta http-equiv="Content-Type" content="text/html; charset={jr_lang id="charset" default="utf-8"}">
<meta http-equiv="Content-Language" content="{jr_lang id="name" default="en-US"}">
<meta name="description" content="{$meta_description}">
<meta name="keywords" content="{$meta_keywords}">
<meta name="designer" content="Talldude Networks, LLC.">
<meta name="generator" content="Jamroom {$version}">
<link href="{$JAMROOM_URL}/skins/Proton2/Proton2.css" type="text/css" rel="stylesheet" media="screen">
<script type="text/javascript" language="javascript" src="{$JAMROOM_URL}/include/js/jamroom_javascript.inc.js"></script>
{* Google analytics *}
{jr_google_analytics page=$title}
{literal}
<script language="javascript">
<!--
function vaultpop(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=650,height=600,left = 50,top = 50');");
}
//-->
</script>
{/literal}
{literal}
<script TYPE="text/javascript">
<!--
function targetopener(mylink, closeme, closeonly)
{
if (! (window.focus && window.opener))return true;
window.opener.focus();
if (! closeonly)window.opener.location.href=mylink.href;
if (closeme)window.close();
return false;
}
//-->
</script>
{/literal}
</head>
<body style="padding:15px 10px 10px 10px;">
<div class="title">Your Shout!</div>
<div class="body_2">
<table width="100%" cellpadding="0" cellspacing="0" border="0" align="center">
{if isset($SUCCESS_TEXT)}
<tr>
<td width="100%" style="text-align:center;">
<h2>» {$SUCCESS_TEXT}</h2>
</td>
</tr>
<tr>
<td width="100%" style="text-align:center;">
<br />
Use the close button below to close this window and refresh the shout box.
</td>
</tr>
{/if}
<tr>
<td width="100%" style="text-align:center;">
<a name="form"></a>
<form name="comment" method="post" action="{$JAMROOM_URL}/comment.php?mode=save_comment">
<input type="hidden" name="band_id" value="{$smarty.config.block_shoutbox_id}">
<input type="hidden" name="type" value="artist">
<input type="hidden" name="tpl_dir" value="skin">
<input type="hidden" name="skin" value="Proton2">
<input type="hidden" name="template" value="shout_comment.tpl">
{* we need to check and see if a login is required to post a new review/comment - if it is, show the visitor a message to indicate so *}
{if $member_login_comment == 'yes' && strlen($_USER.user_nickname) === 0}
<h2>» <a href="{$JAMROOM_URL}/login.php" onClick="return targetopener(this,true)"><u>{jr_lang id="61" default="you must be logged in to post an entry"}</u></a></h2>
{* if the user is already logged in to the system, we do not need to show everything, since
we can get that information from the users profile *}
{if strlen($_USER.user_nickname) === 0}
{jr_lang id="54" default="email address"}:<br />
<input type="text" name="c_email" value="{$c_email}" class="jform input"><br />
{jr_lang id="62" default="your name"}:<br />
<input type="text" name="c_nick" value="{$c_nick}" class="jform input"><br />
{jr_lang id="63" default="your comment"}:<br />
<textarea name="c_body" class="jform">{$c_body}</textarea><br /><br />
{jr_form_captcha width="250" height="80"}<br /><br />
{jr_lang id="55" default="enter the 5 digit validation code from the image"}:<br />
<input type="text" name="captcha_code" class="jform input" style="width:245px"><br />
{else}
<textarea name="c_body" class="jform">{$c_body}</textarea><br />
{/if}
<br /><input type="submit" value="Shout!" class="jform button">
<input type="reset" value="Reset" class="jform button">
<a href="{$JAMROOM_URL}/forum.php?band_id=0" onClick="return targetopener(this,true)"><img src="{$SKIN_URL}/images/shout_close_button.png" style="vertical-align:middle;margin-bottom:3px;"></a>
</form>
{/if}
</td>
</tr>
</table>
</div>
{literal}
<script language="JavaScript1.2">
if (iens6)
document.write('</div></div>')
</script>
{/literal}
{literal}
<script language="JavaScript1.2">
if (iens6){
var crossobj=document.getElementById? document.getElementById("content") : document.all.content
var contentheight=crossobj.offsetHeight
}
else if (ns4){
var crossobj=document.nscontainer.document.nscontent
var contentheight=crossobj.clip.height
}
function movedown(){
if (iens6&&parseInt(crossobj.style.top)>=(contentheight*(-1)+100))
crossobj.style.top=parseInt(crossobj.style.top)-speed+"px"
else if (ns4&&crossobj.top>=(contentheight*(-1)+100))
crossobj.top-=speed
movedownvar=setTimeout("movedown()",20)
}
function moveup(){
if (iens6&&parseInt(crossobj.style.top)<=0)
crossobj.style.top=parseInt(crossobj.style.top)+speed+"px"
else if (ns4&&crossobj.top<=0)
crossobj.top+=speed
moveupvar=setTimeout("moveup()",20)
}
function getcontent_height(){
if (iens6)
contentheight=crossobj.offsetHeight
else if (ns4)
document.nscontainer.document.nscontent.visibility="show"
}
window.onload=getcontent_height
</script>
{/literal}
</td>
</tr>
i uploaded all files into my proton2 folder.[/code]
Joined: 08 Oct 2004
Posts: 6639
Location: Tornado Alley!
Posted: 01/05/10 08:41
Do you have a link to the page?
I can tell you that you'll want to go through the templates and change the class parameters to use the Proton2 CSS classes. I don't have a copy of Proton2 so I can't tell you what to change them to.
Just thought i should ask this question,is there any code that i need to place on the template for it to show on the page?Because all i did was install.
Thank you