Cherybooking
Thursday, July 03, 2025
1) When adding Car Model, after copy paste the existing code, do NOT modify the id, otherwise the css will loss.
Click "Learn More" button popup code at line 1599 :
<div data-elementor-type="popup" data-elementor-id="487" />
Modify id=487 to other id=488
Then edit the click popup url :
href="#elementor-action:action=popup:open&settings=eyJpZCI6IjQ4NyIsInRvZ2dsZSI6ZmFsc2V9"
the value after settings = is Base64 encoded, so we need to decoded it.
Click "Learn More" button popup code at line 1599 :
<div data-elementor-type="popup" data-elementor-id="487" />
Modify id=487 to other id=488
Then edit the click popup url :
href="#elementor-action:action=popup:open&settings=eyJpZCI6IjQ4NyIsInRvZ2dsZSI6ZmFsc2V9"
the value after settings = is Base64 encoded, so we need to decoded it.
Davici Furniture Theme Wordpress Customization
Sunday, May 26, 2024
Edit Footer :
Remove Social icon Twitter and Tiktok :
wpBingo > Theme Option > Social Link > Leave empty textbox for Twitter and Tiktok.
Edit Header :
First need to check what is the number of header by counting at Appearance > Theme Option > Header.
Then go DirectAdmin or Cpanel file manager : wp-content/themes/davici/templates/headers/headers-6.php
Find keyword "Call us", replace "Whatsapp".
Or Appearance > Theme File > template > headers > herder-7.php (Might have error when click "Save/Update" button. Select different Theme :
Go to Appearance > Customize > Select Homepage Upload new logo:
Pages > Home Page 7 > Edit > Header > Page Logo (Upload)
How to show latest/top rate products on homepage7? How to add Deals of Days products? How to disable / hide floating sticky "add to cart" bottom bar on product page? How to turn off lazy load : Mobile view bottom buttons / menu :
modesco/wp-content/themes/davici/inc/function.php
Remove Social icon Twitter and Tiktok :
wpBingo > Theme Option > Social Link > Leave empty textbox for Twitter and Tiktok.
Edit Header :
First need to check what is the number of header by counting at Appearance > Theme Option > Header.
Then go DirectAdmin or Cpanel file manager : wp-content/themes/davici/templates/headers/headers-6.php
Find keyword "Call us", replace "Whatsapp".
Or Appearance > Theme File > template > headers > herder-7.php (Might have error when click "Save/Update" button. Select different Theme :
Go to Appearance > Customize > Select Homepage Upload new logo:
Pages > Home Page 7 > Edit > Header > Page Logo (Upload)
How to show latest/top rate products on homepage7? How to add Deals of Days products? How to disable / hide floating sticky "add to cart" bottom bar on product page? How to turn off lazy load : Mobile view bottom buttons / menu :
modesco/wp-content/themes/davici/inc/function.php
jquery click on each line of td to pop up window content
javascript jquery
Saturday, January 20, 2024
Software Chinese Language on Windows 10
Monday, January 15, 2024
Windows search language setting > Region > Additional Date Time and Region Settings > Region : Change Date Time and Region Format >
1) Formats Tab > Format : English (United States)
2) Admistrative Tab > Language for non-Unicode programs (Change system locale...) > Chinese (Simplified, Singaotre) > Uncheck UTF-8
1) Formats Tab > Format : English (United States)
2) Admistrative Tab > Language for non-Unicode programs (Change system locale...) > Chinese (Simplified, Singaotre) > Uncheck UTF-8
My first covid experience
Friday, November 03, 2023
2023 Oct 26 was my first infected covid.
I though it was just normal fever and sorethroat.
But many strange symptom :
1) My eyes very tired always want to close and sleep. I can sleep for 3 days without eat, without shower. Normally people sleep fully 8 hours already enough, but I sleep 60 hours still not enough.
2) I checked my heart rate increase to 110, I asked phamacy is it normal if heart rate 110 during fever? they said NOT normal.
3) I drink alot of water but still no pee, my little pee was yellow color. I guess all water stuck on stomach can't digest water, and i always vomit out the water and food.
4) I don't have appertise to eat anything. I continue 3 days no eat anything, i worry gastric will happen. I don't even has energy to bite any food. I try to cook maggie mee, then 1st bite on the mee feel very tired lazy to bite, I think i can hold the mee in my mouth to let it disolve itself, but it can't, so i just throw it all. Then i cook poride and drink poride every 5 hours just to prevent gastric.
5) My room is hot but my hold body feel cold. Especially bottom of my legs and hand palm area feeling super cold.
6) When my fever is gone today, then i feel good. Then tomorow fever come back again wtf. Doctor say this is covid symptom fever always come back again on next day.
7) When fever, luckly my muscles feel no sour and no pain, but i feel no energy to move, I walk like turtle speed. Easy get tired.
8) After 1 week, my head dizzy, i think because there are many anti-virus armies produced in 1 week to protect my lung, so virus can't stay in lung anymore, so virus goes up live on my brain, virus attack my brain so my brain dizzy?
Stop ajax from submitting form before validate form
Saturday, October 14, 2023
Just move html submit button to outside the form.
After validate form successfully then only trigger form submision.
PHP mailer cannot send email, gmail smtp error.
Tuesday, September 19, 2023
You need to go your google account to set 2nd Authentication scroll down Create App Password.
1. Go to your Google Account and choose Security on the left panel.
2. On the Signing in to Google tab, select App Passwords.
If you don’t see this option, it might mean that:
Two-step verification is not set up for your Google account.
Two-step verification is set up for security keys only.
Your account is used through work, school, or another organization.
You’ve turned on Advanced Protection for your account.
3. Click on Select app and pick the app you’re using.
4. Click Select device and choose the device you’re using.
5. Click on Generate.
1 - Contact customer service of your hosting server to set firewall allow gmail smtp port 587
2 - follow the steps on this webpage to install the latest version phpmailer to your hosting
1. Go to your Google Account and choose Security on the left panel.
2. On the Signing in to Google tab, select App Passwords.
If you don’t see this option, it might mean that:
Two-step verification is not set up for your Google account.
Two-step verification is set up for security keys only.
Your account is used through work, school, or another organization.
You’ve turned on Advanced Protection for your account.
3. Click on Select app and pick the app you’re using.
4. Click Select device and choose the device you’re using.
5. Click on Generate.
1 - Contact customer service of your hosting server to set firewall allow gmail smtp port 587
2 - follow the steps on this webpage to install the latest version phpmailer to your hosting
Sql and pdo give error when upgraded to mysql new version 8.0.34
Monday, August 28, 2023
When my shared hosting upgrade mysql version from 5 to 8, many of my php websites cannot be openned.
I checked php error log saw many syntax become error.
So here are the fixes of syntax :
Codeigniter : Library > common.php
Cannot combine Select, Table, Where in 1 query.
Must saperate Select, Table, Where.
Cannot write query join tables in 1 query (library/common.php).
Must saperate join tables.
Must saperate Group_By :
Must saperate Order_By :
Php pdo :
select and display data from database : important at : 1) try 2) {$row['id']}
Join 2 tables + Group_by + Order_by :
If sql got error then check this two things :
Limit : (Must delete limit if no use limit, otherwise no result will show)
php variable in WHERE clause :
wordpress error :
I checked php error log saw many syntax become error.
So here are the fixes of syntax :
Codeigniter : Library > common.php
Cannot combine Select, Table, Where in 1 query.
Must saperate Select, Table, Where.
Cannot write query join tables in 1 query (library/common.php).
Must saperate join tables.
Must saperate Group_By :
Must saperate Order_By :
Php pdo :
select and display data from database : important at : 1) try 2) {$row['id']}
Join 2 tables + Group_by + Order_by :
If sql got error then check this two things :
Limit : (Must delete limit if no use limit, otherwise no result will show)
php variable in WHERE clause :
wordpress error :
150% Profit EA
Sunday, June 04, 2023
150% Profit EA


