Jump to content
MakeWebGames

POG1

Members
  • Posts

    1,419
  • Joined

  • Last visited

Everything posted by POG1

  1. The mod is an AJAX search mod in replacement of the exsisting search page. As you type a list of possible names show up undeaneath the search box. Paypal: [email protected] Please ask any questions. SCREENSHOT DEMO here.
  2. Any reccomendations as to mysql classes?
  3. Re: Magazine Cover My guess is that you are doing national diploma, if so i had to do the graphics unit which sucks..
  4. POG1

    Class Problem

    Re: Class Problem I added a function that sets the value of the URLs, if anyone wants it here it is, I added inside the smarty class.   function select_template($template) { if (file_exists('lib/templates/'.$template)) { $this->template_dir = 'lib/templates/'. $template; $this->compile_dir = $this->template_dir .'/templates_c'; } else { $this->template_dir = 'lib/templates/default'; $this->compile_dir = $this->template_dir .'/templates_c'; } }
  5. POG1

    Class Problem

    Re: Class Problem I am still quite new to classes and I'm stuck again :( I am trying to specify the URL to my template folder in the smarty template class. The default is just a static string and when i try to add a variable into it there is an error, here is what i tried   var $template_dir = 'lib/templates/'. $TEMPLATE['url'];
  6. POG1

    Class Problem

    Re: Class Problem Don't matter now. I have figured it out, heres what i have come up with, there will obviously be more things added to this eventually.   <?php class User extends db { private $userId; public function selectUser($userId) { $this->userId = $userId; return true; } public function getDetails() { $query = 'SELECT * FROM `users` WHERE `ID` = ' . parent::qstr($this->userId); if(parent::RecordCount ( $query ) == 1) { $row = parent::getRow($query); foreach($row as $key => $value) { $this->$key = $value; } } else { return FALSE; } } function isAdmin() { $result = "SELECT `Level_access` FROM `users` WHERE `ID` = " . parent::qstr($this->userId); if(parent::query($result)) { if ( parent::RecordCount ( $result ) == 1 ) { $row = parent::getRow($result); return ($row->Level_access == 1) ? TRUE : FALSE; } else { return FALSE; } } else { return FALSE; } } } ?>
  7. POG1

    Class Problem

    I have 2 separate classes, database and user class. Inside the user class i have to do a query and if i try to use the db class it produces an error, is there any way i can make this work? I have tried to use global $db; but with no success.   class User { protected $id; public function getDetails() { $this->id = (int) $_SESSION['user_id']; $query = 'SELECT `Username` FROM `' . DBPREFIX . 'users` WHERE `ID` = ' . $db->qstr ( $id ) ; $this->username = "dave"; return true; } }
  8. Re: (MCCODES) V2 Layout For Sale $100 is starting bid Beginner work, the designs alone are worth about $10.
  9. Re: marquee with admin function   Are you saying you cant code then?
  10. Re: Events Recode its a start...
  11. Re: marquee with admin function Marquee tags are depreciated. Try using a javaScript marquee...
  12. Re: Fluid and Fixed problem The example i showed you (minus the wrapper div) will do as you are asking. The default display value for a div is block meaning it will be as wide as the parent container. Just try the code i posted
  13. Re: mccodes error help please wherever the query is
  14. Re: mccodes error help please You will need to escape the ' in the action string because it is causing the string to end, mysql_real_escape_string() will fix that problem.
  15. Re: Fluid and Fixed problem so you want it the width of the page? if so just remove the wrapper div
  16. Re: Fluid and Fixed problem Here is the basic markup structure you will need. <div id="wrapper"> <div id="header">header(fluid)</div> <div id="sideBar"> sideBar </div> <div id="mainContent"> <div id="navigation"> navigation... </div> Main Content Area </div> <br class="clear" /> </div> As for the CSS you can try something like this.. div#wrapper{width:800px;border:3px solid red}div#header{font-size:24px;background:#ccc;color:#fff;padding:5px 0}div#header,.clear{clear:both}div#mainContent{float:left;background:green;clear:left}div#navigation{background:#fff}div#sideBar{float:right;width:200px;clear:right;background:#003} I havent tested it but it will more or less produce what u posted in the image.
  17. POG1

    css columns

    Re: css columns you could of used a br to clear instead of a div, same effect but uses less code :)
  18. Re: Fluid and Fixed problem Try not use min-width on the wrapper. What do you mean by "side bar to stick in the corner"?
  19. Re: Mccodes V2. Music Player. $40 how could it of been an error on his computer? If you understood what php is then you would know its an logical error in the code. I personally think this mod sucks, it has no real purpose and don't even work..
  20. Re: [mccode2] 3 in one bank for people with multiple currencys bankmoney=bankmoney+(bankmoney/50)?? try bankmoney = (bankmoney * 1.5) It does the same job, but with less code :)
  21. Re: jQueryUI sortable boxes pog1.co.uk/mc click random login then click homepage.
  22. I have used the jQuery UI's sortable boxes element but i cannot work out how to save the positions of the boxes, currently i have this JS which is used to initiate the boxes. $(function() { $(".leftColumn, .rightColumn").sortable({ containment: "window", cursor: "crosshair", connectWith: ".comumns" }).disableSelection(); }); The documentation shows there is an update event with this but im not sure how exactly i can do this. Link to jQueryUI documentation: http://jqueryui.com/demos/sortable/#event-change
  23. Re: Storing And Reading OS/Browser Information Try something like this   $info = get_browser(); echo 'Browser: '. $info['browser'] .' V'. $info['version'].' '. 'Platform: '.$info['platform'];   To check the function return data you could do something like print_r(get_browser());
  24. Re: [mccode v2] Crystal Temple You know how it should be but you choose not to do it correctly
  25. Re: [mccode v2] Crystal Temple sticking to mccode level programming ;)
×
×
  • Create New...