11
tdickson
Re: group permissions
  • 2005/12/19 23:38

  • tdickson

  • Just popping in

  • Posts: 26

  • Since: 2005/9/26


Thanks dave,
I'm still confused on how to identify the group.

I endup with the same results as user 123456
1 User is not in the group


What is the correct syntax to use here?
if ($in_group) {
echo "User is in the group\n";
} else {
echo "User is not in the group\n";
}

if I am calling up group 1 how would it look?
or group2?



12
tdickson
group permissions
  • 2005/12/19 22:07

  • tdickson

  • Just popping in

  • Posts: 26

  • Since: 2005/9/26


I am working on a local intrantet and what I would like is to write a page in PHP using if statements that show certain pages depending on what group the user is logged onto.

Let say we have group 1, 2, and 3

I want one link on the main menu that links to a PHP based page that says if group1 include group1.html, if group2 include group2.html, and if group3 include group3.html

the html pages will be changed weekly so I would like to use the include commands.

Is there a module that does this kind of work? or more importantly... is there a group call I can use? such as the <{if $block.admin}>?

thanks for any help you could shed



13
tdickson
Re: Xoops Authentication system (LDAP)
  • 2005/12/17 21:08

  • tdickson

  • Just popping in

  • Posts: 26

  • Since: 2005/9/26


thanks for your hard work! I look forward to the results. As of now, your current hack works beautifuly.



14
tdickson
Re: Xoops Authentication system (LDAP)
  • 2005/12/13 19:19

  • tdickson

  • Just popping in

  • Posts: 26

  • Since: 2005/9/26


We await your auth hack with syncronization with great suspense
I really appreciate your work here, and look forward to this release. Do you have a date yet? thanks!



15
tdickson
multiple domains
  • 2005/11/4 16:12

  • tdickson

  • Just popping in

  • Posts: 26

  • Since: 2005/9/26


I have our users using a subdomain:
members.mydomain.com
but I want to add the actual url to the login:
http://www.mydomain.com/members

I've run across a few modules that call the www. subdomain automatically and thus break. (one of them being pical)

I found it somewhere in here once upon a time and cannot for the life of me find it again.

basically I want it to be possible to log in from the www.mydomain.com/members and access the site. At this point if they go there they login, but once a module calls up the defined domain configuration of members.mydomain.com they have to relogin. Thanks XooPSters!!! May the community live on! :)



16
tdickson
misalighned URL
  • 2005/10/1 19:40

  • tdickson

  • Just popping in

  • Posts: 26

  • Since: 2005/9/26


For some reason my pical module is pulling a different URL then the rest of my modules and I can't figure out where it is.


When calling forms (as in submitting an event or jumping to a date) it errors out because it is calling
http://members.domain.com/members/modules/pical....
instead of
http://members.domain.com/modules/pical.....


but this is only in pical? is this a global issue or am I missing something in the pical configuration.


In my mainfile.php I have it defined as follows when it does not work:

define('XOOPS_ROOT_PATH', '/members');
define('XOOPS_URL', 'http://members.domain.com');

If I change it to the following it works... but then login is wacked because they login to members.domain.com but then need to relogin when the domain switches to www.domain.com/members. HELP!!!

define('XOOPS_ROOT_PATH', '/members');
define('XOOPS_URL', 'http://www.domain.com/members');
Edit

I need to use the subdomain though because the host of our main site needs to call it up using a cname call in DNS.



17
tdickson
Real Name Tag
  • 2005/10/1 19:38

  • tdickson

  • Just popping in

  • Posts: 26

  • Since: 2005/9/26


In the PM module when writing it displays some useful tags (which are useful)... so that the message can be more dynamic and personal.

Useful Tags:
{X_UID} will print user id
{X_UNAME} will print user name
{X_UEMAIL} will print user email
{X_UACTLINK} will print user activation link

Does anyone know the tag to display the real name?
I have the username set up to be lastname then firstname to make it more organized in my lists. the real name shows the name firstname lastname, and this is the tag I would like to use in my messages if possible. Thanks!



18
tdickson
Re: Personal Messaging Block?
  • 2005/10/1 8:42

  • tdickson

  • Just popping in

  • Posts: 26

  • Since: 2005/9/26


You absolutely rock!
I was looking at this one for hours and couldn't figure it out. My boss just kept saying... get it done, it's a feature we need. And yeah, I was sweating so I really appreciate it! Hat's off to you!
I wish there was a way to integrate this into the build. I'm sure it's a feature everyone would want.



19
tdickson
Re: Personal Messaging Block?
  • 2005/9/30 16:31

  • tdickson

  • Just popping in

  • Posts: 26

  • Since: 2005/9/26


anyone?



20
tdickson
Re: Shoehorning a Personal Blog
  • 2005/9/26 19:41

  • tdickson

  • Just popping in

  • Posts: 26

  • Since: 2005/9/26


what module and or service are you using to write your blogs...
if you have an RSS or ATOM feed you can use XHLD which is a news module to display as many headers as you want.
Also, if you already have a blog published somewhere and you just want to grab the text you can use the #include command in one of the following types:

Server Side Includes (SSI):
<!--#include virtual="books.html"-->

PHP:
<?php include ('books.html'); ?>

Active Server Pages (ASP):
<!--#include virtual="books.html"-->

Cold Fusion (CF):
<cfinclude template="books.html">


it will grab the text from whatever file you put in there.




TopTop
« 1 (2) 3 »



Login

Who's Online

125 user(s) are online (96 user(s) are browsing Support Forums)


Members: 0


Guests: 125


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