|
» Online Users: 63 |
| 0 members and 63 guests |
| No Members online |
| Most users ever online was 611, 03-21-2008 at 10:10 PM. |
|
» .::. |
Web Hosting - web hosting, dedicated servers and web design services
|
Online Degree - search for 1000+ online degrees, online colleges & online universities.
|
tattoo - we are a group of tattoo enthusiasts
|
Gexa Energy - your absolute best choice in electric service
|
|
|
buy Rimonabant - Help dieters achieve significant weight loss without having to slog in the gym
|
|
|
|
|
About this Page This is a discussion on Registration hack/your account module within the Purged Topics forums, part of the NM Staff category; The Private messages on the page does not work on the hack. It shows you have "0" messages, ... |
|
 |
|
 |
|
 |

04-07-2003, 05:52 PM
|
|
Junior Member
|
|
Join Date: Jan 2003
Posts: 6
|
|
|
Registration hack/your account module
The Private messages on the page does not work on the hack. It shows you have "0" messages, even though there are new messages in the inbox. What gives?
Oh, using nuke 6 with Tom's PHPBB port.
Thanks
|

04-07-2003, 08:15 PM
|
|
Senior Member
|
|
Join Date: Sep 2002
Posts: 2,905
|
|
|
As far as I remember, the Private Message coutn at th etop of the Forums in Nuke6.0 with Tom's port has never worked right.
As soon as you enter your inbox it shows none. Or am I talking about something else?
mikem
|

04-07-2003, 09:01 PM
|
|
Junior Member
|
|
Join Date: Jan 2003
Posts: 6
|
|
|
Originally Posted by mikem
|
As far as I remember, the Private Message coutn at th etop of the Forums in Nuke6.0 with Tom's port has never worked right.
As soon as you enter your inbox it shows none. Or am I talking about something else?
mikem
|
When you click "your account" link, it brings you to the your accounts index page with the icons up top, public broadcast etc, Just below, it should read "you have "x" private messages"
I used the older reg hack you had here and it worked. I updated it with the new hack you have here with axis's mod and it no longer shows the actual messages, it only shows "0" m messages when there are actually new messages in the inbox.
|

04-07-2003, 10:16 PM
|
|
Senior Member
|
|
Join Date: Sep 2002
Posts: 2,905
|
|
|
Originally Posted by colin
|
|
Originally Posted by mikem
|
As far as I remember, the Private Message coutn at th etop of the Forums in Nuke6.0 with Tom's port has never worked right.
As soon as you enter your inbox it shows none. Or am I talking about something else?
mikem
|
When you click "your account" link, it brings you to the your accounts index page with the icons up top, public broadcast etc, Just below, it should read "you have "x" private messages"
I used the older reg hack you had here and it worked. I updated it with the new hack you have here with axis's mod and it no longer shows the actual messages, it only shows "0" m messages when there are actually new messages in the inbox.
|
ok I'll take a look at it.
If you don't hear anything in the next couple days. reply back to remind me :-)
mikem
|

04-07-2003, 11:05 PM
|
|
Junior Member
|
|
Join Date: Mar 2003
Location: Valencia, Venezuela
Posts: 5
|
|
Ok look for this code
|
Code:
|
$result2 = sql_query("select to_userid from ".$prefix."_priv_msgs where to_userid='$userinfo[uid]'", $dbi); |
And change it with:
|
Code:
|
$result2 = sql_query("select privmsgs_to_userid from $prefix"._bbprivmsgs." where privmsgs_to_userid='$userinfo[uid]' and privmsgs_type='5'", $dbi); |
Some people like to use (privmsgs_type='5' or privmsgs_type='1'), but in my experience privmsgs_type='5' is enough
|

04-07-2003, 11:55 PM
|
|
Junior Member
|
|
Join Date: Jan 2003
Posts: 6
|
|
|
Axis, well, that's different...except now instead of a "0" or any number, there is a blank spot, no number, no anything. Just you have (blank) private messages
Thanks
|

04-08-2003, 12:23 AM
|
|
Junior Member
|
|
Join Date: Mar 2003
Location: Valencia, Venezuela
Posts: 5
|
|
That's weird.
This is the piece of code of the index.php that comes in the hack
|
Code:
|
echo "<center>"._PRIVATEMESSAGES."
";
$result2 = sql_query("select to_userid from ".$prefix."_priv_msgs where to_userid='$userinfo[uid]'", $dbi);
$numrow = sql_num_rows($result2, $dbi); |
This is the code that i use in my site:
|
Code:
|
echo "<center>"._PRIVATEMESSAGES."
";
$result2 = sql_query("select privmsgs_to_userid from $prefix"._bbprivmsgs." where privmsgs_to_userid='$userinfo[uid]' and privmsgs_type='5'", $dbi);
$numrow = sql_num_rows($result2, $dbi); |
And works fine (in fact is one of the few things that are working in my site right now  ops: ), i use it in several blocks and in some fixes that i made in my site.
Well, you haven't modded your_account or install NSN your_account tweak?
|

04-08-2003, 02:17 AM
|
|
Junior Member
|
|
Join Date: Mar 2003
Location: Valencia, Venezuela
Posts: 5
|
|
I have see it, but right now i'm burn out (I need to get some sleep  ).
I can't imagine why that happens. it seems is something relative of the phpbb template, but i'm not really sure
I see that you let people use Link to off-site Photo, thats avatars will not be show in the user info page in your_account because this code
|
Code:
|
<img src=\"modules/Forums/images/avatars/$user_avatar\" alt=\"\"> |
Is not design to work with offsites avatars, if you use a offsite avatar you will get something like this:
|
Code:
|
http://elcaminocentral.com/modules/Forums/images/avatars/http://wwww.avatarplace.com/images/avatars/someavatar.gif |
You need to change that with something like this
|
Code:
|
if ( ereg( "(http)", $user_avatar) )
{
echo "<img src=\"$user_avatar\">
\n";
}
else
{
echo "<img src=\"modules/Forums/images/avatars/$user_avatar\" } |
This code is from the people of http://www.gopsfrench.net and i have been using it, solving some issues with offsite avatars
|

04-08-2003, 10:28 AM
|
|
Senior Member
|
|
Join Date: Sep 2002
Posts: 2,905
|
|
|
I've seen that double agreement thingy before too. I think it has something to do with the tempalte being modified and somethign was changed...can't remember.
And I was right about the PM thing. It has never worked right when you install Tom's port. At least not on the Your Account page. I tested this again last night and it always shows me zero, but the blocks for user info show correctly etc.
OpositeAxis gave you your solution there..but in Nuke6.5 it seems to be fixed. Only problem with Nuke6.5 is that it shows the amoutn of messages in your inbox all the time on the Your Account page, read or not.
mikem
|
 |
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|