vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   how to develop a "Like" button system ? (https://vborg.vbsupport.ru/showthread.php?t=304216)

u z e r 11-06-2013 05:13 AM

how to develop a "Like" button system ?
 
Hi there , i am new to php and mysql programming

i want to create a "Like" button to threads by my own without using any 3rd party mods or hacks

and i don't know where to start

any hint ?

I really appreciate any help you can provide.

tbworld 11-06-2013 05:51 AM

Quote:

Originally Posted by u z e r (Post 2458618)
Hi there , i am new to php and mysql programming

i want to create a "Like" button to threads by my own without using any 3rd party mods or hacks and i don't know where to start any hint ?
I really appreciate any help you can provide.

Start by looking at someone else's "Like" system and the coding they used to accomplish it. I would suggest you start with a very simple project with vbulletin and just concentrate on learning HTML, CSS, with PHP. You can hold off on the "mysql" until you need it.

Have fun :)

u z e r 11-06-2013 06:06 AM

Quote:

Originally Posted by tbworld (Post 2458622)
Start by looking at someone else's "Like" system and the coding they used to accomplish it. I would suggest you start with a very simple project with vbulletin and just concentrate on learning HTML, CSS, with PHP. You can hold off on the "mysql" until you need it.

Have fun :)

thanks for your reply

i am good enough with HTML and CSS , my problem is that i don't know how to create a table in database to store likes and retrieve user id , so when someone click Like button , thread OP gets a notification about "USER_X liked your X_POST"

:erm:

tbworld 11-06-2013 06:37 AM

Observing other plugins and products interacting with vbulletin is pretty much how everyone has learned the core code. Step through other similar plugins to get a feel for what you are doing. Many of the plugins out there will implement the type of code you are needing examples of. You can get a lot of help with your code here if you don't have any problems with posting it and asking "specific" questions.

Were not going anywhere ... So start looking at examples, get coding and ask questions as you go along. :)

Max Taxable 11-06-2013 12:51 PM

Quote:

Originally Posted by u z e r (Post 2458618)
Hi there , i am new to php and mysql programming

i want to create a "Like" button to threads by my own without using any 3rd party mods or hacks

and i don't know where to start

any hint ?

I really appreciate any help you can provide.

Complete tutorial:

https://vborg.vbsupport.ru/showthread.php?t=266358

u z e r 11-10-2013 04:00 AM

thanks for help


All times are GMT. The time now is 12:49 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.01608 seconds
  • Memory Usage 1,722KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete