"Parse BBCode in Custom Profile Fields" anpassen?

Du hast Probleme beim Einbau oder bei der Benutzung eines Mods? In diesem Forum bist du richtig.
Forumsregeln
phpBB 3.0 hat das Ende seiner Lebenszeit überschritten
phpBB 3.0 wird nicht mehr aktiv unterstützt. Insbesondere werden - auch bei Sicherheitslücken - keine Patches mehr bereitgestellt. Der Einsatz von phpBB 3.0 erfolgt daher auf eigene Gefahr. Wir empfehlen einen Umstieg auf die neuste phpBB-Version, welches aktiv weiterentwickelt wird und für welches regelmäßig Updates zur Verfügung gestellt werden.
Antworten
aurora876
Ehemaliger Übersetzer
Beiträge: 1600
Registriert: 30.08.2008 20:41

"Parse BBCode in Custom Profile Fields" anpassen?

Beitrag 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?
There are 10 types of people in the world: Those who understand binary and those who don't. :D

Support Toolkit in Deutsch
Benutzeravatar
Miriam
Mitglied
Beiträge: 12310
Registriert: 13.10.2004 07:18
Kontaktdaten:

Beitrag 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?
Gruss, Miriam.
Ich schmeiß' alles hin und...
... lasse es liegen
aurora876
Ehemaliger Übersetzer
Beiträge: 1600
Registriert: 30.08.2008 20:41

Beitrag 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.
There are 10 types of people in the world: Those who understand binary and those who don't. :D

Support Toolkit in Deutsch
Benutzeravatar
Miriam
Mitglied
Beiträge: 12310
Registriert: 13.10.2004 07:18
Kontaktdaten:

Beitrag von Miriam »

Irgendwie verstehe ich jetzt nicht, was Du genau möchtest. Also wie es aussehen soll, wenn es fertig ist.
Gruss, Miriam.
Ich schmeiß' alles hin und...
... lasse es liegen
Antworten

Zurück zu „[3.0.x] Mod Support“