"Parse BBCode in Custom Profile Fields" anpassen?
Verfasst: 08.12.2008 07:12
Parse BBCode in Custom Profile Fields
das ist der mod. mit dem kann man in den CPF auch bbcode anzeigen lassen (sagt der name ja schon), ABER eben nur bei den standardfeldern...
hier ist das kein problem:
aber das hab ich rausgeworfen, da ich die profilfelder auf verschiedene weise dargestellt haben will. somit ist ein allgemeiner code nicht zu gebrauchen und es sieht ungefähr so aus:
dort soll der bbcode aber auch geparst werden, allerdings geht das so nicht.
in dem teil (in der memberlist hab ich die CPF nicht)
hab ich versuchsweise das ["PROFILE_FIELD_VALUE"] mit ["PROFILE_BLA_VALUE"] ersetzt, hat aber bisher keinen erfolg gehabt.
hat jmd einen tipp, was ich wo noch anpassen muß, damit der mod auch bei individuellen feldern parst?
das ist der mod. mit dem kann man in den CPF auch bbcode anzeigen lassen (sagt der name ja schon), ABER eben nur bei den standardfeldern...
hier ist das kein problem:
Code: Alles auswählen
<!-- BEGIN custom_fields -->
<dd><strong>{postrow.custom_fields.PROFILE_FIELD_NAME}:</strong> {postrow.custom_fields.PROFILE_FIELD_VALUE}</dd>
<!-- END custom_fields -->
Code: Alles auswählen
<!-- IF postrow.S_PROFILE_BLA-->
<dd><strong>{postrow.PROFILE_BLA_NAME}: </strong> {postrow.PROFILE_BLA_VALUE}</dd>
<!-- ENDIF -->
dort soll der bbcode aber auch geparst werden, allerdings geht das so nicht.
in dem teil (in der memberlist hab ich die CPF nicht)
Open: viewtopic.php
Find
Tip:This may be a partial find and not the whole line.
Code:Select All
foreach ($cp_row['blockrow'] as $field_data)
{
Add after
Tip:Add these lines on a new blank line after the preceding line(s) to find.
Code:Select All
$uid = $bitfield = $options = '';
$allowed_bbcode = $allowed_smilies = $allowed_urls = true;
generate_text_for_storage($field_data["PROFILE_FIELD_VALUE"], $uid, $bitfield, $options, $allowed_bbcode, $allowed_smilies, $allowed_urls);
$field_data["PROFILE_FIELD_VALUE"] = generate_text_for_display($field_data["PROFILE_FIELD_VALUE"], $uid, $bitfield, $options);
hab ich versuchsweise das ["PROFILE_FIELD_VALUE"] mit ["PROFILE_BLA_VALUE"] ersetzt, hat aber bisher keinen erfolg gehabt.
hat jmd einen tipp, was ich wo noch anpassen muß, damit der mod auch bei individuellen feldern parst?