User Account Upgrade Info

User Account Upgrade Info 1.0.4

No permission to download

Admin

Administrator
[H2=User+Account+Upgrade+Info]User Account Upgrade Info[/H2]
Mit diesem Add-on kann man:
a) über und unter den user account upgrades einen Text ausgeben lassen
b) Gruppennamen anlegen und die user account upgrades darunter gruppieren
c) Für weitere Sprachen Phrasen anlegen, die anstatt der angelegten Bezeichner ausgegeben werden.

Kurzum man kann mehr Informationen anzeigen, die Upgrades sinnvoll in Gruppen ausgeben und die komplette Seite mehrsprachig anbieten.



With this add-on you can:
a) display a text above and below the user account upgrades
b) create group names and group the user account upgrades under them
c) create phrases for additional languages, which are output instead of the created identifiers.

In short, you can display more information, group the upgrades in a meaningful way and offer the complete page in multiple languages.

Read more ...
 

Admin

Administrator
Die User-Upgrades sind leider ein leidiges Thema, denn sie sind inmitten all deren anderen Sachen rund um den User-Account versteckt. Einerseits passen sie da ja hin, andererseits wünscht man sich für den Verkauf etwas plakativeres. Es gib diverse Lösungen die Upgrades in einer eigenen Seite anzuzeigen. Alternativ könnte man sie zumindest mit einem einleitenden Text oben und einem informativen Text unten verschönern wollen. Und wenn man schon mal dabei ist, könnte man die Upgrades evtl. auch gruppieren wollen.

You don't have permission to view attachments.
You don't have permission to view attachments.
You don't have permission to view attachments.


Genau das geht mit diesem Add-on.

Für den Text oben und unten wurden zwei Template-Änderungen und jeweils zwei Phrasen angelegt. Somit kann man oben und unten einen Text erscheinen lassen und das sogar noch in der passenden Sprache.

xc_aui_title_top
xc_aui_text_top
xc_aui_title_bottom
xc_aui_text_bottom



Um die Upgrades zu gruppieren, habe ich mich eines Tricks bedient und der geht so:

1. Wir sortieren die Upgrades und geben ihnen einen Wert für das Feld display_order.

You don't have permission to view attachments.


2. Wir machen direkt mit den Zahlen sichtbar, welche Upgrades in einer Gruppe sind. Z.B. so:

100
110
120

200
210

300

Gruppe eins besteht also aus den Upgrades mit den Sortierwerten 100, 110, 120,
Gruppe zwei hat 200 und 210,
Gruppe drei hat 300.

3. Im nächsten Schritt tragen wir nun den jeweils ersten Wert einer Gruppe in die Optionen des Add-ons ein.
In diesem Beispiel also: 100, 200, 300

You don't have permission to view attachments.


Das Add-on wird bei der sortierten Ausgabe der Upgrades jetzt jeweils vor den Upgrades mit den Sortierwerten 100, 200 und 300 HTML-Code einfügen und dort den Titel der Gruppe ausgeben. Hierzu gibt es die Phrasen

xc_aui_group_title_1
xc_aui_group_title_2
...
xc_aui_group_title_5

Wem fünf Gruppen nicht reichen, der möge sich weitere Phrasen mit passendem Namen anlegen, also xc_aui_group_title_6, xc_aui_group_title_7 usw.

Auch hier kann man nun mehrsprachig agieren.



Eine weitere Funktion des Add-ons macht nun folgendes. Man legt in den Optionen des Add-ons fest in welcher Sprache die Namen der Upgrades festgelegt wurden. So dann legt man folgende Phrasen in allen anderen Sprachen an:

xc_aui_title_1 und xc_aui_description_1
...

Das macht man für jedes einzelne Upgrade. Hat man 17 Upgrades und 4 Sprachen, muss man

xc_aui_title_1 und xc_aui_description_1
...
xc_aui_title_17 und xc_aui_description_17

in drei Sprachen anlegen, denn eine Sprache hat man ja schon für die Namen der Upgrades verwendet.



Als Ergebnis hat man, und das ist keineswegs zu unterschätzen, wenn man mehrsprachig fährt, eine informative Seite komplett in der jeweils eingestellten Sprache mit gruppierten Upgrades, was hoffentlich mithilft die Unterstützung der User für das jeweilige Forum zu erhöhen.
 

Admin

Administrator
[H2=User+Account+Upgrade+Info+Installation]User Account Upgrade Info Installation[/H2]
The update is installed as usual.

Set up all User Account Upgrades /admin.php?user-upgrades/

Sort all upgrades and use the display_order field to define this order with larger intervals. Larger distances means e.g. in steps of ten.

Already consider all the necessary groups!



In the next step, note the value of the sort field for the first value of each group. In the example this would be 2 and 10. The first group can get a heading, alternatively you have the line Available upgrades as a phrase or heading.
(phrase = available_upgrades)

Exactly this information now goes into the options field of the add-on. /admin.php?add-ons/Xencafe-AccountUpgradeInfo/options



In the next step search for phrases with this title xc_aui_group_title_ and adjust the names of the groups accordingly. Created are currently _1 to _5

For the two headings and texts above and below, set up the following phrases: xc_aui_title_top and xc_aui_text_top and xc_aui_title_bottom and xc_aui_text_bottom.

Result:



As far as the groups and headings are concerned, the original heading has been deliberately retained. You can use it and start with group 2 as in the example. Or create group 1 with the first upgrade and have two headings below each other and/or comment out the original title of the upgrades in the template.

Next, you specify which language the titles and descriptions of the upgrades will use.


For all other languages you create phrases. The names of the phrases are xc_aui_title_ for the title and xc_aui_description_ for the description. At the end of each phrase the ID of the upgrade must be appended.



Example
xc_aui_title_1 and xc_aui_description_1 for the upgrade with ID 1. You can see the IDs here in the admin area /admin.php?user-upgrades/.



The whole thing is not really hard to set up.
1. set up upgrades
2. sort upgrades
3. remember the value of the sorting field for the first upgrade of each group. (The easiest way is to start with group 2)
4. write these sorting values into the options field. (e.g.: 2,10)
5. set up title and text for the info above and below.
6. set up which language will use the info for title and description of the upgrades.
7. set up phrases for all other languages. The names of these phrases for title and description end with the ID of the respective upgrade.
 
You don't have permission to view attachments.
Top