271
mjoel
Re: Changing the FAQ name within the xoopsfaq
  • 2007/7/4 16:51

  • mjoel

  • Quite a regular

  • Posts: 331

  • Since: 2006/12/9


if i'm not mistaken...in most cases you can simply change it by editing the default name of the module in the module administration..



272
mjoel
Re: Site made using xoops but does not look like Xoops
  • 2007/6/18 16:59

  • mjoel

  • Quite a regular

  • Posts: 331

  • Since: 2006/12/9


i just found out this site from one of the thread here in xoops.org


http://scrumeducations.sprint-it.com/


cool



273
mjoel
Re: Editing Registration Page _US_WEBSITE
  • 2007/6/11 1:02

  • mjoel

  • Quite a regular

  • Posts: 331

  • Since: 2006/12/9


edit at root/language/english/user.php



274
mjoel
Re: Flash game Module?
  • 2007/6/11 0:33

  • mjoel

  • Quite a regular

  • Posts: 331

  • Since: 2006/12/9


where to get more game (wit high score)besides from the pnpfg website ?



275
mjoel
Re: Problem with pnflashgame, please help
  • 2007/5/17 15:41

  • mjoel

  • Quite a regular

  • Posts: 331

  • Since: 2006/12/9


do you have the protector module installed ? deactivate it temporarily and try again



276
mjoel
Re: How to clone News 1.44 module?
  • 2007/5/17 15:08

  • mjoel

  • Quite a regular

  • Posts: 331

  • Since: 2006/12/9


Here is a way to clone the news 1.44 module

1. upload the news 1.44 modules to your modules directory

2. Save the code below as clone.php and upload it into your XOOPS root...in this example it will clone the news module to a new module that i named as blog...



<?php

/*

Usage:
    
    Copy clone.php in <xoops_root>
    Change current working directory to <xoops_root>
    Update mappings as per new modulename.

    php -q clone.php 

*/

// ##########################################################
//    Define your mapping here
// ##########################################################
$patterns = array(
  
// first one must be module directory name
  
'news'  => 'blog'
  
'NEWS'  => 'BLOG',
  
'stories'  => 'blogs',
  
'stories_files' => 'blogs_files',
  
'topics' => 'topicblogs',
  
'article' =>'blogitem',
  
'storyid' => 'blogid',
  
'stories_votedata'  => 'blog_votedata'
  
'getmoduleoption' => 'getmoduleoption2',
'_MI_STORYHOME' => '_MI_STORYHOME2',
'_MI_NOTIFYSUBMIT' => '_MI_NOTIFYSUBMIT12',
'_MI_DISPLAYNAV' => '_MI_DISPLAYNAV12',
'_MI_AUTOAPPROVE' => '_MI_AUTOAPPROVE2',
'_MI_ALLOWEDSUBMITGROUPS' => '_MI_ALLOWEDSUBMITGROUPS2',
'_MI_ALLOWEDAPPROVEGROUPS' => '_MI_ALLOWEDAPPROVEGROUPS2',
'_MI_NAMEDISPLAY' => '_MI_NAMEDISPLAY2',
'_MI_COLUMNMODE' => '_MI_COLUMNMODE2',
'_MI_STORYCOUNTADMIN' => '_MI_STORYCOUNTADMIN2',
'_MI_UPLOADFILESIZE' => '_MI_UPLOADFILESIZE2',
'_MI_UPLOADGROUPS' => '_MI_UPLOADGROUPS2',
'_MI_STORYHOMEDSC' => '_MI_STORYHOMEDSC2',
'_MI_NOTIFYSUBMITDSC' => '_MI_NOTIFYSUBMITDSC2',
'_MI_DISPLAYNAVDSC' => '_MI_DISPLAYNAVDSC2',
'_MI_AUTOAPPROVEDSC' => '_MI_AUTOAPPROVEDSC2',
'_MI_ALLOWEDSUBMITGROUPSDESC' => '_MI_ALLOWEDSUBMITGROUPSDESC12',
'_MI_ALLOWEDAPPROVEGROUPSDESC' => '_MI_ALLOWEDAPPROVEGROUPSDESC2',
'_MI_ADISPLAYNAMEDSC' => '_MI_ADISPLAYNAMEDSC2',
'_MI_COLUMNMODE_DESC' => '_MI_COLUMNMODE_DESC2',
'_MI_STORYCOUNTADMIN_DESC' => '_MI_STORYCOUNTADMIN_DESC2',
'_MI_UPLOADFILESIZE_DESC' => '_MI_UPLOADFILESIZE_DESC2',
'_MI_UPLOADGROUPS_DESC' => '_MI_UPLOADGROUPS_DESC2',
'_MI_DISPLAYNAME1' => '_MI_DISPLAYNAME12',
'_MI_DISPLAYNAME2' => '_MI_DISPLAYNAME22',
'_MI_DISPLAYNAME3' => '_MI_DISPLAYNAME32' ,
'_MI_UPLOAD_GROUP1' => '_MI_UPLOAD_GROUP12',
'_MI_UPLOAD_GROUP2' => '_MI_UPLOAD_GROUP22',
'_MI_UPLOAD_GROUP3' => '_MI_UPLOAD_GROUP32',
'_MI_NEWS_GLOBAL_NOTIFY' => '_MI_NEWS_GLOBAL_NOTIFY2',
'_MI_NEWS_GLOBAL_NOTIFYDSC' => '_MI_NEWS_GLOBAL_NOTIFYDSC2',
'_MI_RESTRICTINDEX' => 'MI_RESTRICTINDEX2',
'_MI_RESTRICTINDEXDSC' => '_MI_RESTRICTINDEXDSC2',
'MygetItemIds' => 'MygetItemIds2',
'CreateSiteNavBar' => 'CreateSiteNavBar2',
'_MB_POSTER' => '_MB_POSTER2',
'updateCache' => 'updateCache2',
'TableExists' => 'TableExists2',
 
'AddField' => 'AddField2',
'FieldExistsAddField' => 'FieldExistsAddField2',
'is_admin_group' => 'is_admin_group2',
'make_infotips' => 'make_infotips2',
'FieldExists' => 'FieldExists2'
);

