mirror of
https://github.com/openvk/openvk
synced 2024-12-23 09:01:15 +03:00
profile, video: count symbols limitation.
This commit is contained in:
parent
006a344133
commit
8958fa5821
4 changed files with 6 additions and 4 deletions
|
@ -129,7 +129,7 @@ final class UserPresenter extends OpenVKPresenter
|
||||||
$user->setCity(empty($this->postParam("city")) ? NULL : $this->postParam("city"));
|
$user->setCity(empty($this->postParam("city")) ? NULL : $this->postParam("city"));
|
||||||
$user->setAddress(empty($this->postParam("address")) ? NULL : $this->postParam("address"));
|
$user->setAddress(empty($this->postParam("address")) ? NULL : $this->postParam("address"));
|
||||||
} elseif($_GET['act'] === "interests") {
|
} elseif($_GET['act'] === "interests") {
|
||||||
$user->setInterests(empty($this->postParam("interests")) ? NULL : $this->postParam("interests"));
|
$user->setInterests(empty($this->postParam("interests")) ? NULL : ovk_proc_strtr($this->postParam("interests"), 300));
|
||||||
$user->setFav_Music(empty($this->postParam("fav_music")) ? NULL : $this->postParam("fav_music"));
|
$user->setFav_Music(empty($this->postParam("fav_music")) ? NULL : $this->postParam("fav_music"));
|
||||||
$user->setFav_Films(empty($this->postParam("fav_films")) ? NULL : $this->postParam("fav_films"));
|
$user->setFav_Films(empty($this->postParam("fav_films")) ? NULL : $this->postParam("fav_films"));
|
||||||
$user->setFav_Shows(empty($this->postParam("fav_shows")) ? NULL : $this->postParam("fav_shows"));
|
$user->setFav_Shows(empty($this->postParam("fav_shows")) ? NULL : $this->postParam("fav_shows"));
|
||||||
|
|
|
@ -57,8 +57,8 @@ final class VideosPresenter extends OpenVKPresenter
|
||||||
if(!empty($this->postParam("name"))) {
|
if(!empty($this->postParam("name"))) {
|
||||||
$video = new Video;
|
$video = new Video;
|
||||||
$video->setOwner($this->user->id);
|
$video->setOwner($this->user->id);
|
||||||
$video->setName($this->postParam("name"));
|
$video->setName(ovk_proc_strtr($this->postParam("name"), 61));
|
||||||
$video->setDescription($this->postParam("desc"));
|
$video->setDescription(ovk_proc_strtr($this->postParam("desc"), 300));
|
||||||
$video->setCreated(time());
|
$video->setCreated(time());
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -245,7 +245,7 @@
|
||||||
style="max-width: 170px; margin: auto;" />
|
style="max-width: 170px; margin: auto;" />
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<b><a href="/video{$video->getPrettyId()}">{$video->getName()}</a></b>
|
<b><a href="/video{$video->getPrettyId()}">{ovk_proc_strtr($video->getName(), 30)}</a></b>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -665,6 +665,8 @@ table.User {
|
||||||
border: #DEDEDE solid 1px;
|
border: #DEDEDE solid 1px;
|
||||||
clear: both;
|
clear: both;
|
||||||
margin-bottom: 12px;
|
margin-bottom: 12px;
|
||||||
|
overflow: hidden;
|
||||||
|
word-break: break-word;
|
||||||
}
|
}
|
||||||
|
|
||||||
.gray-block {
|
.gray-block {
|
||||||
|
|
Loading…
Reference in a new issue