Announcement

Collapse
No announcement yet.

[RELEASE] PluhNews 1.0

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #46
    Thank you! Works like a charm

    Comment


    • #47
      Re: adding vbcode and layout

      Originally posted by Redmak
      There's an easy way to have vbcode and linebreaks and stuff interpreted by vbulletin so it shows up on your main news page.

      Make sure the following line is added to the news script

      PHP Code:
      require("./global.php"); 
      To have the message parsed by vbulletin add the following:

      PHP Code:
        $bericht=bbcodeparse2($pagetext,"1","1","1","1"); 
      $bericht is now the formatted message

      The 1's stand for "dohtml,dobbimagecode,dosmilies,dobbcode"


      Enjoy

      im going to try that now

      Comment


      • #48
        Originally posted by Redmak
        If things still dont work I'll post the complete news.php
        I'm having difficulty with this. I'd appreciate the complete script. Thanks.
        Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
        Change CKEditor Colors to Match Style (for 4.1.4 and above)

        Steve Machol Photography


        Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


        Comment


        • #49
          This is it ) Thank you so much Kayn and Redmak!

          Comment


          • #50
            Originally posted by Redmak
            Ok a little explanation.


            In news.php (located in my vbulletin directory)

            Line 5 add the require statement

            Add the $bericht= line right before the part where the html is put in (echo ")

            Use $bericht instead of $pagetext in your html part



            here's the output on my server http://www.neowin.net/index1.php

            If things still dont work I'll post the complete news.php
            thanks,works well
            but should Use $bericht instead of $pagetext in the whole file.

            Comment


            • #51
              works perfect thank you red

              Comment


              • #52
                Originally posted by Bane
                This is it ) Thank you so much Kayn and Redmak!
                Thanks! I swear I had the exact same additions but my version didn't work. Anyway this one is working.
                Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
                Change CKEditor Colors to Match Style (for 4.1.4 and above)

                Steve Machol Photography


                Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


                Comment


                • #53
                  Great hack! I'm gonna really love it when you have support for VBCode rather than HTML

                  Also, what about headlines?

                  I saw somebody have news source....how would I go about doing that?
                  Last edited by SystemLogic; Sun 15th Jul '01, 9:03pm.

                  Comment


                  • #54
                    Kayn

                    Great hack works very well and took less than 2 minutes to install.

                    Thank you very much
                    Real Web Host

                    Comment


                    • #55
                      Is there a way that you could have script check and pull from more than one forumid. Say pull from forums 3,4,5 instead of just forum 3 in this example.

                      If so how would a person do that?

                      Thanks
                      Real Web Host

                      Comment


                      • #56
                        Well I tried to put in the added code but I am getting a parse error.

                        Fatal error: Call to undefined function: bbcodeparse2() in /usr/local/apache/htdocs/forums/news.php on line 85

                        any ideas? thank goodness for backups

                        Comment


                        • #57
                          Did you use the news.txt that I attached above as your news.php? Maybe you didnt add the require?

                          Comment


                          • #58
                            Bane

                            Is there a way that you could have script check and pull from more than one forumid. Say pull from forums 3,4,5 instead of just forum 3 in this example.
                            Bane any ideas?
                            Real Web Host

                            Comment


                            • #59
                              Stupid stupid stupid me..

                              yeah I forgot to put int he require field on line 5

                              I didnt use the name txt becuase I wanted to keep my old code for parsing.

                              All is working now. I hope kayn can pick this up and add it to his zip.

                              Thanks bane

                              Comment


                              • #60
                                White Knight - Glad you got it
                                Webhost - I really dont know..

                                Comment

                                widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                                Working...
                                X