1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XenForo PHP Source Code > HTML so I can view it on iPad?

Discussion in 'Off Topic' started by Marcus, Nov 8, 2013.

  1. Marcus

    Marcus Well-Known Member

    Is there a way to transform all of xenforos source code into highlighted html so I could view the code on the ipad and learn how xenforo works? It would be awesome to read the code on iPad.
     
  2. Jeremy

    Jeremy XenForo Moderator Staff Member

    No. There are no dev tools available on the iPad to allow you to view source.
     
  3. Marcus

    Marcus Well-Known Member

    Are there tools that convert .php and .js files to hightlighted (maybe even linked) .html files?
     
  4. cclaerhout

    cclaerhout Well-Known Member

    If you want to access the source of any files, you will need a system like Github but a private one since the XenForo code is under license. But for your addons, you can.

    If you want to access some debug functions, there are some apps. Some display the html output and I've found one that has a js debugger but there were lags and didn't work that well. I can't tell you the name right now, but it's not that hard to find.
     
  5. Marcus

    Marcus Well-Known Member

    I do not want to have access to any php files. I want to look at something that displays the source code. One way is to make a screenshot from the source code and display it in iPhoto.
    upload_2013-11-8_22-59-16.png
    I do not want to do that, I want some more simple solution to just look at the code.

    I also do not care about how the code will be displayed. Whether it is a PDF file I open in iBooks, or a HTML file I open in Safari. Or even an app like http://www.becomekodiak.com/kodiak-php.html It's also good enough to open a web front end like "Dreamweaver in the clouds" that displays the php content. I do not care whether the .php file is really on the device.
     
    0xym0r0n likes this.
  6. Jeremy

    Jeremy XenForo Moderator Staff Member

    The iPad has no functionality like that. A 3rd party browser may implement it, but I highly doubt it. I would suggest learning and inspecting code on the computer where you have proper development tools.
     
  7. Marcus

    Marcus Well-Known Member

    It seems I did not make myself clear, I guess it is because I never really learned english.

    I want a way to look at xenforos source code at my ipad. One way would be a program that converts all .php files into .html files. As an example, <html><body> would be translated into "<html><body><div style="color:green"><html></div><div style="color:blue"><body></div>". Then I upload all .html files onto my server domain.com/sourcecode/ and I have access to the .html files on my iPad once I open Safari (the web browser) and enter domain.com/sourcecode/.
     
  8. cclaerhout

    cclaerhout Well-Known Member

  9. Marcus

    Marcus Well-Known Member

  10. RickM

    RickM Well-Known Member

    Blimey guys you certainly know how to take a simple thing and turn it into a task.

    OP, take a look at these - a code editor or viewer is what you want. You'll probably find a number of these will work with ftp or dropbox to view stored code:

    https://itunes.apple.com/gb/app/codenavigator-source-code/id492480832?mt=8
    https://itunes.apple.com/gb/app/code-viewer-2/id369008033?mt=8
    http://www.koderapp.com/
    http://www.becomekodiak.com/
    http://freeridecoding.com/draftcode/

    These are editors - you wont find something that shows it as a 'book'. If you want that you'll need to convert the source to something like a PDF file. In which case something like this will do it: http://www.markkurossi.com/genscript/

    Just Google 'Source Code to PDF'
     
    Marcus likes this.
  11. realaqu

    realaqu Active Member

    I use textastic on ipad and store xenforo sourcr code on dropbox
    image.jpg
     
  12. OSS 117

    OSS 117 Well-Known Member

    I thought XF swapped out aging SHA256 for BCrypt.
     
  13. Luke F

    Luke F Well-Known Member

    The class name changed to XenForo_Authentication_Core12
     
    OSS 117 likes this.
  14. Jeremy

    Jeremy XenForo Moderator Staff Member

    As Luke stated, the name changed. However, both methods are still supported, but new registrations / password changes will migrate to bcrypt.
     
  15. OSS 117

    OSS 117 Well-Known Member

    Thanks. After I made the post I went hunting for any info about it. If I understood it correctly, 1.2 initiated it but any user who hadn't signed in was still running SHA256.
     
  16. Jeremy

    Jeremy XenForo Moderator Staff Member

Share This Page