Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Software Development
Programming
Programming Q&A
Need something cleaner..
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="griimnak" data-source="post: 358193" data-attributes="member: 35695"><p>So, atm i have a very poor widget handler in ghabbo</p><p></p><p>[PHP]class gWidget {</p><p> public static function loadFooter() {</p><p> return'</p><p> <div id="container-footer"></p><p> <p id="footer"></p><p> '.gConfig::get('site->name').' Hotel is not affiliated with Sulake Co or Habbo Hotel .</p><p> <br></p><p> <a href="'.gConfig::get('site->path').'/me" target="_self">Homepage</a> | <a href="'.gConfig::get('site->path').'/rules" target="_self">Rules</a> | <a href="#" target="_self">Privacy Policy</a></p><p> </p></p><p> </div></p><p> ';</p><p> }</p><p>}[/PHP]</p><p></p><p>I kinda wanna just have a folder with widgets like widget.footer.html, but i'm not sure how i'd do that in php.</p><p>perhaps get_file_contents and return the data??</p></blockquote><p></p>
[QUOTE="griimnak, post: 358193, member: 35695"] So, atm i have a very poor widget handler in ghabbo [PHP]class gWidget { public static function loadFooter() { return' <div id="container-footer"> <p id="footer"> '.gConfig::get('site->name').' Hotel is not affiliated with Sulake Co or Habbo Hotel . <br> <a href="'.gConfig::get('site->path').'/me" target="_self">Homepage</a> | <a href="'.gConfig::get('site->path').'/rules" target="_self">Rules</a> | <a href="#" target="_self">Privacy Policy</a> </p> </div> '; } }[/PHP] I kinda wanna just have a folder with widgets like widget.footer.html, but i'm not sure how i'd do that in php. perhaps get_file_contents and return the data?? [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Software Development
Programming
Programming Q&A
Need something cleaner..
Top