Jump to content

ObsessBlue Template


in2tech

Recommended Posts

I downloaded it direct from FSPaintShop and installed and I am missing parts of the template!

Here is the one I am working on:

Jets VA Obsess

And here is the original I found:

Obsess Original

I am missing the menu dark backgrounds! I have compared the images folder and don't see any difference from the original!

Thanks!

Never mind it was the style sheet that came with the FSPaintShop version. Once I uploaded the original style sheet and changed the reference in header.tpl everything showed up properly. I just enjoy editing phpVMS templates every now and then!

Link to comment
Share on other sites

I can not Register a new pilot. Also the Capcha numbers to add are not showing up at all! Acts like a dead link as nothing happens at all! Here is the code:

<div class="mcright">

<div class="mc01">

<div class="mc0101" style="left: 0px; top: 0px">

<img class="r0101" src="<?php echo SITE_URL?>/lib/skins/ObsessBlue/image/img_150.jpg" alt="" />

<img class="r0102" src="<?php echo SITE_URL?>/lib/skins/ObsessBlue/image/img_153.jpg" alt="" />

<img class="r0103" src="<?php echo SITE_URL?>/lib/skins/ObsessBlue/image/img_202.jpg" alt="" />

<img class="r0104" src="<?php echo SITE_URL?>/lib/skins/ObsessBlue/image/img_205.jpg" alt="" />

<div class="mcr">

<div class="mcr01">

New Pilot Registration

</div>

<div class="mcr02">

<script type="text/javascript">

// Highlighter Scroller II script- By JavaScript Kit (http://www.javascriptkit.com)

// For this and over 400+ free scripts, visit http://www.javascriptkit.com/

// This notice must stay intact

//CONFIGURE MESSAGES AND VARIABLES

var tickercontents=new Array()

tickercontents[0]='Feel free to visit FsPaintShop for more skins <a href="http://www.fspaintshop.com" target="blank">Visit!</a>'

tickercontents[1]='Hop on over to Va Central some time.'

tickercontents[2]='Be sure to visit PHPVMS for support with this system'

tickercontents[3]='You can change this in the frontpage_main.tpl file'

var tickerwidth="300px"

var tickerheight="25px"

var fontcss="font: bold 10px Verdana; color:black"

var tickdelay=4000 //delay btw messages

var highlightspeed=2 //2 pixels at a time.

var highlightcolor="white"

var backdroptextcolor="#E1E1E1"

////Do not edit pass this line////////////////

document.write('<style>#highlighterbg a{color:'+backdroptextcolor+'}</style>')

document.write('<div style="position:relative;left:0px;top:0px; width:'+tickerwidth+'; height:'+tickerheight+';'+fontcss+'">')

document.write('<span id="highlighterbg" style="position:absolute;left:0;top:0;color:'+backdroptextcolor+'; width:'+tickerwidth+'; height:'+tickerheight+';padding: 4px"></span><span id="highlighter" style="position:absolute;left:0;top:0;clip:rect(auto auto auto 0px); background-color:'+highlightcolor+'; width:'+tickerwidth+';height:'+tickerheight+';padding: 4px"></span>')

document.write('</div>')

var currentmessage=0

var clipbottom=1

function changetickercontent(){

msgheight=clipbottom=crosstick.offsetHeight

crosstick.style.clip="rect("+msgheight+"px auto auto 0px)"

crosstickbg.innerHTML=tickercontents[currentmessage]

crosstick.innerHTML=tickercontents[currentmessage]

highlightmsg()

}

function highlightmsg(){

//var msgheight=crosstick.offsetHeight

if (clipbottom>0){

clipbottom-=highlightspeed

crosstick.style.clip="rect("+clipbottom+"px auto auto 0px)"

beginclip=setTimeout("highlightmsg()",20)

}

else{

clipbottom=msgheight

clearTimeout(beginclip)

if (currentmessage==tickercontents.length-1) currentmessage=0

else currentmessage++

setTimeout("changetickercontent()",tickdelay)

}

}

function start_ticking(){

crosstickbg=document.getElementById? document.getElementById("highlighterbg") : document.all.highlighterbg

crosstick=document.getElementById? document.getElementById("highlighter") : document.all.highlighter

crosstickParent=crosstick.parentNode? crosstick.parentNode : crosstick.parentElement

if (parseInt(crosstick.offsetHeight)>0)

crosstickParent.style.height=crosstick.offsetHeight+'px'

else

setTimeout("crosstickParent.style.height=crosstick.offsetHeight+'px'",100) //delay for Mozilla's sake

changetickercontent()

}

