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

Reply
 
Thread Tools
Add Recent Blog/Site Feed under Postbit. Displays Recent Blog feeds or Site Feeds. Details »»
Add Recent Blog/Site Feed under Postbit. Displays Recent Blog feeds or Site Feeds.
Version: 1.00, by a1whs.com a1whs.com is offline
Developer Last Online: Nov 2010 Show Printable Version Email this Page

Category: Forum Display Enhancements - Version: 3.6.8 Rating:
Released: 09-09-2007 Last Update: Never Installs: 15
 
No support by the author.

Graphical Instructions are available at Bookmark My Services .

However i am adding the Instructions to install the same without images here.

Features:
1. Add Rss Feeds in your Profile and Display the Feeds Title in postbit under your userank or usertitle.
2. Works with Wordpress,and any RSS2 feeds including Vbulletin Forum Feeds. Example http://www.bookmarkmyservices.com/fo....php?type=RSS2 will also work.
3. Works and compatible with All previous and possible upcoming versions of VB.
4. Uses CafeRSS to parse XML feeds.

PS: I am not the original author, was not able to find link to where i got it from 4-5 months back, so if someone can find the original author please post the users identity. (it was not taken from VB forums itself so is hard to locate the original author).

Please Click Install if it works for you.
All Support will deal with installing it , no support will be provided regarding feature additions etc.

I will try to provide support here at VB itself but you can always contact me at Official Release Thread on Bookmark My Services.


Step 1 - Creating the forum database fields


We will be storing 3 pieces of information against each user.
Site/Blog RSS Feed -URL of the RSS feed (xml file) this is the only field members will need to enter
Last Blog Title - Title of the most recent entry on a member's feed,populated by PHP itself
Blog URL - URL to a members site/blog feed(PHP handles this also)


Go to AdmincCp>UserProfile Fields - Add New User Profile Field

Expand the "User Profile Fields" on the left hand menu and click "Add New User Profile Field"


Use the default of Single-Line text Box and click Continue


This is where we need to enter all of the required information for new fields (one at a time). To start we will create the Site Feed field. Set the following properties:

Title: Site RSS Feed

Description: Please specify the full URL of the RSS feed of your blog or website. By filling in this field a link to your latest blog or feed entry will be displayed in all of your posts.




We will now repeat the above steps for the other 2 required fields, and these will not be user editable (php handles that),for that we will need to change the Field Editable by User property to No. The settings to change for these two new fields are:

Title: Last Feed Title

Field Editable by User: No



Title: Feed URL

Field Editable by User: No





If you now click on User Profile Field Manager (on the left) you should see all of your user profile fields like:



Make sure you make a note(use paper and pencil if required )of the field names (in this case field5, field6 and field7) as we will need them later.

Go to the User CP (Control Panel) and follow the link to Edit Profile you should see a new Site Feed Url field.



Step 2.PHP script to handle the fields (basically Field 6 and Field7 in our example)
cafeRSS will be used.Do not worry the file attached sitefeedcron.php contains all the PHP and will need minor but careful editing.
You might need to change 3 instances of field5, field6 and field7 to reflect the profile fields that you created earlier (the one you noted down on paper). Thus, change all instances of field5, field6 and field7 according to your fields, say you have field7 for field5 replace field5 with field7 and so on.


Step 3. Displaying the recent Feed/Blog entry under Username (only 2 edits required)
In the vB Admin CP go to Styles & Templates and then Style Manager you now need to Expand Templates () and find the correct Postbit Template >> to edit. (postbit and postbit_legacy)



You will need to edit the postbit_legacy (member details on left of post) and postbit (member details above) template depending on how you want to display feeds for the users on the forums.



On my boards I am using the postbit_legacy and displaying our members last site feed entry under their user rank, to do this find the code in postbit_legacy


PHP Code:
<if condition="$show['avatar']">
<
div class="smallfont">
&
nbsp;<br /><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]$post[avwidth$post[avheightalt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a>
</
div>
</if> 
And after it the following :
PHP Code:
<if condition="$post[field5]"
<
div class="smallfont"
Feed: <a href="$post[field7]">$post[field6]</a
</
div
</if> 
Make sure that field5, field6 and field7 are the correct names of the fields we created in the first step of this tutorial. Now if you look at your profile it should show the site field url as:


Now,open postbit and find :

PHP Code:
<if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if>
<if 
condition="$post['rank']"><div class="smallfont">$post[rank]</div></if> 
After Add :

PHP Code:
<if condition="$post[field5]"
<
div class="smallfont"
Feed: <a href="$post[field7]">$post[field6]</a
</
div
</if> 
Now all you need to do is upload the sitefeedcron.php file to public_html folder and setup the cron as shown under.Create a folder named cafeRSS_cache where you placed sitefeedcron.php file, and Chmod folder to 0777. This folder caches/stores feed information.Tutorial for Crons if interested can be found using Google . Change the username to your cpanel login username. And You can run cron every 30 mins, 1 Hr. depending on your preference. Cron shown below is for 1 min.


Before you setup the cron edit the fields accordingly and setup the database name,database username and the password.And chmod file as 0644.


PHP Code:
//Please edit this accordingingly to your forum sql login.
require('../public_html/yourforumfolder/includes/config.php');

$host localhost;

$user username;

$dbp databasepassword;

$db databasename;

mysql_connect($host$user$dbp);

mysql_select_db($db); 
Edit above to make sql connection to forums database.

Now locate this code :

PHP Code:


$lSQL 
"select userid, field5 from userfield 

where field5 <> '' and field5 is not NULL"

Change that according to your Fields you setup in Step 1 . For example if your first Site Feed Field was No.8. Set field5 above to field8.

Similarly change the following field number in code :

PHP Code:


$lSQL 
"update userfield set field6 = '$lBlogBits[1]', field7='$lBlogBits[0]'

where userid =
$lUserID";

mysql_query($lSQL);

echo 
"Feed: <a href='$lBlogBits[0]'>$lBlogBits[1]</a>"

Just remember for my example Field5 represents :Site RSS Feed . Field7 Represents : Last Feed Title and Field8 Represents : Feed URL


That is the end of this tutorial.
And here is what it will look like in the end after cron has run :

http://www.bookmarkmyservices.com/blog-feed-tutorial/final-output.gif

If you have any problems or questions please use this support thread only. This tutorial was modified and first used on Dmoz Resources Zone. I am not the original writer for the mod, long time ago I did search and had this sitting on my computer and only recently I have shared after testing with Vbulletin version 3.6.8. It has been on my forum since version 3.6.5.Now recently i tested it on my New Bookmark My Services Website. It has been modified from its original and PHP code edited also.

Live Demo 1 Running Since 3.6.5 Version of VB
Live Demo 2 Running on Vb Version 3.6.8.

Please leave link to the site, since it took me some efforts rewriting the tutorial and editing few php code to make it work.

To add Link to footer open Admincp>Styles & Templates>Style>

Select your template and from dropdown menu select All Style Options and hit Go.

Now under the Footer Field you see .

Find

PHP Code:

<!-- Do not remove this copyright notice -->
$vbphrase[powered_by_vbulletin]
<!-- Do 
not remove this copyright notice --> 
After Add:

PHP Code:

<br/><a href="http://www.bookmarkmyservices.com/" rel="follow" title="Bookmark My Services" >BookMark My Services</a
Please do not modify the Above link in any way. If you wish it to be removed the fee is 7 USD. Contact us via Our Form.For removal of above link
Please do not use the modifications if you will not be putting link in the footer. Thanks

Show Your Support

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

Comments
  #2  
Old 09-10-2007, 04:56 AM
a1whs.com a1whs.com is offline
 
Join Date: Feb 2006
Location: Canada of Course
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I suppose I am to reserve the first post here ? Anyways Enjoy And sorry if its all confusing. It will take approximately 15-35 minutes to install. Took me 3-4 hrs well than again I was writing the tutorial side-by-side too

UPDATE: I just logged in after a while and saw 2 or 3 messages, if you guys want to remove copyright from footer please resend your requests, and remember I always check the form @ http://www.a1whs.com/support.php so that's a sure way to get in touch.

Cheers
Reply With Quote
  #3  
Old 09-11-2007, 04:15 AM
Demon fox Demon fox is offline
 
Join Date: Jan 2007
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice one funny enough I was going to pay to have this done thanks for saving my money.
Reply With Quote
  #4  
Old 09-11-2007, 04:25 AM
a1whs.com a1whs.com is offline
 
Join Date: Feb 2006
Location: Canada of Course
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Demon fox View Post
Nice one funny enough I was going to pay to have this done thanks for saving my money.
You are welcome mate. Good to see i saved you few bucks but remember you must have footer links which again going to cost few again .

Anyways does it work good for you ?
Reply With Quote
  #5  
Old 10-26-2007, 12:57 AM
ams3521 ams3521 is offline
 
Join Date: May 2005
Posts: 101
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed easily enough but doesent seem to do anything, I have a feeling it could be the cron job.

Does the cron job run automatically or do i have to run the script first? , i notice on your other site there is a cron box in the tutorial, how do i get that box to appear?

thanks.
Reply With Quote
  #6  
Old 11-19-2007, 12:41 PM
gotlinks's Avatar
gotlinks gotlinks is offline
 
Join Date: Sep 2007
Location: USA, San Antonio, Texas
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I installed this, but the feeds dont show up..... My forum is a pr6 so I also want to remove your footer link, what does that cost?
Reply With Quote
  #7  
Old 02-16-2008, 05:20 PM
Brandon Sheley's Avatar
Brandon Sheley Brandon Sheley is offline
 
Join Date: Mar 2005
Location: Google Kansas
Posts: 4,678
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by gotlinks View Post
I installed this, but the feeds dont show up..... My forum is a pr6 so I also want to remove your footer link, what does that cost?
I'm interested but I too would want to remove any copyright links
what's the price ?
Reply With Quote
  #8  
Old 02-19-2008, 04:01 PM
nyunyu nyunyu is offline
 
Join Date: Dec 2004
Location: Malaysia
Posts: 253
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Loco.M
I'm interested but I too would want to remove any copyright links
what's the price ?
I believe he said in above post $7 for copyright removal.
Reply With Quote
  #9  
Old 05-24-2008, 12:00 AM
sunny_girl's Avatar
sunny_girl sunny_girl is offline
 
Join Date: Mar 2008
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks good work
Reply With Quote
  #10  
Old 05-28-2008, 01:23 AM
a1whs.com a1whs.com is offline
 
Join Date: Feb 2006
Location: Canada of Course
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wow sorry guys i totally lost track of this, but for copyright removal please contact me ( i thought i added some text file on more info how to remove the copyright)

Good to see its working for you guys !

Cheers
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 10:35 AM.


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.04370 seconds
  • Memory Usage 2,339KB
  • Queries Executed 23 (?)
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
  • (9)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)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
  • (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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete