TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 196,004
  • Total Topics: 21,330
  • Online today: 468
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 105
  • Total: 105

TP sideblocks on Profile after wrong password check

Started by raid, April 20, 2008, 08:40:36 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

raid

hi all,

I select that on profile I do not want to see tinyportal blocks, but I saw that on my forum when someone went on profile to change personal settings and added a wrong check password to apply the changes, with the error message we could see the tinyportal side blocks.


I fixed it adding this:

on sources/profile.php
Code (search for:) Select
// Execute the modifications!
function ModifyProfile2()
{
global $txt, $modSettings;
global $cookiename, $context;
global $sourcedir, $scripturl, $db_prefix;
global $ID_MEMBER, $user_info;
global $context, $newpassemail, $user_profile, $validationCode;


Code (replace with) Select
// Execute the modifications!
function ModifyProfile2()
{
global $txt, $modSettings;
global $cookiename, $context;
global $sourcedir, $scripturl, $db_prefix;
global $ID_MEMBER, $user_info;
global $context, $newpassemail, $user_profile, $validationCode;

   tp_hidebars();


it seems to work, but is it correct?
SMF 2.0 + TP RC2

G6Cad

If it works for you it is correct for you ;)

But with that  tp hidebars, the tp blocks will never show for anyone in the profile section, so if thats what yolu want to have it on your site, then it's ok

raid

yup, but I selected the option on TP control panel Not to show side blocks in profile, they are showed on when the error happens.

is it possible to write a condition to add "hidebars" only when sidebars are hidden select on CP?

thx for support   ::)
SMF 2.0 + TP RC2

G6Cad

Dont know what version of TP you have, but TP V1.0.5 should allready have that option in the TP settings to npt show the panel for this action etc etc


raid

well, this mod works, but I ask you, is it correct?

on sources/TPortal.php
Code (look for) Select
// for some very large forum sections, give the option to hide bars
if($context['TPortal']['hidebars_profile']=='1' && $context['TPortal']['action']=='profile')


Code (replace with) Select
// for some very large forum sections, give the option to hide bars
if(($context['TPortal']['hidebars_profile']=='1' && $context['TPortal']['action']=='profile') || ($context['TPortal']['hidebars_profile']=='1' && $context['TPortal']['action']=='profile2'))


thx for support guys   ::)

p.s.
I removed the added code on first post
SMF 2.0 + TP RC2

IchBin


raid

SMF 2.0 + TP RC2

This website is proudly hosted on Crocweb Cloud Website Hosting.