Results 1 to 6 of 6
  1. #1
    hsn
    Guest

    Miss you Guyz


  2. #2
    dreaming_soul
    Guest


    OMG..its horrible..i just scared watching this..but thanks for sharing mate..

  3. #3
    xDario
    Guest

    Giving out information from the forum database on front page

    Hi guys.
    A short request , since I cannot think of how to do this.

    Basically, I would like someone to make me or lead me to a function which converts a MyBB post message (lets say $body) into HTML format so I can post it on the index page.

    What it will need to do is close the important tags, such as [QUOTE], [B] and [COLOR], and make it HTML friendly - so that symbols such as ? are converted to their appropriate HTML code.

    Thanks for your help!
    Dario

  4. #4
    xDario
    Guest

    RE: Giving out information from the forum database on front page

    bumpbump ~

  5. #5
    Ricardo-san
    Guest

    RE: Giving out information from the forum database on front page

    Hi xDario,
    Why not just use the default portal.php page? This will automatically pull the latest threads from your forum.
    In addition, if you look at that file you should be able to find the function in that file.

    Hope this helps.

    EDIT: I reread your post and I might not be understanding what you're asking. Do you want to pull a specific post ID from your forum, and display it on the index page?

  6. #6
    xDario
    Guest

    RE: Giving out information from the forum database on front page

    Well, I need it to show a preview of a thread. I've got the WHOLE text right now, so it is quite annoying (especially with long posts), but I would much prefer it only showing e.g 300 chars.
    Now, the peoblem with cutting it off after 300 chars, is that the tags dont close, making it look ugly.

    What I need is a piece of php which trims it down to 300 chars, closes and displays the tags that mybb uses.

    (Hope that explains it.)


 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •