Verified Account component

Ivan Desbananes Posted in Component Development 9 years ago

Hello,

There is a problem with verified account component.
When it is activated , the profiles frames are completely changed.
Ads frame are in 100% of the width.
The component must be corrected.
Thx

Ivan

Replies
Turkish Fatih Bayram Replied 9 years ago

you can save it here http://www.beetxt.com

us Eric Croskey Replied 9 years ago

Sorry, the code block is blown out for some reason. I'm not sure why that happened. I'll try to get a screencap of the code, which you can use to fix your code.

us Eric Croskey Replied 9 years ago

Hi guys, I took a shot getting this to work with v.4.1 today and I got it working on my site!

You code will probably be different but this is my new lines 33-87 of /components/verified-account/plugins/default/profile/pages/profile.php

<div class="ossn-profile container">
<div class="row">
    <div class="col-md-11">

<div class="<?php echo $class; ?>">
<div class="top-container">
<div id="container" class="profile-cover" style="overflow:hidden;">
<?php if (ossnloggedinuser()->guid == $user->guid) { ?>
<div class="profile-cover-controls">
<a href="javascript:;" onclick="Ossn.Clk('.coverfile');" class='button-grey change-cover'>
<?php echo ossnprint('change:cover'); ?>
</a>
<a href="javascript:;" id="reposition-cover" class='button-grey reposition-cover'>
<?php echo ossn
print('reposition:cover'); ?>
</a>
</div>
<form id="upload-cover" style="display:none;" method="post" enctype="multipart/form-data">
<input type="file" name="coverphoto" class="coverfile"
onchange="Ossn.Clk('#upload-cover .upload');"/>
<?php echo ossnpluginview('input/securitytoken'); ?>
<input type="submit" class="upload"/>
</form>
<?php
}
$cover = ossn
siteurl() . "cover/{$user->username}";
?>
<img id="draggable" class="profile-cover-img" src="<?php echo $cover; ?>"
style='position:relative;top:<?php echo $cover
top; ?>;left:<?php echo $coverleft; ?>;'
/>
</div>
<div class="profile-photo">
<?php if (ossn
loggedinuser()->guid == $user->guid) { ?>
<div class="upload-photo" style="display:none;cursor:pointer;">
<span onclick="Ossn.Clk('.pfile');"><?php echo ossn
print('change:photo'); ?></span>

                <form id="upload-photo" style="display:none;" method="post" enctype="multipart/form-data">
                    <input type="file" name="userphoto" class="pfile"
                           onchange="Ossn.Clk('#upload-photo .upload');"/>
                     <?php echo ossn_plugin_view('input/security_token'); ?>      
                    <input type="submit" class="upload"/>
                </form>
            </div>
        <?php
        }
        $viewer = '';
        if (ossn_isLoggedIn() && get_profile_photo_guid($user->guid)) {
            $viewer = 'onclick="Ossn.Viewer(\'photos/viewer?user=' . $user->username . '\');"';
        }
        ?>
        <img src="<?php echo $user->iconURL()->larger; ?>" height="170" width="170" <?php echo $viewer; ?> />
        </div>

    <div class="user-fullname"><?php echo $user->fullname; ?>
    <?php if ($set[0]->value == 'ADMIN'){ ?><img id="tipsy-show" title="Administrator" style="cursor:pointer; z-index:999; margin-left: -7px;  margin-bottom: 12px;" src="<?php echo ossn_site_url("components/verified-account/images/verified-admin.png") ?>"/>

<?php } elseif ($set[0]->value == 'true') { ?><img title="Verified Account" id="tipsy-show" style="cursor:pointer; z-index:999; margin-left: -7px; margin-bottom: 12px;" src="<?php echo ossnsiteurl("components/verified-account/images/verified.png") ?>"/>
<?php } else {} ?><script> $('#tipsy-show'); </script></div>

What was missing was the first three lines and I rearranged the location of the badge. It works great now.

us Gregory King Replied 9 years ago

The creator of this component has commented on this on the component's page, he is working on it, it will be released soon, if you look on the side of the component you can see it for version 3.X not 4.X, so it's not recommended to use until it's upgraded.

us Gregory King Replied 9 years ago

The creator of this component has commented on this on the component's page, he is working on it, it will be released soon, if you look on the side of the component you can see it for version 3.X not 4.X, so it's not recommended to use until it's upgraded.