• Page 1 of 1
  • 1
Forum moderator: bigblog  
Forum reply save input
Bluecube
Posts: 34
Reputation: 4

Message # 1 | 5:27 PM
So in the forum adding entry and reply form i have custom field username where guest input the username which will be used for displaying their entry...i would like to preserve that input so even if user refresh the username filled stay filled in...
Post edited by Bluecube - Monday, 2014-12-08, 5:27 PM
Good
Posts: 365
Reputation: 12

Message # 2 | 0:40 AM
Quote Bluecube ()
i would like to preserve that input so even if user refresh the username filled stay filled in...


Did you mean user name field should be filled in by a user though they already logged in?
Bluecube
Posts: 34
Reputation: 4

Message # 3 | 2:53 AM
Good, No, i am allowing guest to pick username that will be displayed with their entry
Good
Posts: 365
Reputation: 12

Message # 4 | 3:24 AM
I think it already had in default.
Bluecube
Posts: 34
Reputation: 4

Message # 5 | 3:33 PM
Good, thx for replies, however it doesn't hold

i brokedown default code and used an actual script...the default code will automatically say guest and keep that
lanh
Posts: 135
Reputation: 0

Message # 6 | 5:58 AM
Hi Bluecube,

It works if your user's IP do not change.

Bluecube
Posts: 34
Reputation: 4

Message # 7 | 4:21 PM
lanh, But it dosen't

Instead of...
Code
<?if($_USER$)?>$_USER$<?endif?>

I have this...
Code
<?if($_USER$)?>
  <tr id="frM3"><td class="gTableLeft" id="frM4">Username:</td><td class="gTableRight" id="frM5"><input type="text" id="frF1" name="user" placeholder="Choose any Username" class="postUserFl" style="width:100%" size="50" maxlength="30"></td></tr>
<?endif?>


in New message form design customization

I want to store and keep whatever is in input so user can reply or add another post without retyping the username

Note* In Guest mode
Paradox
Old Guard
Posts: 3284
Reputation: 145

Message # 8 | 0:25 AM
Bluecube, from what I can see your best bet is going to be the use of browser cookies. So create a client-side JS script which whenever that field is edited updates a session bound variable which can be recalled on the page load/refresh.

Hope this helps, happy

'Moved to Custom Solutions

Jack of all trades in development, design, strategy.
Working as a Support Engineer.
Been here for 13 years and counting.
Bluecube
Posts: 34
Reputation: 4

Message # 9 | 5:21 AM
Paradox, i never had experience with browser cookie... would you please be able to give me a script

my site - http://bluecube.cf/forum/8-5-1 (the reply form on my site is hidden and shows up when on clicking reply button)

password - secc
  • Page 1 of 1
  • 1
Search: