| Author |
Message |
DJ-Loki
Sergeant


Joined: Feb 03, 2003
Posts: 108
Location: The Netherlands
|
Posted:
Mon Feb 17, 2003 2:48 pm |
  |
In a prior post i had a complete sign up problem. Now is one part solved. But one error remains. I don't know how to explain it, but i will try. On my site (with my theme) there are 2 ways to sign up. 1st: in the box 2nd: in the left upper corner of the site below the logo. The box sign up works fine now, i had to do some modifications in the Your_Account.php file. But now i have still problems with the upper corner one. It says after a sign up: Could not insert data into users table. I get this in a forum screen (PHPBB). I use PHPNuke 6.0 and PHPBB 2.0.3.
Go to: http://www.dj-loki.com and see/try it. |
|
|
    |
 |
ArtificialIntel

Joined: Jan 31, 2004
Posts: -88
|
Posted:
Mon Feb 17, 2003 2:59 pm |
  |
|
   |
 |
DJ-Loki
Sergeant


Joined: Feb 03, 2003
Posts: 108
Location: The Netherlands
|
Posted:
Tue Feb 18, 2003 10:07 am |
  |
In wich file should i find it? |
|
|
    |
 |
DJ-Loki
Sergeant


Joined: Feb 03, 2003
Posts: 108
Location: The Netherlands
|
Posted:
Tue Feb 18, 2003 10:24 am |
  |
I found this in theme.php:
function FormatStory($thetext, $notes, $aid, $informant) {
global $anonymous;
if ($notes != "") {
$notes = "<b>"._NOTE."</b> <i>$notes</i>\n";
} else {
$notes = "";
}
if ("$aid" == "$informant") {
echo "<font class=\"content\">$thetext<br>$notes</font>\n";
} else {
if($informant != "") {
$boxstuff = "<a href=\"modules.php?name=Your_Account&op=userinfo&uname=$informant\">$informant</a> ";
} else {
$boxstuff = "$anonymous "; }
$boxstuff .= ""._WRITES." <i>\"$thetext\"</i> $notes\n";
echo "<font class=\"content\">$boxstuff</font>\n";
I think i should change some in the bold area, but what? |
|
|
    |
 |
ArtificialIntel

Joined: Jan 31, 2004
Posts: -88
|
Posted:
Tue Feb 18, 2003 10:26 am |
  |
none of that. Erm.. there'll be a link pointing to the forums module somewhere. Look for that. It'll be in the themeheader() function
ArtificialIntel |
|
|
   |
 |
DJ-Loki
Sergeant


Joined: Feb 03, 2003
Posts: 108
Location: The Netherlands
|
Posted:
Tue Feb 18, 2003 12:44 pm |
  |
Hmm, nothing found in the headerfile! I really don't know where to look. |
|
|
    |
 |
chatserv
General


Joined: Jan 12, 2003
Posts: 3128
Location: Puerto Rico
|
Posted:
Tue Feb 18, 2003 1:41 pm |
  |
Depends on what theme you are using, as an example in the subSilver theme you'd find the following in theme.php under the themeheader function:.
| Code: |
.
if ($username == "Anonymous") {
echo "&&<font color=\"#ffffff\"><a href=\"modules.php?name=Your_Account\">Create</a></font> an account\n";
} else {
echo "&&Welcome $username!";
$result = sql_query("select uid from nuke_users where uname='$username'", $dbi);
list($uid) = sql_fetch_row($result, $dbi);
$result2 = sql_query("select to_userid from $prefix"._priv_msgs." where to_userid='$uid'", $dbi);
$numrow = sql_num_rows($result2, $dbi);
if ($numrow >= "1") {
echo "<b><i><font color=\"red\">&&&&You have <a href=\"/modules.php?name=Private_Messages\"><b>$numrow</b></a> private messages!</font></i></b>";
}
}.
|
|
_________________ Feed a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime.
ScriptHeaven | NukeResources |
|
    |
 |
DJ-Loki
Sergeant


Joined: Feb 03, 2003
Posts: 108
Location: The Netherlands
|
Posted:
Tue Feb 18, 2003 2:25 pm |
  |
The problem is solved thanks to Mikem! Thanks again for the efford!!  |
|
|
    |
 |
|
|