*

Recent

Author Topic: template  (Read 13285 times)

Dillon

  • Developer
  • Sr. Member
  • ******
  • Posts: 340
  • Force: +3/-0
    • Arcade Freak
Re: template
« Reply #30 on: October 24, 2011, 08:27:29 PM »
I hate when code doesnt work. This is the only thing keeping me from finishing this mod...

Dillon

  • Developer
  • Sr. Member
  • ******
  • Posts: 340
  • Force: +3/-0
    • Arcade Freak
Re: template
« Reply #31 on: October 24, 2011, 08:51:05 PM »
HO...LY... SHIT..... all i did was add the selected="selected" and it works now

scratch that it didnt lol
« Last Edit: October 24, 2011, 08:53:33 PM by spagetiokillers »

kurt

  • Developer
  • Hero Member
  • ******
  • Posts: 634
  • Force: +16/-1
Re: template
« Reply #32 on: October 24, 2011, 11:02:19 PM »
Have you put the new variables such as $gender_on in the list of global variables? I'm trying to follow yor thread here, but not seeing the whole picture as to things like where globals are declared.

If I'm reading what I think I is, an admin section page, then the globals are declared in /pages/admin/index.php Not declaring them there forces the function to use a NULL for the variable which is not the same as being a "1" or a "0", which might misdirect the results in the if branch (if $gender_on == "0") because its neither of them.
« Last Edit: October 24, 2011, 11:06:51 PM by kurt »

Dillon

  • Developer
  • Sr. Member
  • ******
  • Posts: 340
  • Force: +3/-0
    • Arcade Freak
Re: template
« Reply #33 on: October 24, 2011, 11:16:22 PM »
I added it to the globals in the index.php and it still displays incorrectly

It works now. Thanks kurt! I think the reason it didnt work right away is cuz of cache. But it works now so im happy ill be posting the mod tomarrow when i complete it.
« Last Edit: October 25, 2011, 12:13:39 AM by spagetiokillers »

kurt

  • Developer
  • Hero Member
  • ******
  • Posts: 634
  • Force: +16/-1
Re: template
« Reply #34 on: October 27, 2011, 09:33:43 PM »
Glad it worked. This is one of the reasons I set cachelife to 1 when I do dev work lol.

Sorry been having a fun time trying to get online past couple days. Workers cut a wire in town I hear, knocked us all off :p