Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Old Castle

Members
  • Joined

  • Last visited

Everything posted by Old Castle

  1. Hi, I would like a little help here in how to achieve an inset line with a white (light) background with photoshop. I want to do something like this http://themes.mysitemyway.com/infocus/ I can do it with dark backgrounds, but I could not so far achieve this effect in a light background. Any tip?
  2. Old Castle posted a topic in Frontend
    Hi all, I am kind starting to work with grid layouts for web and I am using 1kbgrid.com for my projects. It's really good and I like it. So far, I am not having any kind of issues. But I've talking with some friends and they said that grid system is "too simple" and for big websites wouldn't be good to use. As I said, so far I didn't see any problem. Finally my question is. Looking at the link http://www.1kbgrid.com/css/grid.css . Do you see any room to improve it or what would you do different and why? Best,
  3. It's not clear. So, do you want to use a grid css system, right? But only in the first posts. I use http://www.1kbgrid.com ... it's very easy to implement. To do this, count your posts and use IF structure. Sorry, if I cannot give you more details. I am not so good at coding.
  4. My original question is how to do in photoshop the file bg_grain.png ? thanks
  5. Yeap.. to make the grain effect is simple.The issue is not that. Sorry if I wasn't clear. What I want to do, is to save in a transparent png file just the "grain effect". Like you can see here http://www.kriesi.at/themes/avisio/wp-content/themes/avisio/images/skin1/bg_grain.png I don't know how to save just the effect. Thanks for your reply.
  6. Hi all, I would like to know how can I make a grain transparent file in photoshop? This file is to be used as a "grain" effect in a website background. Since a grained background is hard to slice, this website http://www.kriesi.at/themes/avisio/ came out with this idea. I really like. The grain effect that you see in the on blue is a separated file. Any idea how to do it?
  7. It's not clear what you want.
  8. I fixed the problem with below code: <?php if (file_exists(TEMPLATEPATH . '/images/logo.png')) { ?> <img src="<?php bloginfo('template_directory'); ?>/images/logo.png" alt="Logo" /> <?php } else { ?> <h1><a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a></h1> <h2><?php bloginfo('description'); ?></h2> <?php } ?>
  9. If I put the real path, it still not showing the logo. If I change the code to the one you suggested, I can see the logo.
  10. Thanks for your help. I tried the following code, but its shows directly the bloginfo. <?php $file = get_bloginfo('stylesheet_directory') . "/images/logo.png"; if (file_exists($file)) { ?> <img src="<?php bloginfo('template_directory'); ?>/images/logo.png" alt="Logo" /> <?php } else { ?> <h1>/"><?php bloginfo('name'); ?></h1> <h2><?php bloginfo('description'); ?></h2> <?php } ?>
  11. Hi guys, I need a little help here: Here is the situation: I'm building a WP theme and I want in the header that it checks if there is a logo.png file. If this file exists, so show it. If not, display the bloginfo () function. So far I try something like this, but it's not working: <?php $file = get_bloginfo('stylesheet_directory') . "/images/logo.png"; if ($file !== FALSE) { ?> <img src="<?php bloginfo('template_directory'); ?>/images/logo.png" alt="Logo" /> <?php } else { ?> <h1><a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a></h1> <h2><?php bloginfo('description'); ?></h2> <?php } ?> Thanks in advance,
  12. Thank you so much! Things are working now. I really appreciated your help. Cheers,
  13. Yes, I am sure. Ok. Attached are all the files related to this page. I cannot see any syntax error. This code isn't my. I am just try to fix it. files.zip
  14. Someone could help me here?
  15. Depends how far you want to go. Hobby, Amateur or Professional. Just keep one thing on mind. No one knows everything. It's a continuous learning process.
  16. We are improving. Thanks for your tips, now I can load the page, but not the content :-) as you can see on http://www.redbambooproductions.com/news.php . Just click in any picture and you will see the error.
  17. ohhh.. I didn't know about the shorttag syntax. Ok. I will change everything to full syntax and give a shot.
  18. Ok, I will take a look. But could please explain the meaning of this? <?=$totalrec?> I can see structures like above around the code. For example: <?=$row['title']?> <?=StripSlashes($row['detail'])?> What that "=" signal is doing there? Is this a short come for something that I don't know?
  19. I applied your suggestion, but when I try to valid the PHP syntax I got this error: Parse error: syntax error, unexpected '=' in - on line 117 Errors parsing -
  20. Great code!
  21. Thanks for your reply. I will check your suggestions.
  22. I don't know how to do this, but I would try to count the number of news you want to show. Than for even you give a background and to odd another background.
  23. It's sure that I am not the right guy to help you, but would be easier you style this by CSS? I think what you need to do is "just" make PHP print two different classes. One to each colour. Than you style this with CSS. If I said bulsh**t here, just ignore me :-) Cheers,
  24. As I said before. This is not my code! I am just trying to fix it.
  25. Guys, do you remember the term "Web Master"? From 90's when the Internet started to show off :-) I think this term is back !! hahah I am a one person company :-) I don't have choice, I cannot afford to pay an employee, so I have to learn design and programming. To be honest, it's not easy. I am still not good and have a lot to learn ( I just posted a PHP question. Help me please!). But in the end, I believe I am becoming a better professional or at least a more complete one. About salaries, it's not your title that will define how much you earn, but how good you are. Cheers!

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.