Seite 1 von 1

"Parse BBCode in Custom Profile Fields" anpassen?

Verfasst: 08.12.2008 07:12
von aurora876
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:

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 -->
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:

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?

Verfasst: 08.12.2008 10:08
von Miriam
Hast Du schon auf der Seite, auf der der Mod-Autor gepostet hat und die Du oben verlinkt hast, gefragt?

Und hast Du auch in Deiner Hoffnung auf Antwort das beachtet?
Support for this modification needs to be asked within this topic. The phpBB Team is not responsible or required to give anyone support for this modification. By installing this MOD, you acknowledge that the phpBB Support Team or phpBB MODifications Team may not be able to provide support.

-----------------------------------------------------
aurora876 hat geschrieben:aber das hab ich rausgeworfen, da ich die profilfelder auf verschiedene weise dargestellt haben will.
Was möchtest Du genau machen?

Verfasst: 08.12.2008 10:38
von aurora876
Miriam hat geschrieben:Hast Du schon auf der Seite, auf der der Mod-Autor gepostet hat und die Du oben verlinkt hast, gefragt?

Und hast Du auch in Deiner Hoffnung auf Antwort das beachtet?
Support for this modification needs to be asked within this topic. The phpBB Team is not responsible or required to give anyone support for this modification. By installing this MOD, you acknowledge that the phpBB Support Team or phpBB MODifications Team may not be able to provide support.

ja sicher, nur trefex sagt nix dazu und außer mir haben noch andere dasselbe gefragt.
nur da auf phpbb.com in dem thread nix passiert, dachte ich, ich frag mal hier...

-----------------------------------------------------
aurora876 hat geschrieben:aber das hab ich rausgeworfen, da ich die profilfelder auf verschiedene weise dargestellt haben will.
Was möchtest Du genau machen?
die profilfelder hab ich schon, funktioniert alles einwandfrei. nur es wär halt nett, wenn man den text auch zb bunt machen könnte usw.

Verfasst: 08.12.2008 16:40
von Miriam
Irgendwie verstehe ich jetzt nicht, was Du genau möchtest. Also wie es aussehen soll, wenn es fertig ist.