![]() |
|
Thread Tools |
#1
|
||||||||
|
||||||||
Custom PHP broke page template
Hello. I've been trying to figure out how to output the user name field for a long time and recently came across this article, which provided the basic information I needed. I created a test PHP page and it worked on it's own with the following code:
This successfully outputs "myusername is logged in." However, after pasting that code into a custom PHP module on the user profile page and saving the changes, the user profile page now only returns the error "Couldn't read config file config.php", with no apparent way to revert the change. I've since figured out all I needed to include in my custom PHP module was this:
Unfortunately my user profile page is still broken and I have no idea how to fix it. Can anyone assist, please? ![]() --------------- Added 18 May 2016 at 20:02 --------------- I have found a file called vbulletin-pages.xml that refers to a page guid="vbulletin-4ecbdac82f0bb4.37025811" for the "User Profile" page, but I don't know how/where to access that actual page to manually restore an older version of it. Suggestions, anyone? Am I headed in the right direction? Thanks. No members have liked this post.
|
#2
|
||||
|
||||
Disable PHP/HTML module rendering in AdminCP > Settings > Options > General Settings > Disable PHP, Static HTML, and Ad Module rendering
__________________
Glenn Vergara, an ex-vB Developer, now a vB Mod Developer ![]() GIPHY for vB5 | AutoLinker | Video Attachments Player | New Registered Users Module | Clear System Cache Cron | DragNDrop Upload | Topic AJAX AutoUpdate | Force Read Topic |
#3
|
|||
|
|||
Thanks, Glenn. You're a life saver!
![]() The following members like this post: MarkFL, TheLastSuperman
|
![]() |
Tags |
config.php, custom php, php module, username |
«
Previous Thread
|
Next Thread
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 19:11.