Please login or register.

Login with username, password and session length
Advanced search  

News:

You need/want an older version of sNews ? Download an older/unsupported version here.

Pages: 1 2 [3] 4 5 ... 10
 21 
 on: March 03, 2013, 05:45:47 PM 
Started by sibas - Last post by Keyrocks
I don't see this as a big memory management problem. Several Content Management applications whitten in PHP have many, many PHP files, not only for language variables (in several different languages) but for plug-ins or modules and core functionality.

PHP files are all loaded and read (parsed) by Apache (on servers running Linux operating systems) by the host server on the host server. We refer to this as server-side and the PHP files - collectively - generate the source code sent from the server to a user's browser.

sNews - index.php loads first
The first file Apache (the Linux server's server app) looks for and loads is always the index file.
Apache's httpd.conf file (in my localhost installation) is configured to search for an index file in this order:
1.   index.php
2.   index.php4
3.   index.php3
4.   index.cgi
5.   index.pl
6.   index.html
7.   index.htm
8.   index.shtml
9.   index.phtml

The sNews package uses the index.php file in its directory root, so Apache finds and loads it first.
We include the snews.php file (with all of the PHP functions) at the top of the index.php file, so all of the sNews site's PHP gets loaded before the rest of the index.php file gets parsed by the server.

Only one language variable file - the one used by the site by default (as defined in the website's setting panel) will be loaded and parsed (on the host server) when a user visits the website. If the user chooses a different language while visiting the site, then the server (Apache) will find that file and include it.

At least that's the way I understand it.  :)

 22 
 on: March 03, 2013, 05:10:20 PM 
Started by sibas - Last post by sibas
Hey nukpana
The most of the data is plain text, although they are few parts where contains <p> <strong> <em> <br />

The biggest $l['']part is 932 bytes and have also 5 <li></li>

Now even if I remove all the html tags the amount of those html data is negligible,
my question still exists

here is my problem, now I use only two lang files and the total amount of the files I think is going to be 200000 bytes

but what if I use for example 5 languages EN GR NL FR ES and each of them are 120000 bytes the total is 600000 bytesÖ.  ::)
Of course are not loaded all but only when someone switch the languages

What I'm trying to figure out is if it is possible for the memory management of so large lang files.
In localhost tests I donít see problems and everything is working OK  :-\

 23 
 on: March 03, 2013, 04:26:00 PM 
Started by sibas - Last post by nukpana
What kind of data are we talking about here? Really, the language strings should just be that, strings and any HTML/CSS/JS really shouldn't be a part of this.

 24 
 on: March 03, 2013, 09:46:37 AM 
Started by sibas - Last post by sibas
I use big amount of data in language files, switching them by Multi-language simple Mod

So far each language file has 53600 bytes and I expect at the end to be double or triple.

I donít know what the impact in memory is, and general in snews performance by using so big languages files.

Can someone enlighten me?
Does anyone use big languages files before?

 25 
 on: March 03, 2013, 12:22:43 AM 
Started by marengo - Last post by marengo
Quote
No problem finding the admin login panel for your site.

Oh, yes, thank you, I tried a wrong URL so  :o
http://frerealbert.be/login/ works just fine

Sorry for the confusion and thank you for the help

Regards,
Nathalie

 26 
 on: March 02, 2013, 08:57:06 PM 
Started by marengo - Last post by Fred K
Quote from: marengo
admin page cannot be found http://frerealbert.be/admin

The url is wrong, in snews 1.7 the admin area "home" url is http://domain.com/administration/ - so the question is why the wrong url? Is it manually constructed? Anyway, if you're using sNews 1.7 the incorrect url would be the reason why the admin page cannot be found.

 27 
 on: March 02, 2013, 07:03:33 PM 
Started by marengo - Last post by Keyrocks
1) No problem with .htaccess file - links to content are working correctly.
2) No problem with database connection -  data being retrieved and displayed correctly.
3) No problem finding the admin login panel for your site.

Questions
1) What is the URL in your browser bar after you submit the login form?
2) What do you see in your site's main content container?
3) Do you see a logout link anywhere after logging in and, if so, does it work?

 28 
 on: March 01, 2013, 11:45:31 PM 
Started by jjones3535a - Last post by nukpana
For sNews, links like this is possible - MDJ started that path here: http://www.mdj.us/snews-cms/hacks-mods/compact-archives-for-snews-17/
Example on Sven's site: http://on-air.hiseo.fr/archive/
Incorporating it, that is a different story.

The URL links on MDJ's Archive page and Sven's Archive page don't have dates inserted between the root URL and the category/title ... they appear to be normal sNews links when I mouse over them.
Right, the functionality does not work right now, but it is possible to make them work based on MDJs findings as noted.

 29 
 on: March 01, 2013, 10:24:36 PM 
Started by marengo - Last post by marengo
Hi,

we used snews several years, everything was fine.
After a server updated by hosting provider admin page cannot be found http://frerealbert.be/admin

What can I do? If something need to be enabled I can do it

PHIPNFO http://frerealbert.be/phpinfo.php
.htaccess:
Code: [Select]
<IfModule mod_php4.c>
    php_value session.use_trans_sid 0
</IfModule>
<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>
RewriteEngine On
#RewriteBase /snews17
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^(.*) $1 [L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?category=$1 [L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([a-z_]+)/([^/]+) index.php?category=$1&title=$2 [L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([a-z_]+)/([^/]+)/([^/]+)/ index.php?category=$1&title=$2&commentspage=$3 [L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([a-z0-9_-]+)/([0-9]+)/ index.php?category=$1&nbsp;articlespage=$2 [L]

Thank you

 30 
 on: March 01, 2013, 08:28:26 PM 
Started by jjones3535a - Last post by Keyrocks
Quote
More recent versions of WordPress do not generate URLs with dates in them anymore... instead they new use page IDs.
@Doug, Can you provide a link to this? AFAIK, this only happens on an install by default, then if you want the link with the date in it, you set it:
http://codex.wordpress.org/Using_Permalinks

 :P Thanks for the reminder Jason, you're right. I haven't used day+name or month+name permalink settings. I've used the post-name setting which generates the URLs in the same format sNews uses - example: http://mydomainname.ca/sample-post/

For sNews, links like this is possible - MDJ started that path here: http://www.mdj.us/snews-cms/hacks-mods/compact-archives-for-snews-17/
Example on Sven's site: http://on-air.hiseo.fr/archive/
Incorporating it, that is a different story.

The URL links on MDJ's Archive page and Sven's Archive page don't have dates inserted between the root URL and the category/title ... they appear to be normal sNews links when I mouse over them.

I think the issue jjones3535a had in his lead post (Feb.27.08) is that he probably have a number of URL links in his WordPress page or blog content that use day+name permalink structure ... and they would not work as-is (he would need to manually edit them all) if he migrated his data to an sNews site.

Now... if jjones3535a had chosen the post-name permalink setting when he enabled it, then all of his links would have been generated like sNews links from the start and those he copied and pasted into content would have been that way as well. He could have gone back into his W-P Admin >> Settings >> Permalinks panel and changed the setting from day+name to post-name, but he still would have had to edit each link manually in blog post and page content to match after doing it.

With respect to deathcrot's Blogspot site, I don't know how it manages link structure. But, in his case, he would have to manually edit any links he had within blog post or page content as well in order to connect with sNews articles and pages if he migrated the existing data from his Blogpost to an sNews site.

Pages: 1 2 [3] 4 5 ... 10