>>  Site Map >>  Forums >>  Post Installation Help

Forum module - topics in forum:



Post Installation Help - Help with problems after installation.



Admin-only user activation in phpNuke 7.6

In phpBB config I tell it to use Admin auth, and it keeps doing user auth. I can't find anywhere to set this in the phpNuke preferences. Help?






Those settings don't do anything in nuke, they are carryovers from the standalone phpbb.






Alright then. I have a Nuke 6.5 install and I swear it lets me do admin auth...wonder if it's a hack. Hmmmm, checking into it.






In PHP-Nuke all of the accouont info (signups etc) are handled by the your_account module. So under NORMAL circumstances the signups even for the forums are automatic. If you are trying to control who signs up for your site you can try what I am about to show you:

Open Your_Account/index.php and find:
Code: :
if ($userinfo[user_avatar]) { echo "<img src=\"modules/Forums/images/avatars/$userinfo[user_avatar]\"><br>\n"; }

Replace with:
Code: :
if ( ereg( "(http)", $userinfo[user_avatar]) )
   {
$content .= "<br><center><img src=\"$userinfo[user_avatar]\"><br></center>\n";
}
else
if ($userinfo[user_avatar])
{
$content .= "<br><center><img src=\"modules/Forums/images/avatars/$userinfo[user_avatar]\" alt=\"\"></center><br>\n";
   }

Then find:
Code: :
   case "new_user":
        new_user();
        break;

Replace with:
Code: :
    case "new_user":
        Header("Refresh: 0; url=modules.php?name=Forums&file=profile&mode=register");   
        break; 

Find:
Code: :
    case "edituser":
        edituser();
        break; 

Replace with:
Code: :
    case "edituser":
        Header("Refresh: 0; url=modules.php?name=Forums&file=profile&mode=editprofile");   
        break; 


This points registration and avatars to your forum where the admin activation is. I hope that is what you are looking for.




Woo!

If that just obeys the phpBB admin-auth setting, and functions as phpBB standalone with regards to admin activation of accounts, then yes Smile. Thank you! Will implement that now.






I think i have this problem too.. i say think because im not sure:wink:

Ok, when people register to my domain, they have to do the box code thing username password etc.. they then receive an email to click a link to activate it. then they go in and login and post..
I also assumed by selecting "Admin activation" would enable me to choose whom can register before they can post.. I have selected Admin activation, put correct email address but still i can register and, get email back and login and post..
SHould i backup a copy of Your_Account/index.php and edit as above please?

Thanks
Stu






It is always reccommended that you back up your files before making any changes.

And after installing this I'm assuming you will than need to change the configuration setting in your Forums ACP.

Let us know...






HoRrOr-CoDe Wrote: :
It is always reccommended that you back up your files before making any changes.

And after installing this I'm assuming you will than need to change the configuration setting in your Forums ACP.

Let us know...


will backup "this time" Wink

Config in ACP is setup already.. wondered why it werent working..

let you know how it goes Smile






HI sorry for reply post but thought you might have read that last one already
and be waiting....

When the TUT says "Open Your_Account/index.php"
Is that the index.php in my root folder? ie .co.uk/forum/index.php"
I searched for the "finds" to replace but found none of them in that one?

sorry complete noob here Smile






Sorry.

NO, the file is:

http://YOURSITE.com/modules/Your_Account/index.php

As far as it being set, thats fine, but it won't work until your done making the changes.


Welcome to the community!






HoRrOr-CoDe Wrote: :
Sorry.

NO, the file is:

http://YOURSITE.com/modules/Your_Account/index.php


Sorry mate not having much luck today....

I opened index.php located in
mysite/forum/modules/Your_Account/index.php

BUt cant find the finds to replace still?
I have uploaded a copy of it and will pm you as i dont know what info is in it to show to anyone Smile
thanks for still helping
Stu






I'm looking over it now, sorry it took so long.

It's safe to post the link to it if you so choose, for others to review.

Thanks






AHHH...

I should've asked this sooner, and theres a reason.

What version of php-Nuke is this??

It appears that the code has signifigant changes...

EG.

Code: :
if ($userinfo[user_avatar]) { echo "<img src=\"modules/Forums/images/avatars/$userinfo[user_avatar]\"><br>\n"; }


has been changed to

Code: :
if ($userinfo['user_avatar_type'] == 1) {
      $userinfo['user_avatar'] = $board_config['avatar_path']."/".$userinfo['user_avatar'];
   } elseif ($userinfo['user_avatar_type'] == 2) {
      $userinfo['user_avatar'] = $userinfo['user_avatar'];
   } else {
      $userinfo['user_avatar'] = $board_config['avatar_gallery_path']."/".$userinfo['user_avatar'];


Which is signifigantly different...and I wouldn't know if changing it to

Code: :
if ( ereg( "(http)", $userinfo[user_avatar]) )
   {
$content .= "<br><center><img src=\"$userinfo[user_avatar]\"><br></center>\n";
}
else
if ($userinfo[user_avatar])
{
$content .= "<br><center><img src=\"modules/Forums/images/avatars/$userinfo[user_avatar]\" alt=\"\"></center><br>\n";
   }


Would help, I'm guessing you'd break it...

So what version is it, and go ahead and post a link for everyone else to look over the index.php...

Once again, sorry for wasting your time...






ok.. dont worry mate i appreciate your help no matter about how long it takes you, i purchased Nukephp 8.1 updates 2.0.23
by the way "forum" was my html root folder
This is the index.php located in ww.mysite.co.uk/forum/modules/your_account/index.php
CLICK HERE

thanks in advance






Funny, thats exactly the version I guessed...

I can't wait for a nCo version of 8.x...

Also, theres another call to


Code: :
f ($userinfo['user_avatar_type'] == 1) {
      $userinfo['user_avatar'] = $board_config['avatar_path']."/".$userinfo['user_avatar'];
   } elseif ($userinfo['user_avatar_type'] == 2) {
      $userinfo['user_avatar'] = $userinfo['user_avatar'];
   } else {
      $userinfo['user_avatar'] = $board_config['avatar_gallery_path']."/".$userinfo['user_avatar'];


So I'm guessing 8.1 has some huge changes...

I'm gonna have to leave this to someone else...

I'll keep watching though




Attention! You are currently viewing sitemap page!
We strongly suggest to look at original content

Search from web

Select page

Valid HTML 4.01 Valid CSS