Martin A.

Members
  • Content count

    2972
  • Joined

  • Last visited


About Martin A.

  • Rank
    Needs Serious Help
  • Birthday 11/10/1987

IPS Marketplace

  • Resources Contributor Total file submissions: 3

Recent Profile Visitors


42,323 profile views

Martin A.'s Activity

  1. Martin A. added a post in a topic: What is Bing Mapping?   

    It's used to show a map of where the image was taken, if such data is in the EXIF data.
     
    http://community.invisionpower.com/resources/documentation/index.html/_/documentation/front-end/gallery-front/bing-map-key-r802
  2. Martin A. added a post in a topic: H1 or H2 tags used in IPB?   

    The topic title (and pretty much every other content title) uses H1 tags.
    <h1 itemprop="name" class='ipsType_pagetitle'>H1 or H2 tags used in IPB?</h1>  H2 is only occasionally used. Announcement title, forum rule title, error pages, blog title in the overview, and a few other places.
  3. Martin A. added a post in a topic: IP.Board: Confusion about the posts table...   

    Whether the content is mostly HTML, or all BBcode depends on when the post was made. Posts made on the newer versions will probably be HTML, and some BBcode. A few "needs" to be BBcode at the moment, as the end user may not have permissions to view it, such as attachments. You could probably determine if the posts needs to go trough the parser based on the post date, and just strip BBcode from newer posts using classes_text_parser::stripAllTags().
     
     
    I would just run it all trough the parser, depending on how many posts I need to load.
  4. Martin A. added a post in a topic: [RESOLVED] need help   

    Putting this just below "<?php" should work.
    $allow = array("Admin-IP", "Another-Admin-IP"); if(!in_array($_SERVER['REMOTE_ADDR'], $allow) && !in_array($_SERVER["HTTP_X_FORWARDED_FOR"], $allow)) { header("Location: http://domain.ext/"); exit(); }
  5. Martin A. added a post in a topic: Why is text the last thing to load on my site?   

    Probably because the font it's trying to use doesn't exist on your webserver, so it's waiting for that to fail before falling back to a default fail-safe font.
    Failed to load resource: the server responded with a status of 404 (Not Found) http://www.pianokeyz.com/public/style_images/pianokeyz/fonts/opensans.woff Failed to load resource: the server responded with a status of 404 (Not Found) http://www.pianokeyz.com/public/style_images/pianokeyz/fonts/opensans.ttf Failed to load resource: the server responded with a status of 404 (Not Found) http://www.pianokeyz.com/public/style_images/pianokeyz/fonts/opensans.svg#OpenSans
  6. Martin A. added a post in a topic: [RESOLVED] Language at issue   

    I'm assuming you want to change the default language used by your users, which currently is "English"?
     
    Go to ACP > Look & Feel > Manage Languages > Swap Member Language Choice
    Select English in the first box, and Hebrew in the other.
  7. Martin A. added a post in a topic: SQL Command to run to convert http://domain.com to https://domain.com in text content on forum   

    UPDATE posts SET post = REPLACE( post, 'http://domain/', 'https://domain/' ); Run that query after you've taken a backup of your database.
  8. Martin A. added a post in a topic: Is it possible to clear global frame from template without Developer mode?   

    Line 4 is for ACP use only, and the others are for public use only.
     
    To just get the content of the template, drop most of the calls to getClass( 'output' ). You don't need them
    $output = ipsRegistry::getClass('output')->getTemplate('bullion')->index12(); $output is now the content of your template, and nothing else. The wrapper is added in sendOutput() .
  9. Martin A. added a post in a topic: Loading a CSS for a template bit   

    If you want your CSS to load on all pages belonging to your app, just put this block at the beginning of the file.
    /*<IPS_IMPORT_BLOCK> DO NOT REMOVE OR ALTER THIS PLEASE. IT IS REMOVED AUTOMATICALLY BY THE IMPORT ROUTINE. <css_position>1</css_position> <css_app>YOURAPPKEY</css_app> <css_modules></css_modules> <css_app_hide>1</css_app_hide> <css_attributes>title="Main" media="screen,print"</css_attributes> </IPS_IMPORT_BLOCK>*/ When using  {parse addtohead="" type=""} you have to specify the full path to the document.
    {parse addtohead="{$this->settings['css_base_url']}style_css/{$this->registry->output->skin['_csscacheid']}/FILENAME.css" type="importcss"} If this template is called from a template hook, if just wont work at all, as the final output has already been generated, and all you're doing at this stage is manipulating parts of it. Solution then is to import it manually.
    <link rel="stylesheet" type="text/css" title='Main' media="screen" href="{$this->settings['css_base_url']}style_css/{$this->registry->output->skin['_csscacheid']}/FILENAME.css" />
  10. Martin A. added a post in a topic: ipb.Cookie.get problems...   

    sessionStorage won't work. localStorage will.
    I tested both of them before writing that post.
  11. Martin A. added a post in a topic: ipb.Cookie.get problems...   

    So you're trying to get the new value of a cookie on a different page, without reloading it? That won't work. 
    The cookie data is based on the cookies sent with the first request sent to the page, and aren't then monitored for changes done in other windows until you reload.
     
    Have a look at localStorage instead, that does what you want.
    localStorage.setItem( "bar", 'foo' ); localStorage.getItem( "bar" );
  12. Martin A. added a post in a topic: My drop down doesn't work   

    #nav > li > a { font-size: 12px; color: #fff; padding: 0 15px; height: 36px; line-height: 36px; display: inline-block; outline: 0; } Looks like that would fix it.
  13. Martin A. added a post in a topic: My drop down doesn't work   

    Remove "margin-right: 15px;" from the CSS. That'll give you a 15px padding on both side, instead of 15px padding on both sides, plus a 15px margin on the right side.
     
    And no, you can't reuse the old CSS, as that's tied to the #user_link ID.
  14. Martin A. added a post in a topic: My drop down doesn't work   

    Nope. You  remove 'user_link0'.
     
    And you  replace

    id='user_link0_dd' with

    class='dropdownIndicator' Which is the dropdown icons next to the text.
  15. Martin A. added a post in a topic: My drop down doesn't work   

    You can use: (Added to ipb_styles.css (using the Template Manager in the ACP, don't edit these files directly in the file system))
    #nav li a { font-size: 12px; color: #fff; padding: 0 12px; height: 36px; line-height: 36px; display: inline-block; margin-right: 15px; outline: 0; } #nav li a:hover { background-color: #323232; } And instead of 
    <span id='user_link0_dd'></span> You can use
    <span class='dropdownIndicator'></span>

Status Feed

  1. AndyF » Martin A.

    Am sorry that you are leaving :(

    1. Martin A.

      Me too, really! An end of an era. But it had to happen, and I guess you've seen it coming.

    2. AndyF

      Yes. Although still a shame :(

  2. optrexnz » Martin A.

    hey Martin, will you be looking at updating Set Topic Visible Time for 3.1.x at all?

  3. Martin A. » AndyF

    Thank you Andy :)

  4. AndyF » Martin A.

    Happy Birthday :)

  5. Martin A.

    The cake is a lie!

    1. PKIDelirium

      No it's not. Please assume the party escort submission position.

    2. Wolfie

      lol @ PKI

    3. Ryan H.

      sooo... http://xkcd.com/606/

    4. AndyF

      I can haz cake ? :)

    5. Martin A.

      Oh sure mate, you can haz lotz of cake! Just drop by my house, and I'll bake you some : )

  6. Martin A.

    All of my apps and hooks are now compatible with IP.Board 3.1 :)

    1. Olivier Turbis

      Good job :)

    2. Lee Craven

      Very nice, I just added sliding login this morning...

    3. AndyF

      :)

  7. Martin A.

    Just a quickie: Is "ipsMember" the same as "IPSMember"? If not, I see a bug in ads.php

    1. Martin A.

      Can actually answer that myself; "yes".

  8. Martin A.

    I HATE American TV series, especially the longer ones (1hr)! Why do you HAVE to spoil EVERYTHING before AND after commercials?

    1. Abomination

      DVR...

  9. Martin A.

    Just submitted a new free hook, for the first time in 6-7 months!

    1. I am Freddy G

      Thanks!

    2. aljareh4ever

      love your mod+_+

  10. Martin A.

    Cherry Coke != Good

    1. Black-Elmo

      Agreed except very hard to get in Australia.

    2. Andy Rixon

      Agreed!, good stuff.

    3. Lee

      Cherry Coke >= Good

  11. Collin1000 » Martin A.

    Thanks for releasing so many of your mods for free :)

  12. Martin A. » Mike John

    Thank you :)

  13. Mike John » Martin A.

    Happy Birthday Martin :)

  14. AndyF » Martin A.

    Hey Martin :)

  15. AndyF » Martin A.

    Thanks for the add :D

  16. Martin A. » AndyF

    Hi there Andy :)
    Didn't see your comment until now :p

  17. AndyF » Martin A.

    Hey Martin :)