System Message Location

Professional Joomla social template with metro design and JomSocial extension support.
Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Wed Oct 16, 2013 4:47 pm
Reply with quote
Report this post
What changes are required to move the system message in this template so they show in or above the main content area? They currently slide down from the top of the site and are only displayed for a few seconds.

The issue is - as soon as a user clicks the submit button on the registration form they are directed to /login?view=registration&layout=complete and shown the Account created message. That message only shows for a second or two and there is no other content on that page. To many users who don't notice the message, before it disappears, it will seem as if they have been redirect to an empty content page.

Screen Shot:
http://www.screencast.com/t/nMpQS3t6PI

Thanks
User avatar
Fresh Boarder

GK User
Wed Oct 16, 2013 6:41 pm
Reply with quote
Report this post
Hi,
yes you have right. Right now I can offer you two solutions:
1) Changing delay time
2) Replace disappearing information with a version that does not go away
User avatar
Platinum Boarder

GK User
Wed Oct 16, 2013 6:46 pm
Reply with quote
Report this post
ad 2) You have to edit only one file from template

gk_msocial\layouts\default.php

Than change from this
Code: Select all
   <?php if(count($app->getMessageQueue())) : ?>
           <jdoc:include type="message" />
           <?php endif; ?>

to only this
Code: Select all
     <jdoc:include type="message" />


Now message box will not disappear until you/user will change page or refresh it.
User avatar
Platinum Boarder

GK User
Wed Oct 16, 2013 6:53 pm
Reply with quote
Report this post
p.s.
You can also change or add second (additional) position for message box
just add
Code: Select all
 <?php if(count($app->getMessageQueue())) : ?>
           <jdoc:include type="message" />
           <?php endif; ?>


at the bottom of default.php source code ~~line 225
User avatar
Platinum Boarder

GK User
Thu Oct 17, 2013 7:01 pm
Reply with quote
Report this post
This did not work.

I changed per below instructions but the message still fades out after a few seconds.

Thanks for any additional help on this.

Pawel F wrote:ad 2) You have to edit only one file from template

gk_msocial\layouts\default.php

Than change from this
Code: Select all
   <?php if(count($app->getMessageQueue())) : ?>
           <jdoc:include type="message" />
           <?php endif; ?>

to only this
Code: Select all
     <jdoc:include type="message" />


Now message box will not disappear until you/user will change page or refresh it.
User avatar
Fresh Boarder

GK User
Fri Oct 18, 2013 7:12 am
Reply with quote
Report this post
Hmmm... strange it worked for me, I will check again.

Have you got only this code there ?
message.png


If you did as I wrote - there is no code for hiding message so it must be as long as you change page!
I had this info box more than 60 seconds and nothing happen.
message-still.png
User avatar
Platinum Boarder

GK User
Fri Oct 18, 2013 7:20 am
Reply with quote
Report this post
p.s.
I still have message box :lol:

And as you can see it's been a few minutes since my last post
User avatar
Platinum Boarder

GK User
Fri Oct 18, 2013 3:17 pm
Reply with quote
Report this post
Yes, I made those changes.

This code here was removed:
Deleted.png


I then moved <jdoc:include type="message" /> to the main body area to get the positioning needed.
moved.png


It was still calling the fade out in the original position as well as the main body position.

For now, I just disabled the js in gk.scripts.js lines 89-95 which has fixed the issue and now it does not fade away. Not sure why it was working on your end and not ours.

Thanks for the help! Hope you have a great weekend.
User avatar
Fresh Boarder

GK User
Thu Nov 07, 2013 11:26 pm
Reply with quote
Report this post
Perfect! Thanks Pawel F
User avatar
Fresh Boarder


cron