71
onasre
comments number
  • 2007/3/24 3:34

  • onasre

  • Not too shy to talk

  • Posts: 150

  • Since: 2006/8/12


Hello

How can i control the number of Comments shown in diffrent modules ..
Whatever Hits You , Never was to Mess you , and Whatever Messed U , Never Was to Hit You.



72
onasre
Conuters inside Topic
  • 2007/3/10 7:07

  • onasre

  • Not too shy to talk

  • Posts: 150

  • Since: 2006/8/12


Hello

How can i set Counter for my Topics Visetor s , i have Html Enabled , and i used some Conters uses html and php codes for counting but when i use the Html code for show the Conter , the counter wont show after approve the Topic ..

is there any way to add counter to my Topics , I have see in other Forums guys Have Counter for thire signature,,
Whatever Hits You , Never was to Mess you , and Whatever Messed U , Never Was to Hit You.



73
onasre
Re: Demo user creation
  • 2007/3/8 22:56

  • onasre

  • Not too shy to talk

  • Posts: 150

  • Since: 2006/8/12


Quote:

stefan88 wrote:
You can edit 'edituser.php' file in XOOPS root and under

// If not a user, redirect
if (!is_object($xoopsUser)) {
    
redirect_header('index.php',3,_US_NOEDITRIGHT);
    exit();
}


add this:

// DEMO users can't edit account too
if ($xoopsUser->getVar('uname') == 'DEMO') {
    
redirect_header('index.php',3,_US_NOEDITRIGHT);
    exit();
}


where DEMO is your demo account user name. When user try to edit the account, he will get the message he don't have right to do it.

You can replace 'uname' with 'uid' and use the id of the demo account.



You the Man , thats works Just Cool , Thx a lot .

You shoud add this Hack to Module Hacks Forum
Whatever Hits You , Never was to Mess you , and Whatever Messed U , Never Was to Hit You.



74
onasre
Re: Demo user creation
  • 2007/3/8 6:08

  • onasre

  • Not too shy to talk

  • Posts: 150

  • Since: 2006/8/12


Quote:

skenow wrote:
Quote:

Peekay wrote:
The rule with XOOPS custom user groups is you can give them more - but not less - than registered users. So you can give a custom group 'Demo' access to a block that ordinary registered users cannot see. However, you cannot hide a block from the 'demo' group without hiding it from the 'registered users' group too.

The second problem is that wherever the demo user's name is shown - e.g. in the 'who's online' block, the user can click the link and edit their profile, including the password.

Best solution I can think of is to add a conditional statement to the Smarty template for 'edituser.php' so that the 'change password' field is only shown if the user is NOT in the user group 'demo'.


I'm going to differ on this a bit. The limitation is not what is assigned to the group, but which groups users are in. By default, when a user registers, they are added to the Registered Users group and have all rights assigned to that group. If you add the user to another group like 'Demo', that user will have the rights of the Registered Users group and the Demo group.

If you remove that user from the Registered Users group (which you can do), that only leaves them with the rights assigned to the Demo group.

Seehttp://xoops-tips.com/news-article.storyid-37.htm


Thats not Soluation , you here just disable a certain user from Registered Group to A demo Group and this not the Quastion .. the Quastion is to make Demo user who can view every thing on the site and wont be able to edit any thing in the site included profile , password , his comment , or posts..

the best think is what the Guys above Said..

1- Creat Demo Groub
2- Edit user Template to Excute the Demo user from some Opition ..

We need some one Hack that Template ,
Whatever Hits You , Never was to Mess you , and Whatever Messed U , Never Was to Hit You.



75
onasre
it sound Crazy but it could be
  • 2007/3/2 6:16

  • onasre

  • Not too shy to talk

  • Posts: 150

  • Since: 2006/8/12


Ok i think i'm talking little Crazy here , just this idea it could happen .. the idea is >>

what if there some how way to limit the Bandwidth for each user Viset the Site !!!

like each user come viset my site he or she will be limited to 1GB bandwidth Per Day .. and use user IP to detect he/she ID..

it sound Crazy but it could happen
Whatever Hits You , Never was to Mess you , and Whatever Messed U , Never Was to Hit You.



76
onasre
Dumb Quastion about Module-wide Cache
  • 2007/2/27 6:32

  • onasre

  • Not too shy to talk

  • Posts: 150

  • Since: 2006/8/12


Hello

what is Module-wide Cache ? i have this opition on my settings for each Module i install , you can choose no Cashe or 30 seconds ... Etc

what this opition means and how it usful for XOOPS Site running Video files and using alot Bandwidth

thx
Whatever Hits You , Never was to Mess you , and Whatever Messed U , Never Was to Hit You.



77
onasre
Re: Demo user creation
  • 2007/2/15 19:57

  • onasre

  • Not too shy to talk

  • Posts: 150

  • Since: 2006/8/12


Listen Man take your time and sorry that you having Flu but Remember whenever you get Flu this mean you will never have the same Flu again this what i have been told
Whatever Hits You , Never was to Mess you , and Whatever Messed U , Never Was to Hit You.



78
onasre
Re: x_movie wont upload
  • 2007/2/15 19:54

  • onasre

  • Not too shy to talk

  • Posts: 150

  • Since: 2006/8/12


Have you looked in the Module Config Options

see the line Movie Upload path and write the folder name that you want the uploading movie goes to , by default it set to /uploads/ .... so look in your Ftp folders in this Folder (uploads) exists or not and u find it CHmd it to 777 if dost exist Creat it and Chmd it to 777 the Folder has to be in same place where mainfile.php located


2- Make sure you had limited the size of the video in the opition Maximum upload size

try upload very small Video file and see the Result , and remember each file you upload you will find it in the uploads folder...
Whatever Hits You , Never was to Mess you , and Whatever Messed U , Never Was to Hit You.



79
onasre
Re: Demo user creation
  • 2007/2/13 5:00

  • onasre

  • Not too shy to talk

  • Posts: 150

  • Since: 2006/8/12


would all agree this Shoud be a new request for new XOOPS update
Whatever Hits You , Never was to Mess you , and Whatever Messed U , Never Was to Hit You.



80
onasre
Re: Demo user creation
  • 2007/2/12 19:44

  • onasre

  • Not too shy to talk

  • Posts: 150

  • Since: 2006/8/12


Quote:

Peekay wrote:

Best solution I can think of is to add a conditional statement to the Smarty template for 'edituser.php' so that the 'change password' field is only shown if the user is NOT in the user group 'demo'.



Yah Man thats what i 'm talking about .. but i dont know how to creat the code i'm not php Expert
Whatever Hits You , Never was to Mess you , and Whatever Messed U , Never Was to Hit You.




TopTop
« 1 ... 5 6 7 (8) 9 10 11 ... 13 »



Login

Who's Online

159 user(s) are online (95 user(s) are browsing Support Forums)


Members: 0


Guests: 159


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