vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=236)
-   -   New Posting Features - Adding RSS next to forum title (https://vborg.vbsupport.ru/showthread.php?t=228428)

KID_1194 11-19-2009 10:00 PM

Adding RSS next to forum title
 
1 Attachment(s)
Dear everyone,

This modification is to add rss feed next to the forum title ...

The previous modification was Adding RSS and other options to Forum home page which I've posted before but my friend Ghostt gave me the idea of putting only 1 rss feed for all the forums in that section.

Lets see how it should be done ...

First, we go to Admincp --> Styles & Templates --> Style Manager --> Choose the style --> Edit templates --> Go

Then edit forumhome_forumbit_level1_nopost template only ....

Search for
PHP Code:

<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]">$forum[title

Add next to it
PHP Code:

<img src="$stylevar[imgdir_misc]/rss_rss.gif" border="0" width="14" height="14" hspace="0" alt="Rss feed" /></a

----------------
Update: 1.1

If you want to exclude the code in some forms .. you can add this code instead
PHP Code:

<if condition="!in_array($forumid, array(x,x,x,x))"><img src="$stylevar[imgdir_misc]/rss_rss.gif" border="0" width="14" height="14" hspace="0" alt="Rss feed" /></a></if> 

Instead of x .. put the category ids ...
----------------



Then go to Admincp --> Forums & Moderators --> Forum Manager --> Select Main Category --> Edit forum --> Go

Add next to the name this code
PHP Code:

&nbsp;<a target="_blank" href="external.php?type=RSS2&forumids=1,2,3"

instead of 1,2,3 put the forumids that is under the main category

The result is
https://vborg.vbsupport.ru/attachmen...1&d=1258706170

Dont forget to upload the rss icon https://vborg.vbsupport.ru/attachmen...1&d=1258706184 in to images --> misc

I'm trying to make it and Add-on!

Best regards

KID_1194 11-20-2009 06:40 AM

reserved

mbc100 11-20-2009 12:48 PM

good modification

Ghostt 11-20-2009 09:38 PM

yes thats what we looking for KID_1194 great work :)!

1 thing is just annoying . can some forumcategories be excluded like on the previous mod?

KID_1194 11-23-2009 05:54 AM

Quote:

Originally Posted by mbc100 (Post 1917715)
good modification

Thnx a lot ... :)

Best regards

KID_1194 11-23-2009 06:00 AM

Quote:

Originally Posted by Ghostt (Post 1918008)
yes thats what we looking for KID_1194 great work :)!

1 thing is just annoying . can some forumcategories be excluded like on the previous mod?

Thnx a lot .. but as u said .. it should be manually.
I have tried to make it an add-on .. but the proplem is that not all the forums in the same category will have the same option number .. it depands on the admin himself ..!

Yes .. you can exclude it from some forums !!

just use this code
PHP Code:

<if condition="!in_array($forumid, array(x,x,x,x))"><img src="$stylevar[imgdir_misc]/rss_rss.gif" border="0" width="14" height="14" hspace="0" alt="Rss feed" /></a></if> 

instead of x ... put the category ids .. :)

Best regards

madshark 11-26-2009 02:08 AM

tried this out on my forum didnt really work and i kind of realised that the rss image actually has no url so how would that work ?

Editing as above only directs me to that particular category and forums. Shoudnt there be some sort of link such as

Code:

<a target="_blank" href="external.php?type=RSS2&amp;forumids=$forum[forumid]">]
Im not really sure just verifying here perhaps i didnt do it right :S

KID_1194 11-26-2009 02:18 AM

Search for
PHP Code:

<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]">$forum[title

Add next to it
PHP Code:

<img src="$stylevar[imgdir_misc]/rss_rss.gif" border="0" width="14" height="14" hspace="0" alt="Rss feed" /></a

Then go to Admincp --> Forums & Moderators --> Forum Manager --> Select Main Category --> Edit forum --> Go

Add next to the name this code
PHP Code:

&nbsp;<a target="_blank" href="external.php?type=RSS2&forumids=1,2,3"

instead of 1,2,3 put the forumids that is under the main category

Rideharder 05-05-2010 07:22 AM

It works but when you click on main category it shows you a listing of all the other categories everything highlighted

Rideharder 05-05-2010 07:23 AM

forumhome_forumbit_level1_nopost

i have 2 <a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]">$forum[title]

KID_1194 05-06-2010 12:43 PM

I didn't get what you mean actually ..

As I understood .. the problem is that u have to

Search for
PHP Code:

<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]">$forum[title

Add next to it
PHP Code:

<img src="$stylevar[imgdir_misc]/rss_rss.gif" border="0" width="14" height="14" hspace="0" alt="Rss feed" /></a

Then go to Admincp --> Forums & Moderators --> Forum Manager --> Select Main Category --> Edit forum --> Go

Add next to the name this code
PHP Code:

&nbsp;<a target="_blank" href="external.php?type=RSS2&forumids=1,2,3"

instead of 1,2,3 put the forumids that is under the main category

KID_1194 05-21-2010 04:45 PM

You are most welcome ..

Best regards :)


All times are GMT. The time now is 04:54 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01114 seconds
  • Memory Usage 1,768KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (11)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (12)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete