[Add-on] lastRSS agregator for phpBB3 (2.0.0RC)

Recent topics, announcement display, RSS / ATOM Feed Syndication MOD Downloads
- Content delivery outside of viewtopic/viewforum.

Re: [Add-on] lastRSS agregator for phpBB3 (2.0.BETA1)

Postby Smix_cz » 24 Nov 2007, 01:38

Hello,
function iconv is changing encoding ... It´s possible that some feeds wouldn´t been in right encoding, but try this :
find
Code: Select all
      // If code page is set convert character encoding to required
      if(isset($this->cp))
      {
         $out[1] = iconv($this->rsscp, $this->cp.'//TRANSLIT', $out[1]);
    }

replace with
Code: Select all
      // If code page is set convert character encoding to required
      if(isset($this->cp))
      {
        if(function_exists(iconv))
        {
        $out[1] = iconv($this->rsscp, $this->cp.'//TRANSLIT', $out[1]);
      }
    }


Please respond if it works ;) ... But as I said - some feeds could have problems with charset ...
Smix_cz    
Borg Drone
Borg Drone
 
Posts: 226
Joined: 25 Jan 2007, 09:25
Location: Czech Republic, EU
Favorite Team: Chelsea
Gender: Male
phpBB Knowledge: 9




phpBB Academy at StarTrekGuide
Support STG
Using PayPal Donate

Re: [Add-on] lastRSS agregator for phpBB3 (2.0.BETA1)

Postby bosss » 24 Nov 2007, 08:08

thanks for answer but works not ... get follow error
Code: Select all
Fatal error: Cannot redeclare class lastrss in /home/belapla/public_html/libarxx/newscenter/lastRSS.php on line 34


i have one mod " rss news" and line 34 begin in lastrss.php
Code: Select all
class lastRSS {
   // -------------------------------------------------------------------
   // Public properties
   // -------------------------------------------------------------------
   var $default_cp = 'UTF-8';
   var $CDATA = 'content';
   var $cp = '';
   var $items_limit = 0;
   var $stripHTML = true;

   // -------------------------------------------------------------------
   // Private variables


regards
bosss

edit: i have this mod on my board http://www.phpbb.com/community/viewtopi ... 0&t=589892
have same problem with that mod( same error message) but it was fixed .. http://www.phpbb.com/community/viewtopi ... a&start=15 maybe you look and get some solution and help me ...
[url="http://libar-libar.com"]Welcome to Libar[/url]
bosss
Cadet IV
Cadet IV
 
Posts: 57
Joined: 23 Nov 2007, 18:42
Gender: Male

Re: [Add-on] lastRSS agregator for phpBB3 (2.0.BETA1)

Postby Smix_cz » 24 Nov 2007, 08:31

LOL ... Now I see ... :D ... Somebody reworks original lastRSS class as I already did ... :D ... But it´s another mod using same library ... I reworked it ... You can use my lastRSS agregator or this mod ... Not both together ...
Smix_cz    
Borg Drone
Borg Drone
 
Posts: 226
Joined: 25 Jan 2007, 09:25
Location: Czech Republic, EU
Favorite Team: Chelsea
Gender: Male
phpBB Knowledge: 9

Re: [Add-on] lastRSS agregator for phpBB3 (2.0.BETA1)

Postby bosss » 24 Nov 2007, 08:53

you mean that i must uninstall one mod for get another (your) in funkcion?

is it possible to get in your mod (marque window large than 20px )?
can you see please .. http://www.belaplay.com/libarxx

Bosss :wave:
[url="http://libar-libar.com"]Welcome to Libar[/url]
bosss
Cadet IV
Cadet IV
 
Posts: 57
Joined: 23 Nov 2007, 18:42
Gender: Male

Re: [Add-on] lastRSS agregator for phpBB3 (2.0.BETA1)

Postby Smix_cz » 24 Nov 2007, 09:38

Yeah ... You´ll have to uninstall the other mod, if you want to use the one by me ... Both mods are using same library and that´s the error with redeclaring the same class name ...

The result of previous correction for your bug is (I think) the same as is in your link ... Setting the $rss->cp = ''; is (I think) the same as doing nothing in my way of correction. I think iconv wouldn´t change anything and return false, but I don´t tested it so I´m not sure about it ...

If you understand HTML, try to edit /selectedstyle/lastrss.html ;)

If you find good solution for the marquee or good setup for the marquee, please give me an echo ;) ... Thank you
Smix_cz    
Borg Drone
Borg Drone
 
Posts: 226
Joined: 25 Jan 2007, 09:25
Location: Czech Republic, EU
Favorite Team: Chelsea
Gender: Male
phpBB Knowledge: 9

Re: [Add-on] lastRSS agregator for phpBB3 (2.0.BETA1)

Postby bosss » 24 Nov 2007, 11:28

thanks for replay ..i install your mod .. if you can look .. http://www.belaplay.com/libarxx .. and how to get white background colour or some lighter colour and maybe largee letters ...


