11
wodnick
Re: Can i find out the user and pass for the database somehow?
  • 2007/1/23 20:11

  • wodnick

  • Just popping in

  • Posts: 32

  • Since: 2006/12/30


Hi there!

Look for the file -> /mainfile.php
Then find strings shown below - there is an answer :)

// Database Username
// Your database user account on the host
define('XOOPS_DB_USER', 'user');

// Database Password
// Password for your database user account
define('XOOPS_DB_PASS', 'pass');

// Database Name
// The name of database on the host.
define('XOOPS_DB_NAME', 'dbasename');

regards,
wodnick
========
Pozycjonowanie



12
wodnick
Re: Simple tinyd SEO trick
  • 2007/1/21 19:17

  • wodnick

  • Just popping in

  • Posts: 32

  • Since: 2006/12/30


Hi.

I'm happy for that :)

I forgot to write:
as you see it in Smarty code, this trick is usefull regardless of number tinyd instances, because code ($xoops_dirname|truncate:5:"")!='tinyd'} "detect" all of them: tinyd0, tinyd1, etc.

regards,
wodnick
========
Pozycjonowanie



13
wodnick
Simple tinyd SEO trick
  • 2007/1/21 18:12

  • wodnick

  • Just popping in

  • Posts: 32

  • Since: 2006/12/30


Hi.

For one of my site I have to find a way to change and manage by hand all SEO data inside page header (title, keywords, descriptions).
This site is very static, so almost all information is displayed by tinyd module (Tiny Content hacked to multiple instances).

Tinyd module change only page title by default, simple by adding module name to page title defined to whole site (b.e. My Page Title - James Bond).

Trick is very simple:
1. Find and group together all SEO related data in your default theme file (title, keywords, description).
2. Insert simple Smarty code before and after this data:
<{if ($xoops_dirname|truncate:5:"")!='tinyd'}> 
<
meta name="keywords" content="<{$xoops_meta_keywords}>" />
<
meta name="description" content="<{$xoops_meta_description}>" />
<
title><{$xoops_sitename}> - <{$xoops_pagetitle}></title>
<{/if}>

3. Put all SEO code into "Common HTML headers" field in admin -> module preferences. All code have to be complete and valid, b.e.
<title>James Bond favorite drinks</title>
<
meta name="keywords" content="James, Bond, martini, vodka, shake" />
<
meta name="description" content="I’m Bond, James Bond an I like only shacked martini." />


I know that this method is stupid like, but works :)

regards,
wodnick

ps. This trick change default meta tags order, but I’m not sure is this _really_ does meter.

ps. 2 I know, my english... heh... ;)
========
Pozycjonowanie



14
wodnick
Re: After login, i would users on domain name - not index.php
  • 2007/1/11 19:50

  • wodnick

  • Just popping in

  • Posts: 32

  • Since: 2006/12/30


Hi there!

This is set in system_block_login.html template.
Administration -> Templates -> Your template -> Administration[list] <- click on it -> system_block_login.html -> edit

Change from:
<input type="hidden" name="xoops_redirect" value="<{$xoops_requesturi}>" />

to:
<input type="hidden" name="xoops_redirect" value="/" />


One big disadvantage of this change is always redirecting to main page, regardless of page user decide to login.

regards,
wodnick
========
Pozycjonowanie



15
wodnick
Re: Moving xoops from local machine to Sourceforge.net
  • 2007/1/7 22:14

  • wodnick

  • Just popping in

  • Posts: 32

  • Since: 2006/12/30


Hi Scionwest.

Bad news...
https://sourceforge.net/docs/E07/en/#permissions
"All content on the project web servers that needs to be written by the project web servers must be world-writeable and be placed under the /tmp/persistent directory (create a subdirectory for use by your project files)."

"Place the data in the /tmp/persistent directory, accessible from and shared between the project shell and web servers. Projects should create their own subdirectory in /tmp/persistent and make frequent backups of the data. We strongly discourage the use of file-writing applications with our services, due to the security implications of our shared web environment. Users of applications in the project web services that require file-writing are strongly encouraged to look for alternatives that can use a MySQL database for data storage instead."