Do you want to earn 10% to 40% profit monthly from this EA robot?
USD100 real money (USD10000 Cent account) to trade 1 pair : XAUUSD
15minutes TF.
Download and lot the setting file as picture below :

This 150% Profit EA only works perfectly on Roboforex broker :
https://my.roboforex.com/en/?a=pbxk
My Roboforex Referral Code ➜ pbxk
You will get 100% bonus if register through my affiliate link.
For example, you deposit usd50, you get usd50 bonus. So total you get USD100 in your MT4 account.
Download 150% Profit EA File

Backtest EA on news filter.
Friday, January 21, 2022
Now you will need to download the news csv file from https://www.fxstreet.com/economic-calendar (max 3 months, then combine all).
After the newslist is downloaded, you will need to edit the list. I am using EmEditor for that.
Open your csv file in EmEditor (Ctrl-O)
File open in editor:
First thing to do is to delete the first column, right click on the top of the first column and select delete column
Column deleted:
Now we need to split the date and time column, rightclick on the Date time column and select "Split column"
In the Split column window, make one space(spacrebar) in Seperator entry and click Ok button
The Date and Time(hours) is now splitted into 2 columns
Next step is to convert the Date format so MT4 can use it, open replace window (Ctrl-H)
In the "Find" you write exactly this string: ([0-9]{1,2})/([0-9]{1,2})/([0-9]{2,4})
In the "Replace with" you enter exactly this string: \3.\1.\2
Choose regular Expressions and click on "replace all" button.
The list now looks like this:
Now select all columns in the first row, then rightclick and select "Delete" from the dropdown menu.
Ok! :) The list is now finnished, you can now save it.
You need to put the list(csv file) in your terminal ./tester/files/ folder
In MT4 backtesting Expert properties remember to write in the file name for the file you just putted in the tester/files folder.
Then open Sublime ctrl + H to replace , to ;
-------------------------
insert this to weburl at option : https://nfs.faireconomy.media/ff_calendar_thisweek.xml
After the newslist is downloaded, you will need to edit the list. I am using EmEditor for that.
Open your csv file in EmEditor (Ctrl-O)
File open in editor:
First thing to do is to delete the first column, right click on the top of the first column and select delete column
Column deleted:
Now we need to split the date and time column, rightclick on the Date time column and select "Split column"
In the Split column window, make one space(spacrebar) in Seperator entry and click Ok button
The Date and Time(hours) is now splitted into 2 columns
Next step is to convert the Date format so MT4 can use it, open replace window (Ctrl-H)
In the "Find" you write exactly this string: ([0-9]{1,2})/([0-9]{1,2})/([0-9]{2,4})
In the "Replace with" you enter exactly this string: \3.\1.\2
Choose regular Expressions and click on "replace all" button.
The list now looks like this:
Now select all columns in the first row, then rightclick and select "Delete" from the dropdown menu.
Ok! :) The list is now finnished, you can now save it.
You need to put the list(csv file) in your terminal ./tester/files/ folder
In MT4 backtesting Expert properties remember to write in the file name for the file you just putted in the tester/files folder.
Then open Sublime ctrl + H to replace , to ;
-------------------------
insert this to weburl at option : https://nfs.faireconomy.media/ff_calendar_thisweek.xml
Forex Support And Resistance EA for free download
Monday, November 15, 2021
Support And Resistance EA
You may use the Support and Resistance Indicator without EA to ease your trading.
Support Resistance has 4 types :
1) Weak.
2) untested.
3) Verified.
4) Proven.
This EA open trade at untested Support and Resistant.
this EA won't open trade on Weak, Verified, Proven SR.
You may ask me customize this EA to fit your trading style.
Download Ea file and indicators files link at :
https://www.shorturl.at/etyC1
------------------------------------------
Installation setup instruction steps video at :
https://www.youtube.com/watch?v=mg-BehDDRBk
------------------------------------------
You may use the Support and Resistance Indicator without EA to ease your trading.
Support Resistance has 4 types :
1) Weak.
2) untested.
3) Verified.
4) Proven.
This EA open trade at untested Support and Resistant.
this EA won't open trade on Weak, Verified, Proven SR.
You may ask me customize this EA to fit your trading style.
Download Ea file and indicators files link at :
https://www.shorturl.at/etyC1
------------------------------------------
Installation setup instruction steps video at :
https://www.youtube.com/watch?v=mg-BehDDRBk
------------------------------------------
mql4 tutorial
Thursday, October 21, 2021
Check active order previous buy entry price is far enough from current entry then only open a new buy order :
----------------------------------
To get highest price datetime :
----------------------------------
To put TP on Order :
----------------------------------
Modify TP :
----------------------------------
Open a buy limit sell limit order:
----------------------------------
Do something only if order is opened successfully?
----------------------------------
How to Substract 1 day? How to compare 2 dates?
----------------------------------
Get previous buy and sell order lot size :
----------------------------------
mql4 check if orderopentime() is today date?
----------------------------------
Check 3 candles start hour of the day :
----------------------------------
OrderSend Error 130 :
When Ask > buy entry, only can modify SL to above entry, cannot modify TP to nearer entry.
----------------------------
3x next Bar count only will entry again.
&& Bars > ThisBarTrade+4
----------------------------
----------------------------------
To get highest price datetime :
----------------------------------
To put TP on Order :
----------------------------------
Modify TP :
----------------------------------
Open a buy limit sell limit order:
----------------------------------
Do something only if order is opened successfully?
----------------------------------
How to Substract 1 day? How to compare 2 dates?
----------------------------------
Get previous buy and sell order lot size :
----------------------------------
mql4 check if orderopentime() is today date?
----------------------------------
Check 3 candles start hour of the day :
----------------------------------
OrderSend Error 130 :
When Ask > buy entry, only can modify SL to above entry, cannot modify TP to nearer entry.
----------------------------
3x next Bar count only will entry again.
&& Bars > ThisBarTrade+4
----------------------------
Cannot connect Wifi / Wifi is disabled by windows mobility center
Thursday, October 14, 2021
There are 5 solutions :
1) Go to Network & Internet Setting > Airplane Mode > Slide on the "WI-FI". If cannot slide on, then :
2) You need to press the "wifi" switch button on keyboard, if there is no wifi button on keyboard, then you need to download software to switch Wifi on. Go to your laptop brand website download Network Connection manager. Example if HP brand, then go download HP Connection Manager. Open it > Preference > Device Power > Check both option as picture below :
3)After Done Step 2, then restart computer. Then try to do step 1 again, hope success slide on on "WI-FI" for this time. If cannot slide on, then :
4) Window Search and open "Windows Mobilility Center" > swith on WIFI.
1) Go to Network & Internet Setting > Airplane Mode > Slide on the "WI-FI". If cannot slide on, then :
2) You need to press the "wifi" switch button on keyboard, if there is no wifi button on keyboard, then you need to download software to switch Wifi on. Go to your laptop brand website download Network Connection manager. Example if HP brand, then go download HP Connection Manager. Open it > Preference > Device Power > Check both option as picture below :
3)After Done Step 2, then restart computer. Then try to do step 1 again, hope success slide on on "WI-FI" for this time. If cannot slide on, then :
4) Window Search and open "Windows Mobilility Center" > swith on WIFI.
How to change theme design template for existing php website?
Tuesday, September 28, 2021
Steps :
1) Upload new design template folder and file to hosting/server.
- Do NOT overwrite existing folder, just upload the new file to existing folder.
- If same name file, then rename old file by adding -old behind.
2) Test upload and open a html front page see if all image, design no missing and right click select "inspect" in chrome to check console got error.
3) (Please DON'T do this step 3, i show step 3 is just because worry you forget and stupid doing step 3).
Move files to deeper folder Eg. FROM :
test.hyperspace.today/asset/img
TO:
test.hyperspace.today/application/views/themes/defaults/assets_web/img
4) After move file at step 3, if u can't browse the page, solution is at step 5.
5) Solution for step 4 is You need to do 3 things :
a) rename file extension from .html to .php
b) Controller/Hungry create function contactus(){ to load the view from the new file contactus.php
c) config/route.php add $route['contactus'] = "hungry/contactus";
6) Focus on edit homepage now. Clone new design index.html file and rename 1 to menu-2.php and upload it to server.
7) at Controller/Hungry.php edit function menu() load view to menu-2.php (comment out the original load view code)
8) Replace the new design content to real content. Eg, username, sidebar menu, wallet name and amount.
Bug : Bootstrap Modal cannot close.
make sure dont have repeating the same id of div in two files :
1) modal_view_tree_member_data.php
2) dashboard.php
Then if using bootstrap v5 instead of v4, solution :
----------------------------------
Bug : Boostrap 5 Modal cannot open.
Solution : Change data-toggle="modal" data-target="#lostpassword" TO :
data-bs-toggle="modal" data-bs-target="#lostpassword"
Cannot find jquery function or javascript function is from which .js file?
Solution : right click the webpage, select "Page Source", then click each .js link to open it. Then press CTRL + F to find the keyword.
1) Upload new design template folder and file to hosting/server.
- Do NOT overwrite existing folder, just upload the new file to existing folder.
- If same name file, then rename old file by adding -old behind.
2) Test upload and open a html front page see if all image, design no missing and right click select "inspect" in chrome to check console got error.
3) (Please DON'T do this step 3, i show step 3 is just because worry you forget and stupid doing step 3).
Move files to deeper folder Eg. FROM :
test.hyperspace.today/asset/img
TO:
test.hyperspace.today/application/views/themes/defaults/assets_web/img
4) After move file at step 3, if u can't browse the page, solution is at step 5.
5) Solution for step 4 is You need to do 3 things :
a) rename file extension from .html to .php
b) Controller/Hungry create function contactus(){ to load the view from the new file contactus.php
c) config/route.php add $route['contactus'] = "hungry/contactus";
6) Focus on edit homepage now. Clone new design index.html file and rename 1 to menu-2.php and upload it to server.
7) at Controller/Hungry.php edit function menu() load view to menu-2.php (comment out the original load view code)
8) Replace the new design content to real content. Eg, username, sidebar menu, wallet name and amount.
Bug : Bootstrap Modal cannot close.
make sure dont have repeating the same id of div in two files :
1) modal_view_tree_member_data.php
2) dashboard.php
Then if using bootstrap v5 instead of v4, solution :
----------------------------------
Bug : Boostrap 5 Modal cannot open.
Solution : Change data-toggle="modal" data-target="#lostpassword" TO :
data-bs-toggle="modal" data-bs-target="#lostpassword"
Cannot find jquery function or javascript function is from which .js file?
Solution : right click the webpage, select "Page Source", then click each .js link to open it. Then press CTRL + F to find the keyword.
Bhojon Modification Documentation
Thursday, September 09, 2021
1) Add new line codes in .htaccess file :
----------------------------------
2) Edit the link url on .htaccess file.
Home page keep jump to admin login page problem :
3) Login to Admin panel > Web Setting > Common Setting > Website On > Save.
4) Add Food Category with picture from Admin panel.
5) Add Food with picture from Admin panel.
6) Add Food Variant from Admin panel.
7) Add /** Zac Edit Start Here **/ CSS code to
application/views/themes/defaults/assets_web/css/custome.css
8) Copy paste all code in app.hyperspace.today/application/views/themes/defaults/menu.php
9) Copy paste all code in app.hyperspace.today/application/views/themes/defaults/reservation.php
10) Copy paste all code in app.hyperspace.today/application/views/themes/defaults/index.php
11) Add banner from Admin panel.
12) Upload Footer Menu image at app.hyperspace.today/assets/img/icons.
13) To modify url login to admin-login :
----------------------------------
14) Import database tbl language from id 1805 (restaurant). Steps :
select records from id 1805 onward > Export > Custom > Only Data (No need change Rows numbers field)
15) Add Cash Wallet and Point Wallet into Table Payment_Method.
16) import tbl_ewallet from previous project.
17) Move php function from old project library/common.php to new project library/common.php
Previous project code : $query=$this->CI->db->query($q);
Solution : Remove "CI"
on Controller/Xxxx.php add $this->load->library('Common');
18) Add Wallet to Admin manage_member page :
application/modules/setting/views/customerlist.php
----------------------------------
19) Copy paste constant.php from old to new project.
20) fix admin sidebar is not active on admin manual credit member wallet page by javascript:
----------------------------------
21) If 403 error or ajax error, then go to config.php turn false ALL $config['csrf_protection'] = FALSE;
22) agent1 stuck at login page, so go to application/modules/setting/controllers/Language.php
----------------------------------
23)Add this sql to database :
----------------------------------
24) Create sidebar menu : cash_wallet_report and point_wallet_report at : application/modules/template/views/includes/sidebar.php
if not show label of the sidebar menu, then add in tbl_language as point (23)
25) replace login.php to admin-login.php at : application/modules/setting/controllers/Setting.php
26) add the following code to : application/modules/report/controllers/Reports.php
----------------------------------
27) Copy 2 functions report_wallets() and report_wallets_ajax from old project application/controllers/secure/Transaction_report.php to new project application/modules/report/controllers/Reports.php
28) Copy paste php file from old project shop.aegis2u.com/application/views/secure/report_wallets.php to new project application/modules/report/views/report_wallets.php
29) Add point to food variant table by sql :
----------------------------------
30) Add point label to Language table by sql :
----------------------------------
31) search keyword "price" and add "point" below it for 3 pages :
a) application/modules/itemmanage/controllers/Item_food.php
b) application/modules/itemmanage/views/varientlist.php
c) application/modules/itemmanage/views/varientedit.php
32) add lable cash wallet and point wallet to table Language by sql :
----------------------------------
33) Copy paste the following code from old project controller/Dashboard.php to new project controller/Hungry.php
----------------------------------
34) Copy paste the following 4 functions from old projects Controller/Wallets.php to new project controller/Hungry.php :
a) function cash_wallet()
b) function cash_wallet_ajax()
c) function coin_wallet()
d) function coin_wallet_ajax()
35) add "public" before "function" at point (34) a,b,c,d.
36) find keyword "$this->session->userdata('WDW_MEMBER_LOGIN_ID')" and replace it with $islogin and add declaration : $islogin = $this->session->userdata('CusUserID');
37)
----------------------------------
38) find keyword "coin" replace it to "Point".
39) upload Datapicker folder from old project assets/admin/js/plugins/datapicker
40) I have delete 90% codes at application/views/themes/defaults/cartitem.php
So if found any bug on shopping cart, then have to copy paste the code back from org.hyperspace.com AND
function addtocartitem(pid, id, type) at application/views/themes/defaults/assets_web/js/default_theme.js
----------------------------------
2) Edit the link url on .htaccess file.
Home page keep jump to admin login page problem :
3) Login to Admin panel > Web Setting > Common Setting > Website On > Save.
4) Add Food Category with picture from Admin panel.
5) Add Food with picture from Admin panel.
6) Add Food Variant from Admin panel.
7) Add /** Zac Edit Start Here **/ CSS code to
application/views/themes/defaults/assets_web/css/custome.css
8) Copy paste all code in app.hyperspace.today/application/views/themes/defaults/menu.php
9) Copy paste all code in app.hyperspace.today/application/views/themes/defaults/reservation.php
10) Copy paste all code in app.hyperspace.today/application/views/themes/defaults/index.php
11) Add banner from Admin panel.
12) Upload Footer Menu image at app.hyperspace.today/assets/img/icons.
13) To modify url login to admin-login :
----------------------------------
14) Import database tbl language from id 1805 (restaurant). Steps :
select records from id 1805 onward > Export > Custom > Only Data (No need change Rows numbers field)
15) Add Cash Wallet and Point Wallet into Table Payment_Method.
16) import tbl_ewallet from previous project.
17) Move php function from old project library/common.php to new project library/common.php
Previous project code : $query=$this->CI->db->query($q);
Solution : Remove "CI"
on Controller/Xxxx.php add $this->load->library('Common');
18) Add Wallet to Admin manage_member page :
application/modules/setting/views/customerlist.php
----------------------------------
19) Copy paste constant.php from old to new project.
20) fix admin sidebar is not active on admin manual credit member wallet page by javascript:
----------------------------------
21) If 403 error or ajax error, then go to config.php turn false ALL $config['csrf_protection'] = FALSE;
22) agent1 stuck at login page, so go to application/modules/setting/controllers/Language.php
----------------------------------
23)Add this sql to database :
----------------------------------
24) Create sidebar menu : cash_wallet_report and point_wallet_report at : application/modules/template/views/includes/sidebar.php
if not show label of the sidebar menu, then add in tbl_language as point (23)
25) replace login.php to admin-login.php at : application/modules/setting/controllers/Setting.php
26) add the following code to : application/modules/report/controllers/Reports.php
----------------------------------
27) Copy 2 functions report_wallets() and report_wallets_ajax from old project application/controllers/secure/Transaction_report.php to new project application/modules/report/controllers/Reports.php
28) Copy paste php file from old project shop.aegis2u.com/application/views/secure/report_wallets.php to new project application/modules/report/views/report_wallets.php
29) Add point to food variant table by sql :
----------------------------------
30) Add point label to Language table by sql :
----------------------------------
31) search keyword "price" and add "point" below it for 3 pages :
a) application/modules/itemmanage/controllers/Item_food.php
b) application/modules/itemmanage/views/varientlist.php
c) application/modules/itemmanage/views/varientedit.php
32) add lable cash wallet and point wallet to table Language by sql :
----------------------------------
33) Copy paste the following code from old project controller/Dashboard.php to new project controller/Hungry.php
----------------------------------
34) Copy paste the following 4 functions from old projects Controller/Wallets.php to new project controller/Hungry.php :
a) function cash_wallet()
b) function cash_wallet_ajax()
c) function coin_wallet()
d) function coin_wallet_ajax()
35) add "public" before "function" at point (34) a,b,c,d.
36) find keyword "$this->session->userdata('WDW_MEMBER_LOGIN_ID')" and replace it with $islogin and add declaration : $islogin = $this->session->userdata('CusUserID');
37)
----------------------------------
38) find keyword "coin" replace it to "Point".
39) upload Datapicker folder from old project assets/admin/js/plugins/datapicker
40) I have delete 90% codes at application/views/themes/defaults/cartitem.php
So if found any bug on shopping cart, then have to copy paste the code back from org.hyperspace.com AND
function addtocartitem(pid, id, type) at application/views/themes/defaults/assets_web/js/default_theme.js
Laravel Tutorial
Sunday, September 05, 2021
If have problem, besides google search, u may search in laravel documentation : https://laravel.com/docs/8.x
Bhojon CodeIgniter Tutorial
Friday, August 27, 2021
If logs folder don't show error file :
Go to config.php edit :
----------------------------------
To modify url login to admin-login :
----------------------------------
Edit CSS at :
application/views/themes/defaults/assets_web/css/style.css but better edit in custom.css because when update version, style.css will be replaced by new file.
Edit languages at :
database table language
Common.php file contain all common functions is at :
application/models/Hungry_model.php
Home page controller/Home.php is at :
application/controllers/Hungry.php
Edit header and footer is at :
application/views/themes/defaults/index.php
Syntac replacement :
$data['form_data']= $this->common->getAllRec("*","tbl_manage_announcement","WHERE status = 1 Order By id DESC");
$data['paymentinfo'] = $this->hungry_model->read_all('*', 'payment_method', 'payment_method_id', '', 'is_active', '1');
Exception: Call to a member function query() on null
Previous project code : $query=$this->CI->db->query($q);
Solution : Remove "CI"
How to call function from controller to view page?
----------------------------------
Admin header, sidebar, footer is at :
1) application/modules/template/views/includes/header.php
2) application/modules/template/views/layout.php
3) At Controllers/Xxx.php file replace :
----------------------------------
Admin sidebar is not active, go to application/modules/template/views/includes/sidebar.php :
----------------------------------
If css disappear, then go to contoller file edit :
----------------------------------
If admin-agent cannot login, go to admin panel > user > edit user > uncheck "Is Monitor Display".
If side bar menu is not show, then add in tbl_language.
If 500 error or Call to a member function getAllRec() on null, meaning cannot read Common.php file, so add the following code to the controller file :
----------------------------------
How to move Controller file from old project to new project?
1) Copy paste the following 4 functions from old projects Controller/Wallets.php to new project controller/Hungry.php :
a) function cash_wallet()
b) function cash_wallet_ajax()
c) function coin_wallet()
d) function coin_wallet_ajax()
2) add "public" before "function" at point (34) a,b,c,d.
3) find keyword "$this->session->userdata('WDW_MEMBER_LOGIN_ID')" and replace it with $islogin and add declaration : $islogin = $this->session->userdata('CusUserID');
4)
----------------------------------
How to move View file from old project to new project? 7 steps :
1) Copy paste entire code from old project file to new project file.
2) Delete all codes above the following code line :
Go to config.php edit :
----------------------------------
To modify url login to admin-login :
----------------------------------
Edit CSS at :
application/views/themes/defaults/assets_web/css/style.css but better edit in custom.css because when update version, style.css will be replaced by new file.
Edit languages at :
database table language
Common.php file contain all common functions is at :
application/models/Hungry_model.php
Home page controller/Home.php is at :
application/controllers/Hungry.php
Edit header and footer is at :
application/views/themes/defaults/index.php
Syntac replacement :
$data['form_data']= $this->common->getAllRec("*","tbl_manage_announcement","WHERE status = 1 Order By id DESC");
$data['paymentinfo'] = $this->hungry_model->read_all('*', 'payment_method', 'payment_method_id', '', 'is_active', '1');
Exception: Call to a member function query() on null
Previous project code : $query=$this->CI->db->query($q);
Solution : Remove "CI"
How to call function from controller to view page?
----------------------------------
Admin header, sidebar, footer is at :
1) application/modules/template/views/includes/header.php
2) application/modules/template/views/layout.php
3) At Controllers/Xxx.php file replace :
----------------------------------
Admin sidebar is not active, go to application/modules/template/views/includes/sidebar.php :
----------------------------------
If css disappear, then go to contoller file edit :
----------------------------------
If admin-agent cannot login, go to admin panel > user > edit user > uncheck "Is Monitor Display".
If side bar menu is not show, then add in tbl_language.
If 500 error or Call to a member function getAllRec() on null, meaning cannot read Common.php file, so add the following code to the controller file :
----------------------------------
How to move Controller file from old project to new project?
1) Copy paste the following 4 functions from old projects Controller/Wallets.php to new project controller/Hungry.php :
a) function cash_wallet()
b) function cash_wallet_ajax()
c) function coin_wallet()
d) function coin_wallet_ajax()
2) add "public" before "function" at point (34) a,b,c,d.
3) find keyword "$this->session->userdata('WDW_MEMBER_LOGIN_ID')" and replace it with $islogin and add declaration : $islogin = $this->session->userdata('CusUserID');
4)
----------------------------------
How to move View file from old project to new project? 7 steps :
1) Copy paste entire code from old project file to new project file.
2) Delete all codes above the following code line :
Tonsil / Tonsilla swell and pain home remedies
Sunday, August 22, 2021
Steps to cure tonsil pain at home :
1) Keep drinking water so that tonsil is not dry. Tonsil will recovery fast if it is always mois by water.
2) Brush when wake up and before sleep.
3) When sleeping, side sleep, let tonsil pain side at downside, so that all saliva fall to tonsil. Saliva mois the tonsil because tonsil need to be mois only will recovery faster.
4) Try to sleep before 10pm to 2am (because this 4 hours is the most healing time for body tisue).
5) use air humidifier because when u breath in the air full of mois keep tonsil mois can recovery fast.
1) Keep drinking water so that tonsil is not dry. Tonsil will recovery fast if it is always mois by water.
2) Brush when wake up and before sleep.
3) When sleeping, side sleep, let tonsil pain side at downside, so that all saliva fall to tonsil. Saliva mois the tonsil because tonsil need to be mois only will recovery faster.
4) Try to sleep before 10pm to 2am (because this 4 hours is the most healing time for body tisue).
5) use air humidifier because when u breath in the air full of mois keep tonsil mois can recovery fast.
php array tutorial
Monday, July 26, 2021
php for loop add value into multidimensional array
$cto1_users_array = array();
$i=0;
foreach($lucky_winners As $lucky_user)
{
$cto1_users_array[$i]['userid'] = $lucky_user['user_id'];
$cto1_users_array[$i]['amount'] = $each_person_get;
$i++;
}
----------------------------------
----------------------------------
Web App PWA for Codeigniter
Wednesday, May 05, 2021
Step 1 : Your website must be running on a secure domain (https).
Step 2 : Use realfavicongenerator.net to generate all the necessary icons that will be used on different mobile devices, this platform will also generate the manifest.json file that you will need later.
Step 3 : Upload all icons and manifest.json from Step 2 above to file path assets/admin/images
Step 4 : Edit manifest.json file become look like :
{
"name": "Do Track",
"short_name": "DoTrack",
"start_url": "/index.php/secure/track_zc.html",
"icons": [
{
"src": "/assets/admin/images/android-chrome-192x192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "/assets/admin/images/android-chrome-384x384.png",
"sizes": "384x384",
"type": "image/png",
"purpose": "any maskable"
}
],
"theme_color": "#ffffff",
"background_color": "#ffffff",
"display": "standalone",
"prefer_related_applications": false
}
Step 5 : Application/Views/secure/inc_header.php file add the following code that generated from Step 2 just now :
Step 6 : Download upup.min.js file from https://github.com/TalAter/UpUp/raw/master/dist/upup.zip
Step 7 : Upload upup.min.js and upup.sw.min.js files to folder directory assets/admin/js.
Step 8 : Edit upup.sw.min.js file, press control + F find keyword "sourceMappingURL". Edit it become //# sourceMappingURL=/assets/admin/js/upup.sw.min.js.map
Step 9 : Edit upup.min.js file, press control + F find keyword "sourceMappingURL". Edit it become //# sourceMappingURL=/assets/admin/js/upup.sw.min.js.map
Step 10 : Edit upup.min.js file, press control + F find keyword "service-worker-url". Edit it become service-worker-url":"/assets/admin/js/upup.sw.min.js
Step 10 : Application/Views/secure/inc_footer.php add the following code :
Step 11 : Edit the php page that you want PWA open at first page. (For example, My case Application/Views/Secure/track_wk.php) add the following code
Step 12 : Check if any bug by using the following 2 difference methods :
a) google chrome browser open your website and right click on page and select "Inspect". Then follow instruction on the screenshot below :
b) Using google chrome browser plugin "Lighthouse" or 3rd party website "WebPagetest Lighthouse Test" to check if any bug or error : https://pwa-for-wp.com/docs/article/how-to-check-pwa-is-working-or-not/
Step 2 : Use realfavicongenerator.net to generate all the necessary icons that will be used on different mobile devices, this platform will also generate the manifest.json file that you will need later.
Step 3 : Upload all icons and manifest.json from Step 2 above to file path assets/admin/images
Step 4 : Edit manifest.json file become look like :
Step 5 : Application/Views/secure/inc_header.php file add the following code that generated from Step 2 just now :
Step 6 : Download upup.min.js file from https://github.com/TalAter/UpUp/raw/master/dist/upup.zip
Step 7 : Upload upup.min.js and upup.sw.min.js files to folder directory assets/admin/js.
Step 8 : Edit upup.sw.min.js file, press control + F find keyword "sourceMappingURL". Edit it become //# sourceMappingURL=/assets/admin/js/upup.sw.min.js.map
Step 9 : Edit upup.min.js file, press control + F find keyword "sourceMappingURL". Edit it become //# sourceMappingURL=/assets/admin/js/upup.sw.min.js.map
Step 10 : Edit upup.min.js file, press control + F find keyword "service-worker-url". Edit it become service-worker-url":"/assets/admin/js/upup.sw.min.js
Step 10 : Application/Views/secure/inc_footer.php add the following code :
Step 11 : Edit the php page that you want PWA open at first page. (For example, My case Application/Views/Secure/track_wk.php) add the following code
Step 12 : Check if any bug by using the following 2 difference methods :
a) google chrome browser open your website and right click on page and select "Inspect". Then follow instruction on the screenshot below :
b) Using google chrome browser plugin "Lighthouse" or 3rd party website "WebPagetest Lighthouse Test" to check if any bug or error : https://pwa-for-wp.com/docs/article/how-to-check-pwa-is-working-or-not/
Creating Track page for WL and ZC
Tuesday, May 04, 2021
Controller folder has 2 pages :
1) Track_wl.php
2) Trac_wl_hist.php
View folder has 2 pages :
1) track_wl.php
2) trac_wl_hist.php
2) trac_wl_add.php
asset/js folder has bootstrap-fullscreen-select.min.js
secure/inc_footer.php has :
asset/css folder has bootstrap-fullscreen-select.css
secure/inc_header.php has :
application/libaray/commond.php file has the code :
function secondsToTime($seconds)
{
$secondsInAMinute = 60;
$secondsInAnHour = 60 * $secondsInAMinute;
$secondsInADay = 24 * $secondsInAnHour;
// Extract days
$days = floor($seconds / $secondsInADay);
// Extract hours
$hourSeconds = $seconds % $secondsInADay;
$hours = floor($hourSeconds / $secondsInAnHour);
// Extract minutes
$minuteSeconds = $hourSeconds % $secondsInAnHour;
$minutes = floor($minuteSeconds / $secondsInAMinute);
// Extract the remaining seconds
$remainingSeconds = $minuteSeconds % $secondsInAMinute;
$seconds = ceil($remainingSeconds);
// Format and return
$timeParts = [];
$sections = [
'day' => (int)$days,
'hour' => (int)$hours,
'minute' => (int)$minutes,
'second' => (int)$seconds,
];
foreach ($sections as $name => $value){
if ($value > 0){
$timeParts[] = $value. ' '.$name.($value == 1 ? '' : 's');
}
}
return implode(', ', $timeParts);
}
1) Track_wl.php
2) Trac_wl_hist.php
View folder has 2 pages :
1) track_wl.php
2) trac_wl_hist.php
2) trac_wl_add.php
asset/js folder has bootstrap-fullscreen-select.min.js
secure/inc_footer.php has :
asset/css folder has bootstrap-fullscreen-select.css
secure/inc_header.php has :
application/libaray/commond.php file has the code :
Generate QR code with Codeigniter
Sunday, April 04, 2021
Database add a new field "qr_exist" tynyint(1) in tbl_user_master. (1 mean already got QR code).
Then upload "phpqrcode" zip file to Controller folder and extract the zip file.
https://www.dropbox.com/s/1sn68ln2c5fahdk/phpqrcode.zip?dl=0
Note : this "phpqrcode" folder must saved in the same directory as your code file.
Then add this code at top of page :
include 'phpqrcode/qrlib.php';
Then add this code to create QR code image :
$invitation_url = site_url("register/index/".$first_acc_code);
$path = $_SERVER['DOCUMENT_ROOT'];
$file = $path.'/uploads/qrimages/'.$first_acc_code.".png";
$ecc = 'L';
$pixel_Size = 10;
$frame_Size = 10;
QRcode::png($invitation_url, $file, $ecc, $pixel_Size, $frame_Size);
Then show QR code image by code below :
?>uploads/qrimages/<?=$unique_code?>.png)
Then upload "phpqrcode" zip file to Controller folder and extract the zip file.
https://www.dropbox.com/s/1sn68ln2c5fahdk/phpqrcode.zip?dl=0
Note : this "phpqrcode" folder must saved in the same directory as your code file.
Then add this code at top of page :
Then add this code to create QR code image :
Then show QR code image by code below :
?>uploads/qrimages/<?=$unique_code?>.png)
body, html { overflow-x:hidden; } break smooth scrolling
Wednesday, February 03, 2021
simple solution :
Put overflow-x:hidden; on DIV instead of body and html.
First copy paste the following code to your css file to find out which DIV causing the problem :
* { outline: 1px red solid !important; visibility: visible !important }
Then put overflow-x:hidden; on the DIV class, example :
.row{
overflow-x: hidden;
}
Put overflow-x:hidden; on DIV instead of body and html.
First copy paste the following code to your css file to find out which DIV causing the problem :
Then put overflow-x:hidden; on the DIV class, example :
CodeIgniter Multi Vendor Ecommerce
Wednesday, January 27, 2021
Edit Home page products lists :
application/libraries/Loop.php
language translate : application/language/english/site_lang.php
Change currency : config.php
To edit Steps / stages / helps / info : purchase_steps_helper.php in Helpers folder.
language translate : application/language/english/site_lang.php
Change currency : config.php
To edit Steps / stages / helps / info : purchase_steps_helper.php in Helpers folder.
The best Forex EA Robot in year 2021
Thursday, December 24, 2020
This is the most safer Forex EA Robot. Against Trend EA will burn account if the price go 1 direction very far as picture below : So this EA added the following 7 conditions to prevent account burn : Suggest you use Cent account : The following video explain this EA Strategy :
I have backtest this EA for 16 years from 2004 to 2020. Never burn account.
It is fully automatic trading by EA robot, you don't have to manually monitor. You don't need to do anything.
How to make passive income in year 2021
Wednesday, December 23, 2020
How to make passive income within 10 minutes? Install robot working 24 hours for you.
This video explain the following topics :
How to earn passive income from home?
How to install Forex MT4 and EA to computer and mobile phone?
How to withdraw profit from MT4 account to your bank account?
--------------------------------------------
I will gift away the best EA on market to you for FREE. Steps :
1) Like my video.
2) Subscribe my channel.
3) Register free MT4 account from my FBS affiliate link at https://fbs.com/?ppk=SweetGirlForex
4) Leave a comment "I have done the 4 things, please send me your Version-2 E.A (your email address).
Then I will email you the "HighSellLowBuy-V2" EA file.
--------------------------------------------
FBS MT4 broker :
1) Legit with International License
2) Low spread,
3) No commission charged,
4) No swap fee,
5) Cent Account (USD20 = USD2000)
6) Leverage 1:1000
My FBS affiliate link https://fbs.com/?ppk=SweetGirlForex
--------------------------------------------
My other video explain how did I build this E.A and how does this E.A prevent loss money in Forex market : https://youtu.be/eafgADXzsQY
--------------------------------------------
Any question? you may email me at sweet.girl.forex@gmail.com
This video explain the following topics :
How to earn passive income from home?
How to install Forex MT4 and EA to computer and mobile phone?
How to withdraw profit from MT4 account to your bank account?
--------------------------------------------
I will gift away the best EA on market to you for FREE. Steps :
1) Like my video.
2) Subscribe my channel.
3) Register free MT4 account from my FBS affiliate link at https://fbs.com/?ppk=SweetGirlForex
4) Leave a comment "I have done the 4 things, please send me your Version-2 E.A (your email address).
Then I will email you the "HighSellLowBuy-V2" EA file.
--------------------------------------------
FBS MT4 broker :
1) Legit with International License
2) Low spread,
3) No commission charged,
4) No swap fee,
5) Cent Account (USD20 = USD2000)
6) Leverage 1:1000
My FBS affiliate link https://fbs.com/?ppk=SweetGirlForex
--------------------------------------------
My other video explain how did I build this E.A and how does this E.A prevent loss money in Forex market : https://youtu.be/eafgADXzsQY
--------------------------------------------
Any question? you may email me at sweet.girl.forex@gmail.com
How to fixed Miliris Action Lag / slow / frame drop?
Tuesday, July 28, 2020
Miliris Action Lag / slow / frame drop?
Solution : Go to Miliris Video Setting > Video Framerate > Select VFR.
But VFR makes Adobe After Effect cannot sync video with audio, mean audio is slower than video, so you need to download handbrake to convert video from VFR to Fixed 60 FPS.
----------------
Miliris record video color keep changing problem.
Solution : set video size to 1080 or 2160
Solution : Go to Miliris Video Setting > Video Framerate > Select VFR.
But VFR makes Adobe After Effect cannot sync video with audio, mean audio is slower than video, so you need to download handbrake to convert video from VFR to Fixed 60 FPS.
----------------
Miliris record video color keep changing problem.
Solution : set video size to 1080 or 2160
Music Player With Local Editable Lyric
Friday, July 10, 2020
Steps :
1) Download and install Winamp Music Player.
2) Download and install MiniLyrics.
3) Open MiniLyrics to install it onto Winamp.
4) Add a song into Winamp and play it.
5) On MiniLyrics, click View > Lyric Editor. Type in the following sentence :
[00:00.01]Did you try any Expert Advisor and it burn your account?
[00:00.01]I'm here to prove all EA on the market will burn your account.
6) File > Save Lyric As.
7) On MiniLyrics, click View > Floating Lyric.
8) Right click on any part in Floating Lyric > Display Option > select "Movie Subtitle" at the last bottom "Lyrics display style" section.
9) Close Floating Lyric by right click it and close it.
1) Download and install Winamp Music Player.
2) Download and install MiniLyrics.
3) Open MiniLyrics to install it onto Winamp.
4) Add a song into Winamp and play it.
5) On MiniLyrics, click View > Lyric Editor. Type in the following sentence :
[00:00.01]Did you try any Expert Advisor and it burn your account?
[00:00.01]I'm here to prove all EA on the market will burn your account.
6) File > Save Lyric As.
7) On MiniLyrics, click View > Floating Lyric.
8) Right click on any part in Floating Lyric > Display Option > select "Movie Subtitle" at the last bottom "Lyrics display style" section.
9) Close Floating Lyric by right click it and close it.
Search
google adsense
Donation
If you feel my website is informative and it is useful for you, please donate some money to support me or buy me a drink. I will continues this good works. Thank you.