Forum Replies Created

Viewing 15 replies - 361 through 375 (of 546 total)
  • Forum: Themes and Templates
    In reply to: Page Templates

    Did you check the top of each page template to see that the markup that designates it as a template is there? Example:

    <?php
    /*
    Template Name: Wide Page
    */
    ?>

    if it isn’t, the template won’t show up in the Page Template menu on the edit/write page admin screen… and then wouldn’t use the that template, of course.

    Hello, webbetty…

    I think that what some were saying is that had you read even the littlest bit of the documentation pertaining to how themes work, you would know that you don’t need separate servers…

    Just set up separate folders for each theme, modify the style.css comment at the beginning of the file to name your themes, change the css layouts to suit, then upload them to the /wp-content/themes/ directory.

    If they are accurately coded, the user can switch themes and see their data/content displayed in your “comps”.

    Personally though, comps to me mean graphic design – showing the same content in a graphic image for client review… I would not go as far as to develop 3 different themes at all – just show ideas graphically and get client feedback and a sign off on a design. Then code.

    I do a LOT of paid design (graphic and code) using WP. I do ask questions here, just as I take advantage of all the cool plugins out there that have been developed. My first site had a zillion category pages. My latest only uses one main file (with header, footer and sidebar) and php programming to control what displays… you definitely learn through doing and asking questions here…

    However, I try to read the documentation first, use google searches of the docs and forums second, then post and beg politely. I’ve had times where I am frustrated and have vented about a new “feature”… (just ‘fessing up here)

    What I DO know is… venting and being insulting about those who try to steer you to the docs or suggest you try to learn even a little about what you have taken a paid job for is only going to ensure that no one answers future questions.

    hth

    LOL. Sponsoredthemessuck.com is available as is publicfloggingworks.com 😉 since sponsored-themes-suck.com isn’t available, I’ll assume you got it. Send me the link tag and I’ll fly it, too!

    personally, I’ve never used a theme but do look at how things are used in the custom and default themes and modify my own layouts appropriately… I guess I’m paranoid, too.

    Pass the wine.

    Forum: Fixing WordPress
    In reply to: posts or pages?

    I’d use pages and custom fields… where you make the “bed and breakfast” page, then set up each location that is a bed and breakfast as a custom field… maybe using the c2c_custom_fields plugin (http://www.coffee2code.com/archives/2004/06/30/plugin-get-custom/)

    Then set up your html for the parameters of the c2c_get_custom(key,before,after,between, etc) per the instructions page for the plugin.

    I use this plugin a lot and custom fields a lot… they make it easy to display data for the page…

    the only issue I have with the plugin is that the $order variable doesn’t seem to work at all (anyone out there with an answer for that?).

    Not sure about the tagging aspect… you can create your own custom field key and only those entries using that key will be displayed.

    I think the best thing one can do it to make such business as public as possible, including naming the individual responsible.

    But hey, that’s me. I’m for public flogging, too. I think it would break the back of crime in a hurry. Send them to jail? Why support the lazy arses of criminals, I say… put’em in stocks and let people throw rotten vegetables at them. At the very least, it helps global warming by composting!

    Not everything about the middle ages was bad 😉

    But I agree… people need to not be so “secure” in thinking that just because something is hosted at a great site doesn’t mean it’s safe.

    Thread Starter syncbox

    (@syncbox)

    Hello? Does anyone use C2C custom field plugin? Are you able to get $order working?

    You can use if statements to echo the appropriate content…

    <?php
    if (is_page(1)) {
    echo('whatever content you want to put here or link to image or ?');}
    elseif (is_page(2)) {
    echo ('something else here');}
    else {}
    ?>

    To simplify, if several of the pages have the same side content, you can use a shorthand method of referring to the pages (so you only have to write the content once) like so:

    if (is_page(1) || is_page(2) || is_page(2)) {
    
    }

    OR, you could put the content for each separate sidebar into a file (these would just contain the content, so don’t use the html, head or body tags, just content type html, links, images and such) and use an include statement instead of writing the actual content, like:

    <?php
    if (is_page(1)) {
    include (TEMPLATEPATH . 'filename1.php'); }
    elseif (is_page(2)) {
    include (TEMPLATEPATH . 'filename2.php'); }
    else {}
    ?>

    This allows easier editing of each file via the Manage>Files admin page so that you don’t have to dig through the entire source of the page.php or index.php or category.php file to find the appropriate content to edit.

    HTH

    I would like to know how to stop WP from stripping html in the description of blogroll entries, too. Anyone?

    I’ve had the same issue with category descriptions and while I know that the filtering occurs in the includes/default-filters.php file, commenting out a specific line to try to stop it results in code errors elsewhere.

    Anyone understand how to stop some of the html stripping? Without generating other errors?

    It seems like this changes from version to version to version and it’s a bit annoying to have to figure it out every time… don’t you think?

    where’s the site so we can test this?

    I am using version 2.2 and there is both a delete link to the right of any draft page and a delete button at the very bottom of the page for every draft (and published) page.

    Are you selecting the page from the Manage>Pages list? I don’t have a “list of Drafts” but all draft pages show up on the same manage pages screen and all have the links View | Edit | Delete to the right of each.

    Thread Starter syncbox

    (@syncbox)

    anyone out there with a method? I’ve looked through some themes that seem to use an images directory… I’ve always used “sharedimages” as my default directory – does WP look in “images” by default? It sure doesn’t seem to find images in “sharedimages” unless I use /wp-content/themes/nameoftheme/sharedimages/myimage.gif

    I’m looking for a shortcut to the path above that references the active theme directory, allowing me to simply use the sharedimages/myimage.gif portion

    help? I know this seems basic, but I can find no reference to it in the documentation except showing relative pathing, which doesn’t seem to work.

    use an if statement

    <?php if (is_page(1)) {echo ('whatever you are wanting for this page'); }
    else if (is_page(2)) {echo ('whatever you are wanting for this page'); }
    else {echo ('whatever you are wanting for all other pages that are the ones above'); }
    ?>

    if you have 2 or more pages that use the same stuff, you can shorten your statements and arguments –

    <?php if (is_page(1) || is_page(17) || is_page(42) {echo ('whatever you are wanting for this page'); }
    else if (is_page(2)) {echo ('whatever you are wanting for this page'); }
    else {echo ('whatever you are wanting for all other pages that are the ones above'); }
    ?>

    hth

    Forum: Fixing WordPress
    In reply to: My blog has died

    You would go into whatever control panel your host provides, locate the MySQL section, then locate the link to open phpMyAdmin (hopefully, they have that). Who is your provider?

    From there, you’d locate your database and export the tables. In most cases, this is done by clicking on the Export tab, then selecting all the database tables in the View Dump>Export column. I typically accept the default settings (except for selecting all the tables) and export using the Save as File option… I’m using version 2.9.2 of phpMyAdmin, so a newer version (or older) could vary a bit.

    Save it to your desktop.

    Then, use FTP to save all the custom files for your theme, your plugins and such. I keep a list of what files are different from the basic install as I tend to modify more than just the theme, but that’s me.

    Then, create a new installation of WordPress – I use hosts that offer Fantastico, so this is an easy thing… You can opt to delete the old one and install a new one using the same folder, etc so nothing should change. Be sure to use the same admin name and password…

    Once you’ve installed the new WP files, make sure that the site shows up (this won’t have your data in it, but make sure it works)

    Now upload the custom template files and in your admin pages, select your theme.

    Then, using phpMyAdmin again, get into that database. Select all the tables. There should be a Check All/Uncheck All link to do that. To the right of that link, there should be a menu that allows you to choose “drop”. Do it. You are only dropping empty tables, really.

    Now you are ready to bring in your own data.

    Using phpMyAdmin in your now empty database, click the Import tab. Browse out to your desktop and select the database your exported from the original WP installation. Click the Go button and keep your fingers crossed!

    HTH. If you’ve not changed the folder where you’ve installed or the domain name, etc… this is all you should need to do. Check through the site to see if that fixed things.

    The database tables contain everything about your site, from its name to url to post & page content to theme selection, etc

    1) where’s your site? It might help if we see if that is happening for everyone or just for you…

    2) how many includes, etc does your theme use? If you have to fetch a lot of stuff, things slow down

    3) who is your hosting provider? Some are slower than others, frankly.

    4) how many posts and pages does your site have? If the site is huge, then it takes a while to get the data

    5) what version of the software are you using? WordPress, etc…

    Those are all good places to start troubleshooting. I’ll leave it for the experts to step in here, but that’s where I’d start.

    HTH

    Thread Starter syncbox

    (@syncbox)

    Is there anyone out there who uses this plugin and/or is familiar with the issues of $order not working? Is the author out there somewhere?

Viewing 15 replies - 361 through 375 (of 546 total)