if (document.all || document.getElementById)

window.onload=start_ticking

</script>

</div>

</div>

</div>

<div class="mc0102">

<img class="r0101" src="<?php echo SITE_URL?>/lib/skins/ObsessBlue/image/img_155.jpg" alt="" />

<img class="r0102" src="<?php echo SITE_URL?>/lib/skins/ObsessBlue/image/img_157.jpg" alt="" />

<img class="r0103" src="<?php echo SITE_URL?>/lib/skins/ObsessBlue/image/img_207.jpg" alt="" />

<img class="r0104" src="<?php echo SITE_URL?>/lib/skins/ObsessBlue/image/img_209.jpg" alt="" />

<div class="mcl">

<div class="mcl01">

About Registration

</div>

<div class="mcl02">

Please complete all fields for correct registration.

</div>

</div>

</div>

</div>

<div class="mc02">

<div class="mc0201">

Application

</div>

<div class="mc0202" style="width: 18px; height: 15px">

 

</div>

<div class="mc0203">

<div class="mc020301">

<p>Welcome to the registration form for <?php echo SITE_NAME; ?>. After you register, you will be notified by a staff member about your membership.</p>

<form method="post" action="<?php echo url('/registration');?>">

<dl>

<dt>First Name: *</dt>

<dd><input type="text" name="firstname" value="<?php echo Vars::POST('firstname');?>" />

<?php

if($firstname_error == true)

echo '<p class="error">Please enter your first name</p>';

?>

</dd>

<dt>Last Name: *</dt>

<dd><input type="text" name="lastname" value="<?php echo Vars::POST('lastname');?>" />

<?php

if($lastname_error == true)

echo '<p class="error">Please enter your last name</p>';

?>

</dd>

<dt>Email Address: *</dt>

<dd><input type="text" name="email" value="<?php echo Vars::POST('email');?>" />

<?php

if($email_error == true)

echo '<p class="error">Please enter your email address</p>';

?>

</dd>

<dt>Select Airline: *</dt>

<dd>

<select name="code" id="code">

<?php

foreach($allairlines as $airline)

{

echo '<option value="'.$airline->code.'">'.$airline->code.' - '.$airline->name.'</option>';

}

?>

</select>

</dd>

<dt>Hub: *</dt>

<dd>

<select name="hub" id="hub">

<?php

foreach($allhubs as $hub)

{

echo '<option value="'.$hub->icao.'">'.$hub->icao.' - ' . $hub->name .'</option>';

}

?>

</select>

</dd>

<dt>Location: *</dt>

<dd><select name="location">

<?php

foreach($countries as $countryCode=>$countryName)

{

if(Vars::POST('location') == $countryCode)

$sel = 'selected="selected"';

else

$sel = '';

echo '<option value="'.$countryCode.'" '.$sel.'>'.$countryName.'</option>';

}

?>

</select>

<?php

if($location_error == true)

echo '<p class="error">Please enter your location</p>';

?>

</dd>

<dt>Password: *</dt>

<dd><input id="password" type="password" name="password1" value="" /></dd>

<dt>Enter your password again: *</dt>

<dd><input type="password" name="password2" value="" />

<?php

if($password_error != '')

echo '<p class="error">'.$password_error.'</p>';

?>

</dd>

<?php

//Put this in a seperate template. Shows the Custom Fields for registration

Template::Show('registration_customfields.tpl');

?>

<dt>What does this add up to? <?php echo $rand1 .' + '.$rand2?></dt>

<dd><input id="password" type="captcha" name="captcha" value="" />

<?php

if($captcha_error != '')

echo '<p class="error">'.$captcha_error.'</p>';

?>

</dd>

<dt></dt>

<dd><p>By clicking register, you're agreeing to the terms and conditions</p></dd>

<dt></dt>

<dd><input type="submit" name="submit" value="Register!" /></dd>

</dl>

</form>

</div>

</div>

</div>

</div>

</div>

</div>

Link to comment
Share on other sites

  • Administrators

Looks Like you are using phpvms version 2.0 or higher and a template designed for 1.0, The registration template has changed and no longer uses the captcha addition method, it now uses recaptcha. You will need to update some of the templates to the newer version.

Link to comment
Share on other sites

  • 3 weeks later...

I can not Register a new pilot. Also the Capcha numbers to add are not showing up at all! Acts like a dead link as nothing happens at all! Here is the code:

