Modules - pncAdvProfile - How to install ?

hardtrancer - Jan 09, 2005 - 12:46 PM
Post subject: pncAdvProfile - How to install ?
I use pn .726final with XTE and pnrender installed.
I installed advProfiles like the help file stated by modifiying NS-User/user.php and after that I copied advProfiles to my modules directory. I initialised and activated it as a module and everything worked fine.
The link to the modules is http://www.technobilder.de/index.php?module=advProfile

I have an entry in my admin section, but when I click on it all I get is:
"Failed to load module advProfile (at function: "main")"

I also have an entry in my Mainmenu, but when I click on this:
"Failed to load module advProfile (at function: "main")"

As the help file isn't very helpfull and there's no further installation guide, please help me Smile
How do I get the module working?
Chestnut - Jan 09, 2005 - 04:40 PM
Post subject: Re: pncAdvProfile - How to install ?
Make sure you have all the files correctly uploaded... might be one or two corrupted or being jerky.

Also, I must say that you should upgrade to 0.750... No XTE pack is equal to the one given with 0.750. And since you already have XTE pack, it shouldn't be a big mess.

But of course, doing backups is never a bad thing Wink
MACscr - Jan 11, 2005 - 03:17 AM
Post subject: Re: pncAdvProfile - How to install ?
Chestnut,

Is there an install guide or customization guide? I have some heavy hacking i need to do and i really dont even know where to start yet.

Thanks,
MACscr
MACscr - Jan 11, 2005 - 05:30 AM
Post subject: Re: pncAdvProfile - How to install ?
I got it working, i was acting like a noob, my bad.
Chestnut - Jan 11, 2005 - 10:00 AM
Post subject: Re: pncAdvProfile - How to install ?
One of those days Laughing
hardtrancer - Jan 16, 2005 - 10:18 AM
Post subject:
Bad news. I migrate to 0.750 Gold now. So I did a clean new installation of it which works without problems. Then I modified user.php as statetd and copied AdvProfiles1.2 in my modules directory. Installation and Activation with no Problems.
But still I only get "Failed to load module advProfile (at function: "main")" when I click a link.

http://technobilder.de/technobilder2005/index.php?module=advProfile

Is there anything that must be done what's not in the help.txt file?
Do I have to configure pnRender or Xantia in any way? If yes, how.
MACscr - Jan 16, 2005 - 12:43 PM
Post subject:
Replace the whole user info function with this:

Code:

function user_user_userinfo()
{

$uname = pnVarCleanFromInput('uname');

if (pnUserLoggedIn()) {
    pnRedirect(pnModUrl('advProfile', 'user', 'main', array('uname' => $uname)));
} else {
    pnRedirect('user.php');
}
}


Edit: Ok, thats not it, hmm. I remember getting that too. Trying to remember what I did to get it working. Check the forum well, I posted lots of questions and a solution might be somewhere else.
Chestnut - Jan 17, 2005 - 10:59 PM
Post subject:
Is the module activated in the modules list (admin/modules)... that could be a cause since pn0.750 won't load a mod that is not "active".
Pillendreher - Jan 17, 2005 - 11:00 PM
Post subject:
Hello!
I installed advProfile to, and insert the code above. and it works.

Buuuut! i had to move all the phpBB-Forum stuff fromthe templates, cause i am using the newest version of pnForum.

But i have another problem, the userprofile is shown perfectly, but the Last 10 Comment, downloads, etc shows that mistake:


Warning: Smarty error: pnimg: image arrow.gif not found in /home/www/web171/html/wiwi-forum/includes/classes/Smarty/Smarty.class.php on line 1083

What is it? thank you for your help

www.wiwi-forum.de.ms

Simon
Chestnut - Jan 17, 2005 - 11:07 PM
Post subject:
Missing a little image in your pnimages/LANG/ folder...

Save this in your advProfile/pnimages/YOURLANG/ folder.

Image


Wink
Pillendreher - Jan 17, 2005 - 11:26 PM
Post subject:
thank you for that quick help!

but another question, how can i integrate the Last 10 Posts of pnForum instead of phpBB-forum?

Thank You!
Chestnut - Jan 17, 2005 - 11:37 PM
Post subject:
http://dev.pnconcept.com/Article299.html
drhiii - Jan 21, 2005 - 10:12 PM
Post subject:
MACscr wrote:
Replace the whole user info function with this:

Code:

function user_user_userinfo()
{

$uname = pnVarCleanFromInput('uname');

if (pnUserLoggedIn()) {
    pnRedirect(pnModUrl('advProfile', 'user', 'main', array('uname' => $uname)));
} else {
    pnRedirect('user.php');
}
}



I replaced the code and it has not worked. Have been fussing with this module, and just any generla way to display dynamic user data.

Anyone care to help on this? Have followed the docs and read tons of forums, and still canot mine the dynamic user data yet.

Help?

First, where is this "template" that people talk about? Is it a separate file, or is it part of user.php?

tx. drhiii
Chestnut - Jan 21, 2005 - 10:54 PM
Post subject:
drhiii...


The change you specify was not meant for you, see the docs in the advProfile/pndocs folder or copy this :

