371
trabis
Re: Unknown SEO method.
  • 2011/8/23 16:45

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Quote:

chefry wrote:
so this will fix the problem?

I can go back to one big database?


No, I think your problem is in random articled block.
I will look into the block but if you can get me access to your server it would be great.



372
trabis
Re: Unknown SEO method.
  • 2011/8/23 15:55

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Quote:

zyspec wrote:
Looking at archive.php it appears that some rewriting might have to be done to improve efficiencies. For example there's a place where all the item objects are returned from a query - this will probably have to be modified to only return the fields desired in an array instead of using the returned objects (default). There are a few other places where the code could be optimized that might yield some additional benefits. At least this would help if the problem is memory consumption.

An outer loop might be required to break the results into manageable chunks and then recombined.

I'm sure Trabis can figure it out, it's probably more about whether he has time to work on it.


You are correct, it should be fixed in SVN now. This is one of the smartsection remains but there are probably more around. I don't advise the use of getObjects(). getAll() is better method as you can avoid this ALL IN mistakes.

Thank you



373
trabis
Re: If we were to start a 2.6 Branch what would you like to see.
  • 2011/8/21 10:56

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


I think "to heavy" means to much DB queries and poor cache mechanisms. Once a site gets popular is hard to keep it on a shared hosting, the ROI is often low.



374
trabis
Re: Which module can import Smartsection articles on Xoops 2.5.1a?
  • 2011/6/27 19:28

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Quote:

ZioCrick wrote:
Thanks iHackCode!
It is OK!

Just a question.

Does Publisher has a future?
Do you know why, since 2009 it is still at the alpha version?


Publisher module is/was financially supported by Mowaffak.
Mowaffak wanted me to fix the importer before final release.
I never finished the importer and always got delayed with other minor fixes, rewriting and features.
Although the module is in alpha, some work is being done in SVN from time to time and the module is stable for production.

I don't have a date for release, I guess I'll wait for Mowaffak to come back and ask me to finish the importer!



375
trabis
Re: Xortify 2.3x - 2.4x - Cron Job for CURL and wGET
  • 2011/3/31 21:44

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


trabis said:
Quote:
I clicked on link bellow the image and I went to xortify banned list instead of going to xortify unbanned list.





376
trabis
Re: Xortify 2.3x - 2.4x - Cron Job for CURL and wGET
  • 2011/3/31 20:49

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


@mamba,
I think you need to go to the unban page:
http://xortify.chronolabs.coop/unban/index.php

It may take up to 20 minutes to get access back. It will depend on the settings of the site and the time remaining for the cache to expire.
I think I was unbanned because I can now access chronolabs, but I'm not sure, I did not get a confirmation message.

@simon
I think a cron job for getting ban lists would be good addition. It would make page load fast for users and we could schedule it "every minute". At this moment once every 20 minutes, a user will experience a slow page load. That is not optimal for that user, and it is not optimal for users waiting to be unbanned.

I also wonder how xortify defines a bad user. How many bad user votes are required for a ban?

Xortify should do some maths instead of banning everything that moves.




377
trabis
Re: Xortify 2.3x - 2.4x - Cron Job for CURL and wGET
  • 2011/3/29 18:45

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


I went to chronolabs by visting this link posted on ogr3:
http://www.chronolabs.coop/forums/makepayment/0,8,0,0,100,0,DESC,0

Then I clicked in the home page, then I clicked on forum and I was banned. I went to front page again and I was really banned!

I clicked on link bellow the image and I went to xortify banned list instead of going to xortify unbanned list.

I've tried to unban myself by entering the captcha and hiting the submit button. I was taken to an empty list of latest unbanned Ips with a submit button. I hit that submit button and then went back to chronolabs.com. I was faced with the banned image again.

Please fix it.



378
trabis
Re: Yogurt and other modules pagelinks without http://
  • 2011/3/25 20:20

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Open yogurt index.php,

find this line:
$userwebsite = ($thisUser->getVar('url''E')!='')?'<a href="'.$thisUser->getVar('url''E').'" target="_blank">'.$thisUser->getVar('url').'</a>':'';


replace with:
$userwebsite = ($thisUser->getVar('url''E')!='')?'<a href="'.formatUrl($thisUser->getVar('url''E')).'" target="_blank">'.$thisUser->getVar('url').'</a>':'';




379
trabis
Re: Xoops 2.5.1 and Videotube : Blank Page
  • 2011/3/25 20:07

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


I have this notices/warnings on both 2.4 and 2.5 but I don't have a blank page:
Quote:
Notice: Undefined variable: singlevideoview in file /modules/videotube/index.php line 695
Notice: Undefined variable: singlevideoview in file /modules/videotube/index.php line 755
Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in file /modules/videotube/index.php line 827
Warning: Division by zero in file /modules/videotube/index.php line 831




380
trabis
Re: place div on homepage only
  • 2011/3/25 19:54

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Here is a good solution, follow me:

1 - Create a folder modules/system/preloads
2 - Create a file modules/system/preloads/core.php
3 - Edit core.php and insert this:
<?php
defined
('XOOPS_ROOT_PATH') or die('Restricted access');

/**
 * Class to allow <{if $homepage}>Your code here<{/if}> in templates
 * @author trabis
 */
class SystemCorePreload extends XoopsPreloadItem
{
    
//We are using this header hook because cached pages may not hit the footer.php
    
function eventCoreHeaderAddmeta($args)
    {
        if (
defined("XOOPS_STARTPAGE_REDIRECTED") || (isset($GLOBALS['xoopsOption']['template_main']) && $GLOBALS['xoopsOption']['template_main'] == "db:system_homepage.html")) {
            if (
is_object($GLOBALS['xoopsTpl'])) {
                
$GLOBALS['xoopsTpl']->assign('homepage' ,true);
            }
        }
    }
}
?>


You should now be able to use this code in any template:
<{if $homepage}>Your code here<{/if}>





TopTop
« 1 ... 35 36 37 (38) 39 40 41 ... 190 »



Login

Who's Online

153 user(s) are online (89 user(s) are browsing Support Forums)


Members: 0


Guests: 153


more...

Donat-O-Meter

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

Latest GitHub Commits