<div class="mcright">

<div class="mc01">

<div class="mc0101" style="left: 0px; top: 0px">

<img class="r0101" src="<?php echo SITE_URL?>/lib/skins/ObsessBlue/image/img_150.jpg" alt="" />

<img class="r0102" src="<?php echo SITE_URL?>/lib/skins/ObsessBlue/image/img_153.jpg" alt="" />

<img class="r0103" src="<?php echo SITE_URL?>/lib/skins/ObsessBlue/image/img_202.jpg" alt="" />

<img class="r0104" src="<?php echo SITE_URL?>/lib/skins/ObsessBlue/image/img_205.jpg" alt="" />

<div class="mcr">

<div class="mcr01">

New Pilot Registration

</div>

<div class="mcr02">

<script type="text/javascript">

// Highlighter Scroller II script- By JavaScript Kit (http://www.javascriptkit.com)

// For this and over 400+ free scripts, visit http://www.javascriptkit.com/

// This notice must stay intact

//CONFIGURE MESSAGES AND VARIABLES

var tickercontents=new Array()

tickercontents[0]='Feel free to visit FsPaintShop for more skins <a href="http://www.fspaintshop.com" target="blank">Visit!</a>'

tickercontents[1]='Hop on over to Va Central some time.'

tickercontents[2]='Be sure to visit PHPVMS for support with this system'

tickercontents[3]='You can change this in the frontpage_main.tpl file'

var tickerwidth="300px"

var tickerheight="25px"

var fontcss="font: bold 10px Verdana; color:black"

var tickdelay=4000 //delay btw messages

var highlightspeed=2 //2 pixels at a time.

var highlightcolor="white"

var backdroptextcolor="#E1E1E1"

////Do not edit pass this line////////////////

document.write('<style>#highlighterbg a{color:'+backdroptextcolor+'}</style>')

document.write('<div style="position:relative;left:0px;top:0px; width:'+tickerwidth+'; height:'+tickerheight+';'+fontcss+'">')

document.write('<span id="highlighterbg" style="position:absolute;left:0;top:0;color:'+backdroptextcolor+'; width:'+tickerwidth+'; height:'+tickerheight+';padding: 4px"></span><span id="highlighter" style="position:absolute;left:0;top:0;clip:rect(auto auto auto 0px); background-color:'+highlightcolor+'; width:'+tickerwidth+';height:'+tickerheight+';padding: 4px"></span>')

document.write('</div>')

var currentmessage=0

var clipbottom=1

function changetickercontent(){

msgheight=clipbottom=crosstick.offsetHeight

crosstick.style.clip="rect("+msgheight+"px auto auto 0px)"

crosstickbg.innerHTML=tickercontents[currentmessage]

crosstick.innerHTML=tickercontents[currentmessage]

highlightmsg()

}

function highlightmsg(){

//var msgheight=crosstick.offsetHeight

if (clipbottom>0){

clipbottom-=highlightspeed

crosstick.style.clip="rect("+clipbottom+"px auto auto 0px)"

beginclip=setTimeout("highlightmsg()",20)

}

else{

clipbottom=msgheight

clearTimeout(beginclip)

if (currentmessage==tickercontents.length-1) currentmessage=0

else currentmessage++

setTimeout("changetickercontent()",tickdelay)

}

}

function start_ticking(){

crosstickbg=document.getElementById? document.getElementById("highlighterbg") : document.all.highlighterbg

crosstick=document.getElementById? document.getElementById("highlighter") : document.all.highlighter

crosstickParent=crosstick.parentNode? crosstick.parentNode : crosstick.parentElement

if (parseInt(crosstick.offsetHeight)>0)

crosstickParent.style.height=crosstick.offsetHeight+'px'

else

setTimeout("crosstickParent.style.height=crosstick.offsetHeight+'px'",100) //delay for Mozilla's sake

changetickercontent()

}

if (document.all || document.getElementById)

window.onload=start_ticking

</script>

</div>

</div>

</div>

<div class="mc0102">

<img class="r0101" src="<?php echo SITE_URL?>/lib/skins/ObsessBlue/image/img_155.jpg" alt="" />

<img class="r0102" src="<?php echo SITE_URL?>/lib/skins/ObsessBlue/image/img_157.jpg" alt="" />

<img class="r0103" src="<?php echo SITE_URL?>/lib/skins/ObsessBlue/image/img_207.jpg" alt="" />

