<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Strawberry форум &mdash; Следующий-предыдущий]]></title>
	<link rel="self" href="http://strawberry.goodgirl.ru/forum/feed/atom/topic/3697/"/>
	<updated>2010-02-01T10:13:11Z</updated>
	<generator>PunBB</generator>
	<id>http://strawberry.goodgirl.ru/forum/topic/3697/</id>
		<entry>
			<title type="html"><![CDATA[Re: Следующий-предыдущий]]></title>
			<link rel="alternate" href="http://strawberry.goodgirl.ru/forum/post/15539/#p15539"/>
			<content type="html"><![CDATA[<p>В шаблоне добавте<br /></p><div class="codebox"><pre><code>&lt;?php print_r($prev_next_links); ?&gt;</code></pre></div><p>И посмотрите что будет. Если вы не работали никогда с массивами, то советую в этом деле разобраться - в будущем очень даже поможет...</p>]]></content>
			<author>
				<name><![CDATA[Miksar]]></name>
				<uri>http://strawberry.goodgirl.ru/forum/user/688/</uri>
			</author>
			<updated>2010-02-01T10:13:11Z</updated>
			<id>http://strawberry.goodgirl.ru/forum/post/15539/#p15539</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Следующий-предыдущий]]></title>
			<link rel="alternate" href="http://strawberry.goodgirl.ru/forum/post/15532/#p15532"/>
			<content type="html"><![CDATA[<p>а для тех, кто в танке - можно подробнее??? <br /><img src="http://strawberry.goodgirl.ru/forum/img/smilies/roll.png" width="15" height="15" alt="roll" /></p>]]></content>
			<author>
				<name><![CDATA[yukon]]></name>
				<uri>http://strawberry.goodgirl.ru/forum/user/846/</uri>
			</author>
			<updated>2010-01-31T16:58:13Z</updated>
			<id>http://strawberry.goodgirl.ru/forum/post/15532/#p15532</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Следующий-предыдущий]]></title>
			<link rel="alternate" href="http://strawberry.goodgirl.ru/forum/post/15529/#p15529"/>
			<content type="html"><![CDATA[<p><strong>print_r();</strong> в помощь!<br />(внутрь скобок вставляется переменная с массивом). Так вы найдете нужные эл-ты массива и сможете сами создать ссылку вида: megaindex.php?id=$prev_next_links[&#039;prev&#039;][&#039;какой то номер ячейки в массиве&#039;].</p>]]></content>
			<author>
				<name><![CDATA[Miksar]]></name>
				<uri>http://strawberry.goodgirl.ru/forum/user/688/</uri>
			</author>
			<updated>2010-01-31T15:34:44Z</updated>
			<id>http://strawberry.goodgirl.ru/forum/post/15529/#p15529</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Следующий-предыдущий]]></title>
			<link rel="alternate" href="http://strawberry.goodgirl.ru/forum/post/15527/#p15527"/>
			<content type="html"><![CDATA[<p>а ниче не получается - вместо почти верной ссылки на index.php&nbsp; с id новости теперь ссылается на&nbsp; site.ru/Array</p>]]></content>
			<author>
				<name><![CDATA[yukon]]></name>
				<uri>http://strawberry.goodgirl.ru/forum/user/846/</uri>
			</author>
			<updated>2010-01-31T15:10:31Z</updated>
			<id>http://strawberry.goodgirl.ru/forum/post/15527/#p15527</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Следующий-предыдущий]]></title>
			<link rel="alternate" href="http://strawberry.goodgirl.ru/forum/post/15522/#p15522"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>yukon пишет:</cite><blockquote><p>что тут заменить</p></blockquote></div><p> для начала уберите cute_get_link() и посмотрите что получится.</p>]]></content>
			<author>
				<name><![CDATA[ANT-Soft]]></name>
				<uri>http://strawberry.goodgirl.ru/forum/user/43/</uri>
			</author>
			<updated>2010-01-29T03:09:16Z</updated>
			<id>http://strawberry.goodgirl.ru/forum/post/15522/#p15522</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Следующий-предыдущий]]></title>
			<link rel="alternate" href="http://strawberry.goodgirl.ru/forum/post/15521/#p15521"/>
			<content type="html"><![CDATA[<p>ага, и что тут заменить, чтобы страница была не index, а скажем megaindex ???</p><div class="codebox"><pre><code>function prev_next_generic($tpl){
global $prev_next_links;

    if ($prev_next_links){
        $tpl[&#039;prev-next&#039;][&#039;prev&#039;][&#039;link&#039;]  = cute_get_link($prev_next_links[&#039;prev&#039;][0]);
        $tpl[&#039;prev-next&#039;][&#039;prev&#039;][&#039;title&#039;] = $prev_next_links[&#039;prev&#039;][0][&#039;title&#039;];
        $tpl[&#039;prev-next&#039;][&#039;next&#039;][&#039;link&#039;]  = cute_get_link($prev_next_links[&#039;next&#039;][0]);
        $tpl[&#039;prev-next&#039;][&#039;next&#039;][&#039;title&#039;] = $prev_next_links[&#039;next&#039;][0][&#039;title&#039;];
    }</code></pre></div>]]></content>
			<author>
				<name><![CDATA[yukon]]></name>
				<uri>http://strawberry.goodgirl.ru/forum/user/846/</uri>
			</author>
			<updated>2010-01-28T20:58:11Z</updated>
			<id>http://strawberry.goodgirl.ru/forum/post/15521/#p15521</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Следующий-предыдущий]]></title>
			<link rel="alternate" href="http://strawberry.goodgirl.ru/forum/post/15389/#p15389"/>
			<content type="html"><![CDATA[<p><strong>yukon</strong>, файл <strong>plugins/prev-next-links.php</strong>, функция <strong>prev_next_generic($tpl)</strong>.</p>]]></content>
			<author>
				<name><![CDATA[ANT-Soft]]></name>
				<uri>http://strawberry.goodgirl.ru/forum/user/43/</uri>
			</author>
			<updated>2010-01-11T06:55:42Z</updated>
			<id>http://strawberry.goodgirl.ru/forum/post/15389/#p15389</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Следующий-предыдущий]]></title>
			<link rel="alternate" href="http://strawberry.goodgirl.ru/forum/post/15383/#p15383"/>
			<content type="html"><![CDATA[<p>Привет всем.<br />Столкнулся с необходимостью применить шаблон &quot;предыдущая-следующая&quot; на сайте.&nbsp; У меня Strawberry 1.1.1 MySQL<br />Мой шаблон для prev-link :</p><p> </p><div class="codebox"><pre><code>&lt;table width=&quot;100%&quot; border=&quot;0&quot; align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;
  &lt;tr&gt;
    &lt;td width=&quot;50%&quot; align=&quot;left&quot;&gt;&lt;small&gt;&lt;a href=&quot;&lt;?=$tpl[&#039;post&#039;][&#039;prev-next&#039;][&#039;prev&#039;][&#039;link&#039;]; ?&gt;&quot;&gt;&amp;lt;&amp;lt; 
      &lt;?=$tpl[&#039;post&#039;][&#039;prev-next&#039;][&#039;prev&#039;][&#039;title&#039;]; ?&gt;
      &lt;/a&gt;&lt;/small&gt;&lt;/td&gt;
    &lt;td width=&quot;50%&quot; align=&quot;right&quot;&gt;&lt;small&gt;&lt;a href=&quot;&lt;?=$tpl[&#039;post&#039;][&#039;prev-next&#039;][&#039;next&#039;][&#039;link&#039;]; ?&gt;&quot;&gt; 
      &lt;?=$tpl[&#039;post&#039;][&#039;prev-next&#039;][&#039;next&#039;][&#039;title&#039;]; ?&gt;
      &amp;gt;&amp;gt; &lt;/a&gt;&lt;/small&gt;&lt;/td&gt;
  &lt;/tr&gt;
&lt;/table&gt; </code></pre></div><br /><p>Загвоздка в том, что ссылки&nbsp; выдаются&nbsp; ссылки на главную страницу (например index.php?id=46), а мне надо&nbsp; на другую - loc.php?id=46. Вопрос: как это реализовать?</p>]]></content>
			<author>
				<name><![CDATA[yukon]]></name>
				<uri>http://strawberry.goodgirl.ru/forum/user/846/</uri>
			</author>
			<updated>2010-01-10T11:49:27Z</updated>
			<id>http://strawberry.goodgirl.ru/forum/post/15383/#p15383</id>
		</entry>
</feed>