$patKeys array_keys($patterns);
$patValues array_values($patterns);

// work around for PHP < 5.0.x
if(!function_exists('file_put_contents')) {
  function 
file_put_contents($filename$data$file_append false) {
    
$fp fopen($filename, (!$file_append 'w+' 'a+'));
    if(!
$fp) {
      
trigger_error('file_put_contents cannot write in file.'E_USER_ERROR);
      return;
    }
    
fputs($fp$data);
    
fclose($fp);
  }
}

// recursive clonning script
function cloneFileFolder($path
{
  global 
$patKeys;
  global 
$patValues;
  
  
$newPath str_replace($patKeys[0], $patValues[0], $path);

  if (
is_dir($path)) 
  {
    
// create new dir
    
mkdir($newPath);
    
    
// check all files in dir, and process it
    
if ($handle opendir($path))
    {
      while (
$file readdir($handle)) 
      {
        if (
$file != '.' && $file != '..'
        {
          
cloneFileFolder("$path/$file");
        }
      }
      
closedir($handle);  
    }
  } 
  else 
  {
    if(
preg_match('/(.jpg|.gif|.png|.zip)$/i'$path)) 
    {
      
copy($path$newPath);
    } 
    else 
    {
      
// file, read it
      
$content file_get_contents($path);
      
$content str_replace($patKeys$patValues$content);
      
file_put_contents($newPath$content);
    }
  }
}

cloneFileFolder('modules/news');

echo 
"Happy cloning...n";
echo 
"check directory modules/" $patterns['smartsection'] . " for cloned module n";
echo 
"Consider modifying new module by editing language/english/modinfo.php and images/news_slogo.png manually (if you care)n";

?>


** the code above is originally from SmartFactory's smartsection modules zip file..i modify it a bit **


u can change the name of the clone module to anything...as long u follow the caps rule..example - if u want the name of the clone module to be mynews...find
'news'  => 'blog'
  
'NEWS'  => 'BLOG',
  
'stories'  => 'blogs',
  
'stories_files' => 'blogs_files',
  
'topics' => 'topicblogs',
  
'article' =>'blogitem',
  
'storyid' => 'blogid',
  
'stories_votedata'  => 'blog_votedata',

and replace it with these

'news'  => 'mynews'
  
'NEWS'  => 'MYNEWS',
  
'stories'  => 'mynewsstories',
  
'stories_files' => 'news_files',
  
'topics' => 'topicnews',
  
'article' =>'newsitem',
  
'storyid' => 'newsid',
  
'stories_votedata'  => 'news_votedata',


don't change other part of the code..


3. run the code .. XOOPS root/clone.php ...example
www.yoursite.com/clone.php

3. Install the new cloned module, edit the language/english/modinfo.php and images/news_slogo.png

4. update clone module

5. enjoy..

so far i don't have any problem using the clone module and news 1.44 at the same time in my site


Ok Good luck



277
mjoel
Letter template module
  • 2007/4/19 4:19

  • mjoel

  • Quite a regular

  • Posts: 331

  • Since: 2006/12/9


is there any letter template (formal or informal)editing module available?

where admin can generate a Letter Template then

user or admin can edit the letter template to change the address, date, content, signature etc

and then print it in either in pdf or web form.......

if this module is unavailable what current module is best for me to customize to meet my requirements?

i know it is more easy if we use offline word processing but my friend insisting me to do this



278
mjoel
Re: Web Form to PDF
  • 2007/4/18 10:19

  • mjoel

  • Quite a regular

  • Posts: 331

  • Since: 2006/12/9


bump

is this kind of module still unavailable for right now ?



279
mjoel
Submit News Link in the menu ?
  • 2007/1/1 1:42

  • mjoel

  • Quite a regular

  • Posts: 331

  • Since: 2006/12/9


how do i let the SUBMIT NEWS link to readily appear without having to click 'News' in the menu..

is this possible without using modules like multimenu ?

I'm using News 1.44



280
mjoel
enabling custom session causing login problem
  • 2006/12/9 14:41

  • mjoel

  • Quite a regular

  • Posts: 331

  • Since: 2006/12/9


when i enable custom session (Session expiration:8000)...i have login problem in my site

i received the confirmation i am login but after the message confirmation i'm being logout from my site..

but when i turn on php debug (which display no error)

i can login to my site normally..

i already tried to

- clear template_c, cache, browser cookies
- repair/empty xoops_session

but i still can't login without turning on php debug

i'm using XOOPS 2.016




TopTop
« 1 ... 25 26 27 (28)



Login

Username:
Password:

Lost Password? Register now!

Who's Online

75 user(s) are online (44 user(s) are browsing Support Forums)


Members: 0


Guests: 75


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Dec 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits