Go Back   vb.org Archive > vBulletin Article Depository > Read An Article > General Articles
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Facebook App Modification
sivaganeshk
Join Date: Oct 2010
Posts: 250

 

Show Printable Version Email this Page Subscription
sivaganeshk sivaganeshk is offline 11-11-2012, 11:00 PM

Here are few modifications I made to vBulletin Facebook App. Hope it helps other users .

Important : Please backup all the files before making any changes.

Feature 1: Last Thread information on Forum Home

Default :


New Look :


Code changes :

1. Open Forums.php

2. Find the code
Code:
Code:
 <?php echo timedisplay($forum['lastpostinfo']['lastposttime']); ?><br/>
3. Replace with

Code:
Code:
<?php  // SG Change 1 ?>
<a  href="<?php echo "https://apps.facebook.com/appname/category_item.php?category=Forum_Threads_".$forum['forumid']."&id=".$forum['lastpostinfo']['lastthreadid']."&goto=newpost"; ?>"><?php echo substr($forum['lastpostinfo']['lastthread'],0,40); ?></a> <br />
replace appname with your facebook app .

P.S: 41 characters of the thread title will be visible. Having more and more characters will look ugly.

Feature 2 : Post "Users reply" in facebook wall instead of Posted a reply on APP NAME

Default :


New Look :




1. Open editor.php

2. Find the code

Code:

Code:
public function wall($title, $message) {
        $opt = array();
        $opt['message'] = $this->wallMessage();
        $opt['link'] = FACEBOOK_CANVAS_URL . $this->redirect; 
        $opt['name'] = ThreadInfo::get($this->thread_id)->getName();
        $opt['caption'] = '';
        $opt['description'] = '';
        $this->send_to_wall($opt);
    }
replace with

Code:

Code:
public function wall($title, $message) {
        $opt = array();
        $opt['message'] = $message;
        $opt['link'] = FACEBOOK_CANVAS_URL . $this->redirect; 
        $opt['name'] = ThreadInfo::get($this->thread_id)->getName();
        $opt['caption'] = '';
        $opt['description'] = $message ;
        $this->send_to_wall($opt);
    }
Feature 3 : View the current thread on Forum Site


1. Open category_item.php

2. Find
Code:

Code:
public function renderItem($category, $id, $page) {
        echo CategoryContentItem::get($category, $id, $page)->getHtml();
    return time() + 3;
    }
3. Replace with

Code:

Code:
public function renderItem($category, $id, $page) {
        echo CategoryContentItem::get($category, $id, $page)->getHtml();
    $threadShowThread =  CategoryContentItem::getRedirect($category, $id, $page);
    echo "<center><b><a href=\"http://collegers.net/{$threadShowThread}\"> View this article on Forum</a><br/> <br/>Similar Threads </b></center><br/>";
        return time() + 3;
    }
Don't forget to change FORUM URL.

Please donate - sivaganesh_sg@yahoo.com (PayPal) . That's the only reason I'm sharing this modification . "I want to save money to own a 13 inch Macbook Pro"
Edit(6 Dec) : Need only $200 more to buy it

If you find any bug while using it, please report it here. I'm college student and will update with more feature whenever I find time.
Reply With Quote
  #2  
Old 12-06-2012, 01:14 AM
abdobasha2004's Avatar
abdobasha2004 abdobasha2004 is offline
 
Join Date: Aug 2008
Posts: 541
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

please suggest these useful edits to vBulletin team as they were asking about feedback lately
Great work
Reply With Quote
Благодарность от:
sivaganeshk
  #3  
Old 12-06-2012, 01:40 PM
sivaganeshk sivaganeshk is offline
 
Join Date: Oct 2010
Posts: 250
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by abdobasha2004 View Post
please suggest these useful edits to vBulletin team as they were asking about feedback lately
Great work

I lost hope. Waiting from the day I purchased and installed the fb app(6 months - No updates).
Reply With Quote
Благодарность от:
DamasGate
  #4  
Old 02-21-2013, 10:28 PM
shellys shellys is offline
 
Join Date: Aug 2012
Location: New York
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,
Can you please explain what this Mode Does in detail as i am looking to integrate it in EWD Forum. This is a vbulleting 4 forum with patch 3 installed. Although i thank you that you explained in detail on how to implement this but please also explain in detail what would be achieved after using this plugin.
Reply With Quote
  #5  
Old 02-25-2013, 12:01 PM
Dorgham's Avatar
Dorgham Dorgham is offline
 
Join Date: May 2012
Location: Egypt
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's a great idea
But you need a lot of support from vBulletin
a great job
I wish you luck and success
Reply With Quote
Благодарность от:
sivaganeshk
  #6  
Old 02-25-2013, 12:18 PM
sivaganeshk sivaganeshk is offline
 
Join Date: Oct 2010
Posts: 250
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by shellys View Post
Hi,
Can you please explain what this Mode Does in detail as i am looking to integrate it in EWD Forum. This is a vbulleting 4 forum with patch 3 installed. Although i thank you that you explained in detail on how to implement this but please also explain in detail what would be achieved after using this plugin.
You can look at the Default and New Look image to see what can be achieved.
Reply With Quote
  #7  
Old 03-24-2013, 05:27 PM
matrex722's Avatar
matrex722 matrex722 is offline
 
Join Date: Jan 2007
Posts: 161
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

wow i was looking for it
but please is there any solution for encoding utf 8 ?

http://www.7elm3aber.com/vb

as you see i use utf-8
and words looks like weird
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 06:58 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.04488 seconds
  • Memory Usage 2,272KB
  • Queries Executed 22 (?)
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
  • (6)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_article
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (5)post_thanks_box_bit
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit
  • (7)post_thanks_postbit_info
  • (6)postbit
  • (7)postbit_onlinestatus
  • (7)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_postinfo_query
  • fetch_postinfo
  • 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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete