21
tvn3015
Re: Sharing username and password across multiple XOOPS sites?
  • 2008/4/22 5:43

  • tvn3015

  • Just popping in

  • Posts: 53

  • Since: 2007/4/18


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



22
tvn3015
Sharing username and password across multiple XOOPS sites?
  • 2008/4/22 5:20

  • tvn3015

  • Just popping in

  • Posts: 53

  • Since: 2007/4/18


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



23
tvn3015
Re: mxdirectory error in uploading logo
  • 2007/12/10 18:08

  • tvn3015

  • Just popping in

  • Posts: 53

  • Since: 2007/4/18


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



24
tvn3015
Re: mxdirectory error in uploading logo
  • 2007/12/5 5:09

  • tvn3015

  • Just popping in

  • Posts: 53

  • Since: 2007/4/18


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



25
tvn3015
mxdirectory error in uploading logo
  • 2007/12/4 8:11

  • tvn3015

  • Just popping in

  • Posts: 53

  • Since: 2007/4/18


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



26
tvn3015
Fatal error! Please Help?
  • 2007/10/6 9:55

  • tvn3015

  • Just popping in

  • Posts: 53

  • Since: 2007/4/18


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



27
tvn3015
Re: Blank page or page not displayed properly? Please Help!
  • 2007/7/26 5:55

  • tvn3015

  • Just popping in

  • Posts: 53

  • Since: 2007/4/18


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



28
tvn3015
Re: Blank page or page not displayed properly? Please Help!
  • 2007/7/26 5:11

  • tvn3015

  • Just popping in

  • Posts: 53

  • Since: 2007/4/18


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



29
tvn3015
Blank page or page not displayed properly? Please Help!
  • 2007/7/25 4:31

  • tvn3015

  • Just popping in

  • Posts: 53

  • Since: 2007/4/18


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



30
tvn3015
Re: Xoops 2.0.16 Custom block question?
  • 2007/7/22 22:03

  • tvn3015

  • Just popping in

  • Posts: 53

  • Since: 2007/4/18


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 »



Login

Who's Online

229 user(s) are online (155 user(s) are browsing Support Forums)


Members: 0


Guests: 229


more...

Donat-O-Meter

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

Latest GitHub Commits