You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 47 guest(s) and 3 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Approve_Membership, no graphic, no admin approval [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
austin457
Nuke Soldier
Nuke Soldier


Joined: Mar 01, 2008
Posts: 10


PostPosted: Sat Mar 01, 2008 9:08 am Reply with quoteBack to top

phpNuke 8.0 patched w/ 3.4, Sommaire 3.0, phpMyAdmin 2.9.1.1, MySql 5.0
Approve_Membership6.1.6-8.0

In short, my install doesn’t seem to be working- symptoms are no security graphic and approval feature not working (signup is automatic). Everything else “appears” to be working, as in the block and all looks correct. Tried IE, Firefox, Opera.
This is a new install, site isn’t live yet. I’m fairly certain that I installed approve_membership after the patch but when I noticed it not working, I re-uploaded all the approve_membership supplied files to check. My theme is based on a standard one, but I tried switching to the approve_membership supplied one, Deep Blue. I have not activated the module. I've dug around on this for many hours now to no avail. I wish I could give more details, but I really don’t know where to begin. My guess is it’s related to the patch, but I can’t figure it out.
Input?
As a side note, my Sommaire menu is not working quite right either- don’t know if that could be related, just extra info.

Edit- Not trying to bump, but something just occurred to me. When I signed up for this forum, I entered (chose) a password. But after confirming the email link, that password did not work. I had to use one the system generated and sent me in the mail. Is that how it's supposed to work? I though that was only supposed to happen if the password field was left blank. lol, is your's working? Smile
I also forgot to mention that I have GD Version bundled (2.0.28 compatible) on my account, and analyze.php can correctly display a random security code... hmm I'll print that out and compare it with mine. Maybe I can find it that way.
ltr
Find all posts by austin457View user's profileSend private messageVisit poster's website
austin457
Nuke Soldier
Nuke Soldier


Joined: Mar 01, 2008
Posts: 10


PostPosted: Sat Mar 01, 2008 9:45 pm Reply with quoteBack to top

OK, seems I got a bit confused. I can now narrow down my problem. My security code does not show in the “Site Vistors” block. It is only displaying the alt text. However, viewing the properties of that graphic item on a web page will show that random numbers are being generated on reloading the page. I now have the other areas of the site (such as new user sign up) showing the security code graphic and random numbers.
The code snippets below are where I ‘ve focused. This seems to be where the call is made for what goes onto the Site Visitors block on the page. I’m not a programmer, so I’d appreciate if someone checks it. What I don’t get is that there is no call here for the code_bg graphic. In my entire site, that call is only made from mainfile.php. I have noticed some sites have the code_bg graphic on their Site Visitors block and some don’t. How does this work? Seems like <img src should have code_bg.jpg in it…
Input?


Block- Site_Visitors.php lines 219-220

Code:
$content .="<tr><td colspan='2'>"._SV_SECURITYCODE.": <img src='modules.php?name=Your_Account&op=gfx&random_num=$random_num' border='1' alt='"._SECURITYCODE."' title='"._SECURITYCODE."'></td></tr>\n";


Modules- Your_Account index.php lines 1120-1121

Code:
echo "<tr><td colspan='2'>"._SECURITYCODE.": <img src='?gfx=gfx&random_num=$random_num' border='1' alt='"._SECURITYCODE."' title='"._SECURITYCODE."'></td></tr>\n"


and lines 1342-1343

Code:
if (extension_loaded("gd") AND ($gfx_chk == 3 OR $gfx_chk == 4 OR $gfx_chk == 6 OR $gfx_chk == 7)) {
         echo "<tr><td>"._SECURITYCODE.":</td><td><img src='?gfx=gfx&random_num=$random_num' border='1' alt='"._SECURITYCODE."' title='"._SECURITYCODE."'></td></tr>\n"



btw- I have 7 entered in root / config.php

Code:
$gfx_chk = 7;
Find all posts by austin457View user's profileSend private messageVisit poster's website
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12368


PostPosted: Sun Mar 02, 2008 12:36 am Reply with quoteBack to top

A link to your site would help. I don't see anything obvious

_________________
Helping those that help themselves
Read FIRST or DIE!

"Fighting is terrible, but not as terrible as losing the will to fight."
Star Wars Rebellion Network - Need Help? Evaders Squadron Coding
Find all posts by Evaders99View user's profileSend private messageVisit poster's websiteAIM Address
austin457
Nuke Soldier
Nuke Soldier


Joined: Mar 01, 2008
Posts: 10


PostPosted: Sun Mar 02, 2008 2:02 pm Reply with quoteBack to top

The block-Login was showing the graphic orrectly. The block-Site_Visitors was not. By comparing the two I made this change in block-Site Visitors:

Added the globals
Code:
$sitekey, $gfx_chk, $admin_file

And changed:

Code:
if (extension_loaded("gd")) {
$content .="<tr><td colspan='2'>"._SV_SECURITYCODE.": <img src='modules.php?name=Your_Account&op=gfx&random_num=$random_num' border='1' alt='"._SECURITYCODE."' title='"._SECURITYCODE."'></td></tr>\n";


To:

Code:
if (extension_loaded('gd') AND ($gfx_chk == 2 OR $gfx_chk == 4 OR $gfx_chk == 5 OR $gfx_chk == 7)) {
    $content .="<tr><td colspan='2'>"._SV_SECURITYCODE.": <img src='?gfx=gfx&random_num=$random_num' border='1' alt='"._SECURITYCODE."' title='"._SECURITYCODE."'></td></tr>\n";


Like I said I’m not a programmer, so I’m not certain why this is. But I’m good at finding patterns. It seems to work as it should now. I can see that the original was calling an external source for the graphic, the Your_Account module. But it works without that being necessary. So why was it written that way to begin with?
If someone has a moment to explain it to me, that would be cool. As for a link to my site, sure. I just know it’s often considered poor form to use that as a description of the problem. It degrades the search results of a forum.
http://www.ezcandlesticks.com/lounge/ Just note that this is not a “live section” of my site. It’s something I’m playing around with. I want to add some interaction to my site. Not much to see at the moment. Once I get everything working, I want to find some way to create quizzes and such to teach our topic.
thanks
Find all posts by austin457View user's profileSend private messageVisit poster's website
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12368


PostPosted: Sun Mar 02, 2008 6:00 pm Reply with quoteBack to top

The block may just be using old code

_________________
Helping those that help themselves
Read FIRST or DIE!

"Fighting is terrible, but not as terrible as losing the will to fight."
Star Wars Rebellion Network - Need Help? Evaders Squadron Coding
Find all posts by Evaders99View user's profileSend private messageVisit poster's websiteAIM Address
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next 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



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.197 Seconds - 280 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::