phpfox

How to put Code Sample Plugin of TinyMCE in phpfox?

北城余情 提交于 2020-02-02 13:56:32
问题 I have an tiny mce editor like image bellow: and I want to put Code Sample Plugin of tinymce editor in phpfox like: Please tell me what should I do. 回答1: In case you don't have codesample installed, you can download entire bundle from tinymce.com and include plugin.min.js from directory js/tinymce/plugins/codesample/ Download prism.js and prism.css from prismjs.com and include in your HTML page Modify your tinymce_setup.js and add codesample to your tinymce_setup.js My tinymce_setup.js looks

How to get any DOM Element by Ajax in PHPFox

此生再无相见时 提交于 2020-01-06 13:45:11
问题 I thought i could use $this->get('element_id') to get the value of each DOM-Element in a Ajax-Function. But that doesn't work. Only Post-Elements i can get this way, right? But how do i get other Elements? Thanks for your help... This is my Ajax-Class: class Name_Component_Ajax_Folder_Ajax extends Phpfox_Ajax { public function test(){ $iChildItemId = $this->get('element_id'); var_dump($iChildItemId); $this->html('#testdiv', $this->getContent()); } } By clicking a link i call this function (

how to fetch the current user data in phpfox

时间秒杀一切 提交于 2019-12-25 03:05:01
问题 Topic: Fetch current user(some particular fields) data from the DB and display it on the Welcome Screen. Explaination of UI : On the Registration Page, A dropdown would appear. As the user selects an option, it would trigger an event to fetch user image to show on the welcome page. I have put following code in (pages.process) module function getUserId($iUserId) { $aRows = $this->database()->select('p.image_path')->from($this->_sTable, 'p') ->Join(Phpfox::getT('user') , 'u', ' p.page_id = u

PHPFox persian url in IIS server transforms to question mark

纵饮孤独 提交于 2019-12-25 02:58:33
问题 I have installed phpfox in a IIS server which supports php 5.x But URLs transforms to ????? when i click on some persian links. For example i should have a link like : http://mydomain.com/index.php?do=/photo/album/6/اخبار/ which is like http://mydomain.com/index.php?do=/photo/album/6/????????/ Although i have this problem in my online windows based host, i have installed this version in localhost using XAMPP and it is running without problem. I am newbie in php. 来源: https://stackoverflow.com

How to redirect the user to a mobile app or a website on click of a hyperlink sent in an email? Should it need to be handled on server-side using PHP?

旧城冷巷雨未停 提交于 2019-12-18 13:26:00
问题 I've a website which is already developed using PHPFox and it's working fine. Now, iOS development team has created a mobile app in iOS for the same functionality as of the website. User can do all the operations using this app which he/she can do on a website. In other words we can say this app is a replica of the existing website. The only restriction in development of app is that the flow and functionality should be same as of the website. There should not be any functionality discrepancy

How to manage session for a user logged in from mobile app in PHP?

左心房为你撑大大i 提交于 2019-12-18 10:05:20
问题 I'm a PHP programmer by profession. So, I don't have any idea about iOS and Android coding. The scenario is there is one website developed using a Social Networking PHP software titled "PHPFox" . Now there are two similar mobile apps which exactly replicates the functionality of this website. One mobile app is in iOS and another is in Android. So, I've written a set of RESTful APIs where I'm accepting the request from mobile app, parse the request, pass the request parameters to the function

how ajax site wide browsing works on phpfox?

感情迁移 提交于 2019-12-13 07:39:05
问题 i'm trying to use ajax wide browsing on phpfox but i dont understand how it works, any idea please ? i found in static/jscript/main.js this code : $Core.ajax = function(sCall, $oParams) { var sParams = '&' + getParam('sGlobalTokenName') + '[ajax]=true&' + getParam('sGlobalTokenName') + '[call]=' + sCall; if (!sParams.match(/\[security_token\]/i)) { sParams += '&' + getParam('sGlobalTokenName') + '[security_token]=' + oCore['log.security_token']; } if (isset($oParams['params'])) { if (typeof(

phpfox , get value as response from an ajax call

吃可爱长大的小学妹 提交于 2019-12-12 10:25:15
问题 Trying to make an ajax call and get something as response in phpfox . the JS : $.ajaxCall('module.check_whether_first_time', 'u_id='+u_id+'&my_user_id='+my_user_id).done(function(data) { alert(" data = " + data ) }); The function which the ajax calls from within ajax.class.php : public function check_whether_first_time(){ $u_id = $this->get('u_id'); $my_user_id=$this->get('my_user_id'); // processing with data goes here $counter=1; echo $counter; }// end of function check_whether_first_time I

Automatically assign profile pics to pages in phpfox

我与影子孤独终老i 提交于 2019-12-12 03:04:23
问题 Followed by my last question: Automatically create pages in phpfox Now I'm trying to assign a list of pre-uploaded images to some pages as their profile picture in phpfox. After checking data changes in the database, I only realized changes in these two fields: image_path in table of phpfox_pages (which take a an address to the image file) user_image in table of phpfox_user (which take a string of "user_id+%s".file_extension) But by inserting data in these two fields in records for a page

How to manage session for a user logged in from mobile app in PHP?

折月煮酒 提交于 2019-11-29 19:43:39
I'm a PHP programmer by profession. So, I don't have any idea about iOS and Android coding. The scenario is there is one website developed using a Social Networking PHP software titled "PHPFox" . Now there are two similar mobile apps which exactly replicates the functionality of this website. One mobile app is in iOS and another is in Android. So, I've written a set of RESTful APIs where I'm accepting the request from mobile app, parse the request, pass the request parameters to the function which does the same job for website, get the response from this function, convert it into JSON format