11
robotgod2000
Re: Update Module using custom template

Ok, so in the case of newbb I should delete all 15 templates one at a time, then do a regen which will bring in all 15 at one time from default?

Thanks for the help!

rbg



12
robotgod2000
Update Module using custom template

I am using a custom template on my site, and when I go to update a module (newbb, for example) the template files in default get updated instead of the template files in my custom template. How can I fix this?


Thx



13
robotgod2000
newbb "Can Edit" not working?

I can't seem to get the "Can Edit" topic permissions to work for a group in newbb. I just updated my version of newbb to the latest. I am using XOOPS 2.0.7.3

I would like certain non-admin, non-moderator forum users to be able to edit their own posts in a given forum.

I was expecting the "Can Edit" check box to accomplish this.

Anyone know what I am missing?

Thx



14
robotgod2000
Re: Help using css with php

Quote:

rowdie wrote:
try making your class without an id

.phpusermenu a {}

then use <a class='phpusermenu' ...

id's are unique, they should only be used once in a page. It's easier to just make it a class.

Hope this helps,
Rowd



Done...but still no formatting change. Any other ideas?

Thanks for the help anyway!

RBG



15
robotgod2000
Re: Help using css with php

I think the single quotes are optional there. Anyway I tried with single quotes and got the same, non-formatted result.

Thx.



16
robotgod2000
Re: Help using css with php

Thanks for the tip. I added a new class to my .css for "a" tags:

a#phpusermenu a {
    
background#F6F8FA;
    
font-weightnormal;
    
padding0px 0px 0px 30px;
    
border-right1px solid #D9E3EB;
    
border-bottom1px solid #D9E3EB;
    
border-left1px solid #D9E3EB;
    
border-top1px solid #D9E3EB;
    
width120px;
    
color#666666;
}
a#phpusermenu a:hover {
    
background-color#FFFFFF;
    
text-decorationnone;
    
border1px solid #8CA9C1;
    
color#799BB7;
}

a#phpusermenu a.highlight {padding-left: 30px;background-color: #fcc; border-right: 1px solid #666666; border-bottom: 1px solid #ADACAD; border-left: 1px solid silver;text-decoration: none;}


Shouldn't this work? It doesn't.
echo "<a id=phpusermenu href='/timesheet/index_user.php?login=".Encrypt($xoopsUser->getVar('uname'))."&password=".Encrypt($xoopsUser->getVar('pass'))."&ref=".Encrypt($_SERVER['HTTP_HOST'].$_SERVER['SCRIPT_NAME'])."'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;My Timesheet</a>";


Thx.



17
robotgod2000
Help using css with php

Hi,

I've got a custom php block that links to a non-xoops application, passing the XOOPS user id and password to this other application. It works great, BUT I can't seem to get the php code to take in formatting from my .css. I'd like this left custom block to match my left user menu.

This is the code.

global $xoopsUser;
function 
Encrypt($string$key="xxxxxx") {
    
$result '';
    for(
$i=1$i<=strlen($string); $i++) {
        
$char substr($string$i-11);
        
$keychar substr($key, ($i strlen($key))-11);
        
$char chr(ord($char)+ord($keychar));
        
$result.=$char;
    }
    return 
$result;
}
echo 
"<a class=menuTop id=usermenu href='/timesheet/index_user.php?login=".Encrypt($xoopsUser->getVar('uname'))."&password=".Encrypt($xoopsUser->getVar('pass'))."&ref=".Encrypt($_SERVER['HTTP_HOST'].$_SERVER['SCRIPT_NAME'])."'>My Timesheet</a>";


Note this part of it isn't taking:

echo "<a class=menuTop id=usermenu


What am I missing? Is there a global I need to include?

Thx



18
robotgod2000
Re: php help in a block?

Thanks, ackbarr.

Yes, I am now set!



19
robotgod2000
php help in a block?

Hi,

I had a non-xoops php programmer put some extra code in /footer.php that contains a link to another, non-xoops web program, passing username and pwd. The link works great -- except that it is in the footer of my website! I'd like to move it to a block that I can control, but am having problems cutting and pasting the code into a new .php block. This is what was added to footer.php that I would like to get into the block:

// above this line is the standard XOOPS footer.php
// below is the new function and link added
function Encrypt($string$key="xxxxxx") {
    
$result '';
    for(
$i=1$i<=strlen($string); $i++) {
        
$char substr($string$i-11);
        
$keychar substr($key, ($i strlen($key))-11);
        
$char chr(ord($char)+ord($keychar));
        
$result.=$char;
    }
    return 
$result;
}
echo 
"<a href='/wp2/timesheet/index_user.php?login=".Encrypt($xoopsUser->getVar('uname'))."&password=".Encrypt($xoopsUser->getVar('pass'))."&ref=".Encrypt($_SERVER['HTTP_HOST'].$_SERVER['SCRIPT_NAME'])."'>Click To Go To Timesheet</a>";
?>


Can someone give me a pointer or two how to make this code work in a block?
Thx!




TopTop
« 1 (2)



Login

Who's Online

193 user(s) are online (86 user(s) are browsing Support Forums)


Members: 0


Guests: 193


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