Osclass Support Forums
Osclass plugin support => User Rating Plugin => Topic started 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
-
@epoolroy
You may start by trying to include this box file into item.php
-
@epoolroy
You may start by trying to include this box file into item.php
can you assist me how to do that?
thank you
-
In file:
oc-content/plugins/user_rating/index.php
bellow:
function ur_show_rating() {
include 'user/rating.php';
}
add:
osc_add_hook('item_detail', 'ur_show_rating');
That will add box to to item_detail, ... next is on you
-
In file:
oc-content/plugins/user_rating/index.php
bellow:
function ur_show_rating() {
include 'user/rating.php';
}
add:
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
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
-
adding this code should not require modifications in item.php
-
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?
-
In file:
oc-content/plugins/user_rating/index.php
bellow:
function ur_show_rating() {
include 'user/rating.php';
}
add:
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
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.
-
In file:
oc-content/plugins/user_rating/index.php
bellow:
function ur_show_rating() {
include 'user/rating.php';
}
add:
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
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...
-
It's a lot of styling, check css guides:
https://www.w3schools.com/css/
-
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) ...
-
@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.
-
@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