In my old forum (Invision) there was the possibility to let users choose a rank by themself. Withouth image, in personal cp they could set a "personal title" to appear just under the avatar.
In phpBB I didn't find this possibility, does anyone know a mod capable to do that?
Quick Question About Ranks
Subject: Re: Quick Question About Ranks
It is possible using Shop Mod... or more simply by creating a customized field in ACP and let the user fill it. :wink:
Subject: Re: Quick Question About Ranks
I tried adding a customized field, the only ugly thing is that it puts the title of the field... I'll try this shop mod and let you know ;)
Subject: Re: Quick Question About Ranks
He he he... but you may even create a new position for Custom Profile Fields and not inserting the Field description.
If you have a little knowledge of PHP you should be able to do this in few minutes. :wink:
Just copy what has been done for other positions. :wink:
Vortex wrote: [View Post]
He he he... but you may even create a new position for Custom Profile Fields and not inserting the Field description.
If you have a little knowledge of PHP you should be able to do this in few minutes. :wink:
Just copy what has been done for other positions. :wink:
Subject: Re: Quick Question About Ranks
I don't have any knowledge of php :D But if you give me a shot of what the code should be I can try
Subject: Re: Quick Question About Ranks
Dai uno sguardo a questo file: functions_profile_fields.php.
Qui vengono generati i campi personalizzati... basta rimuovere l'etichetta nel campo autore e spostarlo nel template dove vuoi tu! :wink:
Vortex wrote: [View Post]
Dai uno sguardo a questo file: functions_profile_fields.php.
Qui vengono generati i campi personalizzati... basta rimuovere l'etichetta nel campo autore e spostarlo nel template dove vuoi tu! :wink:
Subject: Re: Quick Question About Ranks
Uau addirittura in italiano :oops:
Scusami, ci ho provato, ma non sono riuscito a capire come fare... quale parte di codice devo eliminare? In quale file trovo il template che genera il profilo accanto al post? :(
Does anybody know which template generates user's informations next to the post?
Mighty Gorgon wrote: [View Post]
Uau addirittura in italiano :oops:
Scusami, ci ho provato, ma non sono riuscito a capire come fare... quale parte di codice devo eliminare? In quale file trovo il template che genera il profilo accanto al post? :(
Does anybody know which template generates user's informations next to the post?
Subject: Re: Quick Question About Ranks
Ok, solved as follows:
From includes/functions_profile_fields.php I found the function that generates profile fields:
And I cut the variable $field_name which shows the profile name:
Then in templates/ca_aphrodite/viewtopic_body.tpl I moved the code that generates the field, forcing it to appear just under the avatar. I took
and put it just after
Then, in order to make it similar to Invision, I centered it and separated it from other informations just using html tags <center> e <br />
Wasn't so difficult, was it? ;)
From includes/functions_profile_fields.php I found the function that generates profile fields:
- if($location == AUTHOR)
- {
- //$cp_udata_cache[$id]['author'][] = ($profile_names[$name]) ? $name . ': ' . $profile_names[$name] : '';
- $cp_udata_cache[$id]['author'][] = ($profile_names[$name]) ? $field_name . ': ' . $profile_names[$name] : '';
And I cut the variable $field_name which shows the profile name:
- if($location == AUTHOR)
- {
- //$cp_udata_cache[$id]['author'][] = ($profile_names[$name]) ? $name . ': ' . $profile_names[$name] : '';
- $cp_udata_cache[$id]['author'][] = ($profile_names[$name]) ? $profile_names[$name] : '';
Then in templates/ca_aphrodite/viewtopic_body.tpl I moved the code that generates the field, forcing it to appear just under the avatar. I took
- <!-- BEGIN author_profile -->
- {postrow.author_profile.AUTHOR_VAL}<br />
- <!-- END author_profile -->
and put it just after
- <!-- BEGIN switch_showavatars -->
- <span class="post-images"><a href="javascript:quotename('[b]{postrow.POSTER_NAME_QQ}[/b],')">{postrow.POSTER_AVATAR}</a></span>
- <!-- END switch_showavatars -->
- <div class="post-details">
Then, in order to make it similar to Invision, I centered it and separated it from other informations just using html tags <center> e <br />
- <!-- BEGIN author_profile -->
- <center>{postrow.author_profile.AUTHOR_VAL}</center><br /><br />
- <!-- END author_profile -->
Wasn't so difficult, was it? ;)
Page 1 of 1
You cannot post new topicsYou cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events
This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by Icy Phoenix based on phpBB
Generation Time: 1.2075s (PHP: 2% SQL: 98%)
SQL queries: 31 - Debug Off - GZIP Enabled