11
StarShaper
Re: Hostname of the database server - Unable to connect to database...
  • 2005/11/16 14:54

  • StarShaper

  • Just popping in

  • Posts: 29

  • Since: 2005/7/25


Quote:

m0nty wrote:
is your vbulletin board running on the same db name, username & password as the XOOPS 1? all i can suggest is to see if resetting the password of the user account for MySQL works.. i do know that MySQL 4.1 uses a whole new hashing method for passwords.. just a possibility, no harm in trying it..


Yes, my vB Board is running on the same database. I figured out that there is the same problem with another script like in xoops. Thx for you suggestion. I heard this too. I will check this out...



12
StarShaper
Re: Hostname of the database server - Unable to connect to database...
  • 2005/11/16 14:33

  • StarShaper

  • Just popping in

  • Posts: 29

  • Since: 2005/7/25


Hi m0nty!

Unfortunately this isn't responsible for my error message. I tried it with mysql4.domain.tld &http://mysql4.domain.tld. Additionally I deleted all files in the directories templates_c and cache. There is still the same error message .

As I already mentioned. I did the same hostname change to the config file of my vBulletin Board. And it works without any problems. The problem must be somewhere in XOOPS...



13
StarShaper
Hostname of the database server - Unable to connect to database...
  • 2005/11/16 13:57

  • StarShaper

  • Just popping in

  • Posts: 29

  • Since: 2005/7/25


Hi,

I have a problem with XOOPS 2.2.3. Until know my XOOPS Installation was running under MySQL 3.2. My Provider offered today MySQL 4 and I switched from Version 3.2 to 4.1.14.

According to the Provider instructions i had to change the Database Hostname from localhost to mysql4.domain.tld. I did this and have know the problem that XOOPS fails to connect to the database! The following error message occurs:

Quote:
This page cannot be displayed due to an internal error.

If you are the administrator of this site, please visit the XOOPS Troubleshooting Page for assistance.

Helpful infomation you should provide while asking for assistance:

Error [Xoops]: Unable to connect to database in file class/database/databasefactory.php line 34


I changed the database settings of my vBulletin Board in the "config.php" too. Without any problems! The Forum is running well. Is there another file I have to change except of the mainfile.php? Or is there a bug in the treatment of the hostname in XOOPS?

regards
starshaper



14
StarShaper
Re: News 1.4 - Can't edit news
  • 2005/9/2 16:09

  • StarShaper

  • Just popping in

  • Posts: 29

  • Since: 2005/7/25


I don't know exactly what you mean. This code fixes your problem with admin permissions. The name of the original poster will stay untouched as long as you don't set your name when you edit others articles.

bye



15
StarShaper
Re: News 1.4 - Can't edit news
  • 2005/9/2 15:00

  • StarShaper

  • Just popping in

  • Posts: 29

  • Since: 2005/7/25


I can confirm this bahavior. I just tested it. As long as you don't give everybody the right to edit articles the ADMIN can't also edit this articles. This is because it's hardcoded in this way.

If you want that ADMINS can always edit News insert a word into this code in submit.php (line 78):

if($xoopsModuleConfig['authoredit']==|| is_admin_group()) {
            
$tmpstory = new NewsStory(intval($_GET['storyid']));
            if(
is_object($xoopsUser) && $xoopsUser->getVar('uid')!=$tmpstory->uid() && !is_admin_group()) {
                
redirect_header(XOOPS_URL.'/modules/news/index.php'3_NOPERM);
                exit();
            }
        } else {    
// Users can't edit their articles
        
            
redirect_header(XOOPS_URL.'/modules/news/index.php'3_NOPERM);
            exit();
        }


The addition || is_admin_group() will allow admins to edit posts anytime. It doesn`t matter if the option in config is set yes or no.

This should solve your problem.

regards
starshaper



16
StarShaper
Re: Problem with myTutorials.
  • 2005/8/24 2:53

  • StarShaper

  • Just popping in

  • Posts: 29

  • Since: 2005/7/25


Quote:

m3zzr wrote:
I have a clean install of XOOPS (latest version 2.2)

I have uploaded the module and use the admin section to install it..

however, it does not seem to work..

firstly, any changes do not get saved when the save option is clicked, and it returns the following:

Notice [PHP]: Undefined variable: op in file modules/tutorials/admin/index.php line 1417


anyone help with this?

cheers


It's just a PHP Notice. This is not an error! Believe me, I tried MyTutorials 2.1b on XOOPS 2.2.X and it works. Honestly, MyTutorials is outdated. Old Code, doesn't have any editors, picture managers, PHP Classes and and and...

You have to activate Register Globals in your php.ini to get the module work. I have a fixed version on my computer which is an advanced MyTutorials Module (Sarch this forum and you will find it, but the version there needs register globals too) . I fixed several Bugs, removed the register globals issue and added lots of stuff. I know from the original Module developer that he will not continue MyTutorials Development!

However, after some time I figured out that there is a much better solution for this problem.

The News Script 1.4 from the XOOPS Developers is the ANSWER. MyTutorials is a module to publish tutorials. Basically it does the same as the News module, except that the news module is much better!

So I made a MOD of the News Script named Tutorials and it works like a charm. I will publish the module as soon as I find some time to write the english language files. If you are interested send a mail to jefersoncole at aol.com

cu



17
StarShaper
Re: Koivi in XOOPS 2.2 - anyone?
  • 2005/8/24 2:23

  • StarShaper

  • Just popping in

  • Posts: 29

  • Since: 2005/7/25


I would like to use Koivi with code tags. Koivi works fine with XOOPS 2.2.2 except of one issue. If you try to use the code Tag and write for example this piece of code you get some problems.

#include <iostream>


After reloading, Koivi automatically closes iostream. I would be grateful if maybe someone else knows a quick fix for this problem? Otherwise I will have to go through the Koivi Source Code to fix it...

regards
starshaper



18
StarShaper
Re: MyTutorials Extended & GeSHi Code Highlighter (optionally)
  • 2005/8/4 15:29

  • StarShaper

  • Just popping in

  • Posts: 29

  • Since: 2005/7/25


Fixed an annoying Bug. XOOPS removes trailing slashes due to database issues. This is very bad if you are using escape sequencies in your C++ or Java Code. Even if you add trailingslashes twice the code output is correct, but when you try to edit your text the trailing slashes are disappeared and will all be removed completely later. Now with this package you don't have this problems anymore

regards
starshaper



19
StarShaper
MyTutorials Extended & GeSHi Code Highlighter (optionally)

Hi,

i have made a Hack for MyTutorials 2.1b and a Plugin for GeSHi. The new Version of MyTutorials contains several Bugfixes, code impovements and a smart BBCODE Support with table tags, hide tags, align tags, div tags... You don't have to enter your text into a line like in Xoops. Just switch between two modes.

Take a look at the pictures:
menu
output

It has been testet with XOOPS 2.2 and PHP 5.

You can install only Geshi or MyTuturials - Extended or both.

And additionallay this Hack isn't just a simple hack. It comes with a fully automated Installer. Written in C++ it will detect your Xoops, install all components and patch automatically files (i.e. module.textsanitizer.php, style.css) which are necessary to highlight your code.

Pics:
Installer 1
Installer 2

Download-Link: Download WinRAR File

NOTE: The Download isn't forced! When you see cryptic signs you have to choose "Save as" MyTutorials - Extended.rar in your Browser menu or download it with a Download Manager like Flashget.

Enjoy!

BTW: Currently the installer is only available for Windows.



20
StarShaper
Re: XOOPS_ROOT_PATH
  • 2005/7/29 12:40

  • StarShaper

  • Just popping in

  • Posts: 29

  • Since: 2005/7/25


I got it -> .XOOPS_URL.




TopTop
« 1 (2) 3 »



Login

Who's Online

211 user(s) are online (140 user(s) are browsing Support Forums)


Members: 0


Guests: 211


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