Code:

function user_user_userinfo()
{

    $uname = pnVarCleanFromInput('uname');

    pnRedirect(pnModUrl('advProfile', 'user', 'main', array('uname' => $uname)));

}


And replace the function user_user_userinfo() in the NS-User/user.php file.

As for the templates for the advProfile, they are in the advProfile/pntemplates folder.

You should have all examples needed to get a start on the subject.

If there is no TEST value, here is the example for the dynamics :

Code:

<td><!--[pnml name="_TEST"]--></td>
<td><!--[$TEST_VALUE]--></td>

Where _TEST is the global constant of your defined field, $TEST_VALUE is how the advProfile send to the template the data from this field (removing the underscore and adding _VALUE)

Oh and to be sure we are on the same ground, this module is for 0.750+ (unless you have the XTE pack on a pn0.726).
If you are not, then upgrade is recommended even before thinking about the advProfile.

Wink
drhiii - Jan 22, 2005 - 04:40 AM
Post subject:
Ahh, this makes sense now. That you Chestnut for this very fast and informative response. I will take your instructions and see if I can apply them.

I've been struggling to display dynamic data for several days now and I would be VERY grateful for this help.

regards, drhiii
drhiii - Jan 22, 2005 - 06:25 AM
Post subject:
Hello Chestnut,

Me again. I have done the whole exercise. Replaced the correct code, and with your help figured out the templates. Cool.

Here is the odd thing. When I used the "other" code you indicated was not the correct code, it worked. I was able to see my Dymanic Data the way I tweaked it in the pntemplates file. It made sense and appeared to work very well, except only for my data. I could not see the Dynamic Data of other users, even though I had admin rights.

Now the strange thing. I put in the shorter code, the correct code from the release, which is the same below... and I get a blank screen. This is backwards. I keep looking at the code to see what may be going wrong... but all I see is a blank screen.

Can you suggest a course? It all makes sense now, and that I was able to see the Dynamic Data using the other code was cool, but using the proper code reveals a blank screen. I scratch my head.

Oh, am using PN 0.75.

help?

tx, drhiii




Chestnut wrote:
drhiii...


The change you specify was not meant for you, see the docs in the advProfile/pndocs folder or copy this :

Code:

function user_user_userinfo()
{

    $uname = pnVarCleanFromInput('uname');

    pnRedirect(pnModUrl('advProfile', 'user', 'main', array('uname' => $uname)));

}


And replace the function user_user_userinfo() in the NS-User/user.php file.

As for the templates for the advProfile, they are in the advProfile/pntemplates folder.

You should have all examples needed to get a start on the subject.

If there is no TEST value, here is the example for the dynamics :

Code:

<td><!--[pnml name="_TEST"]--></td>
<td><!--[$TEST_VALUE]--></td>

Where _TEST is the global constant of your defined field, $TEST_VALUE is how the advProfile send to the template the data from this field (removing the underscore and adding _VALUE)

Oh and to be sure we are on the same ground, this module is for 0.750+ (unless you have the XTE pack on a pn0.726).
If you are not, then upgrade is recommended even before thinking about the advProfile.

Wink

drhiii - Jan 22, 2005 - 06:39 AM
Post subject:
Now that I think of it, perhaps I should ask... who I be able to see the user info, incluidng the defined Dynamic Data fields in the pntemplates, of all users as long as the permissions allow it? Or does advProfile only work for the user's own profile information?

againm thank you for the help, drhiii

Chestnut wrote:
drhiii...


The change you specify was not meant for you, see the docs in the advProfile/pndocs folder or copy this :

Code:

function user_user_userinfo()
{

    $uname = pnVarCleanFromInput('uname');

    pnRedirect(pnModUrl('advProfile', 'user', 'main', array('uname' => $uname)));

}


And replace the function user_user_userinfo() in the NS-User/user.php file.

As for the templates for the advProfile, they are in the advProfile/pntemplates folder.

You should have all examples needed to get a start on the subject.

If there is no TEST value, here is the example for the dynamics :

Code:

<td><!--[pnml name="_TEST"]--></td>
<td><!--[$TEST_VALUE]--></td>

Where _TEST is the global constant of your defined field, $TEST_VALUE is how the advProfile send to the template the data from this field (removing the underscore and adding _VALUE)

Oh and to be sure we are on the same ground, this module is for 0.750+ (unless you have the XTE pack on a pn0.726).
If you are not, then upgrade is recommended even before thinking about the advProfile.

Wink

drhiii - Jan 22, 2005 - 08:32 AM
Post subject:
Chestnut, and now I run into an even another problem, but after searching around I saw that you had submitted a Bug Report on this.

Am sure this is driving yuo nuts, but I have to ask... when creating and entering Dynamic User Data at New Registration, the data is *not* saved. When the user logs in and go to their My Account screen, and enters data into these Dynamic User Data fields, it is then saved.

I saw you post a bug report on this. Is there a fix for this New User Dynamic Dtaa saving problem? Again, am using PN 0.750.

Holy cow... I know I am bugging you, but you seem like the fellow with all the answers.

