Support Forum
Yellow Swordfish said
Exactly as I described in post #7 previously:$spThisUser->hidesignatures
Damn I apologize I didn't see that.
Ok so this si what I did in case anyone else wants to do it.
Create a custom profile checkbox field called Hide Signatures
Then in
/desktop/spTopicViewDesktop.php (do similarly in the mobile template as well)
Replace this:
sp_PostIndexUserFlexSignature('tagClass=spPostUserSignature');
with this:
if($spThisUser->hidesignatures==''){sp_PostIndexUserFlexSignature('tagClass=spPostUserSignature');}
Unfortunately it only sort of worked. It caused an error on threads with many replies. Once it calculated that it was going to need to go to another page it created a link to the next page but then the signatures being hidden made that page unnecessary so if you clicked the link to go to the next page it threw a database connection error.
I need to figure out how to keep that from happening.
I don't see any way that the change can possibly cause that sort of problem. That makes no logical sense at all. While I am not that fond of the way you have written it, the code is valid. (Personally we would have written it - assuming your new field is a checkbox so true/false):
if (! $spThisUser->hidesignatures) sp_PostIndexUserFlexSignature(‘tagClass=spPostUserSignature’);
Take a look in the error log (toolbox). Clear the error log out, run the page, replicate the problem and then take another look. Anything relevant?
YELLOW
SWORDFISH
|
please do.. especially the db error...
Visit Cruise Talk Central and Mr Papa's World
1 Guest(s)