Latest News - Thumbnail creation

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
Sat Feb 09, 2013 3:34 pm
Reply with quote
Report this post
Hi,

if I use News GK4 Thumbnail image type = Joomla images and Thumbnail image type = Intro Image the
thumbnail creation is not working.
Since one hour I try all possible variations, no effect. Always the whole image is showing up.

A quick fix to this bug would be highly appreciated.

Regards
Peter
User avatar
Senior Boarder

GK User
Sat Feb 09, 2013 6:46 pm
Reply with quote
Report this post
Hi,

Which image is displayed in all cases - intro image, full image or image from the content?
User avatar
Administrator

GK User
Sun Feb 10, 2013 11:22 am
Reply with quote
Report this post
Hello Dziudek,

I want only to show the intro image. I've set all like I wrote and the intro image is shown. But with it's original size.
With K2 was all working well, with Joomla not. But it's a Joomla template, or ?

Please see at the attached image the problem.

Regards
Peter
User avatar
Senior Boarder

GK User
Mon Feb 11, 2013 11:11 am
Reply with quote
Report this post
I solved the problem alone. Of course the simplest solution. I did make a new module, published it instead
the old one and everything is working fine. But with the same settings. Strange.

Also I removed K2 and with this I was getting rid of a lot of problems.

I do not understand why you focus your themes so on K2. If someone will use it, OK.
But without K2 you've to reorganize the whole template because it's appearance it's built completely on K2.

But in it's first line it is a Joomla template and there a lot of nice extensions to build a good page without
K2.

But one thing you did not answered until now : How to get "Create an account" in the Login module.
Please finally point me out the solution.
User avatar
Senior Boarder

GK User
Mon Feb 11, 2013 3:52 pm
Reply with quote
Report this post
But one thing you did not answered until now : How to get "Create an account" in the Login module.
Please finally point me out the solution.


Sorry, but where did you asked about this earlier? And what exactly do you want to achieve (please visualize)?
User avatar
Administrator

GK User
Tue Feb 12, 2013 11:57 am
Reply with quote
Report this post
Hello Dziudek,

it's simple to describe what I want to achieve and you can visualize it at your own News demo.

If you click the login, you're asked to fill out username and password. Also you've links to "Forgot your password"
and "Forgot your username".

Of course you need a button "Create an account" ! And this button is not there.
How can I get it ?

Regards
Peter
User avatar
Senior Boarder

GK User
Tue Feb 12, 2013 5:40 pm
Reply with quote
Report this post
Please open file html/mod_login/default.php and add this link at the list similar to:

Code: Select all
<ul>
   <li>
           <gavern:fblogin> <span id="fb-auth"><small>fb icon</small><?php echo JText::_('TPL_GK_LANG_FB_LOGIN_TEXT'); ?></span> </gavern:fblogin>
   </li>
        <li> <a href="<?php echo JRoute::_('index.php?option=com_users&view=reset'); ?>"> <?php echo JText::_('MOD_LOGIN_FORGOT_YOUR_PASSWORD'); ?></a> </li>
   <li> <a href="<?php echo JRoute::_('index.php?option=com_users&view=remind'); ?>"> <?php echo JText::_('MOD_LOGIN_FORGOT_YOUR_USERNAME'); ?></a> </li>
</ul>
User avatar
Administrator

GK User
Tue Feb 19, 2013 9:39 pm
Reply with quote
Report this post
Hello dziudek ,

nothing happens. But I think you misunderstood me. As I can read in the lines you suggest there I can read
something like "facebook login" .

I need the only the link that a user can "Create a new account" or "Register". Nothing with facebook.

Can't you follow me ?

Regards
Peter
User avatar
Senior Boarder

GK User
Wed Feb 20, 2013 8:41 pm
Reply with quote
Report this post
Yes, I understood you correctly - as I wrote - you have to add another LI item element i.e.:

Code: Select all
<li><a href="<?php echo JRoute::_('index.php?option=com_users&view=registration'); ?>">Create a new account</a></li>


to the mentioned fragment.
User avatar
Administrator

GK User
Fri Feb 22, 2013 7:22 pm
Reply with quote
Report this post
Hello Dziudek,

please take a look at the screen-shot and tell me please what there could be wrong.
I did exactly what you suggested twice but again nothing happens.

I do not understand why you don't add a "Create an account" or "Register" link by default.

Regards
Peter
User avatar
Senior Boarder

