» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 60
0 members and 60 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
Texas electricity - save on electric rates
buy Rimonabant - Help dieters achieve significant weight loss without having to slog in the gym

Register Now! Contact Us

About this Page
This is a discussion on Removing Login from Site Visitor Block within the Nuke 6.5 to 6.9 - Blocks forums, part of the PHP-Nuke 6.5 to 6.9 category; Hello ! Could you guys tell me how i can remove the login section from the site visitor block, code-wise ? ...



Go Back   Nukemods Forum » PHP-Nuke 6.5 to 6.9 » Nuke 6.5 to 6.9 - Blocks

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-30-2003, 06:58 PM
Junior Member
 
Join Date: May 2003
Posts: 5
Removing Login from Site Visitor Block
Hello !

Could you guys tell me how i can remove the login section from the site visitor block, code-wise ?

I'm quite new to the scene.

Thx in advance !
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 05-30-2003, 08:59 PM
Senior Member
 
Join Date: Sep 2002
Posts: 2,905
Open the Site Visitors block file in a TEXT editor. NOT Notepad or Wordpad.

change ALL of this code
Code:
$content .="<form action=\"modules.php?name=Your_Account\" method=\"post\">\n";
$content .=""._SV_USERLOGIN."

\n";
$content .="<table border=\"0\"><tr><td>\n";
$content .=""._NICKNAME.":</td></tr>\n";
$content .="<tr><td><input type=\"text\" name=\"username\" size=\"15\" maxlength=\"25\"></td></tr>\n";
$content .="<tr><td>"._PASSWORD.":</td></tr>\n";
$content .="<tr><td><input type=\"password\" name=\"user_password\" size=\"15\" maxlength=\"20\"></td></tr>\n";
	    if (extension_loaded("gd")) {
$content .="<tr><td colspan='2'>"._SV_SECURITYCODE.": [img]modules.php?name=Your_Account&op=gfx&random_num=$random_num[/img]</td></tr>\n";
$content .="<tr><td colspan='2'>"._SV_TYPESECCODE.": <input type=\"text\" NAME=\"gfx_check\" SIZE=\"8\" MAXLENGTH=\"6\"></td></tr>\n";
$content .="<input type=\"hidden\" name=\"random_num\" value=\"$random_num\">\n";
	    }
$content .="</table><input type=\"hidden\" name=\"redirect\" value=$redirect>\n";
$content .="<input type=\"hidden\" name=\"mode\" value=$mode>\n";
$content .="<input type=\"hidden\" name=\"f\" value=$f>\n";
$content .="<input type=\"hidden\" name=\"t\" value=$t>\n";
$content .="<input type=\"hidden\" name=\"op\" value=\"login\">\n";
$content .="<input type=\"submit\" value=\""._LOGIN."\"></form>
\n\n";
to this
Code:
$content .="<center>Welcome Guest</center>\n";
Instead of the Loggin part of the block you normally see when not logged in, your Guests that are not logged in will now only see
"Welcome Guest"
at the top of the block where the loggin part used to be.

mikem
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 05-31-2003, 01:08 PM
Junior Member
 
Join Date: May 2003
Posts: 5
Thx but...
Thx for the help, but...

Let me explain my problem.
Yesterday i installed a clean PHPnuke 6.5 and I installed the Site Visitor block. Afterwards i noticed that i couldn't log in using the login from the site visitor block, but i could with the normal login block. So i decided to remove the login function from the site visitor block.

To my surprise, after removing the login from the site visitor block, i couldn't login anymore using the normal login block.

After undoing the changes to the visitor block it worked again, except the login from the visitor block.

Any suggestions ???
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 05-31-2003, 04:28 PM
Senior Member
 
Join Date: Sep 2002
Posts: 2,905
OK..chekc your Database.

Is your prefix nuke?

Meaning, in your database are ALL your tables starting with
nuke_

nuke_bbconfig
nuke_bbposts
nuke_users

etc.

The main thing to check is your user table prefix. Is it also nuke_ ?

mikem
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 05-31-2003, 04:40 PM
Junior Member
 
Join Date: May 2003
Posts: 5
Mmm
They all have nuke_ in front of them, except 4:

Array_color
Array_livelogin
Array_login
Array_message

So, i don't think that's the problem !?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 05-31-2003, 08:11 PM
Senior Member
 
Join Date: Sep 2002
Posts: 2,905
OK..I suggest getting the Analyzer script from http://www.nukecops.com
It may show us some problems if they are there.

I've only seen this happen a few times and I am still not sure what is causing it. It may be your server is running an older version of PHP.
Get that analyzer script and post a link back so we can see what it says.

mikem
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 06-01-2003, 09:38 AM
Junior Member
 
Join Date: May 2003
Posts: 5
Analyzer
http://www.yuf.be/analyze.php

Thx in advance for looking !

Yuf
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 06-01-2003, 07:59 PM
Senior Member
 
Join Date: Sep 2002
Posts: 2,905
Man that is wierd. Everything looks great according to analyzer. You can go ahead and remove that file from your server now.

Here..Can you try this Login Block file.
http://www.fauxpas.org/mystuff/block-Login.zip

It's the original Nuke6.5 Login Block with the Security graphic added to it. I'd like to see if it works on your site.

mikem
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 06-01-2003, 08:07 PM
Senior Member
 
Join Date: Sep 2002
Posts: 2,905
ok..here's something you need to do.
I notice when I signed up on your site, the email said it was from
Yoursite.com
Also, the webadress to click to activate the user account did not include the http://
Make sure you have setup ALL the informaiton in your Nuke Admin Preferences. Also make sure you setup the necessary info in your Forum Admin/Configuration.

mikem
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 06-01-2003, 08:25 PM
Junior Member
 
Join Date: May 2003
Posts: 5
I have a similar problem. Try logging in at
http://blazes-lair.co.nr (Signup, login, logout then login again)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Removing Recent Topic Block & Login Page rickstorm Nuke 7.x - General 8 01-05-2006 06:35 PM
A problem with NukeMods Site visitor block dfm123 Nuke 6.5 to 6.9 - Blocks 5 04-26-2003 12:32 PM
error on nukmods visitor block DaRk-DuDe Nuke 6.5 to 6.9 - Blocks 3 04-25-2003 07:31 AM
The site visitor block lay-out DJ-Loki Nuke 6.5 to 6.9 - Blocks 8 04-04-2003 01:12 PM
Login Block from here doesn't show off site avatars? Elite311 Purged Topics 4 03-12-2003 03:48 AM


All times are GMT -5. The time now is 06:30 AM.


Design by Vjacheslav Trushkin, color scheme by ColorizeIt!.

LinkBacks Enabled by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31