Announcement

Collapse
No announcement yet.

Users can't login due to phpinclude

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

  • Users can't login due to phpinclude

    When I put phpinclude:
    ob_start();
    include("/home/path/to frontphoto");
    $photo = ob_get_contents();
    ob_end_clean();
    It's working then Admin or users can't login in on message board but we can login in on photo page. so I try to remove that phpinlcude, they can login in on message board... Any idea why?

  • #2
    Is that a PHP page? If not, try this (keep the stuff commented out as it usually is):
    PHP Code:
    $photo implode(""file("/path/to/the/file")); 
    Then put $photo in whatever template you want the file to be displayed.
    --filburt1, vBulletin.org/vBulletinTemplates.com moderator
    Web Design Forums.net: vB Board of the Month
    vBulletin Mail System (vBMS): webmail for your forum users

    Comment


    • #3
      Yea it's php page but I just go ahead and tried this:

      $photo = implode("", file("/path/to/the/frontphoto.php"));

      but came out not right. Nuts.

      Comment


      • #4
        Ok, I just fixed but hope it just temporary solution until you or I find another better solution... Hopefully...

        Right now, what I did was to change from ./global.php to ./global2.php on member.php. Then I copy another global.php file and change it name to global2.php and remove phpinclude and eval(gettemplate(phpinclude)) something while leave global.php alone. So that way member.php look at global2.php w/o phpinclude while other files like vbhome/message board look at global.php which contains phpinclude. So it solve plm about login thing. I think it better than nothing.

        Comment

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