SimpleForum - add signature to profile.php

6 posts by 3 authors in: Forums > CMS Builder: Plugins & Add-ons
Last Post: April 5, 2016   (RSS)

By northernpenguin - April 2, 2016

Ok, this is getting frustrating!

I followed the instructions to add the signature block to the profile.php page and I now get a 500 error.  Not exactly sure why.

I have attached my profile.php file

If anyone has any ideas, please help!

Thanks!

Ragi

--
northernpenguin
Northern Penguin Technologies

"Any sufficiently advanced technology
is indistinguishable from magic."
........Arthur C. Clarke
Attachments:

profile-test.php 13K

By gregThomas - April 4, 2016

Hi Ragi, 

The file has several PHP formatting errors, for example on the second line:

<?php $GLOBALS['WEBSITE_MEMBERSHIP_PROFILE_PAGE'] = true; // prevent redirect loops for users missing fields listed
 in $GLOBALS['WEBSITE_LOGIN_REQUIRED_FIELDS'] ?>

 this code was originally on one line, but is now split over two, PHP is trying to parse in $GLOBALS['WEBSITE_LOGIN_REQUIRED_FIELDS'] as code. 

Did you add this formatting? I'm trying to work out how the file could have been broken up like that. 

Let me know if you have any questions.

Cheers,

Greg

Greg Thomas







PHP Programmer - interactivetools.com

By northernpenguin - April 4, 2016

Greg:  No, I didn't.  I changed some of the lines further up, but definitely not that one.

--
northernpenguin
Northern Penguin Technologies

"Any sufficiently advanced technology
is indistinguishable from magic."
........Arthur C. Clarke

By Damon - April 5, 2016

Hi Ragi,

I opened the profile-test.php page in my code editor and every text line is wrapped after about 800px.

This is breaking words, html tags and PHP. 

I'm not sure how the text wrap happened. Any ideas?

Can you take a look at the code and unwrap the text or start from a previous version that doesn't include the wrap text lines?

Cheers,
Damon Edis - interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

By northernpenguin - April 5, 2016

Looks like the whole original download was the same.  I re-downloaded the latest version 1.01, with the updates applied by greg.

Looks good now!

Thanks guys.

Ragi

--
northernpenguin
Northern Penguin Technologies

"Any sufficiently advanced technology
is indistinguishable from magic."
........Arthur C. Clarke