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 7.7
Author Message
Lateron
Worker
Worker



Joined: May 10, 2003
Posts: 119
Location: Katoomba, NSW, Australia.

PostPosted: Sun May 15, 2005 3:45 am Reply with quote

I am using 7.7 with the patched files added.

In the config file I have security check set to 7 and there are no spaces after ?>

The security graphic and box does not show up on the standard user info box however it does show up at all other entry points (GD is installed and working).

Any suggestions please?
 
View user's profile Send private message Visit poster's website
hitwalker
Sells PC To Pay For Divorce



Joined:
Posts: 5661

PostPosted: Sun May 15, 2005 3:56 am Reply with quote

try another block....
 
View user's profile Send private message
Lateron







PostPosted: Sun May 15, 2005 4:07 am Reply with quote

Thanks for your reply, hitwalker.

I have downloaded and installed Raven's site info block and the graphic space is there but the graphic isn't. The properties of the missing graphic are:

modules.php?name=Your_Account&op=gfx&random_num=527828
 
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Sun May 15, 2005 4:31 am Reply with quote

Modify the global statement from
Code:
global $user, $cookie, $prefix, $user_prefix, $db, $anonymous, $sitekey;
to
Code:
global $user, $cookie, $prefix, $user_prefix, $db, $anonymous, $sitekey, $gfx_chk;

Then modify this
Code:
    $content .= ""._PASSWORD." <input type=\"password\" name=\"user_password\" size=\"10\" maxlength=\"20\"><br>";

    $content .= "<input type=\"hidden\" name=\"random_num\" value=\"$random_num\">";
    $content .= "<input type=\"hidden\" name=\"gfx_check\" value=\"$code\">";
to read
Code:
    $content .= ""._PASSWORD." <input type=\"password\" name=\"user_password\" size=\"10\" maxlength=\"20\"><br>";

   if (extension_loaded("gd") AND ($gfx_chk == 2 OR $gfx_chk == 4 OR $gfx_chk == 5 OR $gfx_chk == 7)) {
    $content .= ""._SECURITYCODE.": <img src='?gfx=gfx&random_num=$random_num' border='1' alt='"._SECURITYCODE."' title='"._SECURITYCODE."'><br>\n";
    $content .= ""._TYPESECCODE."<br><input type=\"text\" NAME=\"gfx_check\" SIZE=\"7\" MAXLENGTH=\"6\">\n";
    $content .= "<input type=\"hidden\" name=\"random_num\" value=\"$random_num\"><br>\n";
   } else {
    $content .= "<input type=\"hidden\" name=\"random_num\" value=\"$random_num\">";
    $content .= "<input type=\"hidden\" name=\"gfx_check\" value=\"$code\">";
   }
 
View user's profile Send private message
Raven







PostPosted: Sun May 15, 2005 4:33 am Reply with quote

Lateron wrote:
Thanks for your reply, hitwalker.

I have downloaded and installed Raven's site info block and the graphic space is there but the graphic isn't. The properties of the missing graphic are:

modules.php?name=Your_Account&op=gfx&random_num=527828
I'll check mine out to see what may have changed in 7.7. Thanks.
 
TeKKiE
Hangin' Around



Joined: May 11, 2005
Posts: 48

PostPosted: Sun May 15, 2005 10:48 am Reply with quote

I found it easier to just not show the user info block to anonymous users, and put the login block in the same area for anonymous users only. This is considered an additional step, however it is still a very viable solution. Besides, I don't really think an anonymous user cares to much for the info block, as they need to log in to view any information contained in it. Smile

Just my simple solution for the time being. I'll check in periodically to see if you've found a fix Raven. Groovy
 
View user's profile Send private message Send e-mail
ps-rage
New Member
New Member



Joined: Aug 19, 2006
Posts: 6

PostPosted: Fri Nov 10, 2006 9:52 pm Reply with quote

Ok so im pretty sure this is a noob question, but oh well, im a noob. When you say edit the global statement, where can this be found? And while im asking, where is the content code to be edited? thanks

also this is kinda off topic, but is there a way to make a module visible to all, but when you click on it you have to be registered to use it? Im pretty sure ive seen this on other sites but can't figure out how to do it.

thanks in advance
 
View user's profile Send private message Visit poster's website
Guardian2003
Site Admin



Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam

PostPosted: Sat Nov 11, 2006 5:55 am Reply with quote

ps-rage wrote:
When you say edit the global statement, where can this be found?

Open the block file in a plain text editor and seach for 'global' it will probably be near to the top of the file.

Quote:
And while im asking, where is the content code to be edited?

I do not understand - what 'content' are you referring to?

Quote:
also this is kinda off topic, but is there a way to make a module visible to all, but when you click on it you have to be registered to use it?

If you could stick to one question per topic that would be nice as it helps people who use the forum search facility to quickly find the answers they are looking for if they have a similar problem.

Not normally no. You can go to your nuke admin area, click modules, then set the permissioms for access to that module. These are usually Anonymous, Registered User, Subscriber and Admin. If you set a module to 'Registered Users' then only registered users can actually get into that module but the link to it from the menu should still be visible.
 
View user's profile Send private message Send e-mail
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 7.7

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 ©