[How To] Utilizing each Custom Profile Field

How-to's, little tricks, tutorials, code examples (snippets) and read-me's.

Re: [How To] Utilizing each Custom Profile Field

Postby Jaymie1989 » 12 Jan 2011, 02:40

Try this

Go to your ACP > General > Board features > Load Settings and turn on the Allow styles to display custom profile fields in memberlist
Jaymie1989    
Supporter
Supporter
 
Posts: 1370
Joined: 30 Sep 2007, 15:51
Location: Some where in phpbb_users table
Favorite Team: Liverpool FC
Gender: Male
phpBB Knowledge: 5


Re: [How To] Utilizing each Custom Profile Field

Postby Sniper_E » 12 Jan 2011, 11:43

No Honor, this code: viewtopic.php?p=125895#p125895 was for your viewtopic_body.html template.
That lines your stuff up in the profile section of the viewtopic page. You didn't like it under the sig.
I got that code from your post here: viewtopic.php?p=125881#p125881

I think the code has to change a little for the memberlist_view.html template.
Image
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!
User avatar
Sniper_E    
STG Jedi Master
STG Jedi Master
 
Posts: 6983
Joined: 31 May 2006, 06:29
Location: Shreveport, LA
Favorite Team: The STG Team
Gender: Male
phpBB Knowledge: 6

Re: [How To] Utilizing each Custom Profile Field

Postby Sniper_E » 13 Jan 2011, 00:49

Hows it going Honor? Did you get this in your viewtopic_body.html template: viewtopic.php?p=125895#p125895

That same code above, in the memberlist_view.html... some of those codes have to be changed for that page.

All the codes like this:
Code: Select all
<!-- IF postrow.S_PROFILE_SGCNAMEONE -->
need to be replaced with
Code: Select all
<!-- IF S_PROFILE_SGCNAMEONE -->
remove the postrow. for the memberlist template.

And all the codes like this:
Code: Select all
{postrow.PROFILE_SGCLINKONE_VALUE}
need to be changed to this
Code: Select all
{PROFILE_SGCLINKONE_VALUE}
remove the postrow. for the memberlist template.
Image
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!
User avatar
Sniper_E    
STG Jedi Master
STG Jedi Master
 
Posts: 6983
Joined: 31 May 2006, 06:29
Location: Shreveport, LA
Favorite Team: The STG Team
Gender: Male
phpBB Knowledge: 6

Re: [How To] Utilizing each Custom Profile Field

Postby Honor » 13 Jan 2011, 14:30

So sorry - I've been reading and tweaking, but a busy work schedule and the beginning of school didn't allow me to respond =/

Yes, I've got the mini profiles exactly as I want - I'm fine with the strong not being that strong :) I'll be doing some other tweakings when I get into the actual style of it.

I also got it working in the main profile page, thanks! And because of the work we've done in this thread, I was even able to switch some things around in it :D

Picture 9.png


I want to completely rebuild the profile pages though, as I REALLY don't like the layout lol. I will let you know personally when I get that far, because you guys have contributed much if not all of my knowledge in the matter :) Thanks again!

Just out of curiosity, what's the difference between the memberlist view page and the view topic page? Why did the codes have to be different? Syntax isn't my strong point so it helps me to understand these things :)
BluePlanet RP
my own creation.

Host: Host Monster
Version: 3.0.9
Honor    
STG Moderator
STG Moderator
 
Posts: 328
Joined: 23 Dec 2010, 10:53
Gender: Female
phpBB Knowledge: 2

Re: [How To] Utilizing each Custom Profile Field

Postby King Rhyono » 13 Jan 2011, 16:03

Honor wrote:Just out of curiosity, what's the difference between the memberlist view page and the view topic page? Why did the codes have to be different? Syntax isn't my strong point so it helps me to understand these things :)


Slight differences make sense, but overall, it wasn't the best way to handle the system. I don't know why they did it the way they did.
King Rhyono
MOD Author
MOD Author
 
