1
elsanto
Re: Smarty cache xoops_page_title
  • 2010/1/21 22:13

  • elsanto

  • Just popping in

  • Posts: 18

  • Since: 2009/1/5 1


Gracias Trabis. Si yo llegara a tener algun avance lo iré escribiendo en este post, pero lo dudo porque me cuesta mucho entender las clases de xoops.



2
elsanto
Smarty cache xoops_page_title
  • 2010/1/20 11:51

  • elsanto

  • Just popping in

  • Posts: 18

  • Since: 2009/1/5 1


Hello, sorry for the mistakes of language, I use the google translator.

A long time ago that we should XOOPS this function. Nobody wants to cache the modules because the information is lost the title page and we all know how important it is for a good position in search engines.

With my little knowledge of php I have been reviewing the code cache system and I think the solution should be implemented at the top of the page cache, where the labels are "template", "timestamp", "expires" and others.

275 a:5:{s:8:"template";a:3:{s:18:"db:news_index.html";b:1;s:17:"db:news_item.html";b:1;s:34:"db:system_notification_select.html";b:1;}s:9:"timestamp";i:1263984313;s:7:"expires";i:1264070713;s:14:"cachepagetitle";s:30:"http://localhost/xo243/uploads";s:13:"cache_serials";a:0:{}}   <div style="text-align: center;">     <form name="form1" action="http://localhost/xo243/modules/news/index.php" method="get">     <select name="storytopic" id="storytopic" ><option value="0"></option><option value="1">[es]Vinos[/es][en]Wine[/en][ca]Vi[/ca]</option></select> <select name="storynum"><option value="5" selected="selected">5</option><option value="10">10</option><option value="15">15</option><option value="20">20</option><option value="25">25</option><option value="30">30</option></select> <input type="submit" value="Continuar" class="formButton" /></form>   <hr />   </div>


As shown in the following ratecontrol code of cached pages I managed to insert a more tag called "cachepagetitle" = XOOPS_UPLOAD_URL

I could only take the first step of this need for xoops, putting in the file / class / smarty / internals / core.write_file.php as shown in the last line of code below.

function smarty_core_write_cache_file($params, &$smarty) {   

$smarty->_cache_info['timestamp'] = time();     
if (
$smarty->cache_lifetime > -1){ 
$smarty->_cache_info['expires'] = $smarty->_cache_info['timestamp'] + $smarty->cache_lifetime;     
} else {  
$smarty->_cache_info['expires'] = -1;     
}          
$smarty->_cache_info['cachepagetitle'] = XOOPS_UPLOAD_URL;



I put it XOOPS_UPLOAD_URL not like putting xoops_page_title and still lack the most difficult, to read the label and pass it to the template.

Will I be able to help? If you can solve this should be implemented in future versions of xoops.

Thank you very much.



3
elsanto
Re: xoops 2.4 problem with EMLH
  • 2010/1/12 22:51

  • elsanto

  • Just popping in

  • Posts: 18

  • Since: 2009/1/5 1


Hello Trabis, if you work on the side of the administration, as long as this "register_globals on". I prefer to wait until you make a revision to the module, not urgency, in the meantime I have



//  $GLOBALS['xoopsConfig']['language'] = $easiestml_langs[EASIESTML_DEFAULT_LANG]; 
$GLOBALS['xoopsConfig']['language'] = "spanish";


Thank you very much



4
elsanto
Re: xoops 2.4 problem with EMLH
  • 2010/1/12 20:01

  • elsanto

  • Just popping in

  • Posts: 18

  • Since: 2009/1/5 1


Quote:
Hi again, I made a simple module that uses this script and preloads so you can change system language also. No need to hack mainfile, just install it and configure easiestml.php as usual. Here is the link:http://www.xuups.com/easiestml.zip 2.4 only.


Mr Trabis, I installed your module and change language user side works perfect, but not in the administration if it is defined in php.ini "register_globals" is off.

I put it in local mode with "register_globals on" the administration changes its language perfectly. Could you review the module as you have time? Thank you very much



5
elsanto
Re: Error in image manager - XOOPS 2.3.3 image.php
  • 2009/4/2 17:59

  • elsanto

  • Just popping in

  • Posts: 18

  • Since: 2009/1/5 1


ok.
Thank you



6
elsanto
Error in image manager - XOOPS 2.3.3 image.php
  • 2009/4/1 23:10

  • elsanto

  • Just popping in

  • Posts: 18

  • Since: 2009/1/5 1


When you choose to save the image in the database directory instead of / uploads, XOOPS uses XOOPS_ROOT_PATH / image.php
There in the line 41 includes the class: XOOPS_ROOT_PATH include_once '. / Class / logger.php';

Forgot to replace the new class: XOOPS_ROOT_PATH include_once '. / Class / logger / xoopslogger.php';

Thank you
Sorry for my English



7
elsanto
Re: The best of my XOOPS
  • 2009/3/20 6:12

  • elsanto

  • Just popping in

  • Posts: 18

  • Since: 2009/1/5 1


sailjapan:
Not catads of instantzero is catads 1.4 catfelix, I changed myself, this very personal, but soon end up with a standard version includes improvements to the module: googlemaps, skype, photo thumbnail images creeacion small, friendly url mas.



8
elsanto
Re: Catads 1.50 beta
  • 2009/2/22 0:18

  • elsanto

  • Just popping in

  • Posts: 18

  • Since: 2009/1/5 1


The address of the article "News SEO url rewrite is

http://www.esxoops.com/modules/news/article.php?storyid=808

Regarding the failure catads 1.4 and 1.5 as an anonymous user can suspend a notice entering the url catads / adsitem.php? Stopandgo = & op = + ads_id number of ads
adsitem.php change the file like this:

function stopandgo() {
    global  
$ads$ads_handler$isAuthor;

// verification Author
if (!$isAuthor) {
    
redirect_header("index.php",2,_NOPERM);
}



9
elsanto
Re: Catads 1.50 beta
  • 2009/2/20 18:33

  • elsanto

  • Just popping in

  • Posts: 18

  • Since: 2009/1/5 1



Sorry for my English.
Anyone can contact Kraven30, author of Catads 1.50 beta, its version contains a security breach and catfelix author catad 1.4 too?

An ill-intentioned user may discontinue the ads because the function
stopandgo function ()

Not checking user XOOPS.

The solution is:

function stopandgo() {
    global 
$ads$ads_handler;

// verification user
$uid $ads->getVar('uid');
if (!
$xoopsUser || $xoopsUser->getVar('uid') != $uid) {
    
redirect_header("index.php",1,_NOPERM);
}


Thank you very much



10
elsanto
Re: url rewrite
  • 2009/2/19 20:20

  • elsanto

  • Just popping in

  • Posts: 18

  • Since: 2009/1/5 1



Mr deka87: In this post we will explain in Spanish how to modify the module Mr deka87: In this post we will explain in Spanish how to modify the module catadscatads

At the end of the module will post with all the improvements as we have done with the module news seo EN ES FR 1.63




TopTop
(1) 2 »



Login

Who's Online

213 user(s) are online (141 user(s) are browsing Support Forums)


Members: 0


Guests: 213


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits