Author Topic: How to replace several fields in the item box?  (Read 883 times)

Sandra

  • Newbie
  • *
  • Posts: 12
  • Karma: 0
    • View Profile
    • Email
How to replace several fields in the item box?
« on: February 04, 2010, 09:34:27 AM »
Hi,

I would like to replace the fields that are displayed in the item box

views
posted by
member
date

with previously defined custom fields, but only values, without the icons and names.

How can i do it ??

I was installed SMG 2.0.5 into SFF 1.1.11 + Tiny Portal 0.9.8

Regards - Sandra

Nao

  • Developer
  • Hero Member
  • *
  • Posts: 3623
  • Karma: 22
    • View Profile
    • NOISEN!
Re: How to replace several fields in the item box?
« Reply #1 on: February 04, 2010, 12:32:52 PM »
Hmm that's not a trivial change... It would require a lot of edits.
« Everyone knows rock attained perfection in 1974. It's a scientific fact. » (Homer Simpson)
Beta Tester & Translator for SMF,
Developer for Aeva Media and its Foxy! add-on.
No PM support! Or I'll eat you with salad and garlic sausage.

Sandra

  • Newbie
  • *
  • Posts: 12
  • Karma: 0
    • View Profile
    • Email
Re: How to replace several fields in the item box?
« Reply #2 on: February 04, 2010, 02:06:58 PM »
But it is possible to do it?

Sandra

  • Newbie
  • *
  • Posts: 12
  • Karma: 0
    • View Profile
    • Email
Re: How to replace several fields in the item box?
« Reply #3 on: February 05, 2010, 03:27:13 AM »
Can you tell me which files and what order should I edit?

Gallery is designed for the Foundation (in charge of saving homeless dogs), so the itemboxes are needed fields specifying age, gender, city, region in which the dog is currently staying.

My test site is here: http://www.latoma.net/index.php?action=mgallery;sa=album;id=1 (gallery in the portal menu called Adopcje)

I tried to customize the gallery, but the more I do not give advice :( I know that I made some mistakes.... but I can fix it :)

Nao

  • Developer
  • Hero Member
  • *
  • Posts: 3623
  • Karma: 22
    • View Profile
    • NOISEN!
Re: How to replace several fields in the item box?
« Reply #4 on: February 05, 2010, 05:20:06 AM »
It's a lot of work (at least a full day I'd estimate).
Tell me exactly what you need and how you need it implemented (what function in the admin area, etc.), I mean *in a concrete way*.
I will add this to my to-do-list with a slightly high priority. Will be considered for AM 1.1.
« Everyone knows rock attained perfection in 1974. It's a scientific fact. » (Homer Simpson)
Beta Tester & Translator for SMF,
Developer for Aeva Media and its Foxy! add-on.
No PM support! Or I'll eat you with salad and garlic sausage.

Sandra

  • Newbie
  • *
  • Posts: 12
  • Karma: 0
    • View Profile
    • Email
Re: How to replace several fields in the item box?
« Reply #5 on: February 05, 2010, 07:27:24 AM »
OK. very, very thx !!!

I think the best show you it in the image:







If something is confusing, ask about it... thx.

Sandra

Sandra

  • Newbie
  • *
  • Posts: 12
  • Karma: 0
    • View Profile
    • Email
Re: How to replace several fields in the item box?
« Reply #6 on: February 05, 2010, 05:33:01 PM »
I think it most convenient in to the admin panel was able to choose which fields to be displayed and where.

For example: if I create a custom field you could to add the RadioButton where to be displayed?
Admin->settings, you can ask a question: do you want to show statistics? (checkbox)
Admin->settings, you can ask a question: is the sorting allowed?
Admin->settings, you can ask a question: is the sorting allowed? or sort by... (checkboxes) fields?


Nao

  • Developer
  • Hero Member
  • *
  • Posts: 3623
  • Karma: 22
    • View Profile
    • NOISEN!
Re: How to replace several fields in the item box?
« Reply #7 on: February 06, 2010, 04:11:49 AM »
Well... It's hard to say. It might take a while to implement this. More and more options-- I'd like to have the community's opinion on whether this is interesting to do?
« Everyone knows rock attained perfection in 1974. It's a scientific fact. » (Homer Simpson)
Beta Tester & Translator for SMF,
Developer for Aeva Media and its Foxy! add-on.
No PM support! Or I'll eat you with salad and garlic sausage.

Sandra

  • Newbie
  • *
  • Posts: 12
  • Karma: 0
    • View Profile
    • Email
Re: How to replace several fields in the item box?
« Reply #8 on: February 06, 2010, 11:28:08 AM »
Okay, so ask...

I will try in the meantime, you somehow manage do it myself (but only for my needs).

But does it not conflict with the license agreement?

Nao

  • Developer
  • Hero Member
  • *
  • Posts: 3623
  • Karma: 22
    • View Profile
    • NOISEN!
Re: How to replace several fields in the item box?
« Reply #9 on: February 06, 2010, 12:53:54 PM »
You can change the stuff however you want for your site. Just don't redistribute modified copies without permission.
« Everyone knows rock attained perfection in 1974. It's a scientific fact. » (Homer Simpson)
Beta Tester & Translator for SMF,
Developer for Aeva Media and its Foxy! add-on.
No PM support! Or I'll eat you with salad and garlic sausage.

Sandra

  • Newbie
  • *
  • Posts: 12
  • Karma: 0
    • View Profile
    • Email
Re: How to replace several fields in the item box?
« Reply #10 on: February 06, 2010, 01:32:00 PM »
ok. I understand

Sandra

  • Newbie
  • *
  • Posts: 12
  • Karma: 0
    • View Profile
    • Email
Re: How to replace several fields in the item box?
« Reply #11 on: February 15, 2010, 05:30:41 PM »
Hi!

I try to change layout and and I have already done a lot, but I have a problem with values of custom fields.
So it looks like:





I can not cope with display custom fields...

Could you help me?

http://latoma.net/album

Sandra
« Last Edit: February 15, 2010, 05:36:03 PM by Sandra »

Nao

  • Developer
  • Hero Member
  • *
  • Posts: 3623
  • Karma: 22
    • View Profile
    • NOISEN!
Re: How to replace several fields in the item box?
« Reply #12 on: February 16, 2010, 04:00:19 PM »
I'm waiting for some feedback from Dragooon.
« Everyone knows rock attained perfection in 1974. It's a scientific fact. » (Homer Simpson)
Beta Tester & Translator for SMF,
Developer for Aeva Media and its Foxy! add-on.
No PM support! Or I'll eat you with salad and garlic sausage.

Arquer

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
    • ICQ Messenger - 10865286
    • View Profile
Re: How to replace several fields in the item box?
« Reply #13 on: February 24, 2010, 05:07:19 PM »
Hi, I’m Using Simple Portal to show Aeva Media Block Using the Code:

Code: [Select]
function show_aeva_media_block()
{
   global $sourcedir;

   // Load the language file
   loadLanguage('Aeva');

   // Grab the file.
   if (file_exists($sourcedir . '/Aeva-Subs.php'))
      require_once($sourcedir . '/Aeva-Subs.php');
   // If it doesn't exist, tell them this and stop running.
   else
   {
      echo '<b>You don\'t have Aeva installed! Unable to continue!</b>';
      return;
   }
   // Use aeva functions to show the media.
   echo aeva_listItems(aeva_getMediaItems(0, 8, 'RAND()'), true, '', 4);
}
// Run the function.;
show_aeva_media_block();

Showing like this:



Im wondering if can be customized to only show the title and the image only. I have try to tweak the code using

Code: [Select]
echo’
<a href="',$galurl,'sa=item;id=',$item['id'],'">',$item['title'],'</a><br />
<a href="',$galurl,'sa=media;id=',$item['id'],'" title="',$item['title'],'" class="hs " onclick="return hs.expand(this);"><img alt="" src="',$galurl,'sa=media;id=',$item['id'],';',’;

Looking for eliminate this info"


I’m novice on php but understand somehow were to go to edit on sources. Is ok if the If whole gallery info’s too its affected I’m looking some advice what to and don’t edit to archive this.



Thanks for your help
« Last Edit: February 24, 2010, 05:21:29 PM by Arquer »
Graphic Artist

Nao

  • Developer
  • Hero Member
  • *
  • Posts: 3623
  • Karma: 22
    • View Profile
    • NOISEN!
Re: How to replace several fields in the item box?
« Reply #14 on: February 24, 2010, 06:22:34 PM »
You can customize anything but aeva_listItems() has its limits. For this, you want to directly deal with the data returned by aeva_getMediaItems(). Do a print_r() on it to analyze the data.
« Everyone knows rock attained perfection in 1974. It's a scientific fact. » (Homer Simpson)
Beta Tester & Translator for SMF,
Developer for Aeva Media and its Foxy! add-on.
No PM support! Or I'll eat you with salad and garlic sausage.