We need to maintain the user's session through the RSS feed page. Can you modify the first post so that the user's session is kept in the link please? (append_sid)
EDIT: Ignore my next post. As long as you have cookies enabled, don't bother changing anything. I'm not even sure it would work, anyway. (the middle part of my post about commenting out that one line is still a good idea)
RSS feed block
Forum rules
This forum is not for support requests.
Only post Modifications for Board3 Portal 1.0.x in this forum.
This forum is not for support requests.
Only post Modifications for Board3 Portal 1.0.x in this forum.
-
- Translator
- Posts: 27
- Joined: 10. February 2008 17:11
- Location: New Jersey, USA
- Contact:
Need to maintain session
Last edited by liquidspark on 7. June 2008 01:16, edited 2 times in total.
-
- Translator
- Posts: 27
- Joined: 10. February 2008 17:11
- Location: New Jersey, USA
- Contact:
Re: RSS feed block
We need to change that line fromfrold wrote:OPEN
styles/prosilver/template/portal/block/rss.html
REPLACE ALL WITHCode: Select all
<div class="panel"> <div class="inner"> <span class="corners-top"><span></span></span> <h3>RSS feed</h3> <span><a href="rss.php" target="_blank"><img src="images/rssforum.png" title="RSS feed" width="90" height="15" border="0"></a></span> <span class="corners-bottom"><span></span></span> </div> </div> <br style="clear:both" />
Code: Select all
<span><a href="rss.php" target="_blank"><img src="images/rssforum.png" title="RSS feed" width="90" height="15" border="0"></a></span>
Code: Select all
<span><a href="{U_RSS}" target="_blank"><img src="images/rssforum.png" title="RSS feed" width="90" height="15" border="0"></a></span>
OPEN
./rss.php
FIND
Code: Select all
$text = str_replace('&#', '&#', htmlspecialchars($text, ENT_QUOTES)); // html format
Code: Select all
// $text = str_replace('&#', '&#', htmlspecialchars($text, ENT_QUOTES)); // html format
OPEN
./rss.php
FIND
Code: Select all
$rdf .= "<link>" . $url . "</link>";
Code: Select all
$rdf .= "<link>" . append_sid($url) . "</link>";
Now we still have to keep the session going from the portal to the RSS feed page. How do we do that? We already modified the block to add "{U_RSS}" instead of a direct link, so now we have to define this template variable and "append_sid()" to the link to rss.php. (I'm guessing this should be the rss.php file, although I'm not sure at all.) Will it work? Who knows? Let's try it!
OPEN
./rss.php
FIND
Code: Select all
?>
Code: Select all
$template->assign_block_vars('rss', array(
'U_RSS' => append_sid("{$phpbb_root_path}rss.$phpEx")));
EDIT: my phpbb_root_path and the whole link thing isn't working, so forget it.
-
- Active Member
- Posts: 4
- Joined: 3. May 2009 15:53
Re: RSS feed block
I have used what you had here to tie into my existing install of Simple Syndication 1.1.1b (outgoing rss) by Angelside, and it's worked great.. thanks for getting things started.
http://nikt.zog.net.au/drugcrew/plugins ... portal.php
http://nikt.zog.net.au/drugcrew/plugins ... portal.php