sitemaps rss

The GYM Sitemaps and RSS module and it's plug-ins.
Google Yahoo MSN Sitemaps (United 0.9).
RSS 2.0 Feeds and Yahoo! urllist.txt.

Moderator: Moderators

sitemaps rss

Postby tweety » Sun Jul 15, 2007 12:23 pm

is this gym sitemaps rss able for images.
can it pick up an image in a pos at all?
tweety
PR0
PR0
 
Posts: 94
Joined: Wed Jan 24, 2007 1:29 am

Advertisement

Postby HB » Sun Jul 15, 2007 2:01 pm

You can control how much text and whether images are included in RSS feeds, though they will be loaded from your server (via the referenced <img> tag in the feed). The ACP also has options for controlling whether the content of common BBcode tags are included in the feed (e.g., [quote]). For example, I use this option to exclude quoted text from the feed and replace them with {quote}.
Dan Kehn
HB
phpBB SEO Team
phpBB SEO Team
 
Posts: 1211
Joined: Mon Oct 16, 2006 2:25 am

Postby tweety » Sun Jul 15, 2007 11:17 pm

Thank you for info.
tweety
PR0
PR0
 
Posts: 94
Joined: Wed Jan 24, 2007 1:29 am

Postby tweety » Sat Nov 10, 2007 5:53 pm

I am sorry for delay
i only now start looking at sitemaps
can someone help me with this
i want to have mod that shows forum image on index
will this rss feed be possible for the forum images to be shown
i can see option that says
Code: Select all
Forum Image
The forum image that will be displayed in the RSS feeds. The image folder is sitemapzimg/. Ex : rss_forum.gif.

but this will only do same image for all.
tweety
PR0
PR0
 
Posts: 94
Joined: Wed Jan 24, 2007 1:29 am

Postby dcz » Sun Nov 18, 2007 12:29 pm

phpBB2 does not have a personalized image for each forums by default, but the GYM modules RSS feeds are build in a way that make it possible for an easy hack in case you installed a mod to use personalized images for forums.

Please post a link to the mod you used to add personalized forum images, and I'll tell you how to use them in the forum feeds as well ;)

++
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21219
Joined: Fri Apr 28, 2006 9:03 pm

Postby tweety » Tue Nov 20, 2007 3:57 am

dcz wrote:phpBB2 does not have a personalized image for each forums by default, but the GYM modules RSS feeds are build in a way that make it possible for an easy hack in case you installed a mod to use personalized images for forums.

Please post a link to the mod you used to add personalized forum images, and I'll tell you how to use them in the forum feeds as well ;)

++


thank you dcz
this is it
http://www.phpbbhacks.com/download/5106

Do you know of better mod? i thinking that this looks simple and neat.
tweety
PR0
PR0
 
Posts: 94
Joined: Wed Jan 24, 2007 1:29 am

Postby dcz » Fri Nov 23, 2007 2:48 pm

Well it is indeed a basic one.

Problem raised is this code is not centralized at all, and thus not really optimized.

Since we'd need to declare your custom images as an array with this mod for the GYM modules, I think it would even be better to do it once and for all for the mod as well.

So, you could declare an array in common.php, at the very end, right before :

Code: Select all
?
>


You could add :
Code: Select all
$forum_images = array();$forum_images = array( 1 => 'http://www.url.com/forum/templates/subSilver/images/yourpicture.gif',
   2 => 'http://www.url.com/forum/templates/subSilver/images/yourpicture.gif',
);

It's the same principle as the :
Code: Select all
         if ($forum_id == 1) $PICS_IMG = ( $unread_topics ) ? "http://www.url.com/forum/templates/subSilver/images/yourpicture.gif" : "http://www.url.com/forum/templates/subSilver/images/yourpicture.gif";
         if ($forum_id == 2) $PICS_IMG = ( $unread_topics ) ? "http://www.url.com/forum/templates/subSilver/images/yourpicture.gif" : "http://www.url.com/forum/templates/subSilver/images/yourpicture.gif";
         if ($forum_id == 3) $PICS_IMG = ( $unread_topics ) ? "http://www.url.com/forum/templates/subSilver/images/yourpicture.gif" : "http://www.url.com/forum/templates/subSilver/images/yourpicture.gif";


from the mod, you'd need to set the images manually, adding new line in the array corresponding to the corresponding forum ids.

Pattern would be :

Code: Select all
forum_id => "image_url_with_domain",


Then, you' only need to replace all the above lines (all of the images déclaration) from the mod's code in index.php with :
Code: Select all
$PICS_IMG = (isset($forum_images[$forum_id]) && $unread_topics ) ? $forum_images[$forum_id] : '';


With this change, you'll be able to replace :
Code: Select all
      // Set forum Image, do it here in case one want to output a specific image per forum
      $forum_image = sprintf($this->style_config['rsschan_img_tpl'], $chan_title, $this->rss_config['rss_forum_image'], $item_opt[$forum_id]['forum_url']);


with :
Code: Select all
      // Set forum Image, do it here in case one want to output a specific image per forum
      global $forum_images;
      $PICS_IMG = (isset($forum_images[$forum_id]) ? $forum_images[$forum_id] : $this->rss_config['rss_forum_image'];
      $forum_image = sprintf($this->style_config['rsschan_img_tpl'], $chan_title, $this->rss_config['rss_forum_image'], $item_opt[$forum_id]['forum_url']);


Should do the trick ;)

++
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21219
Joined: Fri Apr 28, 2006 9:03 pm

Postby tweety » Sat Nov 24, 2007 2:23 pm

DCZ Thanks

I will look at this.

Do you think there is a better mod for the images on index? what is this?
tweety
PR0
PR0
 
Posts: 94
Joined: Wed Jan 24, 2007 1:29 am

Postby dcz » Sun Nov 25, 2007 2:37 pm

Forum Icon with ACP Control is more complete, but, means more work to install.

++
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21219
Joined: Fri Apr 28, 2006 9:03 pm

Postby tweety » Mon Dec 03, 2007 7:33 am

dcz you convince me that work is good here
i will delete old mod and install this
will this work then with rss image?
tweety
PR0
PR0
 
Posts: 94
Joined: Wed Jan 24, 2007 1:29 am


Return to GYM Sitemaps phpBB2

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 3 guests