Jump to content

Bin4ry

Members
  • Posts

    782
  • Joined

  • Last visited

  • Days Won

    5

Everything posted by Bin4ry

  1. Here is my Packet DB. Also my mmo.h #ifndef PACKETVER #define PACKETVER 20120410 //#define PACKETVER 20111116 #endif I'm using 2012-04-10RagRE, with Basic Complete Renewal Data English v2.0 and also Judas's mainj.grf / palletej.grf for 0410. I tried to use latest LUA/LUB. Edit: Solved with WDGSkipPacketHeaderObfuscation.dll
  2. Thanks a lot JayPee, it worked very very well! Thks thks thks!
  3. Doesn't work either but I have an idea, easier way to do it perhaps. Since calciumkid's CMS writes data into MySQL table, why not making a PHP scripts with MySQL logging then fetch data from CP_News table? But I have no idea how to do it, might need ur help once again. :[
  4. CP is working and it's placed on root of my web docs, patch.html is in /patch/ folder with all patches files there. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>News & Notices</title> </head> <body> <script type="text/javascript" language="javascript" src="jquery-1.6.2.min.js"></script> <div class="cp_news"></div> <script type="text/javascript" language="javascript"> $(document).ready(function(){ //cpurl is the address or URL of your fluxcp view you may change them var cpurl = "http://flarismro.no-ip.org:8080/index.php?module=news&action=view"; $.ajax({ type:"GET", url:cpurl, cache:false, success:function(data){ /* Explanation: .newsDiv is the class name of the div tag in your fluxcp news view .cp_news is the class name of the div tag where in contents get from your fluxcp news will be posted */ var content = $(data).find('.newsDiv').html(); //Get the news content only $('.cp_news').html(content); //Post the news } }) }); </script> </body> </html>
  5. My thor patcher reads .html from urs, the php was blank file I forget to delete. I'm pretty sure this is not the problem
  6. Well. Thks for the code anyway but it couldn't work either... Alright here's my web docs directory structure. I changed the url in html to my IP but it doesnt work still You mentioned You need to edit fluxcpnews.html and edit also the url in the javascript inside the HTML file and what was the thing I have to edit other than URL?
  7. Thks for the reply JayPee, but FluxCP's php structure is kind of difficult to understand. I have no idea where should I start. I have the index.php for the CMS news here, so which ajax codes should I place in the patcher notice page to let it fetches news query here? <?php /*------------------------------------- // Created by: Harrison aka CalciumKid --------------------------------------- // Released Exclusively for the RAthena // development boards. Please do not // redistribute my work without // permission and leave all credits in // tact. --------------------------------------- // !!!THIS WORK IS COPYRIGHTED!!! // Contact: [email protected] -------------------------------------*/ if (!defined('FLUX_ROOT')) exit; $this->loginRequired(); ?> <h2><?php echo htmlspecialchars(Flux::message('NewsPage')) ?></h2> <p>This news management system is an Add-on of Flux Control Panel. This allows you to add, edit, delete news.</p> <?php if($news): ?> <table class="horizontal-table" width="100%"> <tr> <th><?php echo htmlspecialchars(Flux::message('NewsTitleLabel')) ?></th> <th><?php echo htmlspecialchars(Flux::message('NewsAuthorLabel')) ?></th> <th><?php echo htmlspecialchars(Flux::message('CreatedLabel')) ?></th> <th><?php echo htmlspecialchars(Flux::message('ModifiedLabel')) ?></th> <th><?php echo htmlspecialchars(Flux::message('ActionLabel')) ?></th> </tr> <?php foreach($news as $nrow):?> <tr> <td><?php echo $nrow->title?></td> <td><?php echo $nrow->author?></td> <td><?php echo date('d-m-Y',strtotime($nrow->created))?></td> <td><?php echo date('d-m-Y',strtotime($nrow->modified))?></td> <td> <a href="<?php echo $this->url('news', 'edit', array('id' => $nrow->id)); ?>">Edit</a> | <a href="<?php echo $this->url('news', 'delete', array('id' => $nrow->id)); ?>" onclick="return confirm('<?php echo htmlspecialchars(Flux::message('ConfirmLabel')) ?>');">Delete</a> </td> </tr> <?php endforeach;?> </table> <?php else: ?> <p> <?php echo htmlspecialchars(Flux::message('NewsEmpty')) ?><br/><br/> <a href="<?php echo $this->url('news', 'add') ?>"><?php echo htmlspecialchars(Flux::message('CreateLabel')) ?></a> </p> <?php endif ?> Thks again.
  8. Hi there. Like title says, I'm trying to frame calciumkid's Flux CMS news section into Thor Patcher notices box so I wouldn't have to write the updates to notice.html manually. I just want the news section to embed in patcher, iFrame won't do the jobs Thks in advance.
×
×
  • Create New...