Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 6.9
Author Message
GanjaUK
Life Cycles Becoming CPU Cycles



Joined: Feb 14, 2004
Posts: 633
Location: England

PostPosted: Wed Mar 24, 2004 7:41 am Reply with quote

Amended post. Wink
 
View user's profile Send private message Visit poster's website
TheosEleos
Life Cycles Becoming CPU Cycles



Joined: Sep 18, 2003
Posts: 960
Location: Missouri

PostPosted: Wed Mar 24, 2004 8:17 am Reply with quote

I can't believe the solution was that simple and yet after all my posts in their forums they never said that.

That worked great!

_________________
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website AIM Address ICQ Number
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Wed Mar 24, 2004 8:29 am Reply with quote

Cool So you see, class, as I said in the beginning - A variable was being stepped on. Laughing - I love it when a plan comes together!
 
View user's profile Send private message
TheosEleos







PostPosted: Thu Mar 25, 2004 4:52 am Reply with quote

Would this issue effect your UserInfoAddOns module?

When I click new today or new yesterday the list does not populate.

Waiting takes me to the resend module just fine.
 
Raven







PostPosted: Thu Mar 25, 2004 6:55 am Reply with quote

Try deactivating it and see if it works.
 
TheosEleos







PostPosted: Thu Mar 25, 2004 9:00 am Reply with quote

lol

now it works

I tried changing username to 'username' in both places in index.php but it just breaks the module.
 
Raven







PostPosted: Thu Mar 25, 2004 9:09 am Reply with quote

In my userinfo addons/index.php, try changing this
Code:
while ($userinfo = $db->sql_fetchrow($result)) {

   if (empty($userinfo[username])) continue;
   echo "<tr><td>$userinfo[username]</td><td>$userinfo[user_regdate]</td><td><a href=\"http://mailto:$userinfo[user_email]\">$userinfo[user_email]</a></td><td>&nbsp;$userinfo[user_website]</td></tr>\n";
}
to this
Code:
while ($userinfo = $db->sql_fetchrow($result)) {

   if (empty($userinfo['username'])) continue;
   echo "<tr><td>$userinfo['username']</td><td>$userinfo['user_regdate']</td><td><a href=\"http://mailto:$userinfo['user_email']\">$userinfo['user_email']</a></td><td>&nbsp;$userinfo['user_website']</td></tr>\n";
}
 
TheosEleos







PostPosted: Thu Mar 25, 2004 9:36 am Reply with quote

Code:
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/httpd/vhosts/phenylshouse.com/httpdocs/modules/UserInfoAddons/index.php on line 18
 
Raven







PostPosted: Thu Mar 25, 2004 9:43 am Reply with quote

Code:
while ($userinfo = $db->sql_fetchrow($result)) { 

   if (empty($userinfo['username'])) continue;
   echo "<tr><td>".$userinfo['username']."</td><td>".$userinfo['user_regdate']."</td><td><a href=\"http://mailto:".$userinfo['user_email']."\">".$userinfo['user_email']."</a></td><td>&nbsp;".$userinfo['user_website']."</td></tr>\n";
}
 
TheosEleos







PostPosted: Thu Mar 25, 2004 9:45 am Reply with quote

That did it.

Thanks, Raven.

See if I ever install a module from them again. Laughing
 
Raven







PostPosted: Thu Mar 25, 2004 9:50 am Reply with quote

Well, in fairness, had I not written 'sloppy' code Laughing it would have avoided the problem.
 
TheosEleos







PostPosted: Thu Mar 25, 2004 9:56 am Reply with quote

Ah-ha!

So it is your fault!
 
TheosEleos







PostPosted: Thu Mar 25, 2004 10:01 am Reply with quote

How do I fix your ['sloppy'] code so the new yesterday shows 1?
 
TheosEleos







PostPosted: Thu Mar 25, 2004 10:02 am Reply with quote

Oh, yeah, don't forget to add a 'new tomorow' field in that block. Laughing
 
Raven







PostPosted: Thu Mar 25, 2004 10:07 am Reply with quote

TheosEleos wrote:
Ah-ha!

So it is your fault!
No Smile, it's PHP. It allows for different styles.
 
Raven







PostPosted: Thu Mar 25, 2004 10:07 am Reply with quote

TheosEleos wrote:
How do I fix your ['sloppy'] code so the new yesterday shows 1?
Use the same technique that fixed the other one.
 
TheosEleos







PostPosted: Thu Mar 25, 2004 2:39 pm Reply with quote

I was thinking it is this code here but I made changes with no luck.
Code:
//Executing SQL Yesterday

$sql = "SELECT COUNT(user_id) AS userCount FROM $user_prefix"._users." WHERE user_regdate LIKE '$curDate3'";
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
$userCount2 = $row['userCount'];
//end


I'm not sure what code to even work on. Rolling Eyes
 
TheosEleos







PostPosted: Thu Mar 25, 2004 11:03 pm Reply with quote

Well, new yesterday says 1 but when I click it shows 2. I figure give it a couple of days. I don't know. I don't care right now. Very Happy
 
Raven







PostPosted: Fri Mar 26, 2004 5:24 am Reply with quote

TheosEleos wrote:
Well, new yesterday says 1 but when I click it shows 2. I figure give it a couple of days. I don't know. I don't care right now. Very Happy
That's an issue with the date calculation and timezone. I can't remember the where and why for's but it has to do with the timezone and server time. Someday, when I have the time, I will try to fix that. It's inherent in the block.
 
TheosEleos







PostPosted: Fri Mar 26, 2004 7:58 am Reply with quote

You need a new title under your name.

['sloppy']


Lol, as long as I know that it is not that coppermine block messing things up.
 
Raven







PostPosted: Fri Mar 26, 2004 8:27 am Reply with quote

It's not my code. It's the algorithm in the site block from FB Rolling Eyes - I meant I will try to fix HIS code.
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 6.9

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©