GK User
Sun Feb 24, 2013 9:09 pm
Reply with quote
Report this post
Sorry but I don't see your screenshot - if you have a problems with attaching images, please use some 3rd party image hosting service or please just paste here your code, then I'll tell you what is wrong with it.
User avatar
Administrator

GK User
Mon Feb 25, 2013 3:34 pm
Reply with quote
Report this post
Hello,

please find the code below.

<?php
$usersConfig = JComponentHelper::getParams('com_users');
if ($usersConfig->get('allowUserRegistration')) : ?>
<li>
<a href="<?php echo JRoute::_('index.php?option=com_users&view=registration'); ?>">
<?php echo JText::_('MOD_LOGIN_REGISTER'); ?></a>
</li>
<li>
<a href="<?php echo JRoute::_('index.php?option=com_users&view=registration'); ?>">Create a new account</a>
</li>

<?php endif; ?>

I added the <li> element with "Create a new account" in /root/modules/mod_login//tmpl/default.php

Thanks and Regards
Peter
User avatar
Senior Boarder

GK User
Tue Feb 26, 2013 8:18 am
Reply with quote
Report this post
Please replace file html/mod_login/default.php with the following code:

Code: Select all
<?php

   // no direct access
   defined('_JEXEC') or die;

   JHtml::_('behavior.keepalive');

?>
<?php if ($type == 'logout') : ?>

<form action="index.php" method="post" id="login-form">
      <div class="logout-button">
            <?php if ($params->get('greeting')) : ?>
            <div class="login-greeting">
                  <?php if($params->get('name') == 0) : {
               echo JText::sprintf('MOD_LOGIN_HINAME', $user->get('name'));
            } else : {
               echo JText::sprintf('MOD_LOGIN_HINAME', $user->get('username'));
            } endif; ?>
            </div>
            <?php endif; ?>
            <input type="submit" name="Submit" class="button" value="<?php echo JText::_('JLOGOUT'); ?>" />
      </div>
      <input type="hidden" name="option" value="com_users" />
      <input type="hidden" name="task" value="user.logout" />
      <input type="hidden" name="return" value="<?php echo $return; ?>" />
      <?php echo JHtml::_('form.token'); ?>
</form>
<?php else : ?>
<form action="<?php echo JRoute::_('index.php', true, $params->get('usesecure')); ?>" method="post" id="login-form" >
      <fieldset class="userdata">
            <p id="form-login-username">
                  <label for="modlgn-username"><?php echo JText::_('MOD_LOGIN_VALUE_USERNAME') ?></label>
                  <input id="modlgn-username" type="text" name="username" class="inputbox"  size="24" />
            </p>
            <p id="form-login-password">
                  <label for="modlgn-passwd"><?php echo JText::_('JGLOBAL_PASSWORD') ?></label>
                  <input id="modlgn-passwd" type="password" name="password" class="inputbox" size="24"  />
            </p>
            <?php if (JPluginHelper::isEnabled('system', 'remember')) : ?>
            <div id="form-login-remember">
                  <input id="modlgn-remember" type="checkbox" name="remember" class="inputbox" value="yes"/>
                  <label for="modlgn-remember"><?php echo JText::_('MOD_LOGIN_REMEMBER_ME') ?></label>
            </div>
            <?php endif; ?>
            <div id="form-login-buttons">
                  <input type="submit" name="Submit" class="button" value="<?php echo JText::_('JLOGIN') ?>" />
            </div>
            <input type="hidden" name="option" value="com_users" />
            <input type="hidden" name="task" value="user.login" />
            <input type="hidden" name="return" value="<?php echo $return; ?>" />
            <?php echo JHtml::_('form.token'); ?>
      </fieldset>
      <ul>
            <li>
                  <gavern:fblogin> <span id="fb-auth"><small>fb icon</small><?php echo JText::_('TPL_GK_LANG_FB_LOGIN_TEXT'); ?></span> </gavern:fblogin>
            </li>
            <li> <a href="<?php echo JRoute::_('index.php?option=com_users&view=reset'); ?>"> <?php echo JText::_('MOD_LOGIN_FORGOT_YOUR_PASSWORD'); ?></a> </li>
            <li> <a href="<?php echo JRoute::_('index.php?option=com_users&view=remind'); ?>"> <?php echo JText::_('MOD_LOGIN_FORGOT_YOUR_USERNAME'); ?></a> </li>

            <?php
            $usersConfig = JComponentHelper::getParams('com_users');
            if ($usersConfig->get('allowUserRegistration')) : ?>
            <li><a href="<?php echo JRoute::_('index.php?option=com_users&view=registration'); ?>"><?php echo JText::_('Create a new account'); ?></a></li>
            <?php endif; ?>
      </ul>
      <div class="posttext"> <?php echo $params->get('posttext'); ?> </div>
