https://www.icyphoenix.com/viewtopic.php?f=35&t=525 ----------------------------------- Vortex Sat 28 Oct, 2006 12:47 Quick Question About Ranks ----------------------------------- 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? ----------------------------------- Mighty Gorgon Sun 29 Oct, 2006 12:25 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: ----------------------------------- Vortex Sun 29 Oct, 2006 12:30 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 ;) ----------------------------------- Mighty Gorgon Sun 29 Oct, 2006 17:49 Re: Quick Question About Ranks ----------------------------------- [quote user="Vortex" post="4243"]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 ;)[/quote] 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 Sun 29 Oct, 2006 18:03 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 ----------------------------------- Mighty Gorgon Mon 30 Oct, 2006 21:43 Re: Quick Question About Ranks ----------------------------------- [quote user="Vortex" post="4277"]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[/quote] Dai uno sguardo a questo file: [b]functions_profile_fields.php[/b]. Qui vengono generati i campi personalizzati... basta rimuovere l'etichetta nel campo autore e spostarlo nel template dove vuoi tu! :wink: ----------------------------------- Vortex Mon 30 Oct, 2006 23:50 Re: Quick Question About Ranks ----------------------------------- [quote user="Mighty Gorgon" post="4296"][quote user="Vortex" post="4277"]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[/quote] Dai uno sguardo a questo file: [b]functions_profile_fields.php[/b]. Qui vengono generati i campi personalizzati... basta rimuovere l'etichetta nel campo autore e spostarlo nel template dove vuoi tu! :wink:[/quote] 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? ----------------------------------- Vortex Fri 03 Nov, 2006 10:45 Re: Quick Question About Ranks ----------------------------------- Ok, solved as follows: From [b]includes/functions_profile_fields.php[/b] I found the function that generates profile fields: [code]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] : ''; [/code] And I cut the variable [b]$field_name[/b] which shows the profile name: [code]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] : ''; [/code] Then in [b]templates/ca_aphrodite/viewtopic_body.tpl[/b] I moved the code that generates the field, forcing it to appear just under the avatar. I took [code] {postrow.author_profile.AUTHOR_VAL}
[/code] and put it just after [code] {postrow.POSTER_AVATAR}
[/code] Then, in order to make it similar to Invision, I centered it and separated it from other informations just using html tags
e
[code]
{postrow.author_profile.AUTHOR_VAL}


[/code] Wasn't so difficult, was it? ;) ----------------------------------- moreteavicar Fri 03 Nov, 2006 12:28 Re: Quick Question About Ranks ----------------------------------- See... you could do it ;) ----------------------------------- Mighty Gorgon Sat 04 Nov, 2006 01:42 Re: Quick Question About Ranks ----------------------------------- He he he... I think that someone helped him! :mrb: ----------------------------------- Vortex Sat 04 Nov, 2006 09:47 Re: Quick Question About Ranks ----------------------------------- :oops: