xoops forums

Forum Index


Board index » All Posts (trabis)




trabis

Core Developer
Posted on: 2017/2/26 14:14
trabis
trabis (Show more)
Core Developer
Posts: 2268
Since: 2006/9/1 1
#11

Re: 2.5.8.1. and SmartFaq

Hi, try this for the fixing the error on updating:
https://github.com/XoopsModules25x/sma ... a3799ced324a1d5ce6c459b8f


trabis

Core Developer
Posted on: 2017/2/7 21:14
trabis
trabis (Show more)
Core Developer
Posts: 2268
Since: 2006/9/1 1
#12

Re: Sorry, you don't have the permission to access this area. in Publisher

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.


trabis

Core Developer
Posted on: 2017/2/7 20:18
trabis
trabis (Show more)
Core Developer
Posts: 2268
Since: 2006/9/1 1
#13

Re: Disqus problem

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.


trabis

Core Developer
Posted on: 2017/2/7 19:51
trabis
trabis (Show more)
Core Developer
Posts: 2268
Since: 2006/9/1 1
#14

Re: Sorry, you don't have the permission to access this area. in Publisher

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


trabis

Core Developer
Posted on: 2013/2/6 21:08
trabis
trabis (Show more)
Core Developer
Posts: 2268
Since: 2006/9/1 1
#15

Re: Publisher Random Item

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.


trabis

Core Developer
Posted on: 2013/2/6 20:31
trabis
trabis (Show more)
Core Developer
Posts: 2268
Since: 2006/9/1 1
#16

Re: QR Code Generator

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.


trabis

Core Developer
Posted on: 2013/2/6 20:09
trabis
trabis (Show more)
Core Developer
Posts: 2268
Since: 2006/9/1 1
#17

Re: Initial 2.5.5 Usage Problems

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.


trabis

Core Developer
Posted on: 2013/2/6 0:24
trabis
trabis (Show more)
Core Developer
Posts: 2268
Since: 2006/9/1 1
#18

Re: QR Code Generator

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.


trabis

Core Developer
Posted on: 2013/2/5 23:51
trabis
trabis (Show more)
Core Developer
Posts: 2268
Since: 2006/9/1 1
#19

Re: Making a PDO "plugin" for 2.5.5 to potentially include in 2.6

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;




trabis

Core Developer
Posted on: 2013/2/4 23:09
trabis
trabis (Show more)
Core Developer
Posts: 2268
Since: 2006/9/1 1
#20

Re: Individual Theme Header per Module in xoops 2.6

Look in themes/default/theme.html


$xoops_dirname will have the dirname of the current module ('system', 'news', 'newbb', etc)



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