<img class="r0104" src="<?php echo SITE_URL?>/lib/skins/ObsessBlue/image/img_209.jpg" alt="" />

<div class="mcl">

<div class="mcl01">

About Registration

</div>

<div class="mcl02">

Please complete all fields for correct registration.

</div>

</div>

</div>

</div>

<div class="mc02">

<div class="mc0201">

Application

</div>

<div class="mc0202" style="width: 18px; height: 15px">

 

</div>

<div class="mc0203">

<div class="mc020301">

<p>Welcome to the registration form for <?php echo SITE_NAME; ?>. After you register, you will be notified by a staff member about your membership.</p>

<form method="post" action="<?php echo url('/registration');?>">

<dl>

<dt>First Name: *</dt>

<dd><input type="text" name="firstname" value="<?php echo Vars::POST('firstname');?>" />

<?php

if($firstname_error == true)

echo '<p class="error">Please enter your first name</p>';

?>

</dd>

<dt>Last Name: *</dt>

<dd><input type="text" name="lastname" value="<?php echo Vars::POST('lastname');?>" />

<?php

if($lastname_error == true)

echo '<p class="error">Please enter your last name</p>';

?>

</dd>

<dt>Email Address: *</dt>

<dd><input type="text" name="email" value="<?php echo Vars::POST('email');?>" />

<?php

if($email_error == true)

echo '<p class="error">Please enter your email address</p>';

?>

</dd>

<dt>Select Airline: *</dt>

<dd>

<select name="code" id="code">

<?php

foreach($allairlines as $airline)

{

echo '<option value="'.$airline->code.'">'.$airline->code.' - '.$airline->name.'</option>';

}

?>

</select>

</dd>

<dt>Hub: *</dt>

<dd>

<select name="hub" id="hub">

<?php

foreach($allhubs as $hub)

{

echo '<option value="'.$hub->icao.'">'.$hub->icao.' - ' . $hub->name .'</option>';

}

?>

</select>

</dd>

<dt>Location: *</dt>

<dd><select name="location">

<?php

foreach($countries as $countryCode=>$countryName)

{

if(Vars::POST('location') == $countryCode)

$sel = 'selected="selected"';

else

$sel = '';

echo '<option value="'.$countryCode.'" '.$sel.'>'.$countryName.'</option>';

}

?>

</select>

<?php

if($location_error == true)

echo '<p class="error">Please enter your location</p>';

?>

</dd>

<dt>Password: *</dt>

<dd><input id="password" type="password" name="password1" value="" /></dd>

<dt>Enter your password again: *</dt>

<dd><input type="password" name="password2" value="" />

<?php

if($password_error != '')

echo '<p class="error">'.$password_error.'</p>';

?>

</dd>

<?php

//Put this in a seperate template. Shows the Custom Fields for registration

Template::Show('registration_customfields.tpl');

?>

<dt>What does this add up to? <?php echo $rand1 .' + '.$rand2?></dt>

<dd><input id="password" type="captcha" name="captcha" value="" />

<?php

if($captcha_error != '')

echo '<p class="error">'.$captcha_error.'</p>';

?>

</dd>

<dt></dt>

<dd><p>By clicking register, you're agreeing to the terms and conditions</p></dd>

<dt></dt>

<dd><input type="submit" name="submit" value="Register!" /></dd>

</dl>

</form>

</div>

</div>

</div>

</div>

</div>

</div>

That happened with me, Just take out the Code/Javascript for the thing that isn't working

Hope it all goes well,

Matthew

Link to comment
Share on other sites

This might be your answer mate, I had the same kind of problem with the recaptcha stuff:

From Nabeel:

That skin is not updated to 2.1, so you need to update it using the stock registration_mainform.tpl from /core/templates folder (copy it into your skin's folder).

You might want to post in the topic for that skin asking for it to be updated

Link to comment
Share on other sites

So, just do this, find this line roughly at the bottom:

<dt>What does this add up to? <?php echo $rand1 .' + '.$rand2?></dt>

<dd><input id="password" type="captcha" name="captcha" value="" />

	<?php

		if($captcha_error != '')

			echo '<p class="error">'.$captcha_error.'</p>';

	?>

</dd>

That is the none working code. Now, replace that with this code it should solve all your problems:

<dt>reCaptcha</dt>
   <dd>
     <?php
                       echo recaptcha_get_html(Config::Get('RECAPTCHA_PUBLIC_KEY'), $captcha_error);
               ?>
   </dd>

Hope this helps!

Ada

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...