This website can use cookies to improve the user experience

This website can use cookies to improve the user experience and to provide certain services and functions to users. Cookies contain small amounts of information (such as login information and user preferences) and will be stored on your device.

Enable All Cookies Privacy Policy

Two Column News In Categories / Pound Sign Errors / Moving Directories Questions


avatar
timbo 0
From: -
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! Smiling Face

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.

Responses to this topic


1 Re: Two Column News In Categories / Pound Sign Errors / Moving Directories Questions
avatar
OP 0
From: -
Two Column News In Categories / Pound Sign Errors / Moving Directories Questions

Yep - that fixes it! Genius! Smiling Face

Thanks....
1 Re: Two Column News In Categories / Pound Sign Errors / Moving Directories Questions
avatar
Administrator
1340
From: Vienna, Austria
Two Column News In Categories / Pound Sign Errors / Moving Directories Questions

The following was missing in category.php

Before:
WriteCache("categories", "category-$id", $categorynews, $keepcached);


Add:
            if ($newsrow == 1)

{
$categorynews .= GetTemplate("news_col_middle");
$categorynews .= GetTemplate("news_col_footer");
}
1 Re: Two Column News In Categories / Pound Sign Errors / Moving Directories Questions
avatar
OP 0
From: -
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!) Winking Face

* 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....
1 Re: Two Column News In Categories / Pound Sign Errors / Moving Directories Questions
avatar
Administrator
1340
From: Vienna, Austria
Two Column News In Categories / Pound Sign Errors / Moving Directories Questions

Originally posted by timbo:
What do I need to do to make printer.php pick up the story title and story text in the html title tag too?


Open the story_printer template and replace

<title>$insert[story_title]</title>

with

<title>$insert[story_title] $insert[story_text]</title>


Originally posted by timbo:
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.....


Here the modification. Open category.php in an editor and find:

$categorynews .= GetTemplate("category_line");


then add the following line:

$newsrow = 0;


Now replace:

$categorynews .= GetTemplate("news");


with:

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;
}
1 Re: Two Column News In Categories / Pound Sign Errors / Moving Directories Questions
avatar
OP 0
From: -
Two Column News In Categories / Pound Sign Errors / Moving Directories Questions

Originally posted by Philipp:
Originally posted by timbo:
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.....


$insert[page_title] = $data[story_title]." ".$data[story_text];


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.....
1 Re: Two Column News In Categories / Pound Sign Errors / Moving Directories Questions
avatar
OP 0
From: -
Two Column News In Categories / Pound Sign Errors / Moving Directories Questions

Great! That's perfect Smiling Face

Thanks again for your help and I'm looking forward to the two-column category thingymewotsit! Smiling Face
1 Re: Two Column News In Categories / Pound Sign Errors / Moving Directories Questions
avatar
Administrator
1340
From: Vienna, Austria
Two Column News In Categories / Pound Sign Errors / Moving Directories Questions

Originally posted by timbo:
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.....


$insert[page_title] = $data[story_title]." ".$data[story_text];
1 Re: Two Column News In Categories / Pound Sign Errors / Moving Directories Questions
avatar
OP 0
From: -
Two Column News In Categories / Pound Sign Errors / Moving Directories Questions

This needs a modification in category.php. I will try to post it later this week.


Thanks! That would be great....

Look like a charset issue. Please try to add <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-15" /> in site_header


Fixed it - great...

This is very easy. Just move the site, login in admin, and edit the path to the website in other/config and other/websites.


Lovely!




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


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.....
1 Re: Two Column News In Categories / Pound Sign Errors / Moving Directories Questions
avatar
Administrator
1340
From: Vienna, Austria
Two Column News In Categories / Pound Sign Errors / Moving Directories Questions

Originally posted by timbo:
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?

This needs a modification in category.php. I will try to post it later this week.

Originally posted by timbo:
Why are UK pound signs (£) being displayed as ? in the news articles - Dollar signs ($) are fine ?

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:
Which is the easiest and safest way to move the entire site to another directory (away from the test directory, to the root) ?

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:
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?


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

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.