форум vBSupport.ru > vBulletin > Вопрос — Ответ
Register Меню vBsupport Изображения Files Manager О рекламе Today's Posts Search
  • Родная гавань
  • Блок РКН снят
  • Premoderation
  • For English speaking users
  • Каталог Фрилансеров
  • If you want to buy some product or script
  • Администраторам
VBsupport перешел с домена .ORG на родной .RU Ура! Пожалуйста, обновите свои закладки - VBsupport.ru
Блок РКН снят, форум доступен на всей территории России, включая новые терртории, без VPN
На форуме введена премодерация ВСЕХ новых пользователей

Почта с временных сервисов, типа mailinator.com, gawab.com и/или прочих, которые предоставляют временный почтовый ящик без регистрации и/или почтовый ящик для рассылки спама, отслеживается и блокируется, а так же заносится в спам-блок форума, аккаунты удаляются
for English speaking users:
You may be surprised with restriction of access to the attachments of the forum. The reason is the recent change in vbsupport.org strategy:

- users with reputation < 10 belong to "simple_users" users' group
- if your reputation > 10 then administrator (kerk, Luvilla) can decide to move you into an "improved" group, but only manually

Main idea is to increase motivation of community members to share their ideas and willingness to support to each other. You may write an article for the subject where you are good enough, you may answer questions, you may share vbulletin.com/org content with vbsupport.org users, receiving "thanks" equal your reputation points. We should not only consume, we should produce something.

- you may:
* increase your reputation (doing something useful for another members of community) and being improved
* purchase temporary access to the improved category:
10 $ for 3 months. - this group can download attachments, reputation/posts do not matter.
20 $ for 3 months. - this group can download attachments, reputation/posts do not matter + adds eliminated + Inbox capacity increased + files manager increased permissions.

Please contact kerk or Luvilla regarding payments.

Important!:
- if your reputation will become less then 0, you will be moved into "simple_users" users' group automatically.*
*for temporary groups (pre-paid for 3 months) reputation/posts do not matter.
Уважаемые пользователи!

На форуме открыт новый раздел "Каталог фрилансеров"

и отдельный раздел для платных заказов "Куплю/Закажу"

Если вы хотите приобрести какой то скрипт/продукт/хак из каталогов перечисленных ниже:
Каталог модулей/хаков
Ещё раз обращаем Ваше внимание: всё, что Вы скачиваете и устанавливаете на свой форум, Вы устанавливаете исключительно на свой страх и риск.
Сообщество vBSupport'а физически не в состоянии проверять все стили, хаки и нули, выкладываемые пользователями.
Помните: безопасность Вашего проекта - Ваша забота.
Убедительная просьба: при обнаружении уязвимостей или сомнительных кодов обязательно отписывайтесь в теме хака/стиля
Спасибо за понимание
 
 
 
 
andreriedel
Простоузер
Question Как правильно разместить html файл в теле форума?
0

Установлен сам форум 3.8.2. + vBadvanced

Есть некий html файл, который постоянно генериться (обновляется) эфирной программой (радио)
С помощью проги WebDrive этот файл записывается на хостинг и постоянно перезаписывается.
Как мне разместить этот файл в теле портала в виде отдельной страницы с нужными мне модулями по бокам и т д ?

Выручайте плииззз
Bot
Yandex Bot Yandex Bot is online now
 
Join Date: 05.05.2005
Реклама на форуме А что у нас тут интересного? =)
 
 
kerk
k0t
 
kerk's Avatar
Default
0

content of file.html
======
some html code
======

PHP Code:
$var file_get_contents('path/to/file.html');
print 
$var
на страницу будет выведено
some html code
или то, что находится в файле
 
 
andreriedel
Простоузер
Default
0

Quote:
Originally Posted by kerk View Post
content of file.html
======
some html code
======

PHP Code:
$var file_get_contents('path/to/file.html');
print 
$var
на страницу будет выведено
some html code
или то, что находится в файле
Не получается

Делал так:
1. новую страницу создал с помощью custom page wrapper
получилось: http://Поддомен.ИмяСайта.Ру/index.php?page=play
2. разместил код в шаблоне страницы play, больше там я ничего не писал и не вставлял (насколько я понял - больше ничего и не нужно было делать)
Code:
$var = file_get_contents('path/to/file.html');
print $var;
3. в коде заменил имя файла на свои

в итоге получил новую страницу, пустую и с текстом
Code:
= file_get_contents('path/to/Play.html'); print ;
Что я сделал не так?
 
 
kerk
k0t
 
kerk's Avatar
Default
0

загрузи содержимое архива вместе с папкой mb куда то на форум и зайди в эту директорию браузером
ты увидишь содержимое файла file.html но через индексный файл index.php
посмотри, как это сделано в индексном файле и сделай по своему усмотрению
========
содержимое архива:
  • index.php
  • file.html
содержимое файлов:
index.php
PHP Code:
<?php
error_reporting
(E_ALL & ~E_NOTICE);
$cwd getcwd();
$cwd str_replace('\\''/'$cwd);
if(!
$filecontent = @file_get_contents($cwd '/file.html'))
{
      print 
'Wrong file or File Path!';
}else{
      print 
$filecontent;
}
?>
file.html
HTML Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
   <meta http-equiv="content-type" content="text/html; charset=windows-1251">
   <title> File Title</title>
</head>
<body>
 <table border="1" cellspacing="2" cellpadding="2" width="50%" align="center" valign="top">
 <tr>
  <td>Cell 1</td><td>Cell 2</td><td>Cell 3</td><td>Cell 4</td>
 </tr> 
  <tr>
  <td>Cell 1</td><td>Cell 2</td><td>Cell 3</td><td>Cell 4</td>
 </tr>
  <tr>
  <td>Cell 1</td><td>Cell 2</td><td>Cell 3</td><td>Cell 4</td>
 </tr>
</table>
</body>
</html>
**тут был скрин, он умер**
Attached Files
File Type: rar mb.rar (617 Bytes, 6 views)
 
 
kerk
k0t
 
kerk's Avatar
Default
1

модуль для портала
смотри настройку модуля, она единственная

**тут был скрин, он умер**
Attached Files
File Type: rar module.rar (1.6 KB, 5 views)
 
 
andreriedel
Простоузер
Default
0

Спасибо большое за помощь, все работает.
 

Tags
html


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off




All times are GMT +4. The time now is 04:51 PM.


Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.