auth.php shop mod code problems?

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   auth.php shop mod code problems?
shipupride
CZ Newbie
 Codezwiz Site Donator
shipupride has been a member for over 19 year's 19 Year Member
Gender: Male
Status: Offline
Joined: Jun 30, 2005
0.00 posts per day
Posts: 10
Points: 1,058
   
Greetings,

Installing shop mod downloaded from this site and running into a snag.

After following the directions to a T (twice in fact) I think there may be an error in the code.

After I upload the modified auth.php file, and click on Forums in phpnuke, I get:



Parse error: parse error, unexpected ')' in /home/pride/public_html/includes/auth.php on line 354


Line 354 in auth.php is the following:

//SHOP MOD
                  (!in_array("auth_sticky",$auth_fields) && !in_array("auth_announce",$auth_fields) && !in_array("auth_delete",$auth_fields) && ($userdata['user_level'] == 0)))
            {
                  $value = 1;
            }
            //END SHOP MOD


I have also attached the fully modified auth.php file referenced in the code above.

Please assist! Thank you!


Attached Files
auth.txt (17.42 KB, Downloaded: 5231 Time(s))


Back to top Reply with quote
#2   re: auth.php shop mod code problems?
Kelly_Hero
PayPal Donation
CZ Revered Member
 Codezwiz Site Donator
usa.gif southcarolina.gif
Occupation: Web Developer
Age: 59
Gender: Female
Website:
Status: Offline
Joined: Aug 20, 2003
0.49 posts per day
Posts: 3765
Points: 351,412
   
Try this:
//SHOP MOD
                  (!in_array("auth_sticky",$auth_fields) && !in_array("auth_announce",$auth_fields) && !in_array("auth_delete",$auth_fields) && ($userdata['user_level'] == 0))
            {
                  $value = 1;
            }
            //END SHOP MOD



Back to top Reply with quote
#3   re: auth.php shop mod code problems?
shipupride
CZ Newbie
 Codezwiz Site Donator
shipupride has been a member for over 19 year's 19 Year Member
Gender: Male
Status: Offline
Joined: Jun 30, 2005
0.00 posts per day
Posts: 10
Points: 1,058
   
Hi there! I just fixed it as I was checking back here for an update... you were correct... that fixed it.

It also required an "if" in the beginning, I must have missed that both times when doing a copy paste.

It looks like the mod is working... almost.

I am still having a problem when I actually go to buy the product, it says



You don't have enough to purchase that!


I have 100,000 points, and only required this particular item to cost 1,000.

Also, when trying to change another users avatar, i chose a non mod/admin and it still says "You cannot change a mod/admin's title."

What could be going on?



Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
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 cannot attach files in this forum
You cannot download files in this forum