391
trabis
Re: stackoverflow clone in xoops
  • 2011/2/15 20:24

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


I don't know about any hack but you can use a service like ogr3.com

This is how it works:
1 - create a link in your cbb post template to ogr3.com/yourtaghere, you can use your site name has the tag, tag only allows 33 characteres and a-z A-Z 1-9 and _
2 - Give a descriptive name to that link like: VOTE UP
3 - When someone clicks on the voteup link it will insert a record of that entry on ogr3.com/yourtaghere
4 - Ogr3 will display the top pages on the last 3 minutes, 3 hours and 3 days.
5 - Ogr3 has rss feed for each tag, you can use an rss reader module to grab the top threads of your tag and display it on a block, this way users do not have to visit ogr3 to see the top threads.
6 - Be aware that other sites may share the same tag, and results for other sites are counted. Choose a unique tag and you should be fine.

Look at this example http://ogr3.com/xoops

Once you click this link you should see this very page in the top list along with other xoops related news




392
trabis
Re: Is a redirect to mobile site possible?
  • 2011/2/9 14:12

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


I'm using ZEND:
http://framework.zend.com/manual/1.11/en/zend.http.user-agent.html

It has an adapter class based on this script:
http://wurfl.sourceforge.net/

You can get the type of the user agent like this:
$bootstrap Zend_Controller_Front::getInstance()->getParam('bootstrap');
        
$userAgent $bootstrap->getResource('useragent');
        
$deviceType $userAgent->getDevice()->getType();
        
$bootstrap->getResource('layout')->setLayout($deviceType);


$deviceType will hold 'mobile' or 'desktop'. In this example user will see mobile.phtml or desktop.phtml depending on the devide they are using.

Great thing is that Xoops 3.0 is using Zend!





393
trabis
Re: XoopsObject & XoopsObjectHandler some guidelines?
  • 2011/2/4 14:00

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Errata:
Quote:
Using XoopsObjectHandler ensures sanitation against sql injection and that is one of the big reasons for using it.


Should read:
Quote:
Using XoopsPersistableObjectHandler ensures sanitation against sql injection and that is one of the big reasons for using it.


Tarik, in your example you are using XoopsPersistableObjectHandler. This class implements CRUD functionality for a given database table. XoopsObjectHandler is just a class with abstract methods. Think of it has an interface, developer extending from XoopsObjectHandler would have to implement get(), insert() and other methods.



394
trabis
Re: Problem using the decorator MODULE in mymenus 1.1
  • 2011/2/4 13:51

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Hi satebril,

Thanks for using mymenus module!

Please open file mymenus/plugins/dynamic/dynamic.php

Around line 61 add this:
$path "modules/{$module}";
        
$file $GLOBALS['xoops']->path("{$path}/xoops_version.php");

        if (!
file_exists($file)) {
            return 
$ret;
        }
        
        
//add this line
        
xoops_loadLanguage('modinfo'$module);
        
//end

        
$force true;
        
$overwrite false;


Not tested, please let me know if it works.



395
trabis
Re: XoopsObject & XoopsObjectHandler some guidelines?
  • 2011/1/27 20:18

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Quote:

Tarik wrote:
here are my questions
1- what is the role of identifierName when constructing the handlerclass
2- how do function tables relation (jointures in french) like category table and download table
3- the link for the class generator is broken
4- is there any thing wrong so far


1. IdentifierName is normally the name that indentifies the row/item. In an article table the identifier could be the title of the article. It will be used in methods such as getList() where you get an array of identifiers(article titles, categories titles, etc)
2 - Refer to class/model/sync
3 - Don't understand´
4 - Nothing is wrong. Ghia mentioned you need to sanitize vars before insert but that may be misleading. Using XoopsObjectHandler XoopsPersistableObjectHandler ensures sanitation against sql injection and that is one of the big reasons for using it. You should only be careful with sanitation when using Criteria() on queries, all values used in Criteria() should be sanitized/escaped. Danger of XSS, directory travessal and other exploits are not directly related with database read/write operations.



396
trabis
Re: Does smart section 2.14 not properly work with latest xoops?
  • 2010/12/29 19:43

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


RiazShahid, I don't use editors so I never tried to add fonts. Maybe other one can answer that.



397
trabis
Re: So what did you get for Christmas?
  • 2010/12/29 13:58

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Quote:

culex wrote:
I guess all this time at the pc makes me forget to shave LOL


+1

I got a cup but not just a cup, I got THE XOOPS CUP!
Thanks Mamba :)



398
trabis
Re: Which is the best Article module for xoops?
  • 2010/12/29 13:49

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Publisher has keywords and images and a lot more, you have to set up publisher correctly:
https://xoops.org/modules/newbb/viewtopic.php?topic_id=72928&post_id=334998#forumpost334998

For using images in publisher you need to have at least one category on XOOPS System Images.



399
trabis
Re: Does smart section 2.14 not properly work with latest xoops?
  • 2010/12/29 13:45

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Quote:

RiazShahid wrote:
Yes, thanks Mamba!
I installed this version to xoops 2.5.0, but still there is only "main" tab in it. I am uploading a screen shot here, please check, should it be different?
There is no option to add title image for the article or to add keywords.
http://i54.tinypic.com/smxg0z.jpg


Those are the only required fields. If you want to enable keywords, tags, etc you need to go to the permissions tab.

There should be a FORM FIELD permission with checkboxes for each group. You also need to set permissions for the admin!
For fields you don't want to use, you can set default values under preferences tab.







400
trabis
Re: xoops chat integration (like facebook) ?
  • 2010/11/20 20:03

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Hope I'm on topic:

There is a good chat program with plugin for xoops:
http://cometchat.com/

It is not free but it is very, very nice. I'm using the basic version on one of my sites and users are very happy with it (it is better then using shoutbox). It is pluginable, and only the js file is encrypted, php and css code is open so you can hack it and create your own modules.




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



Login

Who's Online

168 user(s) are online (82 user(s) are browsing Support Forums)


Members: 0


Guests: 168


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