Wednesday, January 25, 2012

[PHPBB MOD] Facebook like button in each topic / thread

This mod adds a facebook like button to each topic.
Tested with phpBB 3 (But there is no version dependent code, so it will work on all versions, if someone tests in other versions, please post the errors/success messages here)


1. OPEN FORUM_ROOT/includes/functions.php

// Send a proper content-language to the output
    $user_lang = $user->lang['USER_LANG'];
    if (strpos($user_lang, '-x-') !== false)
        $user_lang = substr($user_lang, 0, strpos($user_lang, '-x-'));

//Facebook like hack by Sriram.A.S. (
$curr_url=generate_board_url() .'/'. $pieces[0]."?";
foreach($pieces as $temp_x)
if(substr($temp_x,0,2)=="f=" && $flag_tmp==0)
foreach($pieces as $temp_x)
if(substr($temp_x,0,2)=="t=" && $flag_tmp==1)

4. In the same file, FIND
'SITE_LOGO_IMG'            => $user->img('site_logo'),

'CURRENT_URL'      => $curr_url,

6. SAVE file with changes

7. OPEN FORUM_ROOT/styles/{YOUR_TEMPLATE}/template/viewtopic_body.html

<div class="buttons">
    <!-- IF not S_IS_BOT and S_DISPLAY_REPLY_INFO -->

<div align="right">
<script src=""></script><fb:like href="{CURRENT_URL}" show_faces="true" width="450"></fb:like></div>

9. If you want the like button also in bottom, fine the second occurance of the block and also add accordingly

10. SAVE file with changes

11. Now, Login to Administration Control Panel from frontend and in the main page,
Resynchronise or reset statistics-->Purge the cache-->Run now

If you face any problems, post here.

Tuesday, January 24, 2012

Web Programming using C / C++

Here is a small API in form of header file in C / C++ which will allow simple programs to be converted into web programs and can be run through a browser.

The guide is written in such a way that each and every step is explained carefully for people who are mainly from non computer origin. This will help you to create simple web pages and do some web server scripting.
The guide explains from downloading required softwares, configuring them, writing simple C web apps. It will be a good thing for non IT people who work with simple C. Now do anything in C code, and atlast send the outputs to browser, make it a web app!!

Please post any bugs/suggestions/feedbacks here. Thank you.

Download Link:  (COMPLETE FILE, API, Example, Tutorial Guide)

IMPORTANT: If you have the older release, the file home.c in examples directory, will fail to compile because of a line disableCache(); in it, please remove the line and compile the file. Initially i kept a function for cache management in the API and finally i thought of removing it, but forgot to update that file. Thankyou.

Thursday, January 5, 2012

Rise of planet of "Hobby Coders"

Passionate about coding? Want to work on something interesting (probably :P), and chase some unseen problem?? Well, welcome to the world of Hobby Coders.

Wondering what it is? Honestly, i myself dont know the answer fully as of now! :) But it will be a NON PROFIT team (not a company, not even an organization, just a team) of DEDICATED coders who are thinking to do something useful in coding in their leisure time (just a part of your leisure time, not even full leisure time)
So, if you can give us, say, 15 or 30 minutes a day, and is willing to join me, please let me know.
And BTW, Im not so rich to give you salary, its not a company or something that works for profit. Its about passion, dedication and learning. Anytime you can join me and if you want to leave sure, anytime!!

Who are you anyways? Im Sriram, nothing much to say about me. I try to learn work on stuffs like Computer Vision, Artificial Intelligence, Virtual Reality, Neural Networks, Distributed Systems. Im not an expert in anything, but i keep on learning and think of some new projects, products to be more accurate!

I know more than you! Why should i work under you? Well, i still didnt say, im going to lead the team. IT is an area where each and everyone will have a unique talent and unique approach for a problem. This team will not worry about who is going to lead, who is going to get name and fame, but we will work on what we are going to do. All products will have the list of people who have worked for it. Thats it. Its more a friendly team, not something that has a hierarchy of positions

Do you think this idea will be a success? Im not going to boast about this attempt, may be we will make some good products, or may be the attempt will loose focus with time, atleast you will take knowledge and learning with you

So what we will do? We will take some small and challenging problems and we will give code solutions for that, also we will release few projects in some areas for free
The activities are not yet planned, i want to see how many people are interested, if i get enough strength, then we will proceed, otherwise, this will be shutdown!
But to give an example of projects that we will work, may be we will make a web based script for hotel management, may be a small and efficient memory management algorithm, may be a data over voice system for data communication (currently planning), may be a javascript library for better image processing and lot more

I also want the help of experts in many domains like neural networks, image processing, computer vision, programming languages and so on. You dont even have to spend more time, atleast please guide us for our future ideas

If anyone interested, please email me your details:
Based on the total participation and the level of expertise we get, further activities will be planned

Thanks and Regards
NIT Raipur 2011 Passout