Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Template Modifications

Reply
 
Thread Tools
Adding RSS next to forum title Details »»
Adding RSS next to forum title
Version: 1.1, by KID_1194 KID_1194 is offline
Developer Last Online: Nov 2013 Show Printable Version Email this Page

Category: New Posting Features - Version: 3.8.4 Rating:
Released: 11-19-2009 Last Update: Never Installs: 9
Template Edits
Translations  
No support by the author.

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


Dont forget to upload the rss icon in to images --> misc

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

Best regards

Screenshots

File Type: gif 2009-11-20_163211.gif (6.5 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 11-20-2009, 06:40 AM
KID_1194 KID_1194 is offline
 
Join Date: May 2009
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

reserved
Reply With Quote
  #3  
Old 11-20-2009, 12:48 PM
mbc100 mbc100 is offline
 
Join Date: Feb 2009
Location: K.S.A
Posts: 81
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

good modification
Reply With Quote
  #4  
Old 11-20-2009, 09:38 PM
Ghostt Ghostt is offline
 
Join Date: Oct 2009
Posts: 359
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #5  
Old 11-23-2009, 05:54 AM
KID_1194 KID_1194 is offline
 
Join Date: May 2009
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mbc100 View Post
good modification
Thnx a lot ...

Best regards
Reply With Quote
  #6  
Old 11-23-2009, 06:00 AM
KID_1194 KID_1194 is offline
 
Join Date: May 2009
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Ghostt View Post
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
Reply With Quote
  #7  
Old 11-26-2009, 02:08 AM
madshark's Avatar
madshark madshark is offline
 
Join Date: Oct 2009
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #8  
Old 11-26-2009, 02:18 AM
KID_1194 KID_1194 is offline
 
Join Date: May 2009
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #9  
Old 05-05-2010, 07:22 AM
Rideharder's Avatar
Rideharder Rideharder is offline
 
Join Date: Jan 2008
Location: Florida
Posts: 445
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It works but when you click on main category it shows you a listing of all the other categories everything highlighted
Reply With Quote
  #10  
Old 05-05-2010, 07:23 AM
Rideharder's Avatar
Rideharder Rideharder is offline
 
Join Date: Jan 2008
Location: Florida
Posts: 445
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

forumhome_forumbit_level1_nopost

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

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:10 AM.


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.04811 seconds
  • Memory Usage 2,336KB
  • Queries Executed 24 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (8)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (1)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete