1861
trabis
Re: HELP! Changed server and site won't display URGENT!!!!!
  • 2007/12/4 13:54

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


I would take another look at that mainfile.php to see if the database connetion is ok and if the last lines that define groups are as they were (0,1,2). If so I would go directly to the database table configs and enable the flag of the debugger. Was there a change in the php version? Could be a compatible issue with some modules or maybe not, I bet it has something to do with group permissons. Good luck!



1862
trabis
Re: How to show blocks only in System Module?
  • 2007/12/4 1:51

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Install smartprofile module! It will give you extra fields for the profiles (if needed) and the option to add blocks will become availiable!

<!-- EDIT Tom got it first, eheh -->



1863
trabis
Re: Help, Login recognizes you, but doesn't give permissions - solved
  • 2007/12/4 1:42

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


I have one for you. Check you database and repare it. Probably you have a damaged SESSIONS table. It happened to me a couple of times. The login is done but not recorded and with no session you are doomed to logout!



1864
trabis
Re: Yogurt Social Network Service
  • 2007/12/4 1:33

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


I suico,
Your site is down, it has been all day. Anyway, I already have your module for long time and have been learning a lot studing your code. It´s very nice work, outside and inside. Many thanks and congratulations!

Ps: Arent´t you brazilian? Did not find a portuguese translation in it, weird....



1865
trabis
Re: username as uid ?
  • 2007/12/4 1:25

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Hi again, I tried to do that and it can be done but there is a problem.
The images and Url's in the userinfo.php and userinfo.html are relative and will be relative to the new URI so they will break. Changes must be made in this two files like for example adding <{xoops_url}> or XOOPS_ROOT_PATH here and there.
I can´t find another way around this so the final result would be an ugly hack.

If anyone Knows a way around this please post here. I took a look into the SEO hack for CBB and tried to overwrite global variables the same way but it did not solve this problem. I guess it's the browser that transforms this relative URL´s, right?



1866
trabis
Re: username as uid ?
  • 2007/11/25 3:09

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


One minute please



1867
trabis
Re: username as uid ?
  • 2007/11/25 2:25

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Hi,
The ideia is not type
http://www.mysite.com/users/?link=admin

but
http://www.mysite.com/users/admin

you will get redirected to your userinfo the same way.

I did not understand what you want.

You don´t want your users to notice they were redirected, maintaing the "http://www.mysite.com/users/admin" in the browser?
(in this case the htaccess should be modified to point to userinfo.php and userinfo.php would have to be hacked
The R should be taken away to avoid rewriting the url:
[QSA,L]
)

Or

You want to every user links on the site to be changed to this new url?
(not shure here, guess it should require hacking a core file or all modules installed or both :( )


Yes, a module can be made to ask a url for users to choose or you can hack XOOPS by adding an extra field in their profile form, an extra field in users database and adding some lines in the users class. You can also use smartprofile for that but there must have some checkings to prevent special characteres and equal data.



1868
trabis
Re: failed open file
  • 2007/11/24 18:31

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Probably is the Cache folder,
CHMOD it to!



1869
trabis
Re: username as uid ?
  • 2007/11/24 17:56

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Ok, lets do it:

Create a folder in your root and name it "users":

Create a .htaccess file under the "users" folder and paste this lines:

RewriteEngine on
RewriteCond 
%{REQUEST_URI} ^(^/users/)(.*)$
RewriteRule ^([^link].*)$ https://xoops.org/users/?link=%2 [R,QSA,L]


Were "www.xoops.org" should be changed to fit your site

Create now a index.php file under the "users" folder and paste this lines:

<?php
include("../mainfile.php");
isset(
$_GET['link'])? $uname $_GET['link'] : $uname '';

if (
$uname != ''){
    
$sqlsprintf("SELECT uid FROM %s WHERE (uname = '%s')",$xoopsDB->prefix("users"), $uname);
    
$result $xoopsDB->queryF($sql);
    list(
$uid) = $xoopsDB->fetchRow($result);
    if (
$uid '0'){
        
$redirect_to XOOPS_URL.'/userinfo.php?uid='.$uid;
    } else {
        
$redirect_to XOOPS_URL.'/index.php';
    }
    
} else {
    
$redirect_to XOOPS_URL.'/index.php';
}

header('location: '.$redirect_to);
?>


OK, it will work now!

Atention: Your unames should not have special characters, spaces, etc.



1870
trabis
Re: username as uid ?
  • 2007/11/24 16:02

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


sarahmx:
Quote:

Should be careful, this way you migth get a conflict with user names and existing folders.

You should create a extra folder just for that and then follow Dave´s sugestion.

Ex: https://xoops.org/users/saramax/
Ex: https://xoops.org/blogs/the_saramax_blog/

etc,etc,




TopTop
« 1 ... 184 185 186 (187) 188 189 190 »



Login

Who's Online

51 user(s) are online (26 user(s) are browsing Support Forums)


Members: 0


Guests: 51


more...

Donat-O-Meter

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

Latest GitHub Commits