AJAX Personal Text

Navigation

SMF Mod Site

Mod Name:
AJAX Personal Text
Created By:
Fustrate
Type:
Feature Enhancement
First Created:
August 14, 2008, 06:41:26 AM
Last Modified:
March 23, 2009, 12:46:50 AM
Latest Version:
1.0.2
Compatible With:
2.0 Beta 3.1 Public, 2.0 RC1
Total Downloads:
28957

Download this mod

ajax_personal_text.zip (5kB) [812]
Manual Install Instructions for SMF


Below are some preview images of what the mod looks like when being used

Description:


AJAX Personal Text v1.0.2


Introduction
An AJAX-based personal text updater, which will place a user's personal text at the top of the forum. When it is clicked, it turns into a text box and allows the user to edit their personal text on the fly, without ever leaving the page.

Features
o A small line of text is put next to your username at the top of the (default) theme. Add the following where you want this to go in other themes:
Code: [Select]
&raquo; <span style="font-size: 80%; padding: 3px;" id="update_personal_text">', !empty($context['user']['personal_text']) ? $context['user']['personal_text'] : $txt['ajax_personal_text_none'], '</span>
<script language="JavaScript" type="text/javascript"><!-- // -->
// Ajaxify that personal text!
if (typeof(window.XMLHttpRequest) != "undefined")
{
aPersonalText[0] = new PersonalText({
sBackReference: "aPersonalText[0]",
sScriptUrl: "', $scripturl, '",
sLabelPersonalText: "', $txt['personal_text'], '",
sLabelSubmitText: "', $txt['submit'], '",
sLabelCancelText: "', $txt['cancel'], '",
sBoxBackground: "transparent",
sBoxBackgroundHover: "#ffffff",
iBoxBorderWidthHover: 1,
sBoxBorderColorHover: "#adadad" ,
sItemBorder: "1px solid #ffffff",
sItemBorderHover: "1px dotted gray",
sItemBackground: "transparent",
sItemBackgroundHover: "#e0e0f0"
});
}
</script>
o To use this mod, just click the line of text and it will turn into a text box!
o There are NO admin features for this modification.


Support
Please use the modification thread for support with this modification. Personal messages for support are discouraged.

Languages
o English
o English UTF-8
If you have any translations for any other languages, I would be grateful if you would send them to me via PM or in the Mods topic.

Changelog
> Comment
+ Addition
- Error/bug fix

Version 1.0 Aug. 14th, 2008
> Initial Release

Version 1.0.1 Aug. 28th, 2008
- "Press 'Enter' to submit" fixed
- Still doesn't work correctly with foreign character sets.

Version 1.0.2 Mar. 22nd, 2009
> Upgraded for 2.0 RC1
- Turkish problem solved!