1
balsimar
Re: Upgrading to 2.0.13.1 from 2.0.9.2
  • 2006/7/10 21:11

  • balsimar

  • Just popping in

  • Posts: 13

  • Since: 2005/11/30


Quote:

davidl2 wrote:
Ah ha!

Well in that case, you first need to download Xoops-2.0.9.2-to-2.0.10.zip

And then:

a) Backup
b) Run the 2.0.9.2 -> 2.0.10 update
c) Follow the previous post


lol Thanks. Much appreciated. :)



2
balsimar
Re: Upgrading to 2.0.14 from 2.0.13.1
  • 2006/7/10 20:41

  • balsimar

  • Just popping in

  • Posts: 13

  • Since: 2005/11/30


Oops, that was my fault... I'm running 2.09.2 and looking to upgrade. Sorry for the confusion.



3
balsimar
Upgrading to 2.0.13.1 from 2.0.9.2
  • 2006/7/10 20:18

  • balsimar

  • Just popping in

  • Posts: 13

  • Since: 2005/11/30


Yes, I know there is no direct upgrade between these two versions, that's why I've been stuck where I am.

However, is there an easy way to do a fresh install of 2.0.13.1 and migrate *ONLY* the accounts?

I don't care about saving settings or anything to do with templates, I don't care about saving post history... I just don't want to have to make people create accounts on the website again.

Any suggestions?



4
balsimar
Re: Get users groups?
  • 2006/6/21 20:23

  • balsimar

  • Just popping in

  • Posts: 13

  • Since: 2005/11/30


Quote:

Bender wrote:
Does this thread maybe help?

$xoops_isadmin, $xoops_isuser, but $xoops_<custom group>?


wow that looks like it will work perfect!

Thanks much.



5
balsimar
Get users groups?
  • 2006/6/21 18:26

  • balsimar

  • Just popping in

  • Posts: 13

  • Since: 2005/11/30


Hi,

I'm trying to determine a users groups in my theme so that specific elements can be visible or not based on group permission.

The problem I have, is whenever I try and access $xoopsUser the result is a blank page.

Here is what I'm attempting:

<{if $xoops_isuser}>
        <{
php}>
             
$Groups $xoopsUser->getGroups();
        <{/
php}>
<{/if}>


Theoreticly, this should produce an array ($Groups) as long as the user is logged in, but in reality it's breaking my theme. (white page) If I remove $Groups = $xoopsUser->getGroups(); and put anything else in there, such as static text, it works exactly as I expect... the text is display as long as I'm logged in.

Is there a trick I need to use to have access to $xoopsUser, or an alternative 'theme approved' method of determining specific group access?



6
balsimar
Re: Is user logged in?
  • 2006/6/21 18:14

  • balsimar

  • Just popping in

  • Posts: 13

  • Since: 2005/11/30


This should work.

<{if $xoops_isuser}>
    
show this
<{/if}>



7
balsimar
Re: Group permission check in theme.html?
  • 2006/6/17 1:17

  • balsimar

  • Just popping in

  • Posts: 13

  • Since: 2005/11/30


Quote:

msdana wrote:
uhmmm, no. You don't have the exclamation point that I clearly pointed out and noted in my first post.

Quote:
<{if !$xoops_isuser}>


Again, try that, it may work if you put the exclamation point in there.


no... you do realize what that does, right?

!$xoops_isuser ... means the same as "$xoops_isuser does not exist".

This has no bearing on the fact that I can't seem to use $xoopsUser in the theme file.



8
balsimar
Re: Group permission check in theme.html?
  • 2006/6/16 22:58

  • balsimar

  • Just popping in

  • Posts: 13

  • Since: 2005/11/30


Quote:

msdana wrote:
Based on themes I have done, I use this:

Quote:
<{if $xoops_isadmin}> and <{if !$xoops_isuser}>


Notice the exclamation point.

I apologize in advance if it doesn't work for you, but it does work for me when hard coding the login/register information in the theme.html.

HTH


Yes, I have that part, thank you. I'm needing explicit group memberships as well. I have items outside of a block that I want to be visible, conditional on specific group membership.

I can't seem to get $xoopsUser to work in the theme, when I access it I get a white page.. Here is an example of code that breaks the page:

<{if $xoops_isuser}>
        <{
php}>
                
$Groups $xoopsUser->getGroups();
        <{/
php}>
<{/if}>



9
balsimar
Re: Group permission check in theme.html?
  • 2006/6/16 22:33

  • balsimar

  • Just popping in

  • Posts: 13

  • Since: 2005/11/30


That does help! Thanks.

Only problem I see now, is I don't seem to have access to $xoopsUser. Everytime I try to use it, I get a white page.



10
balsimar
Group permission check in theme.html?
  • 2006/6/16 18:36

  • balsimar

  • Just popping in

  • Posts: 13

  • Since: 2005/11/30


Hi!

I'm working on modifing a theme (obscene_v3) to fit my needs. This theme includes a top nav bar, which is perfect. However, I want to add a permissions check for the nav elements.

Here is the current code in the theme:
<td><table id="obNav" cellspacing="0">
          <
tr>
            <
td class="obNavWidth" ><a href="<{$xoops_url}>/">HOME</a></td>
            <
td class="obNavWidth" ><a href="<{$xoops_url}>/modules/wiwimod/">INFORMATION BOOTH</a></td>
            <
td class="obNavWidth" ><a href="<{$xoops_url}>/modules/wowroster/" >ROSTER</a></td>
            <
td class="obNavWidth" ><a href="<{$xoops_url}>/modules/minidkp/">DKP</a></td>
            <
td class="obNavWidth" ><a href="<{$xoops_url}>/modules/minibanker/">BANK</a></td>
            <
td class="obNavWidth" ><a href="<{$xoops_url}>/modules/xoopsgallery/">GALLERY</a></td>
            <
td class="obNavWidth" ><a href="<{$xoops_url}>/modules/newbb/">FORUMS</a></td>
            <
td class="obNavWidth" ><a href="<{$xoops_url}>/modules/miniraids/">RAIDS</a></td>
            <
td class="obNavWidth" ><a href="<{$xoops_url}>/modules/liaise/">GUILD APPLICATION</a></td>
          </
tr>
      </
table></td>


Basically, I want to hide things like the RAIDS link from Anonymous and registered users. and only show the "GUILD APPLICATION" link to registered users.

Obviously, I could do this with PHP using the group data from userinfo, however I can't seem to break out into php code to do any work. (The theme just prints the code, rather than process it)

Is there any way I can do what I want to do?




TopTop
(1) 2 »



Login

Who's Online

168 user(s) are online (134 user(s) are browsing Support Forums)


Members: 0


Guests: 168


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