71
mjoel
mysql_real_escape_string XOOPS replacement ?
  • 2017/2/22 13:53

  • mjoel

  • Quite a regular

  • Posts: 325

  • Since: 2006/12/9


since mysql_real_escape_string is deprecated

if i have this code
$employee_id mysql_real_escape_string($_GET['id']);

what should i replace it with



72
mjoel
Re: mysql query with XOOPS 2.581
  • 2017/2/21 0:27

  • mjoel

  • Quite a regular

  • Posts: 325

  • Since: 2006/12/9


Thank you for the explanation Geekwright..Thats great.. happy to know XOOPS is moving forward..

Im new to this code thing..i have to check all my codes

btw...the code you gave is not working...i got a blank page

....can you help me correct the example so i can correct my code...

i have many of this and i need to correct in my other page

Thanks again



73
mjoel
Re: Bootstrap Templates for XOOPS Modules
  • 2017/2/20 23:21

  • mjoel

  • Quite a regular

  • Posts: 325

  • Since: 2006/12/9


1. Lexicon
https://xoops.org/modules/newbb/viewtopic.php?post_id=362192

2. contact extgallery newbb news obituaries pm profile publisher tag tdmdownloads xoopsfaq
xoopstube


for above module we can get it from latest XOOPS in xbootstrap themes



74
mjoel
Bootstrap Templates for XOOPS Modules
  • 2017/2/20 22:55

  • mjoel

  • Quite a regular

  • Posts: 325

  • Since: 2006/12/9


Can we have a list here and where to download bootstrap compatible template for XOOPS modules ?

I'm currently looking for xoopspoll bootstrap template



75
mjoel
mysql query with XOOPS 2.581
  • 2017/2/20 22:52

  • mjoel

  • Quite a regular

  • Posts: 325

  • Since: 2006/12/9


I have this query code in one of my custom page in XOOPS 2.572..and its working fine but when i upgraded to XOOPS 2.581 recently this no longer work..the page is not fully load and it stopped at this query

<?php
     
global $xoopsDB
$resultmysql_query("SELECT * FROM ".$xoopsDB->prefix("myunit")." ") or die(mysql_error()); 
        while (
$row mysql_fetch_assoc($result)) {
            echo 
'<option value="' $row['list_unit'] . '">' $row['list_unit'] . '</option>';
        }
        
?>


what might be the problem ?



76
mjoel
suggestion: lite xoops
  • 2016/8/1 12:29

  • mjoel

  • Quite a regular

  • Posts: 325

  • Since: 2006/12/9


everytime i start a new 2.5x xoops project i will remove these folders

1. front end Themes

themes/default
themes/suico/
themes/zetagenesisis

in my honest opinion, to follow the current standard xoops should support only xbootstrap theme which i think is a great theme and easy to customize and put the other old themes in xoops.org for user to download if they would like to use old themes

2. backend theme
modules/system/themes/thadmin
modules/system/themes/legacy
modules/system/themes/zetadigme

anyone still using the admin theme above instead of the default admin theme ?


images folder also need some cleanup..i think some files are not use at all if if im not mistaken...



77
mjoel
Re: contact module with feedback auto-notification ?
  • 2016/7/13 14:37

  • mjoel

  • Quite a regular

  • Posts: 325

  • Since: 2006/12/9


Thank you for all the suggestion..will try all which is suitable for my project...tq



78
mjoel
contact module with feedback auto-notification ?
  • 2016/7/12 0:19

  • mjoel

  • Quite a regular

  • Posts: 325

  • Since: 2006/12/9


is there any contact module with feedback auto notification ?

let say after user send feedback...our site will send email to user that we have received the message and will reply soon



79
mjoel
Re: how to protect single custom page ?
  • 2016/7/5 0:23

  • mjoel

  • Quite a regular

  • Posts: 325

  • Since: 2006/12/9


i put this code inside my root and named it as test.php and it works

if i dont want to use any module is this acceptable/ok ?

<?php  

require_once ("mainfile.php");  
include(
XOOPS_ROOT_PATH."/header.php");  

$meta_keywords "";  
$meta_description "";  
$pagetitle "";  

if(isset(
$xoTheme) && is_object($xoTheme)) {  
    
$xoTheme->addMeta'meta''keywords'$meta_keywords);  
    
$xoTheme->addMeta'meta''description'$meta_description);  
} else {    
// Compatibility for old Xoops versions  
    
$xoopsTpl->assign('xoops_meta_keywords'$meta_keywords);  
    
$xoopsTpl->assign('xoops_meta_description'$meta_description);  
}  

$xoopsTpl->assign('xoops_pagetitle'$pagetitle);  

//this will only work if your theme is using this smarty variables  
$xoopsTpl->assign'xoops_showlblock'0); //set to 0 to hide left blocks  
$xoopsTpl->assign'xoops_showrblock'0); //set to 0 to hide right blocks  
$xoopsTpl->assign'xoops_showcblock'1); //set to 0 to hide center blocks  
?>  


<?php
// Start Groups Permission 
$groups 0
if (
is_object($xoopsUser)) 

$groups $xoopsUser->getGroups(); 

else { 
$groups = array(XOOPS_GROUP_ANONYMOUS); 


switch(
$groups

case (
in_array(1$groups)): //admin 
{
echo 
"Only admin group member can see this";
}
break 
1

case (
in_array(3$groups)): //anonymous  
 
{
echo 
"guest group"
}

break 
1;  


case (
in_array(5$groups)): // custom group
{
echo 
"Only custom group member can see this";
}
break 
1

}
//end Group Permission 
?>


<?php  
include(XOOPS_ROOT_PATH."/footer.php");  
?>



80
mjoel
Re: how to protect single custom page ?
  • 2016/7/5 0:08

  • mjoel

  • Quite a regular

  • Posts: 325

  • Since: 2006/12/9


Thank you for all the replies

i found the code below from this old topic



// group 
$groups 0
if (
is_object($xoopsUser)) 

$groups $xoopsUser->getGroups(); 

else { 
$groups = array(XOOPS_GROUP_ANONYMOUS); 


switch(
$groups


case (
in_array(1$groups)): //admin 
echo "admin group"


break 
1

case (
in_array(2$groups)): //registered 
echo "registered group"


break 
1

case (
in_array(3$groups)): //anonymous 
echo "guest group"


break 
1

case (
in_array(4$groups)): //customized 
echo "custom group"
break 
1
}




TopTop
« 1 ... 5 6 7 (8) 9 10 11 ... 28 »



Login

Who's Online

156 user(s) are online (127 user(s) are browsing Support Forums)


Members: 0


Guests: 156


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