Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Security - PHP Nuke
Author Message
butterfly
Hangin' Around


Joined: Jun 27, 2005
Posts: 34
Location: England

PostPosted: Sat Jul 02, 2005 1:51 pm Reply with quote

security code when you go to log in dont display?????

Look here Only registered users can see links on this board! Get registered or login!

Also members are coming up as com as country??????

Need a quick fix
 
View user's profile Send private message Visit poster's website
butterfly
PostPosted: Sat Jul 02, 2005 2:31 pm Reply with quote

ok, the Analysis takes the flag from the last bit of the persons ip addes like mine is .co.uk aka uk flag

BUT

ppl on my site come up as .com .net ip but live in the uk???

is there anything i could do to fix this?
 
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 17086

PostPosted: Sat Jul 02, 2005 2:59 pm Reply with quote

The security code displays just fine for me. You would need to add and IP2COUNTRY routine of somekind. NukeSentinel uses its own but you could probably adapt it to look up your member's IP. There are probably other solutions out there too.


Last edited by Raven on Sat Jul 02, 2005 3:06 pm; edited 1 time in total 
View user's profile Send private message
butterfly
PostPosted: Sat Jul 02, 2005 3:03 pm Reply with quote

Quote:

NukeSentinel uses its own but you could probably adapt it to look up your member's IP


Thats overload m8,
I need simple instructions,
like mods, lines to add ect
Sad
 
Raven
PostPosted: Sat Jul 02, 2005 3:08 pm Reply with quote

Try searching google for words like
nuke ip2country
nuke ip to country


Last edited by Raven on Sat Jul 02, 2005 4:32 pm; edited 1 time in total 
VinDSL
Life Cycles Becoming CPU Cycles


Joined: Jul 11, 2004
Posts: 614
Location: Arizona (USA) Admin: NukeCops.com Admin: Disipal Designs Admin: Lenon.com

PostPosted: Sat Jul 02, 2005 4:22 pm Reply with quote

butterfly wrote:
Also members are coming up as com as country??????

The .COMs are United States IP's. If you want to display the countries correctly, you need to add the IP2C db option to MSA, as Raven said.

This will give you all the info you need:
Only registered users can see links on this board! Get registered or login!

Once you install IP2C, you can go into your sql db and drop the COM table, and it will disappear from your login block. You can drop the generic ORG, NET, et cetera, tables too, but keep the MIL table.

If you need extra flags, I have them over here:
Only registered users can see links on this board! Get registered or login!

However, I think Maty added these to the distro now. All depends on how old your MSA download is... Wink

_________________
.:: "The further in you go, the bigger it gets!" ::.
.:: Only registered users can see links on this board! Get registered or login! | Only registered users can see links on this board! Get registered or login! ::. 
View user's profile Send private message Visit poster's website ICQ Number
butterfly
PostPosted: Sat Jul 02, 2005 4:38 pm Reply with quote

ok, install that that fixed 75% of them

But some still dont work even tho the demo on

"http://ip-to-country.webhosting.info/node/view/36"

finds the users ip to country fine???? any idears?

i also got and installed the matty script that uses the ip to country database
 
butterfly
PostPosted: Sat Jul 02, 2005 4:51 pm Reply with quote

Also 1 last note why does the users currently online stick even though there not on anymore??
 
VinDSL
PostPosted: Sat Jul 02, 2005 4:59 pm Reply with quote

Hrm... not quite sure I understand what you're mean, but...

When you see '???' in your results, that's because the IP doesn't match with any existing country code in the IP2C db, and/or you don't have a flag for that country.

If it's simply a matter of not having a flag, that's easy to fix. Just add the appropriate flag[s] to your site.

However, AFAIK, once an IP gets enetered into YOUR MSA sql db as undecipherable, you have to fix it manually, using phpMyAdmin, or whatever. I've had this happen several times, in the past, while upgrading to a new version of MSA. Whoever 'sneaks' in there between the installation of MSA and IP2C usually has to be fixed...

Anyway, it appears to be working now, from the looks of your home page. It's probably just a matter of going into your db and doing some 'housecleaning' to get rid of the offending entries.
 
butterfly
PostPosted: Sat Jul 02, 2005 5:03 pm Reply with quote

m8 thanks alot!

but i only know basic database...
i dont know what to look for to fix the users sticking,

if its linked..... the forum displays new posts but when u read 1 and go back to the topic main page all the other new posts are saying read????
 
VinDSL
PostPosted: Sat Jul 02, 2005 5:05 pm Reply with quote

