Osclass Support Forums

Osclass plugin support => User Rating Plugin => Topic started by: epoolroy on August 30, 2018, 06:29:17 AM

Title: Replace fancy box with comment place
Post by: epoolroy on August 30, 2018, 06:29:17 AM
hello, how can i replace a comment place with show user rating view?
I want delete a comment area (original) and replace with show user rating fancy box..

see a attach file below
Title: Re: Replace fancy box with comment place
Post by: MB Themes on August 30, 2018, 08:43:14 AM
@epoolroy
You may start by trying to include this box file into item.php
Title: Re: Replace fancy box with comment place
Post by: epoolroy on August 30, 2018, 09:27:07 AM
@epoolroy
You may start by trying to include this box file into item.php

can you assist me how to do that?
thank you
Title: Re: Replace fancy box with comment place
Post by: MB Themes on August 30, 2018, 10:08:58 AM
In file:
oc-content/plugins/user_rating/index.php

bellow:
Code: [Select]
function ur_show_rating() {
  include 'user/rating.php';
}


add:
Code: [Select]
osc_add_hook('item_detail', 'ur_show_rating');

That will add box to to item_detail, ... next is on you
Title: Re: Replace fancy box with comment place
Post by: epoolroy on August 30, 2018, 10:19:21 AM
In file:
oc-content/plugins/user_rating/index.php

bellow:
Code: [Select]
function ur_show_rating() {
  include 'user/rating.php';
}


add:
Code: [Select]
osc_add_hook('item_detail', 'ur_show_rating');

That will add box to to item_detail, ... next is on you

Sorry sir, i still not understand... i already put a code below

Code: [Select]
function ur_show_rating() {
  include 'user/rating.php';
}
osc_add_hook('item_detail', 'ur_show_rating');

But how can i edit in item.php
can you assist me
Title: Re: Replace fancy box with comment place
Post by: MB Themes on August 30, 2018, 10:34:39 AM
adding this code should not require modifications in item.php
Title: Re: Replace fancy box with comment place
Post by: epoolroy on August 30, 2018, 10:36:24 AM
adding this code should not require modifications in item.php

So, how can i replace old comment with this?
i already delete a code old Comment and how can i put a fancy box for replace a comment?
Title: Re: Replace fancy box with comment place
Post by: MB Themes on August 30, 2018, 10:54:39 AM
In file:
oc-content/plugins/user_rating/index.php

bellow:
Code: [Select]
function ur_show_rating() {
  include 'user/rating.php';
}


add:
Code: [Select]
osc_add_hook('item_detail', 'ur_show_rating');

That will add box to to item_detail, ... next is on you

Sorry sir, i still not understand... i already put a code below

Code: [Select]
function ur_show_rating() {
  include 'user/rating.php';
}
osc_add_hook('item_detail', 'ur_show_rating');

But how can i edit in item.php
can you assist me


You must also check CSS to make it visible, format it properly and show just what you want to show.
Title: Re: Replace fancy box with comment place
Post by: epoolroy on August 30, 2018, 11:04:03 AM
In file:
oc-content/plugins/user_rating/index.php

bellow:
Code: [Select]
function ur_show_rating() {
  include 'user/rating.php';
}


add:
Code: [Select]
osc_add_hook('item_detail', 'ur_show_rating');

That will add box to to item_detail, ... next is on you

Sorry sir, i still not understand... i already put a code below

Code: [Select]
function ur_show_rating() {
  include 'user/rating.php';
}
osc_add_hook('item_detail', 'ur_show_rating');

But how can i edit in item.php
can you assist me


You must also check CSS to make it visible, format it properly and show just what you want to show.

Im not a programming user... please assist me... i just want remove a fancy box and replace with static like old comment...
Title: Re: Replace fancy box with comment place
Post by: MB Themes on August 30, 2018, 11:31:48 AM
It's a lot of styling, check css guides:
https://www.w3schools.com/css/
Title: Re: Replace fancy box with comment place
Post by: epoolroy on August 30, 2018, 11:43:51 AM
It's a lot of styling, check css guides:
https://www.w3schools.com/css/

I just want all content in fancy box replace like comment..
that mean, all my user can view all rating post not in fancy box (pop up) ...
Title: Re: Replace fancy box with comment place
Post by: MB Themes on August 30, 2018, 11:46:26 AM
@epoolroy
I know what you want, but it's not "just", there is lot of work behind. This box is not intend to replace comments.
Title: Re: Replace fancy box with comment place
Post by: epoolroy on August 30, 2018, 11:51:00 AM
@epoolroy
I know what you want, but it's not "just", there is lot of work behind. This box is not intend to replace comments.

okay, thank you for you answer