PHP Web Host - Quality Web Hosting For All PHP Applications $35/month $250/year (Unlimited) - $25/month - 200,000 impressions - Your Ad Could be Here - Click For Details
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
Lateron
Worker
Worker


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

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

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
persona_non_grata



Joined:
Posts: 0

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

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


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

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

Thanks for your reply, persona_non_grata.

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
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 15235
Location: Kansas

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

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 Visit poster's website AIM Address Yahoo Messenger
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 15235
Location: Kansas

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

Lateron wrote:
Thanks for your reply, persona_non_grata.

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.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
TeKKiE
Hangin' Around


Joined: May 11, 2005
Posts: 48

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

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 Back to top

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: 4869

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

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 Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2008 by Raven
Proud to be listed at Lobo Links Web Directory

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::

:: fisubice Theme Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum