Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
RSS Feeds in profiles Details »»
RSS Feeds in profiles
Version: 1.00, by euantor euantor is offline
Developer Last Online: Jul 2011 Show Printable Version Email this Page

Category: Profile Enhancements - Version: 3.8.4 Rating:
Released: 10-10-2009 Last Update: Never Installs: 5
Template Edits
Re-useable Code Additional Files  
No support by the author.

I created this after a few members asking for a system whereby they can display an RSS feed in the profiles. I searched around a bit for a mod, but found none so put together some template modifications of my own.

I must say, this wouldn't be possible without dynamicdrive.com who provided all the code I needed. Check out the page for the original system here: http://www.dynamicdrive.com/dynamici...sdisplayer.htm

Instructions

Okay, so the first thing that you need to do is access the template manager. Select the theme you wish to add the modification to and select "Edit Templates". Now, access the headerinclude template and add the following right at the bottom:

Code:
<!--RSS Feed In profile Stuff-->
<script type="text/javascript" src="http://www.google.com/jsapi?key=YOUR API HERE">
</script>

<script type="text/javascript" src="gfeedfetcher.js">

/***********************************************
* gAjax RSS Feeds Displayer- (c) Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

</script>

<style type="text/css">

.labelfield{ 
color: #ffffff;
font-weight: bold;
font-size: 90%;
}

.datefield{ 
color: #ffffff;
font-size: 90%;
}

#example2 div{ 
margin-bottom: 5px;
}

#example2 div a{ 
text-decoration: none;
}

code{ /*CSS for insructions*/
color: red;
}

</style>
Then, you need to grab a google API Code. Grab yours from here:

http://code.google.com/apis/ajaxfeeds/signup.html

Paste the code into the part that says "YOUR API HERE" in the stuff you just added to the headerinclude. Hit the "Save and reaload" button.

Ok, so you now need to add this file to the root directory of your forum. Just upload it via your favourite FTP client:

(Right Click and Save As...)

The next step is to add 2 profile fields. Both should be single line textboxes. The rest is up to you ;D Just name them something like "RSS Title" and "RSS URL".


Almost done now You just need to edit the MEMBERINFO template Find:

Code:
$template_hook[profile_right_mini]
Add after:

Code:
        <!-- RSS Feed -->
<if condition="$userinfo[fieldX]">
<div id="$id" class="tborder content_block">
    <h4 class="thead block_title">
        <a href="#top" class="collapse_gadget" onclick="return toggle_collapse('$id')"><img id="collapseimg_$id" src="$stylevar[imgdir_button]/collapse_generic{$vbcollapse['collapseimg_'.$id]}.gif" alt="" border="0" /></a>
        <a name="$id"></a>
        <span class="block_name">RSS Feed</span>
    </h4>
    <div class="block_content" id="collapseobj_$id" style="{$vbcollapse['collapseobj_'.$id]}"><div class="alt1 smallfont block_row block_footer">
<p align="center">
<script type="text/javascript">

var cssfeed=new gfeedfetcher("example1", "example1class", "")
cssfeed.addFeed("$userinfo[fieldX1]", "$userinfo[fieldX]") //Specify "label" plus URL to RSS feed
cssfeed.displayoptions("label") //show the specified additional fields
cssfeed.setentrycontainer("div") //Display each entry as a list (li element)
cssfeed.filterfeed(5, "date") //Show 5 entries, sort by date
cssfeed.init() //Always call this last

</script>
<br />
</p>
</div></div>
</div>
</if>
        <!-- / RSS Feed -->
You need to change all the
Code:
$user[fieldX]
terms to
Code:
$user[WHATEVER THE FIELD ID OF YOUR RSS URL FIELD IS]
and all the
Code:
$user[fieldX1]
terms to
Code:
$user[WHATEVER THE FIELD ID OF YOUR RSS TITLE FIELD IS]
There. we should be done. Go to a profile and check if it works. If not, you've obviously gotten confused somewhere along the lines of my unclear explanation ;P

Demo

http://www.360elites.net/member.php?u=1

Screenshots

See attached :]

Screenshots

File Type: jpg RSS editing.jpg (98.2 KB, 0 views)

Show Your Support

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

Comments
  #2  
Old 10-13-2009, 01:11 PM
ubcforums ubcforums is offline
 
Join Date: Apr 2009
Location: clouds
Posts: 83
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice
Reply With Quote
  #3  
Old 10-15-2009, 05:53 PM
euantor euantor is offline
 
Join Date: Aug 2009
Location: England
Posts: 67
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks
Reply With Quote
Reply


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 07:20 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04056 seconds
  • Memory Usage 2,238KB
  • Queries Executed 17 (?)
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
  • (7)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (3)post_thanks_box
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit_info
  • (2)postbit
  • (1)postbit_attachment
  • (3)postbit_onlinestatus
  • (3)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete