Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

How to change position of user_info_panel

Asked Modified Viewed 3,310 times
M
MojzisekJan
M
  • Newbie, joined since
  • Contributed 5 posts on the community forums.
  • Started 4 threads in the forums
  • Started this discussions
asked
Newbie

Hi, how can I change position of user_info_panel, I tried this:

[syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false] if if (iMEMBER) {
echo "<div id='header-right'>";
echo "<div id='loginform'>";
$msg_count = dbcount("(message_id)", DB_MESSAGES, "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'"wink;
echo "<a href='".BASEDIR."edit_profile.php' class='side'>Upravi&#357; profil</a><br> \n";
echo "<a href='".BASEDIR."messages.php' class='side'>Súkromné správy (".$msg_count."wink</a><br> \n";
echo "<a href='".BASEDIR."forum/index.php' class='side'>Forum</a><br> \n";
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C"wink) {
echo "<a href='".ADMIN."index.php".$aidlink."' class='side'>Administra&#269;ná sekcia</a><br> \n";
}
echo "<a href='".BASEDIR."setuser.php?logout=yes' class='side'>Odhlási&#357;</a>&nbsp;\n";
if ($msg_count) { echo "<br /><br /><div style='text-align:left'></div>\n"; }
echo " </div></div> ";

} else {
echo "<div id='header-right'>";
echo"<span id='headertext'>P&#345;ihlašovací panel</span>";
echo "<div id='loginform'><table>";
echo "<form name='loginform' method='post' action='".FUSION_SELF."'>
<tr><td>Meno:</td><td><input id='field' type='text' name='user_name' class='textbox' /></td></tr>
<tr><td>Heslo:</td><td><input id='field' type='password' name='user_pass' class='textbox' /></td></tr>
<tr><td colspan='2'>
<a href='".BASEDIR."lostpassword.php' class='side'>Zabudnuté heslo</a><br><a href='".BASEDIR."register.php' class='side'>Registrova&#357;</a><td>
<input type='checkbox' name='remember_me' value='y' title='Zapamäta&#357;' style='vertical-align:middle;' />
<input type='hidden' name='remember_me' value='y' title='autologin' style='vertical-align:middle;' />
<input type='submit' name='login' value='Prihlási&#357;' class='button' /></tr>";
echo "</form></table></div></div>\n";
}[/syntaxhighlighter]

but there are some errors and link to administration is bad.

Is there manual to create custom theme?
0 replies

3 posts

J
jimboppin
J
Jimbo.
  • Newbie, joined since
  • Contributed 9 posts on the community forums.
  • Started 3 threads in the forums
answered
Newbie

I dont understand what u mean by the posision? Do you mean the posision of the panel or the content of the panel?
0 replies
M
MojzisekJan
M
  • Newbie, joined since
  • Contributed 5 posts on the community forums.
  • Started 4 threads in the forums
  • Started this discussions
answered
Newbie

Login form, and user info
if(iMEMBER){
                  echo "<a href=\"".BASEDIR."edit_profile.php\">".$locale['global_120']."</a> <br>".
                  " <a href=\"".BASEDIR."messages.php\">".$locale['global_121']."</a>".
                  (iADMIN ? " <br> <a href=\"".ADMIN."index.php".$aidlink."\">".$locale['global_123']."</a>" : "").
                  " <br> <a href=\"".BASEDIR."setuser.php?logout=yes\">".$locale['global_124']."</a>\n";
               } else {
                  echo "<form method=\"post\" action=\"".FUSION_SELF."\" style=\"margin-top:-3px;\">\n";
                  echo $locale['global_101']." <input type=\"text\" name=\"user_name\" class=\"textbox\" style=\"width:100px\" /><br>\n";
                  echo $locale['global_102']." <input type=\"password\" name=\"user_pass\" class=\"textbox\" style=\"width:100px\" /><br>\n";
                  echo "<input type=\"submit\" name=\"login\" value=\"".$locale['global_104']."\" class=\"button\" />\n";
                  
                  echo ($settings['enable_registration'] ? " | <a href=\"".BASEDIR."register.php\">".$locale['global_107']."</a>\n" : "").
               " | <a href=\"".BASEDIR."lostpassword.php\">".$locale['global_108']."</a>";
               echo "</form>\n";
               }

- this don't display username why?
0 replies
J
jimboppin
J
Jimbo.
  • Newbie, joined since
  • Contributed 9 posts on the community forums.
  • Started 3 threads in the forums
answered
Newbie

[syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false]if(iMEMBER){
echo "<a href=\'".BASEDIR."edit_profile.php\'>".$locale['global_120']."</a> <br>".
" <a href=\'".BASEDIR."messages.php\'>".$locale['global_121']."</a>".
(iADMIN ? " <br> <a href=\'".ADMIN."index.php".$aidlink."\'>".$locale['global_123']."</a>" : ""wink.
" <br> <a href=\'".BASEDIR."setuser.php?logout=yes\'>".$locale['global_124']."</a>\n";
} else {
echo "<form method=\'post\' action=\'".FUSION_SELF."\' style=\'margin-top:-3px;\'>\n";
echo $locale['global_101']." <input type=\'text\' name=\'user_name\' class=\'textbox\' style=\'width:100px\' /><br>\n";
echo $locale['global_102']." <input type=\'password\' name=\'user_pass\' class=\'textbox\' style=\'width:100px\' /><br>\n";
echo "<input type=\'submit\' name=\'login\' value=\'".$locale['global_104']."\' class=\'button\' />\n";

echo ($settings['enable_registration'] ? " | <a href=\'".BASEDIR."register.php\'>".$locale['global_107']."</a>\n" : ""wink.
" | <a href=\'".BASEDIR."lostpassword.php\'>".$locale['global_108']."</a>";
echo "</form>\n";
}
[/syntaxhighlighter]



try it now.
0 replies

Category Forum

Themes Support

Labels

None yet

Statistics

  • Views 0 views
  • Posts 3 posts
  • Votes 0 votes
  • Topic users 2 members

2 participants

M
M
  • Newbie, joined since
  • Contributed 5 posts on the community forums.
  • Started 4 threads in the forums
  • Started this discussions
J
J
Jimbo.
  • Newbie, joined since
  • Contributed 9 posts on the community forums.
  • Started 3 threads in the forums

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet