Knowledgebase
View categorized listing of all common frequently asked questions.
Video Tutorials (jReviews 2.0)
Create a Movie & TV Show review website.
Customize the jReviews themes.
Review user profiles with the Everywhere addon.
Forum
Community forum
Submit a Ticket
Use your client area email to access the ticket system.
Downloads
Guides, modules and more...
CSV Import for Joomla and jReviews
 
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 02, 2008, 12:32:24 AM
21662 Posts in 4948 Topics by 2838 Members
Latest Member: davidkan
News: Use your client area email when you sign up to the forum so we can identify you as a trial or licensed user. Otherwise we may not answer your questions.
 
jReviews Support Forum  |  jReviews 1.x - jReviews Modules and Hook Components  |  Modules & bots  |  custom fields in dashboard « previous next »
Pages: [1]
Author Topic: custom fields in dashboard  (Read 1741 times)
mediumfries
Newbie
*
Offline Offline

Posts: 16


« on: January 10, 2007, 05:38:09 PM »

Hello Jreviews

I was wondering if its possible to change what the dashboard module displays from the main review title to one of the custom fields.

The reason for this is that im setting up a music review section - albums/singles/live - and i want the dashboard module to display the name of the artist for instant recognition from the user. However I cant put the artist name in as the review main title because its not possible to have the same article title twice. So if later on i want to review the same artist again - i cant.

Any help on this problem would be greatly appreciated
Thanks.

Logged
Alejandro
Global Moderator
Administrator
Hero Member
*****
Offline Offline

Posts: 8593


« Reply #1 on: January 10, 2007, 07:21:47 PM »

How about using the title alias instead for the artist? then you can just replace in the queries title for title_alias. This is in the mod_jrdashboard.php file. Try that, because what you want requires more work and I would have to get back to you later on.
Logged

Please take the time to vote and to write a review: http://extensions.joomla.org
Reviews Ahoy! - Submit your jReviews site here.
mediumfries
Newbie
*
Offline Offline

Posts: 16


« Reply #2 on: January 11, 2007, 01:53:10 PM »

Hello Jreviews

That could well solve my problem. However if I input things that way the title alias (or artist name) doesn't appear on the review spage anywhere. I guess this is to do more with the joomla core but how would i go about making this appear like a custom field on my reviews and not on any other content?

Could I also then change dashboard mod so that it will show both title & title_alias??

And if so ... would it be possible to apply seperate css styles to those variables so that title_alias is more prominent?

Dont want much eh?! Wink
Logged
Alejandro
Global Moderator
Administrator
Hero Member
*****
Offline Offline

Posts: 8593


« Reply #3 on: January 11, 2007, 02:31:50 PM »

When I said to use the title alias for the artist name in my example, I did not mean for you to not use the custom fields. I thought you would use both.

Please write exactly what is it that you are looking for, there are several things now, and for which of the dashboard modes. Understand that this type of request requires code changes here and there and takes some time. I will have to find the time to help you Wink
« Last Edit: January 11, 2007, 06:46:27 PM by jReviews » Logged

Please take the time to vote and to write a review: http://extensions.joomla.org
Reviews Ahoy! - Submit your jReviews site here.
mediumfries
Newbie
*
Offline Offline

Posts: 16


« Reply #4 on: January 11, 2007, 03:35:05 PM »

Apologies I don't think i quite understood what you meant.

Right - What I want exactly is a module on the frontpage that will list the latest 5-10 reviews from each category - just like the dashboard mudule does now.

The problem is that the dashboard module lists the item title - which i have set as the artists name. This means that I cant put the same artist i twice. big problem for me.

If i set the artists name as one of the custom fields and the album as the item title  - the artists name doesn't appear in the dasboard module - so its not much use to me.

What i would ideally like is for the dashboard module to show 2 fields - a) item title and one custom or b) just one of the custom ones. so i could have the artists name on the frontpage & put that artist in as many times as i wanted without it saying it already exists.

Thanks for your help on this one jReviews
Your helpfulness on this and previous issues has been remarkable Smiley

Logged
Alejandro
Global Moderator
Administrator
Hero Member
*****
Offline Offline

Posts: 8593


« Reply #5 on: January 11, 2007, 03:38:18 PM »

Ok. What about removing the restriction for duplicate titles? That's possible and much simpler than the other stuff. If you would like to do that I can tell you how now, otherwise, please be patient.
Logged

Please take the time to vote and to write a review: http://extensions.joomla.org
Reviews Ahoy! - Submit your jReviews site here.
mediumfries
Newbie
*
Offline Offline

Posts: 16


« Reply #6 on: January 11, 2007, 04:24:48 PM »

The whole custom fields in module thing would be the perfect solution for me. But I guess your a busy busy fella, so i would be very happy with just  the restriction removed for now.

If at some point you do those module mods and you remember this post then let me know.

Thanks again Jreviews

There wont be any repercussions from removing the restriction will there?

Logged
Alejandro
Global Moderator
Administrator
Hero Member
*****
Offline Offline

Posts: 8593


« Reply #7 on: January 11, 2007, 04:35:00 PM »

To remove the restriction, go to jreviews.php, look for:

Quote
   if ($database->loadResult() && $isNew && $sTitle != '') {// if item exists and we are not in edit mode

comment it and add a line below

Quote
   //if ($database->loadResult() && $isNew && $sTitle != '') {// if item exists and we are not in edit mode
        if (1 == 2) {
     
The restriction is there originally to prevent duplicate postings of the same item, but you should try it out and see if you have that problem by pressing the back button after submit for example.
Logged

Please take the time to vote and to write a review: http://extensions.joomla.org
Reviews Ahoy! - Submit your jReviews site here.
mediumfries
Newbie
*
Offline Offline

Posts: 16


« Reply #8 on: January 11, 2007, 06:44:18 PM »

Great stuff

There shoudnt be a problem with dupes as its not a public review site we are running. Theres onyl one user controlling the whole thing.

Thanks again!

Mediumfries
Logged
mediumfries
Newbie
*
Offline Offline

Posts: 16


« Reply #9 on: June 11, 2008, 07:39:43 AM »

Hey Alejandro

This fix for allowing multiple entries with the same title doesnt seem to apply to the latest jreviews release. What part of jreviews.php should be changed now?

Thanks

Mike
Logged
mediumfries
Newbie
*
Offline Offline

Posts: 16


« Reply #10 on: June 11, 2008, 08:20:21 AM »

Hi sorry

The version of Jreviews I am actually running is 1.2 not quite the latest one.

Thanks

Logged
Alejandro
Global Moderator
Administrator
Hero Member
*****
Offline Offline

Posts: 8593


« Reply #11 on: June 11, 2008, 11:19:30 AM »

It does apply, maybe the code is a bit different, but the comment is the same and the replacement is also the same.
Logged

Please take the time to vote and to write a review: http://extensions.joomla.org
Reviews Ahoy! - Submit your jReviews site here.
Pages: [1]
« previous next »
    Jump to: