The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

add like button to blogs

View previous topic View next topic Go down

add like button to blogs

Post by qmars(pkq) on July 19th 2015, 1:56 pm

hi there
Hello
how can i add like botton to blogs?
im using like system via date base
avatar
qmars(pkq)
Forumember

Posts : 219
Reputation : 1
Language : english,persian
Location : iran

http://lemon-13.full-forum.com

Back to top Go down

Re: add like button to blogs

Post by Pizza Boi on July 19th 2015, 2:36 pm

Hi Very Happy

I don't exactly use the blogs but try this in Display < Templates < topics_blog_box and add this in:

Code:
 <!-- BEGIN switch_vote -->
                                                                  <div class="vote-button"><a class="posi" href="{postrow.displayed.switch_vote_active.switch_vote.U_VOTE_PLUS}">Like</a></div>
                                                                  <!-- END switch_vote -->

I'm not sure what line you should add it in but if my hunch is right, in line 52.

Regards,
Pizza Boi
avatar
Pizza Boi
Hyperactive

Male Posts : 2016
Reputation : 160
Language : French
Location : Pizza Hut!

http://redlustempire.forumtl.com/

Back to top Go down

Re: add like button to blogs

Post by qmars(pkq) on July 19th 2015, 8:25 pm

TNX U
but im afraid to use it becease we are not sure
avatar
qmars(pkq)
Forumember

Posts : 219
Reputation : 1
Language : english,persian
Location : iran

http://lemon-13.full-forum.com

Back to top Go down

Re: add like button to blogs

Post by SLGray on July 19th 2015, 8:30 pm

You can always deleted the modified template.


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.

avatar
SLGray
Administrator
Administrator

Male Posts : 38047
Reputation : 2564
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

Re: add like button to blogs

Post by qmars(pkq) on July 19th 2015, 8:43 pm

Code:
 /* --- START DATABASE CP --- */
    body.databaseBody { color:#666; font-size:11px; font-family:Verdana,Arial,Helvetica,sans-serif; background:#DEF; }
    body.databaseBody a { text-decoration:none }
    #db_wrap { background:#FFF; border:1px solid #CCC; width:80%; margin:40px auto; padding:3px; }
    #db_wrap h1 { color:#479 !important; font-size:18px; border-bottom:1px solid #479; padding-bottom:3px; margin:3px 0; }
    .database_table { background:#FFF; border:1px solid #CCC; border-spacing:0; width:100%; overflow:auto; }
    .database_table a { background:none !important; display:inline-block; white-space:nowrap; overflow:hidden; max-width:100px; }
    .database_table tr:nth-child(even) { background:#FFF }
    .database_table tr:nth-child(odd) { background:#DDD }
    .database_table tr:hover { background:#FFA }
    .database_table td { border-right:1px solid #CCC; border-bottom:1px solid #CCC; padding:3px; }
    .database_table tr.table_data { background:#EEE; box-shadow:0 10px 6px rgba(255,255,255,0.3) inset, 0 -10px 6px rgba(0,0,0,0.05) inset }
    #db_list { background:#EEE; border:1px solid #CCC; float:left; width:150px; min-height:200px; padding:3px; margin-right:6px; }
    #db_list .database { color:#999; text-shadow:1px 1px 0 #FFF; text-align:center; font-weight:bold; font-size:10px; background:none; border:1px solid #CCC; border-radius:3px; cursor:pointer; margin:3px 0; padding:3px; }
    #db_list .database:hover { color:#479; border-color:#479; }
    #db_list .database.dbactif { background:#DEF; color:#69B; border-color:#8BD; }
    #db_tables { background:#EEE; border:1px solid #CCC; overflow-x:hidden; padding:3px; }
    #innertable { height:400px; overflow:auto; }
    .db_nav { text-align:right; background:#EEE; border:1px solid #CCC; padding:5px 3px; margin:6px 0; }
    .db_nav a, .db_button, tr.table_data a { color:#999; text-shadow:1px 1px 0 #FFF; text-transform:uppercase; background:none; border:1px solid #CCC; border-radius:3px; display:inline-block; padding:3px 6px; margin:1px 3px; cursor:pointer; }
    .db_nav a:hover, .db_button:hover, tr.table_data a:hover { color:#479; border-color:#479; }
    .db_nav a:focus, .db_button:focus, tr.table_data a:focus { color:#8BD; border-color:#8BD; }
    .db_title { color:#479; font-size:12px; font-weight:bold; border-bottom:1px solid #479; padding-bottom:3px; margin-bottom:3px; }
    .db_info { color:#58A; text-shadow:1px 1px 0 #FFF; text-align:center; background-color:#DEF; border:1px solid #BCD; border-radius:3px; padding:5px 3px; margin:6px 3px; }
    .db_erreur { color:#C66; font-size:12px; text-shadow:1px 1px 0 #FFF; font-weight:bold; height:20px; }
    .db_overlay { background:rgba(0,0,0,0.3); position:fixed; top:0; left:0; right:0; bottom:0; z-index:999; }
    .dbo_content { background:#EEE; border:1px solid #CCC; width:65%; height:50%; overflow:auto; padding:3px; position:absolute; top:20%; left:15%; }
    .dbo_content.process { color:#996; text-shadow:1px 1px 0 #FFF; text-align:center; font-size:16px; font-weight:bold; width:30%; height:auto; padding:6px 24px; left:30%; top:40%; }
    .db_textarea { color:#333; background:#FFF; border:1px solid #CCC; border-radius:3px; width:90% !important; height:50% !important; resize:none; display:block; padding:3px; margin:3px auto; }
    .db_textarea:hover { border-color:#479 }
    .db_textarea:focus { border-color:#8BD }
    /* --- END DATABASE CP --- */

    /* START fa_like */
    .fa_like_row { margin-top:6px }
    .fa_like_list { font-style:italic; min-height:25px; }
    a.fa_like_button, .fa_like_button, .fa_liked { color:#FFF; font-size:10px; background:#6A6; border:1px solid #686; border-radius:3px; display:inline-block; padding:3px 6px; cursor:default; }
    .fa_liked { cursor:default; opacity:0.3; }
    a.fa_like_button:hover { background:#3A3; border:1px solid #383; cursor:pointer; }
    /* END fa_like */
its mine codes of like button
but it doesnt shown in my blogs
avatar
qmars(pkq)
Forumember

Posts : 219
Reputation : 1
Language : english,persian
Location : iran

http://lemon-13.full-forum.com

Back to top Go down

Re: add like button to blogs

Post by Pizza Boi on July 20th 2015, 4:20 am

Hi Very Happy

That's the CSS? I don't see any template codes.

Regards,
Pizza Boi
avatar
Pizza Boi
Hyperactive

Male Posts : 2016
Reputation : 160
Language : French
Location : Pizza Hut!

http://redlustempire.forumtl.com/

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum