xoops forums

Forum Index


Board index » All Posts (kerkyra)




kerkyra

Just can't stay away
Posted on: 2011/9/9 12:00
kerkyra
kerkyra (Show more)
Just can't stay away
Posts: 553
Since: 2005/2/14
#11

Re: A slide appearing only on the first page

i think you should check this
Quote:

<{if $smarty.server.PHP_SELF=='/index.php' && $xoops_dirname=="system"}>
<{includeq file="$theme_name/slideshow.html"}>
<{/if}>


make sure you check that xoops_dirname == your first page module directory

If you havent got one then use "system" like in my example, otherwise use the module's folder name.

I'm not sure if this will be visible or not in the selected module's first page as well.
www.guidemap.gr - Beta is out...


kerkyra

Just can't stay away
Posted on: 2011/8/21 22:49
kerkyra
kerkyra (Show more)
Just can't stay away
Posts: 553
Since: 2005/2/14
#12

Re: If we were to start a 2.6 Branch what would you like to see.

@redheadedrod: i was probably reffering to the uModules project. isn't this the one close to the class approach of modules i suggested in my earlier post?
www.guidemap.gr - Beta is out...


kerkyra

Just can't stay away
Posted on: 2011/8/21 13:05
kerkyra
kerkyra (Show more)
Just can't stay away
Posts: 553
Since: 2005/2/14
#13

Re: If we were to start a 2.6 Branch what would you like to see.

@redheadedrod mate perhaps i could help you with that project. it sounds interesting and I think this is something really really missing from xoops.

Moreover, we should have all configurations in the admin area (debuging, user level that will see debug info etc.)

we should also make a standart htaccess file for url rewriting

I use the following one,
-for redirecting to my page with www always in front of the url, -for custom error pages (i'm writing this bit of code trying to make it a bit more flexible),
-and to stop from hotlinking images.

Quote:

Options +FollowSymlinks

ErrorDocument 404 /error_pages/404.php
ErrorDocument 403 /error_pages/403.php

RewriteEngine On
rewritecond %{http_host} ^mysite.gr [nc]
rewriterule ^(.*)$ http://www.mysite.gr/$1 [r=301,nc]

RewriteCond %{HTTP_REFERER} !^http://(.+\.)?mysite\.gr/ [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?facebook.com [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://(apps\.)?facebook.com [NC]
RewriteCond %{HTTP_REFERER} !^$
RewriteRule \.(jpg|jpeg|png|gif|bmp)$ http://img190.imageshack.us/img190/8210/stoleni.png [NC,R,L]

perhaps this could help someone.

Finally I think there should be a major database redesign so as to apply multilingual data, adding the language parameters in the tables and fields holding actual content. perhaps ids of that fields shouldn't be autoincrementing and unique? we could have the same ids with data in different languages.

This will give developers a mechanism to write their code with multilanguage support in mind. Xlanguage is very stiff at the moment.


kerkyra

Just can't stay away
Posted on: 2011/8/13 18:32
kerkyra
kerkyra (Show more)
Just can't stay away
Posts: 553
Since: 2005/2/14
#14

Re: If we were to start a 2.6 Branch what would you like to see.

Do you think it would be a good idea that modules should actually be classes that extend a main core.module.class? Wouldnt that give us more control, extensibility and freedom on writing a module?

Even more we could have specifically named methods (in our modules class) to call for search, rss, latest submissions, comments etc and get the unified results from within the core.

the core.module class will just have to see if the specific method (showRSS() for example) exists, collect the results from each module that has it, and show them...does this make sense to you?
www.guidemap.gr - Beta is out...


kerkyra

Just can't stay away
Posted on: 2011/7/26 12:24
kerkyra
kerkyra (Show more)
Just can't stay away
Posts: 553
Since: 2005/2/14
#15

Re: Excessive querries in Xoops web site

i think the point is to optimize xoops core and functionality.Not to find another host that will support heavy load.

Xoops is indeed making a lot of queries in the database.

I recently (yesterday) had to change my php memory limit to 64M (from 32M) cause it was randomly exceeded by showing the home page of a site with 19 blocks (3 of them custom html) + the banner + debug for admins.

All those blocks query the database 93 times (used to be 102 queries). And right now I'm working on optimizing each block's and module's queries to decrease that number as much as i can (by creating unions, joins etc).

Caching is a good option but sometimes data changes and the site is just showing the cached information not the updated.
www.guidemap.gr - Beta is out...


kerkyra

Just can't stay away
Posted on: 2011/7/22 13:01
kerkyra
kerkyra (Show more)
Just can't stay away
Posts: 553
Since: 2005/2/14
#16

Re: Error after moving site

did you move from a linux server to a windows one?
www.guidemap.gr - Beta is out...


kerkyra

Just can't stay away
Posted on: 2011/7/22 12:37
kerkyra
kerkyra (Show more)
Just can't stay away
Posts: 553
Since: 2005/2/14
#17

Re: Is xoops having problems with a large amount of blocks-sql queries?

i also noticed a big difference in loading times by doing that! my sites now actually run faster! is that logical?


kerkyra

Just can't stay away
Posted on: 2011/7/21 14:13
kerkyra
kerkyra (Show more)
Just can't stay away
Posts: 553
Since: 2005/2/14
#18

Xoops White pages

I did a lil digging around and came to the conclusion that it was the gzip compression that was causing all this. I'm not sure why.

here is what i did to 'fix' this...not sure if this is an actual fix but works for me right now, so please if someone else knows a better fix post it.

in file class/xoopskernel.php

line 124
change this
Quote:

ob_start('ob_gzhandler');


with this
Quote:

ob_start('ob_gzhandler');
ob_end_clean();
header("Content-Encoding: none");


Aparently something is going wrong with the qzip compression. Hope it helps someone...


kerkyra

Just can't stay away
Posted on: 2011/7/21 11:58
kerkyra
kerkyra (Show more)
Just can't stay away
Posts: 553
Since: 2005/2/14
#19

Re: Is xoops having problems with a large amount of blocks-sql queries?

bump? :(
www.guidemap.gr - Beta is out...


kerkyra

Just can't stay away
Posted on: 2011/7/19 15:09
kerkyra
kerkyra (Show more)
Just can't stay away
Posts: 553
Since: 2005/2/14
#20

Re: Is xoops having problems with a large amount of blocks-sql queries?

it seems the debugging has something to do with it also. If i turn it off the site starts working. Otherwise i get blank pages randomly :/
www.guidemap.gr - Beta is out...



TopTop
« 1 (2) 3 4 5 ... 40 »