Resource icon

Long Description + BBcode 1.2

No permission to download
Compatible With Version
1.6+
Supported
Yes
This is a beta release, if you encounter any bugs reply below.

What this mod does:

Adds a "long description" field to join form and edit pages to allow your members to spice up their profile page.

Why a seperate field? why not just add this to the existing description?

Good question ;) by adding a second field it allows us to display the short description on the ranking pages without all the BBcode being parsed. That would look ugly and slow things down. This way only the stats (profile) pages are "enhanced" with the bbcode.

What options are available via the BBCode?

At this time the editor supports the following tags:
bold, Italic, Underline, hyperlinks, and images


Installation:

Upload the zip file via the plugin manager as always.

Then you need to edit 3 templates:

1) Open stats.html
- Place {$long_description} where you want the long description to show.

2) Open edit_form.html
- Place {$form_long_description} where you want the form element to appear
- find the form submit button. In parabola's case
HTML:
  <input name="submit" type="submit" value="{$lng->edit_header}" />
Add the following attribute to your submit button
HTML:
onclick="wswgEditor.doCheck();"
3) Open join_form.html
- repeat the steps from #2 in here
- If your submit button already has an onclick attribute ( as in parabola's case ), you can simply concatenate the functions calls within, as shows below
HTML:
onclick="onSubmitButton();  wswgEditor.doCheck();"


Thats it! Enjoy
Author
Basti
Downloads
89
Views
1,594
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from Basti

Latest updates

  1. Php 7 compability and VL 1.6 update

    Please see the updated install instructions PHP 7 incompability fixed Visiolist 1.6+...
  2. Minor code update

    Just update some minor code, not a required update
  3. Plugin update url changed

    Changed the update url in the info file to reflect our new plugins page. This update is required...
Top