butterfly wrote:
Also 1 last note why does the users currently online stick even though there not on anymore??

MSA is built on top of Nuke, and PHP-Nuke is slow to respond to ppl 'not being there'. LoL! I guess that's the best way to describe the situation.

Who-is-Where, for instance, detects guests leaving, the second they are gone, but it takes them a while to disappear from PHP-Nuke. Conversely, members disappear from PHP-Nuke immediately, but tend to linger on Who-is-Where.

Example: On my site, Who-is-Where will show, say, 125 guests online, but PHP-Nuke will show 185. PHP-Nuke will show 0 members online, but Who-is-Where will show 2. It's just the way they're scripted. They NEVER match.

Heh! Does that makes any sense? Very Happy
 
butterfly
PostPosted: Sat Jul 02, 2005 5:15 pm Reply with quote

Yer thats kool,
so they wont be constantly stuck there lol

the forum bug any idears m8?
 
VinDSL
PostPosted: Sat Jul 02, 2005 5:32 pm Reply with quote

butterfly wrote:
... the forum displays new posts but when u read 1 and go back to the topic main page all the other new posts are saying read????

Do you mean 'back' as in clicking the 'back' button on your browser? If so, then your browser will read the page from your cache, e.g. the 'old' page.

What I usually do is click on the breadcrumbs above the post, after I've read them. That way, the index page is 'refreshed' and indicates which posts I've read. Either that, or I just hit the 'back' button, and keep it 'in my head'... Wink
 
butterfly
PostPosted: Sat Jul 02, 2005 5:35 pm Reply with quote

However you go back, through the back button or click on the main forums the "new post" image dissapears
 
butterfly
PostPosted: Sat Jul 02, 2005 5:44 pm Reply with quote

I wouldnt actuall mind if it was the other way round and didnt say youve read them when you have, at least you dont have to scroll down the page looking for date and time.

Either way, its mothers were talking about, they cant seem to remember anything
LOL!
 
VinDSL
PostPosted: Sat Jul 02, 2005 5:45 pm Reply with quote

butterfly wrote:
However you go back, through the back button or click on the main forums the "new post" image dissapears

Ah, okay! I thought you were saying that it was NOT marking the ones that you've read as being read. LoL!

Hrm... well, I haven't tackled that question for a long time. I think it has to do with the cookie session length setting in the phpBB config, but I cannot remember off the top of my head.

Maybe someone else will chime in with an answer for you...
 
butterfly
PostPosted: Sat Jul 02, 2005 5:51 pm Reply with quote

ok, thanx for all your help m8,
i love these forums for the speed and helpfulness of the replys. Smile
 
VinDSL
PostPosted: Sat Jul 02, 2005 6:15 pm Reply with quote

butterfly wrote:
i love these forums for the speed and helpfulness of the replys. Smile

Heh! Rocks, huh?

I was just looking at my phpBB config. You might want to try this, if it already isn't set this way...
Code:


Cookie domain   *BLANK*
Cookie name     *BLANK*
Cookie path     /
Cookie secure   *DISABLED*
Session length [ seconds ]  3600


  • Change the settings in the phpBB admin panel
  • Logout of your site as both a user and an admin
  • Delete all cookies from your browser
  • Close all browser windows
  • Open your browser and login to your site again

No guarantees, but this is the way mne is set... ;
 
butterfly
PostPosted: Sat Jul 02, 2005 6:54 pm Reply with quote

Thanx tons m8
I thought it wasnt that as i had stuff in all boxes but it worked fine in my last forums,
did it just to be sure and it fixed the prob,
must have been the "::" in the cookie domain box
learn something new everyday eh

Wanna have a shot at my last enquiry?
i set 4 topics to show on homepage somtimes it shows 2 others 4????
mad eh?
 
VinDSL
PostPosted: Sat Jul 02, 2005 7:41 pm Reply with quote

butterfly wrote:
Thanx tons m8
I thought it wasnt that as i had stuff in all boxes but it worked fine in my last forums,
did it just to be sure and it fixed the prob,
must have been the "::" in the cookie domain box
learn something new everyday eh

Yeah, you're better off letting Nuke handle the cookie, instead of phpBB.. Wink

butterfly wrote:
Wanna have a shot at my last enquiry?
i set 4 topics to show on homepage somtimes it shows 2 others 4????
mad eh?

Sorry! Reality beckons! Gotta go to work, but I'll BBL! Dance-Stick
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Security - PHP Nuke

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 ©