DoctorMcKay

+Clients
  • Content count

    78
  • Joined

  • Last visited


About DoctorMcKay

  • Rank
    IPB Member

Profile Information

  • Gender Male

DoctorMcKay's Activity

  1. DoctorMcKay added a post in a topic: Tearing my hair out over friendly URLs   

    Oh, and {parse url} isn't giving the friendly URL either.
  2. DoctorMcKay added a post in a topic: Tearing my hair out over friendly URLs   

    So I'm trying to build an app for IPS for my own private use, but I'm having a hell of a time getting SEO-friendly URLs to work right.
     
    My app is simply called "Bans" and I'm going to use it to manage banning people from my game servers. It'll only have two public pages: one to list all bans and one to show details about a particular ban. They're both in one 'view' module as 'list' and 'details', respectively.
     
    I managed to get /bans/ to show the ban list (and the tab goes there) but the non-friendly URL isn't redirecting to the friendly one.
     
    I also want /bans/(.+) to go to the details section, but I can't get that to work at all.
     
    Here's my furlTemplates.php:
    <?php $_SEOTEMPLATES = array( 'bans' => array( 'app' => 'bans', 'allowRedirect' => 1, 'isPagesMode' => 1, 'out' => array( '#app=bans(&amp;|&|$)#i', 'bans/' ), 'in' => array( 'regex' => "#^/bans/?$#i", 'matches' => array( array('app', 'bans'), array('module', 'view'), array('section', 'list') ) ) ), 'bandetails' => array( 'app' => 'bans', 'allowRedirect' => 1, 'out' => array( '#app=bans(&amp;|&)module=view(&amp;|&)section=details(&amp;|&)banid=(.+)(&|$)#i', 'bans/$1' ), 'in' => array( 'regex' => '#^/bans/(.+)(/|$)#i', 'matches' => array( array('app', 'bans'), array('module', 'view'), array('section', 'details'), array('banid', '$1') ) ) ) ); What am I doing wrong?
  3. DoctorMcKay added a post in a topic: Two hooks on the same class   


    I figured as much. If I remember correctly, I changed the class I was extending without updating it in the ACP. I also figured that it couldn't possibly limit it to a single hook per class.
  4. DoctorMcKay added a post in a topic: Selling advertisements in blocks of impressions/clicks   

    I can't seem to find any mechanism in Nexus to sell "blocks" of advertisement impressions.
     
    For example, I want to sell banner ads at a rate of $2 per 1000 impressions, but I can't see any way to do this without creating different packages with different prices and numbers of impressions. Even then, this limits the maximum purchase to however many packages I have the patience to enter.
     
    Is this not possible?
  5. DoctorMcKay added a post in a topic: Two hooks on the same class   

    For starters, while I'm new to IPS modding, I'm not new to PHP or OOP.
     
    I installed a hook to allow users to bump their own threads using a button that's displayed on the topic view page. I also wrote a custom hook that extended the same class that the bump button did, but overrode a different method. The bump button in the first hook continued to appear, but it stopped doing anything, while the second hook worked perfectly fine. To fix this, I just added the functionality of my custom hook to the bump button hook, but that solution is hardly "good".
     
    Is there a way to get IPB to properly handle two hooks extending the same base class?
  6. DoctorMcKay added a post in a topic: Changing 'This Database' To The Name Of The Database   

    I just realized I put this in the wrong area. 
     
    Could somebody move it to the IP.Content support forum, please?  :wub:
  7. DoctorMcKay added a post in a topic: Changing 'This Database' To The Name Of The Database   

    Is it possible to do this in the search bar? Change the button so that it lists the name of the database you're in instead of 'This Database'?
     
    Appreciate any help!
  8. DoctorMcKay added a post in a topic: Haze by IPS Themes   

    The 'Sign In' & 'Create Account' links mess up when the responsive layout kicks in (in Chrome & Firefox, anyway):
     

  9. DoctorMcKay added a post in a topic: Referrals Link In IP.Content   

    Anyone?
  10. DoctorMcKay added a post in a topic: Referrals Link In IP.Content   

    Is it possible to display the Nexus referrals template inside an IP.Content page or block?
     
    How would I go about doing this?
  11. DoctorMcKay added a post in a topic: Linking To Posted Topic Thread   

    Thanks, Dylan Riggs !
     
    I appreciate your help, man. You're awesome.
  12. DoctorMcKay added a post in a topic: Linking To Posted Topic Thread   

    I have the comments on my media database set up to post to a forum topic instead of on the media display page itself.
     
    Is there a way to create a link below each video that will point to its associated topic?
     
    Appreciate any help...Thanks!

Status Feed