Jump to content

Yabba

Member
  • Posts

    6
  • Joined

  • Last visited

Everything posted by Yabba

  1. Considering the amount of work involved in making a valid template, modifying the default link was the least of my worries ... and the simplest one to cure ... some of the others are gonna require *far* more imagination and "bending" of the normal output Removing all the js reliance is liable to take a tad though ¥
  2. Problem solved, I convinced the client that a full licence was the best way forward ¥
  3. The reason why it looks like a print is because it just pulls out the body of the page as I was under the impression that you wanted to embed it on your site, could you possibly give me a real link for yyyy.tld so I can see what you mean by the urls point to xxxx.tld? For clean urls you *should* (untested) just be able to add this snippet to your htaccess on the site that you're displaying the articles on : (yyyyy.tld) # Knowledgebase RewriteRule ^knowledgebase/([0-9]+)/[a-z0-9_-]+\.html$ ./knowledgebase.php?action=displayarticle&id=$1 [L,NC] RewriteRule ^knowledgebase/([0-9]+)/([^/]*)$ ./knowledgebase.php?action=displaycat&catid=$1 [L,NC] RewriteRule ^knowledgebase$ ./knowledgebase.php [L,NC] ¥
  4. The problem is, that invalidates the template I'm making as the <p> tab has align="center" .. am I at least allowed to modify that tag to remove the align and add an id so I can target it with css? Note : I'm not doing this by hacking any of the files, which would (obviously) be a breach of the LA, I just need to be able to produce an XHTML strict/WAI compliant template :-S ¥
  5. Use curl and regex : myserver.tld/test.php <?php $target_url = 'http://demo.whmcs.com/knowledgebase.php'; $this_page = 'test.php'; $tail = ( !empty( $_SERVER['QUERY_STRING'] ) ? '?'.$_SERVER['QUERY_STRING'] : '' ); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $target_url.$tail ); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $output = curl_exec($ch); curl_close($ch); // cats $output = preg_replace( '~^.+?(<h2>categories</h2>.+?</table>).+?$~is', '$1', $output ); // articles $output = preg_replace( '~^.+?(<h2>articles</h2>.+?)<br /><p align="center">.+?$~is', '$1', $output ); // article $output = preg_replace( '~^.+?(<h2>.+?)<br /><p align="center">.+?$~is', '$1', $output ); echo preg_replace( '~knowledgebase\.php~i', $this_page, $output ); ?> Note : You'll also need to handle $_POST if you want to enable voting and stuff ¥
  6. Hi, I'm in the middle of creating a custom xhtml strict template for a client. One of the, many, sections of code that I need to modify is the default branding, which I've done, but I've also changed it to just read "WHMCS" instead of the whole "powered by" ... mainly to slow down the kiddie scripters that use goggle as an ego trip. My question is, would that invalidate the clients licence as I'm pretty sure they'll only purchase a branded licence when their trial version expires, or is it ok as long as there's a backlink on every page? ¥
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated