Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 18 May 2016, 03:41
fruppit fruppit is offline
 
Join Date: Oct 2015
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:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View 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:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


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 21: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.
Reply With Quote
  #2  
Old 19 May 2016, 02:05
noypiscripter's Avatar
noypiscripter noypiscripter is offline
 
Join Date: Aug 2013
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
Reply With Quote
  #3  
Old 19 May 2016, 18:54
fruppit fruppit is offline
 
Join Date: Oct 2015
Thanks, Glenn. You're a life saver!
Reply With Quote
Reply


Tags
config.php, custom php, php module, username


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 14:53.

Layout Options | Width: Wide Color: