|
» 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
|
|
|
buy Rimonabant - Help dieters achieve significant weight loss without having to slog in the gym
|
|
|
|
|
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 ?
... |
|
 |
|
 |
|
 |

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 !
|

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
|

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 ???
|

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
|

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 !?
|

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
|

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
|

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
|

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)
|
 |
|
| 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
|
|
|
|
All times are GMT -5. The time now is 06:30 AM.