51
Brad
Re: is xcgal still being developed?
  • 2004/4/15 15:25

  • Brad

  • Not too shy to talk

  • Posts: 150

  • Since: 2003/12/4


How would you recommend that I get ahold of Predator to discuss this? (Pred, this is where you jump in...)



52
Brad
Re: is xcgal still being developed?
  • 2004/4/15 15:13

  • Brad

  • Not too shy to talk

  • Posts: 150

  • Since: 2003/12/4


SOL812 -

Start a new topic to ask your question as it doesn't apply to the topic being discussed in this thread. You should never hijack a thread to discuss something off-topic, even if it is closely related. You'll likely get more people to look at your question by devoting a separate topic to your question. Having said all this, when I get home tonight I'll take a look and give you an answer if no one else has by then.


Herko -

I am aware of the integrated xcGal module. However, I don't feel that it'll be updated anytime soon and as I have spare time in the middle of the night between baby feedings, I figured I'd take a stab at integrating the newest Coppermine. Especially because I'd like the video hack included.

If you'd rather that I didn't release my version, I won't. If you'd like me to turn my version over to Predator, I will. If you want me to bark like a dog, I'll do that too (but quietly as I'm at work right now). Just let me know what direction you'd feel is best for me to go in.

Brad



53
Brad
Re: is xcgal still being developed?
  • 2004/4/15 13:50

  • Brad

  • Not too shy to talk

  • Posts: 150

  • Since: 2003/12/4


I am currently in the slow process of porting the latest Coppermine Photo Gallery with the video hack over to Xoops.



54
Brad
Re: form->insertBreak() doesn't work? Where do i wrong?
  • 2004/4/7 2:28

  • Brad

  • Not too shy to talk

  • Posts: 150

  • Since: 2003/12/4


I have also made my own class for adding a break into a form. Mine is specific to the xoopsThemeForm (or whichever one that is). Not sure if it'd work in the other form classes.

class XoopsFormBreak extends XoopsFormElement {

    
/**
     * Constructor
     * 
     * @param    string    $caption    Caption
     * @param    string    $class        Text
     */
    
function XoopsFormBreak($caption ''$class''){

        if (!empty(
$class)) {
            
$class "class='$class'";
        }

        
$this->setClass($class);
        
$this->setCaption($caption);
        
$this->setHidden();
    }

    
/**
     * Prepare HTML for output
     * 
     * @return    string
     */
    
function render(){
        return 
"<tr><td colspan='2' " $this->getClass() . "/>"$this->getCaption() . "</td></tr>";
    }
}



55
Brad
Re: xcgallery thumbs
  • 2004/3/29 14:35

  • Brad

  • Not too shy to talk

  • Posts: 150

  • Since: 2003/12/4


In case anyone else has such a "stupid" question, why don't you go ahead and tell us how to do it.



56
Brad
Re: Preparing Text to go in and out of a Xoops DB
  • 2004/3/29 14:33

  • Brad

  • Not too shy to talk

  • Posts: 150

  • Since: 2003/12/4


Should one always use the text sanitizer when reading or writing from a table? If not, what are the guidelines on when one should or should not do so?

Brad



57
Brad
Re: Session Bug Patch
  • 2004/3/26 17:15

  • Brad

  • Not too shy to talk

  • Posts: 150

  • Since: 2003/12/4


Nope. I increased the accuracy at my site by making the change shown in .\modules\system\blocks\system_blocks.php as shown in the following code snippet:

function b_system_online_show()
{
    global 
$xoopsConfig$xoopsUser$xoopsModule$HTTP_SERVER_VARS;
    
$online_handler =& xoops_gethandler('online');
    
mt_srand((double)microtime()*1000000);
    
// set gc probabillity to 10% for now..
    
if (mt_rand(1100) < 11) {
        [
color=cc0000][d]$online_handler->gc(300);[/d]
        
$online_handler->gc(60);[/color]
    }
    if (
is_object($xoopsUser)) {
        
$uid $xoopsUser->getVar('uid');
        
$uname $xoopsUser->getVar('uname');
    } else {
        
$uid 0;
        
$uname '';
    }

The change I made means that at least 10% of the time, the "who's online" block will be accurate up to within 1 minute.

Keep in mind that I haven't done much testing on the change I've made. Just some quick testing before I moved on to other things. Also, the site that I made the change for isn't yet operational so the change hasn't gotten a lot of real-world testing.

Brad



58
Brad
Re: New FormElement: Any Obvious Security Holes?
  • 2004/3/25 14:36

  • Brad

  • Not too shy to talk

  • Posts: 150

  • Since: 2003/12/4


I'd also like to point out that what would have been better for me, and more Xoopsy, would be if the xoopsGroupPermForm implemented the insertBreak() method of it's parent class.

The xoopsThemeForm tries to implement the insertBreak method but is foiled by xoopsForm which won't allow one to use the addElement function unless you're passing an element object subclassed from xoopsFormElement. xoopsThemeForm is just passing a string, and so it gets denied. Good try xoopsThemeForm.

Brad
[size=xx-small][edit 2004/03/25 red][/size]



59
Brad
New FormElement: Any Obvious Security Holes?
  • 2004/3/24 23:11

  • Brad

  • Not too shy to talk

  • Posts: 150

  • Since: 2003/12/4


<?php
class XoopsFormBreak extends XoopsFormElement {

    
/**
     * Constructor
     * 
     * @param    string    $caption    Caption
     * @param    string    $class        Text
     */
    
function XoopsFormBreak($caption ''$class''){

        if (!empty(
$class)) {
            
$class "class='$class'";
        }

        
$this->setClass($class);
        
$this->setCaption($caption);
        
$this->setHidden();
    }

    
/**
     * Prepare HTML for output
     * 
     * @return    string
     */
    
function render(){
        return 
"<tr><td colspan='2' " $this->getClass() . "/>"$this->getCaption() . "</td></tr>";
    }
}
?>

I desperately wanted to have category breaks in a form I was designing and at the same time, wanted to stay within Xoop's standards. As such, I created a new FormElement that would let me add a break within the form. A visual example is below (note "General Settings" and "Album List View" rows). As I'm relatively new to PHP, I was wondering if there were any inherent security holes in what I've created.

Resized Image

Any help is appreciated, as always. Thanks in advance.

Brad



60
Brad
Re: PHPXref
  • 2004/3/20 3:33

  • Brad

  • Not too shy to talk

  • Posts: 150

  • Since: 2003/12/4


That's pretty sweet! Nice find.




TopTop
« 1 ... 3 4 5 (6) 7 8 9 ... 15 »



Login

Who's Online

236 user(s) are online (151 user(s) are browsing Support Forums)


Members: 0


Guests: 236


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits