imjjss
Members-
Content Count
159 -
Joined
-
Last visited
-
Days Won
1
Everything posted by imjjss
-
I am using wordpress, my theme gives the option of adding user profile field. When I add Country field, I can chose drop down list as this field input method. But it's simply imposible for me to type in hundrads of countries to make the drop down.Is there an easy way I can get the country drop down list?
-
I want to create my own game too. But not text game. Just a number game. Could it be simpler? Is there a place to download a basic script to work on?
-
We love blogs because the build in advanced content management makes our life easier. We don't need to create a website from scratch. But many of us are blogging not just for journaling personal stuffs. We want to go CMS. So, we hate some of the blog features--pages come with a sidebar, contents is one colum that we can't easily manage the layout to our heart desire. After some study and test, I've found an easy way to create WordPress pages in any layout I prefer. If you want the freedom of your WordPress page layout, read on. Step one: Create a funtion for easier access to custom fields In your theme's functions.php, add this code: function get_custom_field_data($key, $echo = false) { global $post; $value = get_post_meta($post->ID, $key, true); if($echo == false) { return $value; } else { echo $value; }} Step two: Create a CMS-look page template For making your CMS site looks attractive and not like a blog, you'll need to decide what kind of layout represent your business the best. On my blog, I made a 6 blocks layout, with 3 blocks on top, one wide block in middle, and 2 blocks at bottom. The layout is up to your heart desire, here I will mainly show you how to make this layout a template that you can use when post a page. 1. Make a copy of page.php, give the copy another name; 2. Open the new-page.php, on the top of the file, change the Template Name to something else, such as "My CMS Page" (without quotes); 3. Here's where your CMS layout can start: <div id="content"> . You can replace stuffs inside this div with your html layout. But there are some php codes inside the content div to keep this page fully functions. If you don't care those blog functions, just go ahead. But, if you prefer keep it, they will do nothing to damage your CMS layout. I prefer to keep them-- for example, you never know which day you need a page ID in some other process. So, scroll down to start our html below these block: <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <h2 class="pagetitle"><?php the_title(); ?></h2> <div class="post" id="post-<?php the_ID(); ?>"> <div class="entry">So, now your CMS layout is within blog page's entry div. 4. Do you prefer keep sidebar? if not, remove this line at the end of this file: </div> linenums:0'><div id="top-left-block" class="CMS-blocks"><?php if(function_exists('get_custom_field_data')) {get_custom_field_data('top-left-block', true);} ?></div> In this code, I'm telling the blog to find a custom field with the name of "top-left-block", get its value and print it here. Use this code to put in content with different custom field name for different blocks. By the way, Use this idea, you can also call a widget instead of calling custom field value Step Five: Post page In the previous steps, we are calling custom field value, but what is the value? -- It's the value you input each time when you create a new page. Here's how: Go to Dashboard, create a new page, in the custom field panel, Add a new field "top-left-block", type in something as its vlue. Save it. Now you go to view the page, you'll see that the value you typed in the "top-left-block" field showing up on page. Now, do more-- type in a whole lot of contents with html tags in this "top-left-block" field. Go to view your page-- wow, it's really a block of contents nicely arranged inside the block you created. You get the idea? ok, go to add custom fields that you called in the CMS temppate and input their values. Now, go to view your page again-- a page with your desired layout! Of course, you need to style it. Notice in my html code, I give the div an ID and a class? That's for CSS styling usage. That's all you need to do to make your blog page powerful and not look like a blog. Hope you enjoy!
-
so, range from 32mb to 128mb. that means cap is 128, that's enough
-
It's not the storage. It's one of the php settings which can be set by the host. You can consider it is like the computer's RAM, the more amount of RAM your computer has, the faster it runs.Anyway, as yordan explained, Asta doesn't set a fixed amount, all users has the same rights. The max allowed amount depends on how much Asta can carry on. I think that's fair.
-
Thanks, that's clear for me-- "same rights", that's good enough.I don't have excessive activities in my blog. but, with my current host, they provide 64MB max memory limit, a fresh new WordPress 3.01 install comsume around 35% memory, add a theme with a few more function, it hits 54%. And this is just a starting point, I'm sure I will want to add some other plugins to equip my blog. That's why I start worry about memory.
-
I see. So, if it's not mentioned, then I can take it as no specific limit.
-
I was with other software before I fall for WordPress-- one of the most powerful content management software. While I enjoy the vast features WordPress presents, I do feel something missing-- where to write the page descriptions and keywords. I've got used to write those stuffs when building pages in other software. Now with WordPress, I can't find a place to enter those stuffs. I felt bothered because I've been taught that page descriptions and metadata keywords are important for search engines to determine how to category the pages. After some search and study, with the help of my friends, I finally found my way out. Here I going to share my finding with you-- a simple way to add keyword for SEO purpose. Step one. Adding "keywords" field Since WordPress doesn't provide us a way to write down our "keywords", our first job is to create a "keyword" field. Then, we will find ways to populate data into this field in following steps. On Page or Post editing page, you have a Custom Fields panel, right? Go there, we add a new field "magicwords". For the value, you can enter any text you like for this current page or post. Our purpose here is to create a place "magicwords" to store our future inputs. Step two Create a function to generate matadata tag Add this code in your theme's functions.php file function set_magicwords(){ global $post; $magicwords = get_post_meta($post->ID, ‘magicwords’, true); $default_magicwords = “type, in, some, default, magicwords”; $metatag= “”; if (empty($magicwords)){ $magicwords = $default_magicwords; } if (is_home() || is_front_page()){ $keywords = $default_keywords; } $metatag=”\t”; $metatag.= “<meta name=\”magicwords\” content=\”"; $metatag.= $magicwords; $metatag.= “\” />”; $metatag.= “\n\n”; echo $metatag; } add_action(‘wp_head’, ‘magicwords’); Step three Enjoy a better SEO result With the above funtion working atutomatically for you, everytime when you create a new page or post, it will set default metadata keywords for this page or post. You can also enter different keywords in the "magicwords" field for different pages or posts. Either way, you are done. Use the same technique, we can create and populate our page description field. You can try to code it in the same way by yourself. I will write another article for the page description if necessary.
-
That's nice.I remember a few years ago, a friend mentioned Asta to me, but I didn't grasp the idea how it works at that time. I came to Asta this time by chance-- I was searching for a PC hardware tip and google brought me to this forum. I was a bit suprised to see the name-- already several years, it's still here and hot, that means Asta's business is stable. So, I decide to settle down here :-)
-
Normally we put image on backgroun in CSS. but this time I need to do reverse.I have 4 nice image and a limited space. If display the 4 images together, it fits in the page space exactly as I wish. But then, I don't have extra place to write text. I know, I can re-design the picture, put text on the picture and merge it into a new picture. But I don't have that nice skill yet. Is there a way to do it in CSS to make text showing on the image?
-
Some free hosting sites have a max memory limit of 24MB, 32MB, 68MB-- I don't see any free hosting site run above 68MB yet. Some sites don't set fixed memory limit, but during web rush hour, they do limit some sites' resource. It's like they have a cap for total free accounts. The switch off some sites or put limit on some high resource demanding sites during rush hour. I think 68MB is a quite tight but still managable, but unexpected shut down or slow down due to exceed allowed memory limit is very frustrating.Does any of you know how many MB is set in AsTA?
-
Website Promotion A list of some possibilities.
imjjss replied to zenia's topic in Websites and Web Designing
Does Youtube accept flash file?I dislike online vedios because my internet connection is not good. I'm already on the fastest and highest price broadband, but my ISP just like that slow and no way to complain. I can make some tutorial in flash formate. But I can't try it out by myself because youtube is blocked in my country. If youtube accepts swf file, I will try to find a friend to open a youtube account for me, and help me upload files on it. -
More thoughts on this-- you can consider WordPress as a benchmark. Estimate your ideas, concepts, abilities..., if you feel you can make a software that can compite against WordPress, or at least can take a small share of the market. Then, it worth trying. Otherwise, it's simply not economical investing time and money for a thing that serves only you.
-
Of course it's posible. But you need to be real good at programing. Because you will have to take care of all aspects of your website, just for example-- security. With software such as WordPress, as long as you keep updating to the newest version, your website is protected by lots of complicated rules.Another example is the CMS functions. There are lots of functions in those software to help you set up a CMS site, and there are lots of plugins to help intensively using those functions. Without the software, you code all the things by your hands? May be, if all you need is just a website to make a presentation of your products or service, then, it's ok. But, if you go further into inventory managing, billing process and customer support system, each block of job is a big project in your hands. With the software, things become much easier. Of course, the software or plugins can't fit into your needs in exact way, but at least you are working with a solid fundation.
-
So, now, here is the part 2-- How to take full control of Workpress Menu In many cases, you might not satisfied at the way your theme arrange your menu. Ok, let's create our own. First Step, Remove the navigating menu in your theme completely This sounds scary, but don't worry, after clean it out, we will gain completely freedom of managing our menues. 2 jobs to do here:Go to your theme folder, open header.php, browse through, find the second where your theme code the menu. Let's take WordPress default theme TwentyTen as an example, find this line: function register_my_menus() { register_nav_menus( array( 'main-menu' => __( 'Main Menu' ), 'extra-menu' => __( 'Extra Menu' ), 'important-menu' => __( 'important Menu' ) ) );}In this function, we registered 3 menus-- Main Menu, Extra menu, Important Menu. You can change the name to your like. You can add more menues inside this funtion. Third step, Add your menu in your prefered location There are 2 ways to add your custom menus in your site. The simple way is to use the Custom Menu widget. This method is described in previous post. Another way is to code it in your theme. Here we go-Go to your theme folder, open header.php, find a place your prefer the Main Menu to show up, put in this code: <?php wp_nav_menu( array( 'theme_location' => 'main-menu' , 'menu'=>'main','container' =>'ul', 'menu_class' =>'my-menu-class') ); ?>Notic, there's a parameter of "container" and "menu_class". This is the way you generate html tags and attributes for styling purpose. In this example, I start the menu by "ul", and set the CSS class as "my-menu-class". This is how you register and locate your menu in WordPress system. You can try it out by yourself-- add the "Extra" in sidebar.php, add the "important" in some other templates. Fairly simple, right? Forth step, add links to your menu Now your menus are ready for you to pick. All you need to do is to go to Apearance / Menu, then, add links to any of the menu you just registered. Visit your pages, you'll see the result.You can also add the menus in widget. By adding it in widget, the menu will show up on all pages and posts unless you use another technic to tell WordPress which widget to show on which page. There is a handy plugin "Wedgit Logic" to do the job. I will not go further in how to show different menu in different page or post without any plugin. If anybody interested in this topic, I will create another tutorial about it. Final step, styling This is my favorit step. in previous step, we set the html tag and the CSS class for the menu, now we can open the style.css file, create rules to make our menu look wonderful. In this step, it's very helpful using Firefox extention Firebug to observe the theme structures. Once you get the html structure, you can start styling. Enjoy!
-
WorkPress Menu brief introduction Whatever theme you choose to use in WordPress, you will have a menu (or a menu system in some feature rich themes). This is a very handy featrue in WordPress, and some themes even provide you an option to choose the way you prefer how your navigating system look. With a few steps of settings, you'll porbably satisfied. If not, that means you will be diving into some coding stuffs. Don't be scared. I'm going to provide you a detailed guide. How to add extra menu without coding Before we start coding our own menu, I still want to introduce the WordPress Custom Menu feature. Just because it's so handy! To use this feature, your theme must support "Custom Menu". Go to Dashboard / Appearance / Menu , if your theme doesn't support this feature, it will tell you so on this page. If your theme support this feature, you can easily create your own menu here in 4 steps: First step, On the right side of Menu option page, click Create Menu, give your menu a name and click Save; Second step, On the left side of Menu option page, there are several panels showing your different types of links. Check any link you like to add, click Add to menu and you are almost done; Third step, now you have your newly added links showing up on your mene panel on the right side of menu option page. Each link has its own property panel. Click the arrow on the panel title bar, you'll see the options for this link including URL, Label, Atributes, link target, CSS class, XFN, Description. Customize those settings to your like here; Final Step, Go to Apearance / Widget page, drag and drop "Custom Menu" widget into one of your widget area. It will let you choose which menu to show. Choose one and save. Done! Now, go to your view your site, you'll see your newly created menu showing up. This is the simplest way to create your customized menu. Next, I'm going to walk you through a few hacks in order to take full control of the menu system.
-
You can write html code in index.php. However, the index.php is mainly used to call templates. You can consider it as a general manager, it calls the templates to do specific jobs. Maybe an example can make it clear-- let's say, you want to display a search box on your page, you will write: <?php locate_template( array( 'searchform.php' ), true ) ?> This code calls the search form template. It is the searchform.php that does the coding job to generate the search box. The location of the search form depends on where you put this call in the index.php.This is very different from the index page in html system. To make it simple and straight-- you can't use index.php for displaying your link page. You must create a template for the links page. You can either code the links in the links-page templage or only create a simple structure of the links-page and write the links on the page when post it. After the links-page template created, you can use it when you post your pages, or you can call it in the index.php file. for example, somewhere in the index.php, when need, you can write: <?php locate_template( array( 'links-page.php' ), true ) ?> This code will display your linlks-page as a block in a page.-- of course I know you don't want to do this, but it's just to show you how index.php works.
-
2 ways to make a page invisible:#1. If your theme support "Custom Menu", it probabely provide you an option to check which page you want to appear on the menu, uncheck all pages that you want it invisible and you are done;#2. If your theme doesn't provide you such an option, you go straight to header.php, it's in the theme's folder. Reading through the file, find the menu section, delete the whole section and you are done.To make child visible on parent page while parent not visible on child page--Normally themes provide this choice. If not, can go to theme developer's support site to ask for how to do it. If don't want to bother them, can just do without the parent/child system.I'm not sure what you mean index page. In WordPress, the index.php is just a way to call call the templates. When a template not available, it will be used as default. If you want a page to display all the links to your page, you can make a list style page. Some themes provide this list template. If your theme doesn't provide it, you'll need to create your own. In this case, you'll need to learn a bit about custom post type or custom fields, either way is good for making lists.
-
I want a free WordPress Plugin or script to create a credit system on my blog. It should work the same as MyCent system--Users gain cents by doing things on my site and spend their cents on my site. They can transfer funds into their balance. One thing is different from MyCent-- users can withdraw cash from their balance.Where can I find such a system for free?
-
Can I submit my site to the same search engin multi times? When submit a stie, do I need to provide a sitemap? If a site map is required, then, later after I fnish designing, my sitemap might be changed. So... confusing.Sorry for my dummy question, but this search engine thingy is really confusing to me.
-
As starscream suggested, creating child pages is a very convinient way to organize your pages. Beside this, if you want more places to display your links, WordPress provides a very handy widget "Custom Menu". First, You can go go Appearance / Menu , create your own menus. Let's say, you create "Primary" and "Secondary";Second, go to Appearance / Widgets, drag and drop "Custom Menu" into any Widgets Area, it will open for you to choose, you'll see your "Primary" and "Secondary" are listed there, choose one, save, close. You'll see the menue appears on your page.
-
Wordpress Themes Best Suited For Static Looking Websites
imjjss replied to Ahsaniqbalkmc's topic in Software
I feel TwentyTen is the best. Speed is the thing. Nowadays when people click your site, they don't wait it loading-- they leave for something else if your site is not opening upon their click.There are some nice themes. But when you dive into customizing, you can never find a theme which suits your needs without a lot of other stuffs that you don't need. For things you really need-- mostly you also need to modify a bit. So, I'd be better off choosing TwentyTen.TwentyTen represents WordPress newest techs, provides all WordPress has to offer. Whatever theme you choose, they all take time to learn and work on. So, I'd prefer work on TwentyTen. -
For static front page-- You first create 2 page, let's call it "page1" and "page2" here. Then, go to WordPress Dashboard / Settings / Reading , choose "show front page as a static page", and choose "page1" as front page, chose "page 2" as post page. Go to Appearance / Menu, remove the "page2" from the menu if you don't want it show up. For removing the sidebar-- You need to create your own template. It sounds like a big job but it's actually very simple-- if all you need is to remove sidebar, follow these steps: 1. Go to your theme's folder, Make a copy of page.php, rename is to something else, let's say "my-page.php". Browse through the file, find this line: <?php locate_template( array( 'sidebar.php' ), true ) ?>Remove it;2. On the top of this file, add this: <?php/*Template Name: My whatever name Page*/?>3. save the file. 4. When you create new page, on the right side of Dashbaord, you will see you can choose to use this "my whatever name page" template. By the way, whatever you do, I'd suggest you do it in child theme. It's safer and very convinient. When Wordpress or your theme update, you won't lost your stuffs.
-
First Invoice Overdue Notice [solved] Xisto billing service
imjjss replied to imjjss's topic in General Discussion
orginally, I was thinking of hosting package, bu today when I visited their site for order canclellation, I browsed through and find a domain I like. very difficult dicission to make. need to have lots of mycents to get both.