1
elrohir
Re: Add entry to user menu based on group
  • 2007/9/2 16:05

  • elrohir

  • Just popping in

  • Posts: 37

  • Since: 2006/9/14


hehe, that too...

How many things is it possible to get wrong with like seven lines of code? XD

At least it works now



2
elrohir
Re: Add entry to user menu based on group
  • 2007/9/2 15:16

  • elrohir

  • Just popping in

  • Posts: 37

  • Since: 2006/9/14


well, I f**kd up yet again.
I added the wrong thing to the editor in the adminitrative menu, and now I get

Quote:

This page cannot be displayed due to an internal error.

You can provide the following information to the administrators of this site to help them solve the problem:

Error: Smarty error: [in db:system_block_user.html line 19]: syntax error: variable function call '$in_group' not allowed in if statement (Smarty_Compiler.class.php, line 1386)


I am looking through the template files on the server, but they all look the same as they did before I added the extra bits. The stuff I added was:

<{if $in_group('Styret')}>
[
a link c+v'd from the lines above]
<{/if}>



// Edit //
it's working again. I don't think I actually did anything, but there you are. it works. YAY!



3
elrohir
Re: Add entry to user menu based on group
  • 2007/9/2 14:41

  • elrohir

  • Just popping in

  • Posts: 37

  • Since: 2006/9/14


Thanks, that's just what I'm looking for. Apparently my search terms were a bit too specific...

ta
-E



4
elrohir
Add entry to user menu based on group
  • 2007/9/2 13:39

  • elrohir

  • Just popping in

  • Posts: 37

  • Since: 2006/9/14


So I made a few new groups, and I want one of them, with group id 4, to have an extra link anywhere in their user menu.
The only way I see of doing anything similar with the smarty tags is something like
<{if $xoops_isadmin}>
    <
class="menuTop"href="link">
        
Link
    
</a>
<{/if}>


But that's for administrators, and I most definitely don't want to make them all admins :/

is there something in the smarty/php that could check for a group id? Say, like

<{if $xoops_isgroup(4)}>
    <
class="menuTop"href="link">
        
Link
    
</a>
<{/if}>


or something?

Cheers
-E



5
elrohir
Re: adding poll
  • 2007/4/28 10:56

  • elrohir

  • Just popping in

  • Posts: 37

  • Since: 2006/9/14


Well, I installed a poll module, and it seems to be working. It was obvious, really... I just wasn't sure whether or not installing it would make it work with CBB.

What I want to do now is remove the time limit completely. If you have any ideas, please post them here.

Thanks,
-E



6
elrohir
Removing expiration from polls
  • 2007/4/26 20:54

  • elrohir

  • Just popping in

  • Posts: 37

  • Since: 2006/9/14


I have installed several modules, including one of the poll modules - XOPPSpoll blind. Now I see that yes, you can, as "advertised" set the results to only show when the poll has expired. but you can't have a poll without a limit.

I want that to be the default - without a limit - simply because of the confusion between the time formats (here we use ss/mm/yyy) and the constants in XOOPS (even after I have been through and edited everything, while translating it to norwegian) still conflict.

And there's no point in having a poll that expires all the time.

So is there a way to turn the expiration feature off?

Thanks,
-E



7
elrohir
adding poll
  • 2007/4/24 18:10

  • elrohir

  • Just popping in

  • Posts: 37

  • Since: 2006/9/14


When I want to add a poll in the CCB forum, I get an error about the poll module being missing.

I see there are poll/survey modules in the module list. When I install them, will they automatically be usable by the forum, or is there something special I have to do to be able to use them in CBB rather than just on the site in general?

Thanks,
-E



8
elrohir
Re: recover database password from filesystem
  • 2007/4/2 23:17

  • elrohir

  • Just popping in

  • Posts: 37

  • Since: 2006/9/14


I can only begin to guess what that means... Sure, have your snicker, or an outright laugh if you feel inclined. I don't care. I'm back in phpmyadmin. {{stuck-up}}



9
elrohir
Re: recover database password from filesystem
  • 2007/4/2 21:46

  • elrohir

  • Just popping in

  • Posts: 37

  • Since: 2006/9/14


it does. Thanks. (bloody obviousl place for it, too...)



10
elrohir
recover database password from filesystem
  • 2007/4/2 20:58

  • elrohir

  • Just popping in

  • Posts: 37

  • Since: 2006/9/14


Ok, so don't laugh. Even if it's funny.

I have lost my MySQL password (the hosting is one.com, and they don't let you change the database password, or have more than one MySQL user. of course it's a random string, and therefore impossible to remember.

It must be stored somewhere in the file system, since it couldn't be in a database :/

I have access to the files (yes, one.com does give you limited ftp access... ) and would like the password for some stuff I'm developing on the side. Where can I find it?

Thanks,
-E




TopTop
(1) 2 3 4 »



Login

Who's Online

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


Members: 0


Guests: 153


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