Make directory templates_c inside insecure directory mentioned above, then change settings in common.php file from:
define("XOOPS_COMPILE_PATH", XOOPS_ROOT_PATH."/templates_c");
to:
define("XOOPS_COMPILE_PATH", "/tmp/persistent/templates_c");

Do the same with /upload and /cache directory.
define("XOOPS_UPLOAD_PATH", XOOPS_ROOT_PATH."/uploads");
define("XOOPS_CACHE_PATH", XOOPS_ROOT_PATH."/cache");

For security reason, insert something between /tmp/persistent and directory like templates_c, b.e. /tmp/persistent/mysecretdirectory/templates_c/

regards,
wodnick

ps. I'm going to sleep now, but early morning this page must work!!! ;)
========
Pozycjonowanie



16
wodnick
Re: Moving xoops from local machine to Sourceforge.net
  • 2007/1/7 20:03

  • wodnick

  • Just popping in

  • Posts: 32

  • Since: 2006/12/30


Hi Scionwest!

Set templates_c folder permision to 777 (write to all).
http://winscp.net/eng/docs/task_properties
http://winscp.net/eng/docs/ui_properties
Tick all RWX 9 checkboxes.

Voila ;)

regards,
wodnick
========
Pozycjonowanie



17
wodnick
Re: Moving xoops from local machine to Sourceforge.net
  • 2007/1/7 19:31

  • wodnick

  • Just popping in

  • Posts: 32

  • Since: 2006/12/30


Hi Scionwest!

First, we have to detect what's wrong.

So, go to the phpMyAdmin and look for "xoops_config" table inside Your database.
Then, find record where "conf_name" field value is "debug_mode". Change "conf_value" to 1.

Report what error is displaying on Your site, after enabling PHP Debugging.
If there is no error, set this value to 3 (Smarty Debugging).

Value 0 is for error reporting disabled, 2 for SQL Debug.

regards,
wodnick
========
Pozycjonowanie



18
wodnick
Re: Moving xoops from local machine to Sourceforge.net
  • 2007/1/7 18:51

  • wodnick

  • Just popping in

  • Posts: 32

  • Since: 2006/12/30


Hi Scionwest!

Quote:
Now the site actually loads (I think), I don't get any errors but the webpage is blank.

Is this something else that I have done wrong?


Page works well, look at:
http://tbgengine-suite.sourceforge.net/tbg/admin.php

But something is wrong with displaying it.
Empty all content of templates_c folder.

Did You set all files / folders permission according to XOOPS needs?
World writeable: uploads/, cache/ and templates_c/ and the file mainfile.php locked to write.

regards,
wodnick
========
Pozycjonowanie



19
wodnick
Re: Moving to new host problems
  • 2007/1/7 10:36

  • wodnick

  • Just popping in

  • Posts: 32

  • Since: 2006/12/30


Hi there.

Make some "mistake" in index.php file, b.e. change first line of code to:
include "mainfile_fake.php";
so in error communicate You can see right path to files in new file system.

regards,
wodnick
========
Pozycjonowanie



20
wodnick
Re: Moving xoops from local machine to Sourceforge.net
  • 2007/1/7 10:22

  • wodnick

  • Just popping in

  • Posts: 32

  • Since: 2006/12/30


Hi there.

Now can You see bright light at the end of the tunnel.:)

Check twice if You wrote right data to mainfile.

define('XOOPS_DB_HOST', 'mysql4-t');
define('XOOPS_DB_USER', 't186249admin');
define('XOOPS_DB_PASS', 'your_password_to_database'); (not to Xoops!!!)
define('XOOPS_DB_NAME', 't186249_xoops2');

After You run this XOOPS installation, please, change the database name and reflect this in mainfile.

You just exposed Your site to hacker by publishing this - project name and letter are public, so only wall to hackers is Your database password.

regards,
wodnick
========
Pozycjonowanie




TopTop
« 1 (2) 3 4 »



Login

Who's Online

119 user(s) are online (86 user(s) are browsing Support Forums)


Members: 0


Guests: 119


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