drhiii
drhiii - Jan 22, 2005 - 09:12 AM
Post subject:
Found and fixed the user.php file in NS-NewUser. But still do get the blank screen when trying to run advProfile. WIll shutdown for the night and leave ya alone, heh.
Chestnut - Jan 22, 2005 - 06:09 PM
Post subject:
Dunno why the blank screen... the code I gave :

Code:

function user_user_userinfo()
{

    $uname = pnVarCleanFromInput('uname');
    pnRedirect(pnModUrl('advProfile', 'user', 'main', array('uname'=>$uname)));

}


... is what I have in mine.

It may be a problem with a corrupted or badly uploaded or wrong file in the advProfile mod...
notyetajedi - May 05, 2005 - 05:03 AM
Post subject:
Hi,

I'm trying to install the advProfile mod on a .750Gold pn install, but I keep getting
Code:
Failed to load module advProfile (at function: "main")


I've replaced the userinfo function, and even uploaded the one chestnut provided. I've also uploaded the files three times, but still I get this problem.

Any ideas?
MACscr - May 05, 2005 - 05:57 AM
Post subject:
Have you activated the module? Something definately isnt referencing right. Try just uploading the stock advprofile module. Then after u get that working, then worry about the userinfo function fix.
notyetajedi - May 05, 2005 - 06:38 AM
Post subject:
Nope, still the same problem.

I deactivated advProfile, then removed it, then deleted it from the server. Also changed user.php back to the original one.
Everything worked like normal.
I uploaded advProfile, initialised it, ok. Activated it, ok. Changed user.php, got the same error.

Just wondering, after I initialise and activate the module, am I supposed to see any new icons in the admin panel?
MACscr - May 05, 2005 - 07:02 AM
Post subject:
Yes you are. There should be a new icon. Also, I think the module might even work halfway without the user.php change. Im just saying it should still load when u visit it. YOu just wouldnt have a redirect to it if someone went to domain.com/user.php?userinfo= or whatever that link is.
notyetajedi - May 05, 2005 - 07:26 AM
Post subject:
Ok, that's weird 'cause I don't see any new icons at all...
MACscr - May 05, 2005 - 07:48 AM
Post subject:
Have you gone into modules and clicked on regenerate, to make sure it actually is activated? I really dont think it is as that would be the type of error your getting. Or maybe your not uploading it right. First, deactivate, then remove. Then go into your ftp and make sure this is the exact path to the pninit.php file.

/public_html/modules/advProfile/pninit.php

this is with public_html being your site root. Wont load like this, but would be something like domain.com/modules/advProfile/pninit.php

If its not. Make sure u reupload it correctly, then click regenerate, then initialize, then activate.
notyetajedi - May 05, 2005 - 07:55 AM
Post subject:
That's exactly what I'm doing, andwhat I just did again. Doesn't work. Sad
notyetajedi - May 05, 2005 - 10:05 AM
Post subject:
Ahahaha I figured out what was wrong. For some reason the permissions were all wrong!!
Now it works, except that initially I got the SQL error, so I followed the advice in one of the other threads here and removed the plugins I don't use (nbphpbb and pncuserpoints) but now on the "Activity" page I get

Activity
_NBPHPBBMSGTITLE
_USERPOINTSTITLE

followed by the rest which are working correctly. Why's this?
Chestnut - May 05, 2005 - 10:12 AM
Post subject:
Remove also the unneeded pnml name="_XXXXXXXXX" in the activity.tpl
Wink
notyetajedi - May 05, 2005 - 10:14 AM
Post subject:
Ummm...ahh...err...Sorry for sounding stupid, but...where's that? ^^;;
notyetajedi - May 05, 2005 - 10:27 AM
Post subject:
Ah oky, found it. Deleted it in activity.tpl as well as all.tpl
Works like a charm.

Thanks heaps, Chestnut and MACsr! Very Happy
NightShade - Sep 01, 2005 - 09:45 PM
Post subject:
Chestnut wrote:
http://dev.pnconcept.com/Article299.html

Hi,
sorry if I follow the above mentioned link then I don't find really useful information to include the pnForum information into advProfile.
Is there any kind of documentation available?
Regards, NightShade
Chestnut - Sep 01, 2005 - 11:41 PM
Post subject:
Download the plugin : HERE

and put it in the modules/advProfile/pntemplates/plugins folder...

Download the template Here

and put it in the modules/advProfile/pntemplates/default folder...

And finally... The laguage file Here

and put it in the modules/advProfile/pntemplates/pnlang/yourlang folder...

In your activity template or _all template, add something like this :

Code:

<tr>
  <!--[last10postspnForum uid=$uid assign="last10postspnForum"]-->
  <td colspan="2"><!--[$last10postspnForum|pnvarprephtmldisplay]--></td>
</tr>


And you're set...
NightShade - Sep 02, 2005 - 09:03 AM
Post subject:
Thanks Smile
Chestnut - Sep 02, 2005 - 12:26 PM
Post subject:
Quick note, I just received an email from Jörg Napp saying he worked on the plugin...
So a new one might be coming soon.
Wink
All times are GMT + 1 Hour
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits