php commands
-
where can i get a list of all the calls and includes etc in the index file that i may need to create my own template from scratch .. including using my own css cause i hate having layout with the two columns
G
-
I will get them for you in just a sec
Here is a basic page:
Start Page ———————————–
<?php /* Don’t remove these lines, they call the b2 function files ! */
$blog = 1;
require_once(‘blog.header.php’);
require_once($abspath.’wp-links/links.php’);
// not on by default: require_once($abspath.’wp-links/links.weblogs.com.php’);
?>
<html>
<head>
<title><?php single_post_title(‘ – ‘) ?><?php single_cat_title(‘ – ‘) ?><?php single_month_title(‘ – ‘) ?></title>
<meta http-equiv=”Content-Type” content=”text/html; charset=iso-8859-1″>
<link rel=”alternate” type=”text/xml” title=”RDF” href=”<?php bloginfo(‘rdf_url’); ?>” />
<link rel=”alternate” type=”text/xml” title=”RSS” href=”<?php bloginfo(‘rss2_url’); ?>” />
<link rel=”pingback” href=”<?php bloginfo(‘pingback_url’); ?>” />
<?php get_archives(‘monthly’, ”, ‘link’); ?>
<?php // comments_popup_script(); // off by default ?>
</head>
<body>
<?php if ($posts) { foreach ($posts as $post) { start_b2(); ?><?php the_date(”,”,”); ?>
<div id=”post-<?php the_ID(); ?>”>
” rel=”bookmark” title=”Permanent Link: <?php the_title(); ?>”><?php the_title(); ?>
<span>” title=”Category: <?php the_category() ?>”>[<?php the_category() ?>] — <?php the_author() ?></span><?php the_content(); ?><?php link_pages(‘
Pages: ‘, ‘
‘, ‘number’); ?>
<?php comments_popup_link(‘Comments (0)’, ‘Comments (1)’, ‘Comments (%)’); ?><div align=”center”><br> <!–
<?php trackback_rdf(); ?>
–>
<?php include($abspath . ‘b2comments.php’); ?>
<?php } } // end foreach, end if any posts ?>
<br></div><?php timer_stop(1); ?>
</body>
</html>
End Page ————————
That is a really hard way if doing it but if you keep everything in the right order and read the tags you should be ok. I will post a better copy of the script soon.
Regards
Marzar00Here is the one in the table:
Start code:—————
<?php /* Don’t remove these lines, they call the b2 function files ! */<br>
$blog = 1;<br>
require_once(‘blog.header.php’);<br>
require_once($abspath.’wp-links/links.php’);<br>
// not on by default: require_once($abspath.’wp-links/links.weblogs.com.php’);<br>
?><br>
<html><br>
<head><br>
<title><?php single_post_title(‘ – ‘) ?><?php single_cat_title(‘
– ‘) ?><?php single_month_title(‘ – ‘) ?></title><br>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><br>
<link rel="alternate" type="text/xml" title="RDF"
href="<?php bloginfo(‘rdf_url’); ?>" /><br>
<link rel="alternate" type="text/xml" title="RSS"
href="<?php bloginfo(‘rss2_url’); ?>" /><br>
<link rel="pingback" href="<?php bloginfo(‘pingback_url’);
?>" /><br>
<?php get_archives(‘monthly’, ”, ‘link’); ?><br>
<?php // comments_popup_script(); // off by default ?><br>
</head>
<body><br>
<div id="post-<?php the_ID(); ?>"><br>
<?php if ($posts) { foreach ($posts as $post) { start_b2(); ?><br>
<table width="90%" border="0" cellspacing="0"
cellpadding="0"><br>
<tr> <br>
<td> <br>
<?php the_date(”,”,”); ?><br>
</td><br>
</tr><br>
<tr> <br>
<td>" rel="bookmark"
title="Permanent Link: <?php the_title(); ?>"> <br>
<?php the_title(); ?><br>
</td><br>
</tr><br>
<tr> <br>
<td><span>"
title="Category: <?php the_category() ?>">[ <br>
<?php the_category() ?><br>
] — <br>
<?php the_author() ?><br>
</span> </td><br>
</tr><br>
<tr> <br>
<td> <br>
<?php the_content(); ?><br>
</td><br>
</tr><br>
<tr><br>
<td> <br>
<?php link_pages(‘
Pages: ‘, ‘
‘, ‘number’); ?><br>
<?php comments_popup_link(‘Comments (0)’, ‘Comments (1)’, ‘Comments (%)’);
?><br>
</td><br>
</tr><br>
</table>
<br>
<div align="center"><br> <!–<br>
<?php trackback_rdf(); ?><br>
–><br>
<?php include($abspath . ‘b2comments.php’); ?><br>
<?php } } // end foreach, end if any posts ?><br>
<br></div><br>
<table width="90%" border="0" cellspacing="0"
cellpadding="0"><br>
<tr><br>
<td><br>
Page Generation took: <?php timer_stop(1); ?><br>
</td><br>
</tr><br>
</table><br>
</body><br>
</html>
End Code:———————————
If you need any help just reply or contact me at [email protected]
Regards
Marzar00ok thats not really what i was after … if you look at https://www.shaxted.co.uk/giles/wordpress/index.php you will see that my index page is messed up.
I was looking at making my very own index page to remedy this,
I dont like the layout of the page one little bit and want it to look more like mine at https://www.shaxted.co.uk/giles/ I mean blogger is good but I want to get this working, and then this should be better, I had B2 working, I had 0.72 working, this 1.0 doesnt work for me AT ALL
I am pretty sure it all installed fine .. I will try wiping it all and starting over, see if that works. But I am not hopefull, the onlie config didnt even work for me .. I entered exactly the same info in the config file and it worked fine .. very disappointed with this 1.0 myself .. released in pre beta version !!@giles,
Individual results may vary. I took 0.72 and made it look exactly how I wanted it to and I don’t know a thing about PHP. Virtually all of my design was accomplished by CSS alone.
I have a lot of sympathy for everyone right now:
Developers – they constantly get “When’s the next version coming out?” from everyone because we want this and we want that. They work their butts off, add a lot of functionality, clean up the code, move the whole shooting match to a brand-new hierarchy, including new and renamed files and folders, and all the while doing this on their own time.
Newbies – people like me who want to have everything set up in a way that we can feel like this is a piece of software we can use and tailor to our own heart’s content. We want the setup and maintenance to be robust, but the installation and interface clean and simple.
Hackers – people who dream code in their sleep. They want to dissect the body, and add new plumbing. They want to re-route everything; they want total control.
So, here you have it– WordPress 1.0. I never expected it to be bug-free. I never expected it to be flawless, but I did expect that it would ultimately be a better application that earlier versions. So far, I believe this to be true. Next time to you decide to judge the quality of the software, or unitlaterally declare it to be “pre-beta,” perhaps you will keep in mind the myriad of factors that this whole project is all about.
So far, I have seen many people helping others, which is all part of the esprit de corps that this community has; this is what will get everyone going. It’s going to take some time and some work. What are you going to do to help? BTW, I don’t ask this question sarcastically or otherwise. I’ve no interest in a flame war–I’m just interested in what we can individually do to make WP a better product.
Craig.@ Giles:
You have a problem with your siteurl variable…please remove the index.php at the end of that variable and your CSS will show up again!
This can be found under your admin page, options, base settings, siteurl.Nuclearmoose or whatever you are get over yourself .. your layout is wordpress almost verbatim with a few images in it .. i understand what goes into devloping software .. and you’ll have to take my word for it.
But as well all know there are plenty of people here to test it before it’s released. so why not use them.
second, even though it is freeware, doesnt mean it shouldnt mean it shouldnt be made proffesionally .. the 0.72 worked great for me .. i know this product is remarkable.
peer pressure should never be given into .. and hackers can mess with it whenever it comes out .. the product should be made for end users, and so its the end result that needs to me made.
oh and btw .. i did remove the index.php and it still didnt work for me ..
im going to start from scratch and do 0.72 and then when 1.0 is as bug free as it will get i will upgrade, i just want to get a wordpress product working and customised for my site.
cheers guys you’re doign a stella job.
grrr dont get political we’re all here to have fun and utilise one of the best blogwares on the freemarket.for anyone that wants them this is where they are ..
https://wiki.www.ads-software.com/index.php/TemplateTags
and i phrased it bad .. its not commands its tags !@giles
No need for hostility, sir. I have no animosity towards anyone. As I have stated in many of my posts, I’m here to learn and understand. That doesn’t mean that I’m not entitled to an opinion in the same way as are you.
I have no reason to “get over myself.” I pride myself in trying to help in any way that I can to make WP a better program and the community a better place to be.
Craig.@nm, By the way I even found your post to be rather rude. Sure some of those things I agree with but just because they may be true doesn’t give you or anyone the right to say them. After reading that post I feel that by what you were saying was unconsciously trying to put down the new users of WP. I am all for having pride in one persons self but no to the extent that you would be choking in it.
@giles, Sorry I didn’t know what you were asking for, I now do. And thank you for that site.
Regards
Marzar00@Marzaroo,
*I* am a new user of WP. So I was unconsciously putting myself down.
Craig.Fair enough than NM.
Marzar00Now everybody go sit in a corner and don’t come back til you’ve got your HAPPY FACE ON! ??
??
No hard feelings to anyone!jkal;fjkld;sfjklas;d
- The topic ‘php commands’ is closed to new replies.