Форум SAPE.RU

Форум SAPE.RU (http://forum.sape.ru/index.php)
-   Биржа статей (http://forum.sape.ru/forumdisplay.php?f=50)
-   -   Joomla 1.5: установка кода статей и изготовление шаблона (http://forum.sape.ru/showthread.php?t=48370)

sergeyysa 03.10.2011 01:46

Не могу сделать шаблон для статей... что ни делал, а от "Не все поля найдены в шаблоне: Не найдено поле поле {title} внутри TITLE" избавиться не могу, запутался уже совсем... Помогите кто может, знает, как от этого избавиться... Все советы уже перечитал и ни чего...:(:(
для joomla 1.5...

verman 07.10.2011 00:57

Доброго дня
Никого не удивлю, но не получилось. Тему перечитывал, но ответы не нашел.
Заранее спасибо.

1. модуль установил, в его коде, через фтп прописал код
2. name.php сделал , но отображается ???? сохранял через нот пад в UTF-8 с и без ВАМ
вопрос, что не так?
3. что нужно таки прописать в .htaccess ?
mod_rewrite включен и корректно работает сейчас

llooll 07.10.2011 01:15

verman, могу поставить код за пару обратных ссылок.
(код встроить в шаблон, если устраивает - пишите в личку)

verman 07.10.2011 19:50

Мышки плакали и кололись, но продолжали жрать кактус и иметь сношение с установкой кода.
llooll
Спасибо, но нет.

Добавлено через 11 часов 41 минуту
И администрация не помогает)
Ну, будем искать.

Petrovich432 21.10.2011 10:24

Шаблон статей
 
Помогите сделать шаблон сайта для размещения статей.
За деньги

Maugli 21.10.2011 13:34

Petrovich432, издеваетесь?
1. Берете типовую страницу сайта.
2. В браузере выводите страницу в коде html.
3. В любом редакторе вычищаете из кода основной контент сайта, оставляете шаблон, меню и рекламу) - всю статику короче.
4. На пустые места ставите служебные поля биржи строго по инструкции.
5. Сохраняете, заливаете на сервак в корневой, указываем шаблон на бирже.
6. Радуетесь сэкономленным средствам.

Petrovich432 21.10.2011 14:51

С шаблоном решил спасибо ,теперь проблемка с ( Проверьте работоспособность правил mod_rewrite для шаблона. )

gedzon 04.11.2011 00:25

Цитата:

Сообщение от Petrovich432 (Сообщение 1158172)
С шаблоном решил спасибо ,теперь проблемка с ( Проверьте работоспособность правил mod_rewrite для шаблона. )

Не путайте .htaccess c htaccess.txt. Если в корне сайта нет .htaccess, то просто создайте его и вставьте туда код.

Prokuror 10.11.2011 14:27

Подскажите, возможно ли поставить код статей и если возможно, то каким образом, при условии того, что сайт уже продает сапо-ссылки, но код вставлялся не через шаблон, а через mode_sape? Т.е. хочу узнать как установить код статей при уже установленном коде ссылок, но не через шаблон, а через mode_sape...

Safados 12.11.2011 18:58

народ помогите плиз
вот что я создал при добавлении урлов шаблона /{id}{name}.php
файл шаблона статей такой news.php
в .htaccess прописал вот что


##
# @version $Id: htaccess.txt 21064 2011-04-03 22:12:19Z dextercowley $
# @package Joomla
# @copyright Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved.
# @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
# Joomla! is Free Software
##


################################################## ###
# READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE
#
# The line just below this section: 'Options +FollowSymLinks' may cause problems
# with some server configurations. It is required for use of mod_rewrite, but may already
# be set by your server administrator in a way that dissallows changing it in
# your .htaccess file. If using it causes your server to error out, comment it out (add # to
# beginning of line), reload your site in your browser and test your sef url's. If they work,
# it has been set by your server administrator and you do not need it set here.
#
################################################## ###

## Can be commented out if causes errors, see notes above.
Options +FollowSymLinks

#
# mod_rewrite in use

RewriteEngine On

#Article images rules
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteRule ^[a-z0-9\_\-]+\.(jpg|gif|png)$ /b8a19eef09280885631ffbb84d3c0758.php [L]

#Articles rules
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteRule ^([0-9]+)([a-z0-9\_\-]+)\.php$ /b8a19eef09280885631ffbb84d3c0758.php [L]


########## Begin - Rewrite rules to block out some common exploits
## If you experience problems on your site block out the operations listed below
## This attempts to block the most common type of exploit `attempts` to Joomla!
#
## Deny access to extension xml files (uncomment out to activate)
#<Files ~ "\.xml$">
#Order allow,deny
#Deny from all
#Satisfy all
#</Files>
## End of deny access to extension xml files
# Block out any script trying to set a mosConfig value through the URL
RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
# Block out any script trying to base64_encode data within the URL
RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR]
# Block out any script that includes a <script> tag in URL
RewriteCond %{QUERY_STRING} (<|%3C)([^s]*s)+cript.*(>|%3E) [NC,OR]
# Block out any script trying to set a PHP GLOBALS variable via URL
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
# Block out any script trying to modify a _REQUEST variable via URL
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
# Return 403 Forbidden header and show the content of the root homepage
RewriteRule .* index.php [F]
#
########## End - Rewrite rules to block out some common exploits


########## Begin - Custom redirects
#
# If you need to redirect some pages, or set a canonical non-www to
# www redirect (or vice versa), place that code here. Ensure those
# redirects use the correct RewriteRule syntax and the [R=301,L] flags.
#
########## End - Custom redirects


# Uncomment following line if your webserver's URL
# is not directly related to physical file paths.
# Update Your Joomla! Directory (just / for root)

# RewriteBase /


########## Begin - Joomla! core SEF Section
#
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
#
# If the requested path and file is not /index.php and the request
# has not already been internally rewritten to the index.php script
RewriteCond %{REQUEST_URI} !^/index\.php
# and the request is for root, or for an extensionless URL, or the
# requested URL ends with one of the listed extensions
RewriteCond %{REQUEST_URI} (/[^.]*|\.(php|html?|feed|pdf|raw))$ [NC]
# and the requested path and file doesn't directly match a physical file
RewriteCond %{REQUEST_FILENAME} !-f
# and the requested path and file doesn't directly match a physical folder
RewriteCond %{REQUEST_FILENAME} !-d
# internally rewrite the request to the index.php script
RewriteRule .* index.php [L]
#
########## End - Joomla! core SEF Section
то что выделено красным в чём ошибка
всё равно пишет ошибка реврайта при активации урла шаблона


Часовой пояс GMT +3, время: 05:11.

Работает на vBulletin® версия 3.8.7.
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Перевод: zCarot
SAPE.RU — система купли-продажи ссылок с главных и внутренних страниц сайтов.