Posts: 174
Joined: 01 Aug 2007, 11:20
Gender: Male

Re: [How To] Utilizing each Custom Profile Field

Postby Sniper_E » 13 Jan 2011, 18:59

If your curiosity...

The reason they have the codes in the viewtopic different than they do in the memberlist is because...
in the viewtopic there are rows of different posts to distinguish and there are no rows in the memberlist.

To keep the profiles separate for each user, it keeps tracks of each profile in a separate postrow.
The memberlist_view is about the one user only so there is no need for a bunch of postrows.

Thus... take out the postrow. for the memberlist page, other than that... the codes are identical. :coffee:

And Chrissie, changing those codes like <strong>Stargate Command</strong>
to something like <strong style="font-size: 1.1em">Stargate Command</strong> will make those bolder for you.
Image
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!
User avatar
Sniper_E    
STG Jedi Master
STG Jedi Master
 
Posts: 6983
Joined: 31 May 2006, 06:29
Location: Shreveport, LA
Favorite Team: The STG Team
Gender: Male
phpBB Knowledge: 6

Re: [How To] Utilizing each Custom Profile Field

Postby Honor » 13 Jan 2011, 21:36

Wow that actually made perfect sense...

So much to learn *facepalm*. And yes, I meant to say I saw that help you offered with the ems. I've gotten used to the look of it now. I'll try it out later when I get to styling the board :) Thank you so so much!
BluePlanet RP
my own creation.

Host: Host Monster
Version: 3.0.9
Honor    
STG Moderator
STG Moderator
 
Posts: 328
Joined: 23 Dec 2010, 10:53
Gender: Female
phpBB Knowledge: 2

Re: [How To] Utilizing each Custom Profile Field

Postby King Rhyono » 14 Jan 2011, 10:34

I thought you were referring to the use of postrow, memberrow, custom_fields, and no prefix.
King Rhyono
MOD Author
MOD Author
 
Posts: 174
Joined: 01 Aug 2007, 11:20
Gender: Male

Re: [How To] Utilizing each Custom Profile Field

Postby Honor » 14 Jan 2011, 15:43

Well, it's still not cosmetically correct for me, but it's getting there! Just wanted to show you what I managed with another mod and the help recieved here :) May inspire someone else who's working with the custom profile fields :)

Picture 11.png
BluePlanet RP
my own creation.

Host: Host Monster
Version: 3.0.9
Honor    
STG Moderator
STG Moderator
 
Posts: 328
Joined: 23 Dec 2010, 10:53
Gender: Female
phpBB Knowledge: 2

Re: [How To] Utilizing each Custom Profile Field

Postby Honor » 23 Jan 2011, 20:44

Hey, it's me again :D 2 Questions now.

1) I have SO MANY custom profile fields in the UCP now. Is it possible to move the custom profile fields to a different tab in the ACP so a user isn't bogged down by a huge list of things to fill in? I am also looking at adding character notes for people, so that's adding another ten fields, plus if there is an answer to my next question, ANOTHER ten. (possibly more).

2) I just realized that I could use these custom fields for that Sig designation I had asked for a long time ago (I think), but I'm not sure how. I would like to allow users to use different sigs for different forums, and the sig shows depending on the forum you are in. Like, if there's a space forum, and a desert forum, and an ocean forum, I would have three different fields to enter three different sigs, and then IF statements (maybe? or maybe php?) to call the different sigs for different forums, so that my ocean sig only shows in the ocean forum, and the desert sig only shows in the desert forum, etc.
BluePlanet RP
my own creation.

Host: Host Monster
Version: 3.0.9
Honor    
STG Moderator
STG Moderator
 
Posts: 328
Joined: 23 Dec 2010, 10:53
Gender: Female
phpBB Knowledge: 2

PreviousNext

Return to Tutorials and How-Tos

Who is online

Users browsing this forum: No registered users and 6 guests