81
mjoel
how to protect single custom page ?
  • 2016/7/1 9:00

  • mjoel

  • Quite a regular

  • Posts: 325

  • Since: 2006/12/9


i have a single custom page..how do i protect this page so only admin or certain group can see this page...

include("../../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  


 


include(XOOPS_ROOT_PATH."/footer.php");



82
mjoel
Re: Tutorial for create Xoops Modules
  • 2016/6/13 6:31

  • mjoel

  • Quite a regular

  • Posts: 325

  • Since: 2006/12/9


How to write an standard module for xoops (div table, pagination , sort, order)
https://xoops.org/modules/newbb/viewtopic.php?topic_id=76036

by IMRTFAN



83
mjoel
Re: help with language constant in file php 5.5 and php 5.4
  • 2016/6/7 4:32

  • mjoel

  • Quite a regular

  • Posts: 325

  • Since: 2006/12/9


Thanks Mamba

i have the same file in both server

i figured out the problem and now its working

i copy paste some of the missing definition from modinfo.php in the language folder to main.php in the same folder

i dont know why it is ok in php 5.4 without definining the constant in main.php but not in php 5.5

Thanks again



84
mjoel
Re: help with language constant in file php 5.5 and php 5.4
  • 2016/6/7 3:29

  • mjoel

  • Quite a regular

  • Posts: 325

  • Since: 2006/12/9


help how do i correct this in php 5.5



85
mjoel
help with language constant in file php 5.5 and php 5.4
  • 2016/6/7 3:25

  • mjoel

  • Quite a regular

  • Posts: 325

  • Since: 2006/12/9


Hi I have this problem

in localhost i have php 5.4.31..code below display ok

echo "<b><span style='text-transform:uppercase;letter-spacing:2px;'>"._MY_NAME."</span></b><br />";


echo "<div style='clear:both;' align='right'><a href='index.php' class='front'> "._MY_HRMODULE." »</a></div>";



in my real server i have php 5.5.31.. i receive this error

Quote:

Notice: Use of undefined constant _MY_NAME - assumed '_MY_NAME' in file /modules/myhr/index.php line 10

Notice: Use of undefined constant _MY_HRMODULE - assumed '_MY_HRMODULE' in file /modules/myhr/index.php line 122



86
mjoel
Re: xLanguage Definitive Answers
  • 2016/6/3 15:55

  • mjoel

  • Quite a regular

  • Posts: 325

  • Since: 2006/12/9


Quote:

Zap_English wrote:


When go into the admin page the ONLY language to select as a basic language in the drop down is English. So where do the other languages come from?


Hi

What i did in my xoops site to make xlanguage work is

1. Go to your cpanel file manager duplicate the english folder inside the folder below and rename the folder to your language..as example from english to russian,chinese etc

a.Root/language
b. modules/system/language/

And start translating the content of the files inside to your language...

if you lucky enough check your local xoops support site..maybe language translation available to download

You should can see your language in the admin side

Dont forget to check all language folder inside each of your installed module to see if your language is availabe..if not you have to repeat the duplication of english folder for each module

2. Setup the xlanguage module as in the instruction...activate the language selection block..

3. To translate content in block or in cotent module use tag example below
[en]myname is mjoel[/en]
[rs]....[/rs]
Hope this help



87
mjoel
Re: Two xoops one database - is this possible with latest xoops
  • 2016/6/3 15:41

  • mjoel

  • Quite a regular

  • Posts: 325

  • Since: 2006/12/9


Tq..ill look into it..but will be great if this feature is in the xoops core ..someday



88
mjoel
Two xoops one database - is this possible with latest xoops
  • 2016/6/3 4:45

  • mjoel

  • Quite a regular

  • Posts: 325

  • Since: 2006/12/9


Hi

As title is this possible..ive made search here but outdated info
Any solution i can try?



89
mjoel
Extgallery : Batch Thumb Rebuild
  • 2016/1/23 10:49

  • mjoel

  • Quite a regular

  • Posts: 325

  • Since: 2006/12/9


i have changed the thumb size and quality of thumbnail in extgallery preferences

I have more than 100 albums how do i rebuild thumb in batch ?

any hack ?

now i have to do it one by one



90
mjoel
Re: trabis
  • 2016/1/5 13:40

  • mjoel

  • Quite a regular

  • Posts: 325

  • Since: 2006/12/9


wishing missing user Ghia well too..he helped me a lot last time with xoops

https://xoops.org/modules/profile/userinfo.php?uid=70737




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



Login

Who's Online

152 user(s) are online (120 user(s) are browsing Support Forums)


Members: 0


Guests: 152


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