ok i used the first code and i got this error:
Fatal error: Call to a member function escape() on a non-object in /home/supermag/public_html/community/include/functions.php on line 1350
-------------------------------
The second code is weared.
at the widget place it gives this error:
Fatal error: require() [function.require]: Failed opening required './community/include/common.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/supermag/public_html/wp-content/plugins/php-code-widget/execphp.php(37) : eval()'d code on line 9
but when u see the home page, there is a login block.
when i sign in. it iframes the whole forum page (which also create a BIG mess and shows this note:
You appear to have logged in successfully, however a cookie has not been set. Please check your settings and if applicable, enable cookies for this website.
after i refresh my page, it appears i am not logged in.
-----------------------------------
i used two plugins of wordpress which allows PHP in widgets. Executable PHP widget and Samsarin PHP Widget. Both plugins give the same result.
Is there anyway i can fix these stuff.