Forum Index   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
hardtrancerOffline



Joined: Jun 05, 2004
Posts: 7

Status: Offline
Post   Posted: Jan 09, 2005 - 12:46 PM Reply with quote Back to top

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?


Last edited by hardtrancer on Jan 09, 2005 - 12:53 PM; edited 1 time in total
View user's profile Send private message
Chestnut
Site Admin


Joined: Oct 08, 2003
Posts: 1065
Location: Paris - France
Post   Posted: Jan 09, 2005 - 04:40 PM Reply with quote Back to top

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

_________________
Chestnut ! Cool
Administrator
PNConcept.com
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
MACscrOffline



Joined: Jan 11, 2005
Posts: 128

Status: Offline
Post   Posted: Jan 11, 2005 - 03:17 AM Reply with quote Back to top

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
View user's profile Send private message Visit poster's website AIM Address
MACscrOffline



Joined: Jan 11, 2005
Posts: 128

Status: Offline
Post   Posted: Jan 11, 2005 - 05:30 AM Reply with quote Back to top

I got it working, i was acting like a noob, my bad.
View user's profile Send private message Visit poster's website AIM Address
Chestnut
Site Admin


Joined: Oct 08, 2003
Posts: 1065
Location: Paris - France
Post   Posted: Jan 11, 2005 - 10:00 AM Reply with quote Back to top

One of those days Laughing

_________________
Chestnut ! Cool
Administrator
PNConcept.com
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
hardtrancerOffline



Joined: Jun 05, 2004
Posts: 7

Status: Offline
Post   Posted: Jan 16, 2005 - 10:18 AM Reply with quote Back to top

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.
View user's profile Send private message
MACscrOffline



Joined: Jan 11, 2005
Posts: 128

Status: Offline
Post   Posted: Jan 16, 2005 - 12:43 PM Reply with quote Back to top

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.


Last edited by MACscr on Jan 16, 2005 - 12:46 PM; edited 2 times in total
View user's profile Send private message Visit poster's website AIM Address
Chestnut
Site Admin


Joined: Oct 08, 2003
Posts: 1065
Location: Paris - France
Post   Posted: Jan 17, 2005 - 10:59 PM Reply with quote Back to top

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".

_________________
Chestnut ! Cool
Administrator
PNConcept.com
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
PillendreherOffline



Joined: Jan 17, 2005
Posts: 2

Status: Offline
Post   Posted: Jan 17, 2005 - 11:00 PM Reply with quote Back to top

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
View user's profile Send private message
Chestnut
Site Admin


Joined: Oct 08, 2003
Posts: 1065
Location: Paris - France
Post   Posted: Jan 17, 2005 - 11:07 PM Reply with quote Back to top

Missing a little image in your pnimages/LANG/ folder...

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

Image


Wink

_________________
Chestnut ! Cool
Administrator
PNConcept.com
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
PillendreherOffline



Joined: Jan 17, 2005
Posts: 2

Status: Offline
Post   Posted: Jan 17, 2005 - 11:26 PM Reply with quote Back to top

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!
View user's profile Send private message
Chestnut
Site Admin


Joined: Oct 08, 2003
Posts: 1065
Location: Paris - France
Post   Posted: Jan 17, 2005 - 11:37 PM Reply with quote Back to top

http://dev.pnconcept.com/Article299.html

_________________
Chestnut ! Cool
Administrator
PNConcept.com
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
drhiiiOffline



Joined: Jan 15, 2005
Posts: 6

Status: Offline
Post   Posted: Jan 21, 2005 - 10:12 PM Reply with quote Back to top

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
View user's profile Send private message
Chestnut
Site Admin


Joined: Oct 08, 2003
Posts: 1065
Location: Paris - France
Post   Posted: Jan 21, 2005 - 10:54 PM Reply with quote Back to top

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

_________________
Chestnut ! Cool
Administrator
PNConcept.com
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
drhiiiOffline



Joined: Jan 15, 2005
Posts: 6

Status: Offline
Post   Posted: Jan 22, 2005 - 04:40 AM Reply with quote Back to top

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
View user's profile Send private message
drhiiiOffline



Joined: Jan 15, 2005
Posts: 6

Status: Offline
Post   Posted: Jan 22, 2005 - 06:25 AM Reply with quote Back to top

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


Last edited by drhiii on Jan 22, 2005 - 07:10 AM; edited 2 times in total
View user's profile Send private message
drhiiiOffline



Joined: Jan 15, 2005
Posts: 6

Status: Offline
Post   Posted: Jan 22, 2005 - 06:39 AM Reply with quote Back to top

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
View user's profile Send private message
drhiiiOffline



Joined: Jan 15, 2005
Posts: 6

Status: Offline
Post   Posted: Jan 22, 2005 - 08:32 AM Reply with quote Back to top

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
View user's profile Send private message
drhiiiOffline



Joined: Jan 15, 2005
Posts: 6

Status: Offline
Post   Posted: Jan 22, 2005 - 09:12 AM Reply with quote Back to top

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.


Last edited by drhiii on Jan 22, 2005 - 09:24 AM; edited 1 time in total
View user's profile Send private message
Chestnut
Site Admin


Joined: Oct 08, 2003
Posts: 1065
Location: Paris - France
Post   Posted: Jan 22, 2005 - 06:09 PM Reply with quote Back to top

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...

_________________
Chestnut ! Cool
Administrator
PNConcept.com
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
notyetajediOffline



Joined: May 05, 2005
Posts: 7

Status: Offline
Post   Posted: May 05, 2005 - 05:03 AM Reply with quote Back to top

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?
View user's profile Send private message
MACscrOffline



Joined: Jan 11, 2005
Posts: 128

Status: Offline
Post   Posted: May 05, 2005 - 05:57 AM Reply with quote Back to top

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.
View user's profile Send private message Visit poster's website AIM Address
notyetajediOffline



Joined: May 05, 2005
Posts: 7

Status: Offline
Post   Posted: May 05, 2005 - 06:38 AM Reply with quote Back to top

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?
View user's profile Send private message
MACscrOffline



Joined: Jan 11, 2005
Posts: 128

Status: Offline
Post   Posted: May 05, 2005 - 07:02 AM Reply with quote Back to top

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.
View user's profile Send private message Visit poster's website AIM Address
notyetajediOffline



Joined: May 05, 2005
Posts: 7

Status: Offline
Post   Posted: May 05, 2005 - 07:26 AM Reply with quote Back to top

Ok, that's weird 'cause I don't see any new icons at all...
View user's profile Send private message
Display posts from previous:     
Jump to:  
All times are GMT + 1 Hour
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits
DarkMindZ