11
trabis
Re: how do is sort select boxes alphabetically in profile module ?
  • 2017/3/9 10:50

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Try
case 'select':
    
asort($options);



12
trabis
Re: 2.5.8.1. and SmartFaq
  • 2017/2/26 14:14

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Hi, try this for the fixing the error on updating:
https://github.com/XoopsModules25x/smartfaq/commit/92c9d98046d8a20a3799ced324a1d5ce6c459b8f



13
trabis
Re: Sorry, you don't have the permission to access this area. in Publisher
  • 2017/2/7 21:14

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


I'm not sure I understood the problem, please explain: 1 - The Permissions to view categories checkboxes are checked for anonymous users but they don´t have access on viewing articles. Or 2 - You get the error when trying to check The Permissions to view categories checkboxes. My reply before was for number 2. If your problem is number 2, please make sure your changes on the ini file were aplied. Create a test.php file on the root with the code
<?php phpinfo();?>
. Run test.php and see if the upload_max_filesize and post_max_size have the new value. If problem is number 1, then go to system->groups manager->anonymous users and see if this group has access to the module.



14
trabis
Re: Disqus problem
  • 2017/2/7 20:18

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Is the disqus code present on the webpage source code? If not, then check publisher preferences page and make sure "Comment Rules" is not equal to "Disable comments" and that "Control comments at the article level?" is set to "No".

For explanation about canocical url check disqus docs:
https://help.disqus.com/customer/en/portal/articles/2158629

Disqus should work fine (like in the old version) without setting those variables.



15
trabis
Re: Sorry, you don't have the permission to access this area. in Publisher
  • 2017/2/7 19:51

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Hi, I once had the same problem with updating permissions in the news module.
If you have many categories and many groups, then you may be hiting the post limit allowed by php.

If you have access to php.ini try adding:
upload_max_filesize = 20M
post_max_size = 20M

Alternative, add this lines to .htaccess in the root folder:
php_value upload_max_filesize 20M
php_value post_max_size 20M



16
trabis
Re: Publisher Random Item
  • 2013/2/6 21:08

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Quote:
chefry wrote: I'm not a programmer so... no, it's not easy for me that change put the item name in the "read the complete article" link I wanted the item name ot appear in the block content
You already have the tag <{$block.content}> irmtfan told you how to create the tag <{$block.title}> You are not a programmer nor a designer, but you should know that <{$block.content}> will display the content and that <{$block.title}> will display the title.



17
trabis
Re: QR Code Generator
  • 2013/2/6 20:31

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


I took a look at the qrcode file. Try this
Quote:

if (file_exists($file = XOOPS_ROOT_PATH . "/modules/qrcode/qrcode.php")) {
include_once $file;
$txt = $xoopsTpl->get_template_vars('xoops_pagetitle'); //Add the page title
$txt .= " - "; //Add separator
$txt .= $xoopsTpl->get_template_vars('xoops_sitename'); //Add the sitename
$txt .= "\r\n"; //Add a line break
$txt .= $itemObj->getItemUrl(); //Add item url
$item['qrcode'] = qrcode('txt', array('txt' => $txt), '250'); //Get the qrcode image
}


Not tested.



18
trabis
Re: Initial 2.5.5 Usage Problems
  • 2013/2/6 20:09

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Quote:

Bluenoser wrote:
Everything installed with xoops is being displayed properly. The only thing is I can't change anything. But yet the install process configured and loaded all the databases and added the default data.


Other sugestions:
- The session table may be corrupted, try to repair it.
- Delete your browser cache and cookies or try to login with another browser.



19
trabis
Re: QR Code Generator
  • 2013/2/6 0:24

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Quote:
chefry wrote: I was hoping Trabis would read the thread, How about it Trabis, can you give us a quick fix?
I don't have time to implement this on publisher. I may do it for the 2.6.0 version and using the qrcode module that is in the core. For a quick fix let us try following Peekay example. Edit item.php and search for:
$xoopsTpl->assign('item'$item);
It should be on the bottom of the file. Before that line try to add this code:
//start of hack
if (file_exists($file XOOPS_ROOT_PATH "/modules/qrcode/qrcode.php")) {
    include_once 
$file;
    
$data = array(
        
'title' => $itemObj->getVar('title'),
        
'url'   => $itemObj->getItemUrl(),
    );
    
$size "250"// image will be 250x250px
    
$item['qrcode'] = qrcode('url'$data$size);
}
//end of hack
$xoopsTpl->assign('item'$item);
I never used qrcode so I don't know what data it accepts. I've added the 'title' but I have no idea if it will be read/added or not. Now in the publisher_item.html template you should be able to use this line for displaying the qrcode:
<{$item.qrcode}>
Not tested.



20
trabis
Re: Making a PDO "plugin" for 2.5.5 to potentially include in 2.6
  • 2013/2/5 23:51

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Quote:

redheadedrod wrote:
So it looks like the Array is storing the reference to the object instead of a copy of the object. So how can I do this and make it work?

I posted a message on stack overflow hoping to get a quick answer but I am hoping someone out here can help me quicker.


For chaining, instead of using:
return $this;


Use:
return clone $this;






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



Login

Who's Online

180 user(s) are online (120 user(s) are browsing Support Forums)


Members: 0


Guests: 180


more...

Donat-O-Meter

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

Latest GitHub Commits