Two Column News In Categories / Pound Sign Errors / Moving Directories Questions Anyone know how to get the Two Column news display when viewing the news stories in their respective category instead of just one long column list of stories? Why are UK pound signs (£) being displayed as ? in the news articles - Dollar signs ($) are fine ? Which is the easiest and safest way to move the entire site to another directory (away from the test directory, to the root) ? Lastly - I tried putting $insert[story_text] in my Title tag (which is in the template site_header) as I am using it as the mini-headline for my stories and the search engines would love the additional text. But the template is not picking up this information.... Is this possible to fix? Thanks!
Two Column News In Categories / Pound Sign Errors / Moving Directories Questions Originally posted by timbo: This needs a modification in category.php. I will try to post it later this week. Originally posted by timbo: Look like a charset issue. Please try to add <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-15" /> in site_header Originally posted by timbo: This is very easy. Just move the site, login in admin, and edit the path to the website in other/config and other/websites. Originally posted by timbo: Open core.php in an editor and find: $insert[page_title] = $data[story_title]; Then replace this line with: $insert[page_title] = $data[story_text]; You need to change back $insert[page_title] in the site_header template
Two Column News In Categories / Pound Sign Errors / Moving Directories Questions Thanks! That would be great.... Fixed it - great... Lovely! Ahh, okay. That's great but I also want to keep the story_title in there too. My fault for not being clear enough. So it's: story_title and story_text in the Head tag.....
Two Column News In Categories / Pound Sign Errors / Moving Directories Questions Originally posted by timbo: $insert[page_title] = $data[story_title]." ".$data[story_text];
Two Column News In Categories / Pound Sign Errors / Moving Directories Questions Great! That's perfect Thanks again for your help and I'm looking forward to the two-column category thingymewotsit!
Two Column News In Categories / Pound Sign Errors / Moving Directories Questions Originally posted by Philipp: What do I need to do to make printer.php pick up the story title and story text in the html title tag too? I know you're busy - but how difficult/easy is the two-column category news option? If it's a major hack, don't worry about it for now.....
Two Column News In Categories / Pound Sign Errors / Moving Directories Questions Originally posted by timbo: Open the story_printer template and replace Code: <title>$insert[story_title]</title> with Code: <title>$insert[story_title] $insert[story_text]</title> Originally posted by timbo: Here the modification. Open category.php in an editor and find: Code: $categorynews .= GetTemplate("category_line"); then add the following line: Code: $newsrow = 0; Now replace: Code: $categorynews .= GetTemplate("news"); with: Code: if (!$newsrow) { $categorynews .= GetTemplate("news_col_header"); $newsrow = 1; } elseif ($newsrow == 1) { $categorynews .= GetTemplate("news_col_middle"); $newsrow = 2; } $categorynews .= GetTemplate("news_col_news"); if ($newsrow == 2) { $categorynews .= GetTemplate("news_col_footer"); $newsrow = 0; }
Two Column News In Categories / Pound Sign Errors / Moving Directories Questions Thank you! Your support has been amazing from the moment I purchased this software - and now my site is finished! Time to start work on the next one (and don't worry, I shouldn't have to ask any more questions....I don't think!) * for some reason the above hack is messing with my tables when there is only 1 or 3 stories in a category... I will play with it and see if I can fix that....
Two Column News In Categories / Pound Sign Errors / Moving Directories Questions The following was missing in category.php Before: Code: WriteCache("categories", "category-$id", $categorynews, $keepcached); Add: Code: if ($newsrow == 1) { $categorynews .= GetTemplate("news_col_middle"); $categorynews .= GetTemplate("news_col_footer"); }
Two Column News In Categories / Pound Sign Errors / Moving Directories Questions Yep - that fixes it! Genius! Thanks....