Перейти к контенту

Картинка в сообщениях


FARAON

Рекомендуемые сообщения

Хороший мод, тока вопрос, как сделать, чтобы картинка не повторялась и занимала определённое место, к примеру по середине?

Надо учить CSS :D

Мне тоже это интересно

Ссылка на комментарий
Поделиться на других сайтах

  • 6 месяцев спустя...

Вот выдержка из инструкции:

[b]4. Now you need to modify topics.php, so open that file up in your text editor.
Look for the text that looks like this:[/b]

function parse_member( $member=array() )
{
  global $ibforums, $std, $DB;

[b]Add the following right below that...[/b]

// BEGIN PRANK-POST HACK
if ($member['prankpost_background'])
{
 $member['prankpost_style'] = "  style=\"background:url({$member['prankpost_background']}); \" ";
}
 else
{
 $member['prankpost_style'] = "";
}
// END PRANK-POST HACK

 

вот здесь допишем пишем:

 

style=\"background:url({$member['prankpost_background']} no-repeat bootom right);

 

теперь фон не будет повторятся и картинка будет справа в углу

 

Ну и так же по аналогии:

middle - центр по высоте

center - центр по ширине

left - слева

right - вправа

top - сверху

bottom - снизу

Ссылка на комментарий
Поделиться на других сайтах

  • 2 недели спустя...

Для 2.1 есть?

 

В инструкции написано:

2. Create the fields in the Data base to hold the images:
Go to your AdminCP/Admin/SQL Toolbox or your phpMyAdmin and execute
the following SQL statement to add two new fields:

alter table ibf_members add prankpost_background varchar(128) not null;
alter table ibf_members add prankpost_background_rightside varchar(128) not null;
alter table ibf_members add prankpost_background_leftbottom varchar(128) not null;
alter table ibf_members add prankpost_background_rightbottom varchar(128) not null;

 

Можете на русском объяснить?

Изменено пользователем Yamamura
Ссылка на комментарий
Поделиться на других сайтах

Хм.. толи я чет не то сделал толи че.. ставил на 2.1.* в итоге то место (скажем Member Post Background (Left Column Untiled)) просто выделяется белым, и так с любым местом ;/ а картинки тютю :D И еще, ни кто не руссифицировал это дело? Я вот лично в инструкции дошел до 4 пункта..ну там благо все понятно..дале идут слова

To check if you are doing everything right, go to give your own posts some backgrounds. Edit your own profile from Admin CP, you will see four new fields: two for tiled, and two for untiled, enter the URLs of your background graphics and save your profile. Remember you can only have two graphics, therefore two fields out of four should be empty.

Go to your Forum and check whether now all your posts have those backgrounds!!

 

GLOBAL GLOBAL GLOBAL!!!

 

If you wish to have the background to be GLOBAL, here is how:

 

Forget about all of the edits above, you don't have to do them if you just wish to have it Global (though you can have BOTH, they do not conflict with each other). Let's start:

This option to make it global is simple, mostly it only edits the CSS of your skin. It is made because of a request for a global post background. However, because of the many possibilities of different skins used by different people, you might need to adjust the background color if you are using some unique skin, read on to learn how. Let's start. Don't forget to replace "#your-color-code-it-varies-depending-on-your-skin" with your actual color-code.

что зачем я не понял.. и снова пункты 1.2.3.4.

В общем почему фон то белый становится? ;)

Ссылка на комментарий
Поделиться на других сайтах

  • 3 недели спустя...
  • 1 год спустя...
×
×
  • Создать...

Важная информация

Находясь на нашем сайте, вы соглашаетесь на использование файлов cookie, а также с нашим положением о конфиденциальности Политика конфиденциальности и пользовательским соглашением Условия использования.