A couple of questions

Conventional discussion only. No politics, religion and other topics that might cause conflicts.
Strictly appropriate discussions only, meaning spammers and trolls will be banned on first offense.

Moderator: Moderators

A couple of questions

Postby thescorpion on Sat Jan 08, 2005 5:12 pm

In Morpheus' overall header, there's this java script

Code: Select all
<!--

var PreloadFlag = false;
var expDays = 90;
var exp = new Date();
var tmp = '';
var tmp_counter = 0;
var tmp_open = 0;

exp.setTime(exp.getTime() + (expDays*

.............return 1;
   }
}

//-->


can I replace it with an external file e.g

<script language=JavaScript
src="{T_TEMPLATE_PATH}/script.js"></script>

where script.js will have the complete code.

Secondly, while registering there's an option "always show my email address", how can I change the default option to "Yes"

Thanks
"God put me on this Earth to accomplish a certain number of things. Right now, I am so far behind I will never die."
Have you installed eXtreme Styles mod yet
User avatar
thescorpion
Registered User
Registered User
 
Posts: 107
Joined: Mon Nov 22, 2004 8:21 pm
Location: A Pind in Punjab

Postby Greg on Sat Jan 08, 2005 5:18 pm

1st. I think that would work, but I think it would be easier just having it in the overal_header.tpl but what ever you want.

2. Heres what I did, Open profile_add_body.tpl Find
Code: Select all
      <label><input type="radio" name="viewemail" value="1" {VIEW_EMAIL_YES} />


replace with

Code: Select all
      <label><input name="viewemail" type="radio" value="1" checked {VIEW_EMAIL_YES} />
User avatar
Greg
Registered User
Registered User
 
Posts: 651
Joined: Wed Jul 07, 2004 3:20 pm
Location: Yorkshire, United Kingdom

Postby thescorpion on Sat Jan 08, 2005 5:36 pm

Tried with this code as am using Morpheus

Code: Select all
<input name="viewemail" type="radio" value="1" checked {VIEW_EMAIL_YES} />


but it didn't work, cleared cache etc .. but still no luck
"God put me on this Earth to accomplish a certain number of things. Right now, I am so far behind I will never die."
Have you installed eXtreme Styles mod yet
User avatar
thescorpion
Registered User
Registered User
 
Posts: 107
Joined: Mon Nov 22, 2004 8:21 pm
Location: A Pind in Punjab

Postby PostBot on Sat Jan 08, 2005 5:37 pm

That should be checked="checked" not just checked Its xhtml, not html.
Do NOT pm me, I don't visit this forum anymore, don't own it, don't provide any support and don't moderate.
User avatar
PostBot
Moderator
Moderator
 
Posts: 10659
Joined: Sat Aug 02, 2003 3:52 pm
Location: Mars

Postby PostBot on Sat Jan 08, 2005 5:39 pm

And even better would be to use this before that radio button:
Code: Select all
<?php if($GLOBALS['mode'] === 'register')
{
  $this->vars['VIEW_EMAIL_YES'] = 'checked="checked"';
  $this->vars['VIEW_EMAIL_NO'] = '';
}
?>
Do NOT pm me, I don't visit this forum anymore, don't own it, don't provide any support and don't moderate.
User avatar
PostBot
Moderator
Moderator
 
Posts: 10659
Joined: Sat Aug 02, 2003 3:52 pm
Location: Mars

Postby thescorpion on Sat Jan 08, 2005 5:56 pm

Finally the code is looking like this

Code: Select all
<tr>
     <td class="row"><span class="gen">{L_PUBLIC_VIEW_EMAIL}:</span></td>
     <td class="row">
      <?php if($GLOBALS['mode'] === 'register')
       {
       $this->vars['VIEW_EMAIL_YES'] = 'checked="checked"';
       $this->vars['VIEW_EMAIL_NO'] = '';
       }
       ?>
      <input type="radio" name="viewemail" value="1" {VIEW_EMAIL_YES} />
      <span class="gen">{L_YES}</span>&nbsp;&nbsp;
      <input type="radio" name="viewemail" value="0" {VIEW_EMAIL_NO} />
      <span class="gen">{L_NO}</span></td>
   </tr>


Is this correct

btw, the code is working fine,
just wanted to be sure
"God put me on this Earth to accomplish a certain number of things. Right now, I am so far behind I will never die."
Have you installed eXtreme Styles mod yet
User avatar
thescorpion
Registered User
Registered User
 
Posts: 107
Joined: Mon Nov 22, 2004 8:21 pm
Location: A Pind in Punjab

Postby PostBot on Sat Jan 08, 2005 6:02 pm

yes, that code is correct.
Do NOT pm me, I don't visit this forum anymore, don't own it, don't provide any support and don't moderate.
User avatar
PostBot
Moderator
Moderator
 
Posts: 10659
Joined: Sat Aug 02, 2003 3:52 pm
Location: Mars

Postby thescorpion on Sat Jan 08, 2005 6:09 pm

Thanks CA ..

umm .. one more question, the default option in Morpheus 1.3 top login box is "Remember me" , how to change that ...
"God put me on this Earth to accomplish a certain number of things. Right now, I am so far behind I will never die."
Have you installed eXtreme Styles mod yet
User avatar
thescorpion
Registered User
Registered User
 
Posts: 107
Joined: Mon Nov 22, 2004 8:21 pm
Location: A Pind in Punjab

Postby PostBot on Sat Jan 08, 2005 6:45 pm

There is hidden input with name "autologin". Remove that input.
Do NOT pm me, I don't visit this forum anymore, don't own it, don't provide any support and don't moderate.
User avatar
PostBot
Moderator
Moderator
 
Posts: 10659
Joined: Sat Aug 02, 2003 3:52 pm
Location: Mars

Postby thescorpion on Sun Jan 09, 2005 7:08 pm

Thanks CA
I removed this code

<input type="hidden" name="autologin" value="checked" />
"God put me on this Earth to accomplish a certain number of things. Right now, I am so far behind I will never die."
Have you installed eXtreme Styles mod yet
User avatar
thescorpion
Registered User
Registered User
 
Posts: 107
Joined: Mon Nov 22, 2004 8:21 pm
Location: A Pind in Punjab


Return to Regular Discussion

Who is online

Users browsing this forum: No registered users and 1 guest

cron