Forums

[resolved] Merging from another database (98 posts)

  1. t31os_
    Member
    Posted 4 months ago #

    Also change this..
    Devotion for <?php echo $today ?>
    For just..
    <?php echo $today ?>
    So just removing this bit basically..
    Devotion for

    The date should then appear as(or close) to what it is on the existing old page..

    That's all i was doing there, fixing the date to look like it does on the other page..

    Is there anything you want to change? .. or are you just aiming to mimic the old page?

  2. t31os_
    Member
    Posted 4 months ago #

    Ok, here you go, slight update to the previous code..

    I've made it easier for you to switch the elements for the devotion shown, you should see near the top of the file...

    So you can switch the header tags(h1/h2/h3/h4/h5 etc..) without too much fear of messing something up.

    http://wordpress.pastebin.com/m306c96c8

    As said previously, is there anything you'd like to change?

  3. jordan8201
    Member
    Posted 4 months ago #

    I basically just want to mimic the other page. I took this code
    .devotion {background:#fff;padding:10px}
    off of the style.css page. We put that earlier so we could see the text, but it is no longer necessary for some reason.

    I would like to see the search button and the edit box line up and that vertical line disappear if possible.

    The new page is wider than the old page. This is fine on my computer, but I wonder if it might be too wide on a computer that has a resolution like 800x600. What do you think?

    The site is looking great btw, thank you. Are we nearing the longest forum discussion in history yet?

  4. t31os_
    Member
    Posted 4 months ago #

    I would like to see the search button and the edit box line up

    Are you talking about the search form in your header?

    Edit box? What edit box?

    and that vertical line disappear if possible.

    Which vertical line are you referring to?

    I basically just want to mimic the other page. I took this code
    .devotion {background:#fff;padding:10px}
    off of the style.css page. We put that earlier so we could see the text, but it is no longer necessary for some reason.

    Yes i removed the devotion div, that was simply created initially when making the script/template for you... the line is no longer required because <div class="devotion"> is no longer in the code..

    You now have <div id="left-comments"> in it's place. This was an element copied from the original older page. Ideally we should be using a class and not an ID but since the query is only ever returning a single result there should never be an issue.

    The new page is wider than the old page. This is fine on my computer, but I wonder if it might be too wide on a computer that has a resolution like 800x600. What do you think?

    Looks the same on my screen, can you be more specific?

    Let me know regarding the above questions... :)

  5. jordan8201
    Member
    Posted 4 months ago #

    Regarding the width - if I open both pages:
    http://straightpaths.mzbc.com/ and
    http://mzbc.com/straightpaths/?page_id=9
    in different tabs in Firefox and switch back and forth, the second page is much wider (less blank spaces on the two sides).

    In the header, there is a search edit box and a Go Button beside it. The edit box does not line up with the Go Button as it should. Just to the left of the edit box, there is a faint vertical line. This line is not on the first page, and really should not be there.

    Hopefully that is more clear. Thanks :)

  6. t31os_
    Member
    Posted 4 months ago #

    That's strange because i'm using Firefox and the widths are the same according to Web Developer (which allows me to check various things including element width).

    I did a hard-refresh on my firefox and both are still the same..

    CTRL + F5 on both the pages, just to make sure you're not seeing a cached version.

    Or are you referring to vertical spacing above the elements? (which i can see)..

    I can't see the edit button on the second page to see the problem (only admins should see it), so i'm not sure why i see it on the first..

    In any case, i'll need to see the problem to help fix it, can you take a screenshot?

    Search button is easy enough, add this line to the stylesheet (style.css).
    #searchform #s {float:left;margin-right:5px}

  7. jordan8201
    Member
    Posted 4 months ago #

    I'm referring to the margin on the right and left If I open each up in different tabs, and ctrl + tab back and forth, I can see a definite difference in the two.

  8. jordan8201
    Member
    Posted 4 months ago #

    The line in the style sheet worked, thanks! The vertical line is still there. I am not sure what edit box you are referring to. I do not see it.

  9. t31os_
    Member
    Posted 4 months ago #

    lol....

    The edit box you mentioned here..

    I would like to see the search button and the edit box line up and that vertical line disappear if possible.

    Any chance of a few screenshots of the problem?

    Internet Explorer shows the same level of spacing to...

    Would it be easier to just send me a copy of your theme?
    t31os(AT)hotmail(DOT)com

  10. jordan8201
    Member
    Posted 4 months ago #

    Oh ya. Well the edit box that goes along with the Go Button. :) Should have said the search button. I'll send you some screen shots a little later. What files would you need for the theme?

  11. t31os_
    Member
    Posted 4 months ago #

    All of them please, so i can install your theme locally.. well anything that is required for the theme to function...

    I think it will be a whole lot easier if i have a copy of the theme running. Just zip the whole folder of the theme you're using.

    I think we'll get more done, in a shorter space of time this way.... :)

  12. jordan8201
    Member
    Posted 4 months ago #

    I have just emailed you the entire Theme5.zip.

    Thanks

  13. t31os_
    Member
    Posted 4 months ago #

    Taking a look for you now...

    In the meantime may i suggest using a different editor, it appears whatever you are using is adding extra spacing throughout the theme files...

    Every other line is a blank line... :(

    Notepad++ and Notepad2 are both free and as easy to use as regular notepad... (i use the first myself)..

  14. t31os_
    Member
    Posted 4 months ago #

    Fixed a few areas in regard to invalid code, and i've also fixed the post titles, so they now link (while still looking exactly as before) to the single post...

    This may not be something you need, but it's there...

    I still can't see the issues you mentioned, you'll need to be very specific or we'll be running in circles all the way onto page 4 of the thread, lol... :)

    What browser are you using?

    How about a screenshot? (Do you know to do a screenshot?)

  15. jordan8201
    Member
    Posted 4 months ago #

    Whatever you did fixed the issue with the width. The faint vertical line near the search box is still there. I do know how to do screen shots. Can I post them here or should I email? Or do I need to upload to my server then link to them from here?

    I use PHP Designer 2007. As long as Notepad++ will give me different colors on the code, then I'm good. :)
    Thanks

  16. jordan8201
    Member
    Posted 4 months ago #

    Hmmm...wait you couldn't have updated the server files, so I am not sure how the width issue was corrected. It's a miracle!! :)

  17. t31os_
    Member
    Posted 4 months ago #

    Cached files, that's why i asked you to CTRL + F5 earlier, obviously it didn't quite refresh enough....

    I've fixed some other issues while i've got the files...

    Is there anything you want changed or updated before i send it back?...

  18. jordan8201
    Member
    Posted 4 months ago #

    There are some extra line breaks on the top of the 2nd page, but I can probably fix that. How would you like me to send the screen shot to you?

  19. jordan8201
    Member
    Posted 4 months ago #

    Ahhh I just figured out the width issue...When I go to the page, I go to www.straightpaths.mzbc.com. This has the wider margins.

    Click the Devotions link, it takes me to http://mzbc.com/straightpaths/?page_id=9, which has the thinner margins. If I click home (which is what you were probably looking at), I get the thinner margins and the web site is: http://mzbc.com/straightpaths/

    So http://mzbc.com/straightpaths/ is different from www.straightpaths.mzbc.com.

  20. t31os_
    Member
    Posted 4 months ago #

    http://www.t31os.co.uk/Theme5.zip

    Try out the changes as they are and report back any problems or additions you need.

  21. jordan8201
    Member
    Posted 4 months ago #

    Ok, we have a problem.
    For some reason whatever you did combined all of the data onto one line when I open it up in the wp EDITOR. So i get this error message when I go to the devotions page:

    Parse error: syntax error, unexpected T_IF in /home/mzbcco5/public_html/straightpaths/wp-content/themes/Theme5/devotions.php on line 1

  22. t31os_
    Member
    Posted 4 months ago #

    Grab the files again, i've just grabbed that zip above and the files are still intact....

    I'll zip them again if necessary...

    I'm going to check the WP editor and see if i get the same problem.

  23. t31os_
    Member
    Posted 4 months ago #

    Update: Tested in Wordpress theme editor, no problems..

    There's no T_IF on line 1 by the way, so that error is certainly out of place.

    P.S. i didn't move it onto one line, that's partly why i think there was an issue with the files, either at download or upload...

    EDIT: further update

    Took the downloaded files and installed them again locally, and all is still fine.

    I can only guess the files didn't download correctly or there was an issue on uploading...

  24. jordan8201
    Member
    Posted 4 months ago #

    i tried again with the same result. Should I do something other than use my ftp program to upload the new files?

  25. t31os_
    Member
    Posted 4 months ago #

    Can you open one of the files (any one will be fine), using this Notepad++, and report if the issue with the text being on one line is still present..

    Try this again, fresh zip..
    http://www.t31os.co.uk/test.zip

    I've checked individual files and made sure the encoding matches for all files, UTF-8...

    Other then that i can't understand the problem.. :(

  26. jordan8201
    Member
    Posted 4 months ago #

    It looked fine in Notepad++, but it was still on a single line in the WP editor. So I pasted the code from Notepad to the editor, and it worked. So not sure why that happened, but all is well now! I still have the vertical line issue: Screenshots are here:

    http://mzbc.com/straightpaths/page1correct.JPG
    http://mzbc.com/straightpaths/page2incorrect.JPG

    Can you see the faint vertical line on the 2nd?

  27. t31os_
    Member
    Posted 4 months ago #

    I think that line is caused by the 2 elements floated next to each other... but i think we can work round that..

    In style.css, find..

    #search {
    	margin:0px;
    	padding:27px 0 0 0;
    	width:370px;
    	height:49px;
    	background:#000c28;
    	float:left;
    	clear:right;
    }

    Change this.
    background:#000c28;
    for..
    background:transparent;
    and add..
    border:none;

    Then find.

    #header{
    	margin:0px;
    	padding:0px;
    	width:1003px;
    	float:left;
    }

    And add.
    background:#000c28;
    Like so.

    #header{
    	margin:0px;
    	padding:0px;
    	width:1003px;
    	float:left;
    	background:#000c28;
    }

    Does that help at all?

  28. jordan8201
    Member
    Posted 4 months ago #

    That seems to have solved the problem, well done!
    Okay maybe one last question...When I click archives or categories, I am getting this error message:

    Parse error: syntax error, unexpected '}' in /home/mzbcco5/public_html/straightpaths/wp-content/themes/Theme5/archive.php on line 6

    Line 6 is this:

    <?php }		/* If this is a daily archive */		elseif (is_day()) { ?>

    I don't believe I have ever edited this file. The page looks great! Thank you so much!

  29. t31os_
    Member
    Posted 4 months ago #

    Ok i can see the error...

    I worked on several files before giving you a link to download it back.

    Update that file to this.
    http://wordpress.pastebin.com/m18d3349e
    It was just a silly error on my part.... misplaced endif;

    Just a friendly reminder to use the bottom textarea to copy the code from the pastebin.

  30. jordan8201
    Member
    Posted 4 months ago #

    That did it! Thank you very much!

    When I first started trying to get this page going ( a looooooooong time ago), I couldn't get the sidebar widgets to work, so I had to do some changing of code in the editor (probably big mistake) to get it to work. I have since learned a little more about these, but right now in my wp-admin, nothing is chosen in the widgets section. If I drag something over to the right, it looks like this:

    http://straightpaths.mzbc.com/

    Basically all the images have disappeared. Here is the sidebar.php file which I had previously edited (before I knew about the MiniMeta plugin).

    http://wordpress.pastebin.com/d38de2cbb

    I am sure this is a simple error in the path to the images somewhere probably.

Reply »

You must log in to post.

About this Topic

Tags

No tags yet.