381
trabis
Re: mymenus 1.1 - dealing with current link highlight
  • 2011/3/18 19:09

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


class/builder.php
function buildSelected()
    {
        
//get the currentpage
        
$sel = array();
        
$query_string $_SERVER['QUERY_STRING'] ? '?' $_SERVER['QUERY_STRING'] : '';
        
$self 'http://' $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF'] . $query_string;


Mymenus will not highlight the exact match, it will highlight the closest match. If $self is not holding the correct value then maybe you could find a way to fix, that would avoid touching templates and closest match would still work.

Your fix does not support closest match.



382
trabis
Re: Made changes to XIM, now preloads blanks entire site despite restoring
  • 2011/3/17 23:17

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Quote:
Is something regarding the preloads stored in the db somewhere, so that a conflict can still be in place even if I uninstall a module or restore files?


No, preloads are not stored.
Since you get a blank page in admin side you should double check xim preloads, xim xoops_version.php and xim language modinfo.php.

I would delete xim folder and upload fresh version.



383
trabis
Re: extCal GUI Change - ready for testing on XOOPS 2.5.0
  • 2011/3/15 23:09

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


global $xoopsModule;
//...
if (isset($xoopsModule) && $xoopsModule->getVar('version') != 167) {
$i++;
$adminmenu[$i]['title'] = _MI_NEWS_UPGRADE;
$adminmenu[$i]['link'] = "admin/upgrade.php";
$adminmenu[$i]['icon'] = "images/icons/update.png";
$adminmenu[$i]['icon_small'] = "images/update.png";
}


That should do it.




384
trabis
Re: xoops.org hosting specs and statistics
  • 2011/3/15 20:56

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


You should check your mysql processes and see what queries are taking to long. If you are running xoops websites then turn debug on, go to the most visited module and check the queries times. Take the longest query and use EXPLAIN to see what indexes are being used. Adding indexes, caching or removing some features may improve your server performance greatly. Check if you are running out of memory, if memory usage is above 75% you should get some more.

My server is running smoothly with 2 million pageviews/month with this specs:

CPU - Intel Core 2 Quad Q9500 2.83 Ghz
Memory - 4096 MB
Drive 1 - 160 GB SATA (7.2k)
Drive 2 - 250 GB SATA (7.2k)
Uplink Speed - 10 mbit
Operating System - CentOS 5
Control Panel - cPanel




385
trabis
Re: Multimenu and php 5.3 ?
  • 2011/3/12 14:25

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Quote:

fdeconiac wrote:
But i tried few times ago the mymenus from trabis, and didn't found how to create drop/dynamic menus... Is it possible ? i think it would need a js script or specific files.... ?

Kindly regards


Did you read the readme.txt? I believe there is a doc folder with instructions also.



386
trabis
Re: Good News from Mowaffaq
  • 2011/3/9 19:26

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Thanks for the news. I always remember him when I turn on the tv.



387
trabis
Re: Problems with the integrated Banner system
  • 2011/3/8 0:09

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Banners use server http referer to check if the banner request came from the current host.

Quoting this site

"Most web browsers pass the HTTP_REFERER variable by default, but in many this behaviour can be changed to not show it or to pass something else instead. There is also 3rd party anti-spyware etc software that can be installed on a user's computer which also prevents the referrer information from being passed to the web server."

Maybe something is "wrong" with your pc?

I guess there are other ways to address banner hotlinking that do not rely on client side. Use of sessions come to mind.




388
trabis
Re: TAG module : How to tag on our own site?
  • 2011/3/7 14:21

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Try OGR3

Here's some info about it:
http://blog.ogr3.com/p/how-does-ogr3-work.html




389
trabis
Re: 2.5 user profile permissions
  • 2011/3/5 22:32

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Quote:

blackrx wrote:
another thing in

a. I have 5 group > 2 customs, anonymous, registered, webmaster
in "Field Editable from profile"
only the name of webmaster is visible..the checkboxes of other groups are visible but not the name..


b. in the same section "Field editable from profile"

when we click the all checkboxes ..nothing happen..


Can´t reproduce this, any screenshot?



390
trabis
Re: formcheckbox.php validation not working in XOOPS 2.5.0
  • 2011/3/5 21:02

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


I'm not able to reproduce it, I'm using this script to test it:
<?php
include 'mainfile.php';
include 
'header.php';
xoops_load('xoopsformloader');
$form = new XoopsThemeForm('Form''form''testform.php');
$checkbox = new XoopsFormCheckBox('Check Caption''check');
$checkbox->addOption(0'Yes');
$checkbox->addOption(1'No');
$checkbox->addOption(2'Maybe');
$form->addElement($checkboxtrue);

$checkbox4 = new XoopsFormCheckBox('Check Caption2''check2');
$checkbox4->addOption(0'Yes');
$form->addElement($checkbox4true);


$checkbox2 = new XoopsFormSelect('Select Caption2''select2'null3);
$checkbox2->addOption(0'Yes');
$checkbox2->addOption(1'No');
$checkbox2->addOption(2'Maybe');
$form->addElement($checkbox2true);

$checkbox3 = new XoopsFormSelect('Select Caption3''select3');
$checkbox3->addOption(0'Yes');
$checkbox3->addOption(1'No');
$checkbox3->addOption(2'Maybe');
$form->addElement($checkbox3true);

$form->addElement(new XoopsFormDhtmlTextArea('Text'"text"), true);

$editor = new XoopsFormEditor('Text2''text2', array('editor' => 'DhtmlTextarea'));
$form->addElement($editortrue);

$editor2 = new XoopsFormEditor('Text3''DhtmlTextarea', array('name' => 'text3'));
$form->addElement($editor2true);

$button = new XoopsFormButton('Submit''submit''Submit button''submit');
$form->addElement($button);

$form->display();

include 
'footer.php';
?>


Is it browser related? What code are you using?




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



Login

Who's Online

167 user(s) are online (100 user(s) are browsing Support Forums)


Members: 0


Guests: 167


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