EDIT: how to get that letters (marque ) will be little slowly?

regards bosss
[url="http://libar-libar.com"]Welcome to Libar[/url]
bosss
Cadet IV
Cadet IV
 
Posts: 57
Joined: 23 Nov 2007, 18:42
Gender: Male

Re: [Add-on] lastRSS agregator for phpBB3 (2.0.BETA1)

Postby Smix_cz » 24 Nov 2007, 11:44

it´s about style colors ... you´ll have to edit css file for the selected css ...

About speed - it´s as I already said in some of my previous posts (discussion with Fridge) ... This should be edited in file /styles/selectedstyle/lastrss.html and it´s simple html ... (or edit style just in lastrss.html ... style="color:white;" )
Last edited by Smix_cz on 24 Nov 2007, 12:08, edited 1 time in total.
Smix_cz    
Borg Drone
Borg Drone
 
Posts: 226
Joined: 25 Jan 2007, 09:25
Location: Czech Republic, EU
Favorite Team: Chelsea
Gender: Male
phpBB Knowledge: 9

Re: [Add-on] lastRSS agregator for phpBB3 (2.0.BETA1)

Postby bosss » 24 Nov 2007, 11:52

please can you just help me ...show where and how to put (white backgrund in marque block(not black like now) and slower speed ) please

EDIT:

where exact put this
Code: Select all
style="color:white;")
?

can you make something like this
Code: Select all
#pscroller1{
   width: 100%;
   height: 30px;
   padding: 0px;
   margin: 0px;
}
but for marquee in theme/common.css ?

thanks
bosss
[url="http://libar-libar.com"]Welcome to Libar[/url]
bosss
Cadet IV
Cadet IV
 
Posts: 57
Joined: 23 Nov 2007, 18:42
Gender: Male

Re: [Add-on] lastRSS agregator for phpBB3 (2.0.BETA1)

Postby Smix_cz » 24 Nov 2007, 12:05

This is last time I´m doing it ... I´m unable to make edits for all styles which exists ...

Open
Code: Select all
/styles/yourstyle/lastrss.html


Find
Code: Select all
<marquee style="height:20px;line-height:20px;"

replace with
Code: Select all
<marquee style="height:20px;line-height:20px;background:white;"


OR

Find
Code: Select all
<a style="font-weight:bold;"

Replace with
Code: Select all
<a style="font-weight:bold;color:white;"

AND
Find
Code: Select all
<a href="{lastrssrow.itemsrow.LINK}"

Replace with
Code: Select all
<a style="color:white;" href="{lastrssrow.itemsrow.LINK}"


in css should be something like
Code: Select all
marquee{
color:white;
}
marquee a{
color:white;
}

I´ll add this to css file when I´ll be sure it´s the best settings ...
Last edited by Smix_cz on 24 Nov 2007, 12:08, edited 1 time in total.
Smix_cz    
Borg Drone
Borg Drone
 
Posts: 226
Joined: 25 Jan 2007, 09:25
Location: Czech Republic, EU
Favorite Team: Chelsea
Gender: Male
phpBB Knowledge: 9

Re: [Add-on] lastRSS agregator for phpBB3 (2.0.BETA1)

Postby bosss » 24 Nov 2007, 12:07

Code: Select all
div class="navbar">
   <div class="inner">
      <span class="corners-top"><span></span></span>
    <div style="display:block;height:40px;line-height:40px;"><img src="images/lastrss.png" alt="{LASTRSS_TITLE}" style="float:left; margin:auto;" style="color:white;" />
      <marquee style="height:40px;line-height:40px;" onmouseover="stop();" onmouseout="start();">
        <!-- BEGIN lastrssrow -->
          <!-- IF lastrssrow.HASITEMS -->
          | <a style="font-weight:bold;" href="{lastrssrow.LINK}" target="_blank">{lastrssrow.TITLE}</a>
            <!-- BEGIN itemsrow -->
              &bull; <a href="{lastrssrow.itemsrow.LINK}" title="{lastrssrow.itemsrow.TITLE}" target="_blank">{lastrssrow.itemsrow.TITLE}</a>
            <!-- END itemsrow -->
          <!-- ELSE -->
              &bull; {LASTRSS_NOTAVAILABLE}
          <!-- ENDIF -->
        <!-- END lastrssrow -->
      </marquee>
    </div>
      <span class="corners-bottom"><span></span></span>
   </div>
</div>



This is lastrss.html ( can you put speed and color-i put color but works not --please)

bosss
[url="http://libar-libar.com"]Welcome to Libar[/url]
bosss
Cadet IV
Cadet IV
 
Posts: 57
Joined: 23 Nov 2007, 18:42
Gender: Male

PreviousNext

Return to Recent Topics, RSS / ATOM Syndication MODs

Who is online

Users browsing this forum: No registered users and 0 guests