Verified Account component

Ivan Desbananes Posted in Component Development 10 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 10 years ago

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

us Eric Croskey Replied 10 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 10 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 (ossn_loggedin_user()->guid == $user->guid) { ?>
<div class="profile-cover-controls">
<a href="javascript:;" onclick="Ossn.Clk('.coverfile');" class='button-grey change-cover'>
<?php echo ossn_print('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 ossn_plugin_view('input/security_token'); ?>
<input type="submit" class="upload"/>
</form>
<?php
}
$cover = ossn_site_url() . "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 $cover_left; ?>;'
/>
</div>
<div class="profile-photo">
<?php if (ossn_loggedin_user()->guid == $user->guid) { ?>
<div class="upload-photo" style="display:none;cursor:pointer;">
<span onclick="Ossn.Clk('.pfile');"><?php echo ossn_print('change:photo'); ?></span>

                &lt;form id=&quot;upload-photo&quot; style=&quot;display:none;&quot; method=&quot;post&quot; enctype=&quot;multipart/form-data&quot;&gt;
                    &lt;input type=&quot;file&quot; name=&quot;userphoto&quot; class=&quot;pfile&quot;
                           onchange=&quot;Ossn.Clk("#upload-photo .upload");&quot;/&gt;
                     &lt;?php echo ossn_plugin_view("input/security_token"); ?&gt;      
                    &lt;input type=&quot;submit&quot; class=&quot;upload&quot;/&gt;
                &lt;/form&gt;
            &lt;/div&gt;
        &lt;?php
        }
        $viewer = "";
        if (ossn_isLoggedIn() &amp;&amp; get_profile_photo_guid($user-&gt;guid)) {
            $viewer = "onclick=&quot;Ossn.Viewer(\"photos/viewer?user=" . $user-&gt;username . "\");&quot;";
        }
		?&gt;
        &lt;img src=&quot;&lt;?php echo $user-&gt;iconURL()-&gt;larger; ?&gt;&quot; height=&quot;170&quot; width=&quot;170&quot; &lt;?php echo $viewer; ?&gt; /&gt;
        &lt;/div&gt;
        
    &lt;div class=&quot;user-fullname&quot;&gt;&lt;?php echo $user-&gt;fullname; ?&gt;
    &lt;?php if ($set[0]-&gt;value == "ADMIN"){ ?&gt;&lt;img id=&quot;tipsy-show&quot; title=&quot;Administrator&quot; style=&quot;cursor:pointer; z-index:999; margin-left: -7px;  margin-bottom: 12px;&quot; src=&quot;&lt;?php echo ossn_site_url(&quot;components/verified-account/images/verified-admin.png&quot;) ?&gt;&quot;/&gt;

<?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 ossn_site_url("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 10 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 10 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.