</form>
<?php endif; ?>
User avatar
Administrator

GK User
Tue Feb 26, 2013 4:43 pm
Reply with quote
Report this post
Hi Dziudek,

I replaced code and nothing happened. All the same like before. I think you really don't understand me.

I only want to have at the login an "Create an account" link. Sorry, but this is a must for a news template !

And please the new post I opened. The next problem occurs.

If you use your template as it is, I think it's working good. But if begin to change something the problems are beginning.

Regards
Peter
User avatar
Senior Boarder

GK User
Tue Feb 26, 2013 4:55 pm
Reply with quote
Report this post
Please check if the registration is enabled in the users component - this code must works, because I've tested it on our test installation of the News template.

Additionally you can add the following code at the end of the css/template.css file:

Code: Select all
#gkPopupLogin #login-form ul li {
   clear: both;
}


(then the new link will appear on new line).
User avatar
Administrator

GK User
Thu Feb 28, 2013 12:22 pm
Reply with quote
Report this post
Hello Dziudek,

also for you now a domain to have a look : http://setup.gardennews.ch/

Is it possible the changes you made and tested to publish at your News Demo ?
I think for it's a must for this template and also others will appreciate that.

Regards
Peter
User avatar
Senior Boarder

GK User
Sat Mar 02, 2013 9:24 am
Reply with quote
Report this post
@stemalo - even if I'll add it to our demo it won't appear, because registration on our demo pages is disabled, but I've tested this code on our test installation and as I wrote earlier - it is working fine.
User avatar
Administrator

GK User
Mon Mar 04, 2013 8:54 pm
Reply with quote
Report this post
Could you please give me a screen-shot about the working "Create an account" at your test version ?
User avatar
Senior Boarder

GK User
Mon Mar 04, 2013 9:13 pm
Reply with quote
Report this post
Of course, there is the attachment with screenshot.
User avatar
Administrator

GK User
Tue Mar 05, 2013 8:09 am
Reply with quote
Report this post
Hello dziudek,

that's exactly what I thought. We are talking about two different things.

You are talking about the *LOGIN*. And I talk about *CREATE AN ACCOUNT" or "REGISTER"

So if you don't have already an account, where do you go to open an "NEW ACCOUNT" ?

And exactly this link I need.

Regards
Peter
User avatar
Senior Boarder

GK User
Tue Mar 05, 2013 9:13 am
Reply with quote
Report this post
Sorry but now I don't understand - if user haven't the account then he will use the "Create an account" link in the login popup so where is the problem?
User avatar
Administrator

GK User
Wed Mar 06, 2013 12:34 pm
Reply with quote
Report this post
Hello Dziudek,

now I think finally we come to an end.

........... "Create an account" link in the login popup so where is the problem?"

And exactly this link is not there in the login popup. And I've set at user menu "user registration" to "yes".

That's my problem.
User avatar
Senior Boarder

GK User
Wed Mar 06, 2013 5:29 pm
Reply with quote
Report this post
Sorry but I totally don't understand - you have mixed everything - I think that you should make a screenshot and show me where do you want to exactly the registration link, and then please send me an FTP access to your website using the PM messages.
User avatar
Administrator

GK User
Fri Mar 08, 2013 10:42 am
Reply with quote
Report this post
Hello Dziudek,

I'm using now a in my opinion very good third party modul called BT Login .
Now I've a little problem. Please take a look.

1. Goto www.setup.gardennews.ch
2. Klick the Login
3. Click "Register"
4. See that the new window which is open now ( "Create an account" ) is also under the opacity layer.
How can I prevent this ?

Regards
Peter
User avatar
Senior Boarder

GK User
Fri Mar 08, 2013 1:48 pm
Reply with quote
Report this post
Please add this code:

Code: Select all
#simplemodal-container {
z-index: 1000002!important;
}


it should help in your case :)
User avatar
Administrator

GK User
Fri Mar 08, 2013 10:25 pm
Reply with quote
Report this post
Yes, Dziudek, we did it ! Your code is working. Bravissimo !

Thanks
User avatar
Senior Boarder


cron