[phpBB Debug] PHP Warning: in file [ROOT]/feed.php on line 173: Cannot modify header information - headers already sent by (output started at [ROOT]/feed.php:1)
[phpBB Debug] PHP Warning: in file [ROOT]/feed.php on line 174: Cannot modify header information - headers already sent by (output started at [ROOT]/feed.php:1)
[phpBB Debug] PHP Warning: in file [ROOT]/feed.php on line 180: Cannot modify header information - headers already sent by (output started at [ROOT]/feed.php:1)
IntegraMOD Home of phpBB Integrated Modifications 2006-08-13T20:11:30-07:00 https://integramod.com/forum/feed.php?f=17&t=1765 2006-08-13T20:11:30-07:00 2006-08-13T20:11:30-07:00 https://integramod.com/forum/viewtopic.php?t=1765&p=13612#p13612 <![CDATA[Re: Modifying Author Panel in viewtopic]]> Statistics: Posted Author: Teelk — Sun Aug 13, 2006 8:11 pm


]]>
2006-08-11T03:37:54-07:00 2006-08-11T03:37:54-07:00 https://integramod.com/forum/viewtopic.php?t=1765&p=13485#p13485 <![CDATA[Modifying Author Panel in viewtopic]]> Statistics: Posted Author: Kate — Fri Aug 11, 2006 3:37 am


]]>
2006-08-11T03:36:45-07:00 2006-08-11T03:36:45-07:00 https://integramod.com/forum/viewtopic.php?t=1765&p=13484#p13484 <![CDATA[Modifying Author Panel in viewtopic]]>
Question:

I want the profile to have the "Gamertag" field name, but in the viewtopic.left I don't want it to show up. If I remove 'txt' => 'Gamertag' from def_userfields.php it takes it away from both.

Ideas?

Statistics: Posted Author: Kate — Fri Aug 11, 2006 3:36 am


]]>
2006-08-06T13:03:33-07:00 2006-08-06T13:03:33-07:00 https://integramod.com/forum/viewtopic.php?t=1765&p=13165#p13165 <![CDATA[Re: Modifying Author Panel in viewtopic]]>
But, you'll need to create a field in the users table called user_gametag and an output function in def_userfuncs_custom.php. Take a look at some of the other functions in the def_userfuncs_xxxx.php files for examples. When I get home I'll write up an example function for you.

You're also getting that message because you've made the field required but can't input it anywhere. I'd remove the required for the time being so you can play with it.

Statistics: Posted Author: Teelk — Sun Aug 06, 2006 1:03 pm


]]>
2006-08-06T09:15:18-07:00 2006-08-06T09:15:18-07:00 https://integramod.com/forum/viewtopic.php?t=1765&p=13160#p13160 <![CDATA[Modifying Author Panel in viewtopic]]>
So I've put the following in def_userfields:
 under  // generic informations  //XBOXLIVE Mod             'gamertag' => array(                 'lang_key'       => 'Gamertag',                 'class'           => 'generic',                 'type'           => 'VARCHAR',                 'visibility'     => true,                 'required'       => true,                         ),



And the following in def_usermaps]     under 'PCP.profil.profile_prefer.Registering_info'  //XBOX LIVE Mod                         'gamertag'     => array(                             ),      under 'PHPBB.viewtopic.left'  //XBOX LIVE Mod                         'gamertag' => array(                                 'leg'             => true,                                 'txt'             => true,                                 'style'           => '<div>%s</div>',                             ),[/code]

Now I'm getting


Sorry, it appears this is your first visit since we added some required fields to the system.
Once you update the fields marked with *, you will be able to enjoy the whole site.
Thanks!

Click on the fieldnames below to complete them:
The Field "" is required


Where do I need to call these variables for the fields to show up? Where in the template do I need to add the input field, etc? Do I need to add "gamertag" as a field into my SQL database?

Last question (for now) - what is 'leg' ? <img>

Statistics: Posted Author: Kate — Sun Aug 06, 2006 9:15 am


]]>
2006-08-03T06:54:15-07:00 2006-08-03T06:54:15-07:00 https://integramod.com/forum/viewtopic.php?t=1765&p=13017#p13017 <![CDATA[Re: Modifying Author Panel in viewtopic]]>
Then I add the code to the def_userfields.php and def_usermaps.php. Almost every field in def_userfields.php from a MOD like the one you describe will go under generic informations.

I'm terrible at describing this sort of thing, so please bare with me.

I'll use the field for the Full Album Pack, since I have it right here...
            'user_album' => array(                 'lang_key'     => 'Gallery',                 'class'        => 'generic',                 'type'         => 'VARCHAR',                 'dsp_func'     => 'pcp_output_album',             ),

The field user_album is calling the display function pcp_output_album, which is the function you would place in profilcp/def/def_userfuncs_custom.php. The lang_key can be a lang key or if there's no lang_key whatever you've put there will be displayed, if text is displayed for this particular field. Type, that's obvious, whatever the db info is your calling.

On to def_usermaps.php
Here it's key to find the right location. Use the parent and child array names as hints to what they might be. Then place your code where you want it.
                        'user_album' => array(                                 'img'          => true,                                 'style'        => '<td><span>%s </span></td>',                             ),
img being true means there'll be an image involved and that you've defined $img in your function, same with $txt and 'txt' => true. Style's pretty obvious, just keep the %s, as that's your output.

I hope I've helped somehow... there's so much more to this that I can't articulate...

Statistics: Posted Author: Teelk — Thu Aug 03, 2006 6:54 am


]]>
2006-08-03T03:44:20-07:00 2006-08-03T03:44:20-07:00 https://integramod.com/forum/viewtopic.php?t=1765&p=13003#p13003 <![CDATA[Modifying Author Panel in viewtopic]]>
1. Add a required field in the user profile (gamertag)
2. Set a variable to assign a URL to the gamertag that shows up in the viewtopic.php AND big profile.
3. How do I do this with PCP?

I can do this with regular phpBB no problem, but I've not dealt with this panel before and I wanted to ask if there was any documentation on this before I started getting my hands dirty.

Thanks in advance!
Kate

Statistics: Posted Author: Kate — Thu Aug 03, 2006 3:44 am


]]>