xoops forums

Forum Index


Board index » All Posts (tvn3015)




tvn3015

Just popping in
Posted on: 2008/4/22 5:43
tvn3015
tvn3015 (Show more)
Just popping in
Posts: 53
Since: 2007/4/18
#21

Re: Sharing username and password across multiple XOOPS sites?

Found this on other site!

Share Frontend Users Between Multiple Sites
« on: 08 Apr 2008, 13:08 »

--------------------------------------------------------------------------------

If you want to share frontend users among multiple sites, redirect the registration to the main site (originating). Then set up the following crontab job for each site:

Minute: 1,16,31,46
Hour: *
Day of Month: *
Month : *
Day of Week: *

Command:
/usr/bin/mysqldump -h<originating-hostname> -u<originating-username> -p<originating-password> --quick --add-drop-table --add-locks --lock-tables --tables <originating database name> cms_module_feusers_belongs cms_module_feusers_dropdowns cms_module_feusers_grouppropmap cms_module_feusers_groups cms_module_feusers_groups_seq cms_module_feusers_propdefn cms_module_feusers_properties cms_module_feusers_properties_seq cms_module_feusers_tempcode cms_module_feusers_users cms_module_feusers_users_seq | MySQL -h<destination-hostname> -u<destination-username> -p<destination-password> <destination database name>

This example will run the job every 15 minutes and synch the feusers tables between 2 sites.

Notes:
- This will work between different servers.
- You may need to change the path to mysqldump, depending on your setup.
- Replace the entries in < > with your specific database info.
- Replace the "cms_" table prefixes with your table prefixes.
- The command must be a single line.

Nullig
http://www.XoopsViet.com - Xoops for Vietnamese


tvn3015

Just popping in
Posted on: 2008/4/22 5:20
tvn3015
tvn3015 (Show more)
Just popping in
Posts: 53
Since: 2007/4/18
#22

Sharing username and password across multiple XOOPS sites?

Is there anyway that we could share username and password across multiple XOOPS sites (None XOOPS Sites)?
Is it possible at all?
Thanks

TVN
http://www.XoopsViet.com - Xoops for Vietnamese


tvn3015

Just popping in
Posted on: 2007/12/10 18:08
tvn3015
tvn3015 (Show more)
Just popping in
Posts: 53
Since: 2007/4/18
#23

Re: mxdirectory error in uploading logo

Got it working now! Teach myselft some php code from the internet and basicly rewrite the code above and it work! Check it out Here
http://www.XoopsViet.com - Xoops for Vietnamese


tvn3015

Just popping in
Posted on: 2007/12/5 5:09
tvn3015
tvn3015 (Show more)
Just popping in
Posts: 53
Since: 2007/4/18
#24

Re: mxdirectory error in uploading logo

Just post this code here if anyone see anything wrong with this code below.

Quote:

$domain = XOOPS_URL;
$path = './images/shots/'; //path to targetfolder
$path_after_domain = '/modules/' . $mydirname . '/images/shots/'; //path to targetfolder for use in url
$max_size = $xoopsModuleConfig['logo_maxfilesize']; //maximum filesize
$ferror = false;
if ((isset($_FILES['logoup'])) && (is_uploaded_file($_FILES['logoup']['tmp_name'])))
{
if ($_FILES['logoup']['size']>$max_size)
{
$ferror = _MD_ELOGOSIZE; // file too big
}
else
{
if (($_FILES['logoup']['type']=='image/gif') || ($_FILES['logoup']['type']=='image/png') || ($_FILES['logoup']['type']=='image/jpeg')) {
if (file_exists($path . $_FILES['logoup']['name'])) {
$ferror = _MD_ELOGOSAMENAME; // file exists
} else {
if (!copy($_FILES['logoup']['tmp_name'], $path .$_FILES['logoup']['name'])) {
$ferror = _MD_ELOGOTEMP;
}
}
} else {
$ferror = _MD_ELOGOTYPE; // wrong file type
}
}
http://www.XoopsViet.com - Xoops for Vietnamese


tvn3015

Just popping in
Posted on: 2007/12/4 8:11
tvn3015
tvn3015 (Show more)
Just popping in
Posts: 53
Since: 2007/4/18
#25

mxdirectory error in uploading logo

I submit my listings and try to upload pics for logo, the "logo.gif" is uploading file but "logo.jpg" and "logo.png" is error out with the following message:
Quote:
Only png, gif, or jpg !!!

And I was making sure that the logo size is within limit and the folder permision is right. Any suggestion?

TVN
http://www.XoopsViet.com - Xoops for Vietnamese


tvn3015

Just popping in
Posted on: 2007/10/6 9:55
tvn3015
tvn3015 (Show more)
Just popping in
Posts: 53
Since: 2007/4/18
#26

Fatal error! Please Help?

Today I upgrade and installed the following
- upgrade to news 1.56
- installed Tinyeditor 1.0 final
- Upgrade to frameworks 1.2
After the upgrade and installed, I tried to submit a post on my newbb forum all I got is just a blank page (same for the article module). I turned on the debug mode and I got the following fatal error. Could someone please help me how to solve this error.

The error is:
Fatal error: Call to undefined function: getinstance() in /home/latvatli/public_html/doanketviet/Frameworks/xoops22/class/xoopsform/formeditor.php on line 30

I am using XOOPS 2.0.17

Thank you!

TVN
http://www.XoopsViet.com - Xoops for Vietnamese


tvn3015

Just popping in
Posted on: 2007/7/26 5:55
tvn3015
tvn3015 (Show more)
Just popping in
Posts: 53
Since: 2007/4/18
#27

Re: Blank page or page not displayed properly? Please Help!

thank you, got it working now!
http://www.XoopsViet.com - Xoops for Vietnamese


tvn3015

Just popping in
Posted on: 2007/7/26 5:11
tvn3015
tvn3015 (Show more)
Just popping in
Posts: 53
Since: 2007/4/18
#28

Re: Blank page or page not displayed properly? Please Help!

When I turn on the "DEBUG MODE" I got the following fatal error:

Fatal error: Cannot instantiate non-existent class: xoopsmodulehandler in /home/latvatli/public_html/doanketviet/modules/xbs_tags/include/defines.php on line 72

I think the problem is with the XBS_tags module. Please post any suggestion or how to fix this problem.

Thanks,

TVN
http://www.XoopsViet.com - Xoops for Vietnamese


tvn3015

Just popping in
Posted on: 2007/7/25 4:31
tvn3015
tvn3015 (Show more)
Just popping in
Posts: 53
Since: 2007/4/18
#29

Blank page or page not displayed properly? Please Help!

Everything was working ok until this moring I found out that if I try to access the following link it will give me either a blank or improperly page
- http://www.doanketviet.com/user.php
- http://www.doanketviet.com/register.php
- http://www.doanketviet.com/user.php#lost

Any suggestion to resolve this issues would appreciated very much

Thanks,

TVN
http://www.XoopsViet.com - Xoops for Vietnamese


tvn3015

Just popping in
Posted on: 2007/7/22 22:03
tvn3015
tvn3015 (Show more)
Just popping in
Posts: 53
Since: 2007/4/18
#30

Re: Xoops 2.0.16 Custom block question?

Thank you all for the reply, I got it working now by using the HTML code rather than the BB/xoops code.

TVN
http://www.XoopsViet.com - Xoops for Vietnamese



TopTop
« 1 2 (3) 4 5 »