Author Topic: New Module "OneForAll"  (Read 41082 times)

Online dbs

  • Betatester
  • **
  • Posts: 7600
  • Gender: Male
  • tioz4ever
    • WebsiteBaker - jQuery-Plugins - Module - Droplets - Tests
Re: New Module "OneForAll"
« Reply #25 on: July 28, 2015, 08:19:47 AM »
Don't know about different thumbsizes. Maybe jacobi22 or freeSbee have a idea.

Offline jacobi22

  • Posts: 5276
  • Gender: Male
  • Support also via PM or EMail
    • Jacobi22
Re: New Module "OneForAll"
« Reply #26 on: July 28, 2015, 01:34:23 PM »
One last question: how can I define the main image thumbnail to be bigger than the rest of the thumbnails? I currently set the thumbnails to 200px wide, but I would like to show the main image as a 500px wide and the rest of the thumbnails as 125px wide. Is this possible?

only theory, i didnt know this module, but i remember, that its work like bakery

the modules bakery & One4All use placeholders for the images
[IMAGE] is the big main pic in original size
[IMAGES] are all pic's in original size
[THUMB] is the main pic in your selected thumb size
[THUMBS] are all pic's in selected thumbsize

its possible to combined this placeholders like

[IMAGE]
[THUMBS]

result is a big main picture and thumbs from the other pics in a second row. a simple solution for your problem is a main image with a size from 500px and a code like my example

but if you mean, that your main-image-thumb in the row with all pic's is a little bit bigger like the others, i think, thats possible with css, but the i need a working example
Probleme sind da, um sie zu lösen, nicht, um nach Ausreden zu suchen.

Offline svsanchez

  • Posts: 449
Re: New Module "OneForAll"
« Reply #27 on: July 30, 2015, 08:58:19 PM »
Hello Jacobi, you are correct in your last sentence: what I would like is to have a bigget thumb for the main image and smaller thumbs for the rest of the images. The reason for this is some people find it difficult to reduce the images, so I want to control the image size of the main image (main thumb) and th size of the smaller thumbs like this:

Main thumb: 500 px wide
Smaller thumbs: 150 px wide (if possible, have them cropped to squares like foldergallery does)

This way, even if they upload a huge main picture like 2000 px wide, the result will still be a small 500px-wide thumb which can be clicked to open the big picture. And smaller 150px-wide thumbs below for the rest of the images.

Here's the example where I am working and what I did so far:

http://creeser.org.gt/pages/test-oneforall/prueba-3-3.php

1. In modules > oneforall > config.php I changed:

$thumb_resize_smallest   = 100;
$thumb_resize_largest    = 500;

2. In modules > oneforall > config.php I changed:

.mod_oneforall_main _thumb_f {
   max-width: 150px;
   border: none;
}

.mod_oneforall_item _thumb_f {
   max-width:500px;
   border: none;
}

3. This is what I have in the page settings of oneforall:

<div class="mod_oneforall_item_ f">
<h2 class="mod_oneforall_item_ title_f">[TITLE]</h2>
<!-- ADD YOUR PLACEHOLDERS LIKE THIS: -->
[FIELD_1]
<BR>
[FIELD_3]
<BR>
[THUMB]<br>
<BR>
[FIELD_2]
[THUMBS]
</div>
<div class="mod_oneforall_prev_ next_links_f">
[PREVIOUS] | <a href="[BACK]">[TXT_BACK]</a> | [NEXT]
</div>


Offline Roych

  • Betatester
  • **
  • Posts: 573
  • Gender: Male
Re: New Module "OneForAll"
« Reply #28 on: August 03, 2015, 08:16:17 PM »
Hello


first time using OneForAll I like it already ;)


I have one question, I want to have a "label" in FIELDS, so it will be shown in backend,  but I don't want label text to be shown in frontend how can I do that?


Thank you


R.

Online dbs

  • Betatester
  • **
  • Posts: 7600
  • Gender: Male
  • tioz4ever
    • WebsiteBaker - jQuery-Plugins - Module - Droplets - Tests
Re: New Module "OneForAll"
« Reply #29 on: August 03, 2015, 08:58:16 PM »
Hi, click button Fields and look for [CUSTOM_LABEL]

Offline Roych

  • Betatester
  • **
  • Posts: 573
  • Gender: Male
Re: New Module "OneForAll"
« Reply #30 on: August 03, 2015, 09:29:57 PM »
Hi, click button Fields and look for [CUSTOM_LABEL]


OMG, how could I missed that, lol :P


Thank you


R.

Offline Roych

  • Betatester
  • **
  • Posts: 573
  • Gender: Male
Re: New Module "OneForAll"
« Reply #31 on: August 30, 2015, 08:59:28 PM »
Hello


Is there a way to limit the max lenght of characters in Overview (Item-Loop): in OneForAll module?
[/size]
[/size]I would like to show only 150 character per "post" so that all of them would be the same height.
[/size]
[/size]Or even better, is there a way to create (Masonry Cascading grid layout[/size][size=78%])[/size][/size] style here? so it wouldn't matter what height are the posts ...
[/size]I tried, but can't figure it out.


http://www.boogie-parket.si/new/pages/si/reference.php?lang=SI


It's a test site


[/size]
[/size]Thank you
[/size]
[/size]R.

Offline Roych

  • Betatester
  • **
  • Posts: 573
  • Gender: Male
Re: New Module "OneForAll"
« Reply #32 on: August 30, 2015, 10:16:27 PM »
Hello


Is there a way to limit the max lenght of characters in Overview (Item-Loop): in OneForAll module?

I would like to show only 150 character per "post" so that all of them would be the same height.

Or even better, is there a way to create (Masonry Cascading grid layout[size=78%])[/size] style here? so it wouldn't matter what height are the posts ...
I tried, but can't figure it out.


http://www.boogie-parket.si/new/pages/si/reference.php?lang=SI


It's a test site



Thank you

R.


Sorry, something happened when writing ...  :?


Again here:
Is there a way to limit the text in OneForAll module Overview (Item-Loop) to maybe 150 characters? So it would all have the same height.


Or even better create Masonry Cascading grid layout so it would all just somehow fit together no matter how many text is in there. I tried but can't figure it out.


http://www.boogie-parket.si/new/pages/si/reference.php?lang=SI


And another thing I have some wierd lightbox problem vhen you click on images in Item Detail (read more) any ideas?


Thank you very much and sorry for the first post.


R


Offline freeSbee

  • Posts: 1117
    • BAKERY - Website Baker shop module
Re: New Module "OneForAll"
« Reply #33 on: September 27, 2015, 05:11:21 PM »
New Version of OneForAll:

VERSION 0.7 (09/27/2015)


VERSION HISTORY
  • Bugfix: Added backticks to unquoted mysql table names since hyphens are not accepted in unquoted identifiers(reported by dbs)
  • Bugfix: Fixed search script that produced multiple identical search results (reported by instantflorian)
  • Added french language file
  • Bugfix: Fixed renaming of module on upgrade

KNOW HOW
Further information can be found on the first post of this thread.

DOWNLOAD
Download the zip from this downlaod link.


Christoph

Offline Ruud

  • Posts: 3642
  • Gender: Male
  • Do not use PM for help! Please use the forum!
    • Dev4Me - Professional WebsiteBaker Development
Re: New Module "OneForAll"
« Reply #34 on: September 27, 2015, 10:37:56 PM »
 (Y)

Offline freeSbee

  • Posts: 1117
    • BAKERY - Website Baker shop module
Re: New Module "OneForAll"
« Reply #35 on: October 06, 2015, 01:41:39 PM »
New Version of OneForAll:

VERSION 0.8 (10/06/2015)


VERSION HISTORY
  • Added drag&drop sorting to the item table

KNOW HOW
Further information can be found on the first post of this thread.

DOWNLOAD
Download the zip from this downlaod link.


Christoph

Offline CodeALot

  • Posts: 387
  • Gender: Male
Re: New Module "OneForAll"
« Reply #36 on: October 06, 2015, 04:20:46 PM »
This module is getting better and better. I've said it before but I'll say it again: you rule. This makes WB flexible and versatile enough to last another generation of websites. OneForAll allows me to 'pre-cook' a lot of stuff and make it very easy for my clients to maintain their own website, while the module ensures that layouts, font usage, colors etc stay the way I intended them.
 
Thanks!!

Offline Roych

  • Betatester
  • **
  • Posts: 573
  • Gender: Male
Re: New Module "OneForAll"
« Reply #37 on: October 07, 2015, 10:44:47 AM »
Hello,


Thanks this is awesome ;)


I have one question. I'm trying to move (copy) all articles from my old news module to new OneForAll module, is it possible to somehow keep the creation date, so that the date of creation would be the same as in news module?


What would be the best way to do that? (does OFA module have some settings maybe for it ...)


Thank you


R

Offline freeSbee

  • Posts: 1117
    • BAKERY - Website Baker shop module
Re: New Module "OneForAll"
« Reply #38 on: October 07, 2015, 03:52:50 PM »
Hi Roych

If you have manually copied the news entries to OneForAll, you can use phpMyAdmin => go to the "SQL" tab and select the news entries:

Code: [Select]
SELECT `post_id`, `posted_when` FROM `wb_mod_news_posts`;

Then export the mySQL result table by selecting all rows and clicking "Export". You will get something like (1):

Code: [Select]
INSERT INTO `wb_mod_news_posts` (`post_id`, `posted_when`) VALUES
(1, 0),
(2, 1421222296),
(3, 1421222172),
(5, 1421221905),
(6, 1421221931);

Now you could either take the time stamps and update the ones in the wb_mod_oneforall_it ems table manually using phpMyAdmin or change the code from the result table (1) to:

Code: [Select]
INSERT INTO `wb_mod_oneforall_items` (`item_id`, `modified_when`) VALUES
(1, 0),
(2, 1421222296),
(3, 1421222172),
(5, 1421221905),
(6, 1421221931)
ON DUPLICATE KEY UPDATE `modified_when`=VALUES(`modified_when`);

Please note: You might have to edit the post_id to match the item_id. You might also have to edit the table prefix (wb_) and / or the OneForAll module name, if you have changed it on installation.

Finally run the mySQL code (2) in the phpMyAdmin "SQL" tab.


Regards Christoph

Offline Roych

  • Betatester
  • **
  • Posts: 573
  • Gender: Male
Re: New Module "OneForAll"
« Reply #39 on: October 07, 2015, 04:28:37 PM »
Hi Roych

If you have manually copied the news entries to OneForAll, you can use phpMyAdmin => go to the "SQL" tab and select the news entries:

Code: [Select]
SELECT `post_id`, `posted_when` FROM `wb_mod_news_posts`;

Then export the mySQL result table by selecting all rows and clicking "Export". You will get something like (1):

Code: [Select]
INSERT INTO `wb_mod_news_posts` (`post_id`, `posted_when`) VALUES
(1, 0),
(2, 1421222296),
(3, 1421222172),
(5, 1421221905),
(6, 1421221931);

Now you could either take the time stamps and update the ones in the wb_mod_oneforall_it ems table manually using phpMyAdmin or change the code from the result table (1) to:

Code: [Select]
INSERT INTO `wb_mod_oneforall_items` (`item_id`, `modified_when`) VALUES
(1, 0),
(2, 1421222296),
(3, 1421222172),
(5, 1421221905),
(6, 1421221931)
ON DUPLICATE KEY UPDATE `modified_when`=VALUES(`modified_when`);

Please note: You might have to edit the post_id to match the item_id. You might also have to edit the table prefix (wb_) and / or the OneForAll module name, if you have changed it on installation.

Finally run the mySQL code (2) in the phpMyAdmin "SQL" tab.


Regards Christoph


Thank you I will try that, If will know how to and let u know how it went. :P


Thank you


R

Offline Roych

  • Betatester
  • **
  • Posts: 573
  • Gender: Male
Re: New Module "OneForAll"
« Reply #40 on: November 03, 2015, 01:27:19 PM »
Hello, sry for the late reply.


The upper solution worked. Had some problems but I somehow did it ;) Thank you!


But have another question.
Is it possible to hide one section when you are on a detail page? I have oneforall section and minislider on same page, but I would like to hide the mini slider wher you are on detail page of oneforall module. So you wouldn't have to scroll down to read the article.


Oneforall is
Code: [Select]
<?php page_content(1); ?>

And minislider is on
Code: [Select]
<?php page_content(6); ?>





Thank you


R




Offline Ruud

  • Posts: 3642
  • Gender: Male
  • Do not use PM for help! Please use the forum!
    • Dev4Me - Professional WebsiteBaker Development
Re: New Module "OneForAll"
« Reply #41 on: November 03, 2015, 01:34:32 PM »
OneForAll detail pages will have an $item_id variable set (similar to Bakery pages).
You can test for the existence of this variable in the template.

Code: (untested) [Select]
<?php 
if(!isset($item_id)) { // no $item_id variable?
    
page_content(6);   // show slider block
}
?>

Offline Roych

  • Betatester
  • **
  • Posts: 573
  • Gender: Male
Re: New Module "OneForAll"
« Reply #42 on: November 03, 2015, 01:49:15 PM »
Wow, it works great. ;)


Thank you very much.


R.

Offline CodeALot

  • Posts: 387
  • Gender: Male
Re: New Module "OneForAll"
« Reply #43 on: November 16, 2015, 01:44:52 PM »
Is it possible to create a field type 'Wrapper' (iFrame)?

Offline freeSbee

  • Posts: 1117
    • BAKERY - Website Baker shop module
Re: New Module "OneForAll"
« Reply #44 on: November 16, 2015, 02:46:44 PM »
Hi CodeALot

You can use the field type "External link" (URL) and modify the field template. Something like the code below would fit your needs:

Code: [Select]
<iframe class="mod_oneforall_iframe_f" src="[CUSTOM_CONTENT]"></iframe>

Regards Christoph

Offline CodeALot

  • Posts: 387
  • Gender: Male
Re: New Module "OneForAll"
« Reply #45 on: November 16, 2015, 02:49:16 PM »
Awesome. You just can't stop ruling. :-) Thanks again!

Offline CodeALot

  • Posts: 387
  • Gender: Male
Re: New Module "OneForAll"
« Reply #46 on: November 24, 2015, 03:02:48 PM »
Now for the next step... :)
 
I want to use the Oneforall-module for displaying projects. Every record in the module has a title, a group assigned, mediafolder to get a slideshow from etc.
Now I want to use a droplet/snippet/whatever in my template to call the last 10 projects in the database, and list them like you can do with AnyNews for the news module.
 
Maybe... Juuuuuuuust maybe, OneForAll could use external tpl-files for different ways to display the data too? :)

Just asking ;)

Offline freeSbee

  • Posts: 1117
    • BAKERY - Website Baker shop module
Re: New Module "OneForAll"
« Reply #47 on: November 25, 2015, 09:49:52 AM »
Hi CodeALot

I think the individual page templates saved in the db give you much more flexibility than one general template saved as tpl-file for the entire module.
But maybe I failed to catch the key point of your request.

Regards Christoph

Offline jacobi22

  • Posts: 5276
  • Gender: Male
  • Support also via PM or EMail
    • Jacobi22
Re: New Module "OneForAll"
« Reply #48 on: November 25, 2015, 10:04:44 AM »
at first... i didnt use One4All and its difficult for me, to build a database structure with nearly the same content like yours, to test

Quote
Now I want to use a droplet/snippet/whatever in my template to call the last 10 projects in the database, and list them like you can do with AnyNews for the news module.

One4All has a code structure like bakery, so its looks easyer for me, if you start with the (Bakery-) LastItem-Snippet

a first look into this snippet shows:
i found all code from the include.php in the bakery code in view.php
Search & Replace the relevant parts from the view.php of One4All
Probleme sind da, um sie zu lösen, nicht, um nach Ausreden zu suchen.

Offline CodeALot

  • Posts: 387
  • Gender: Male
Re: New Module "OneForAll"
« Reply #49 on: November 27, 2015, 04:31:06 PM »
Hi CodeALot

I think the individual page templates saved in the db give you much more flexibility than one general template saved as tpl-file for the entire module.
But maybe I failed to catch the key point of your request.

Regards Christoph

Yeah, that's not what I mean :) What I'm actually looking for is a way to have a 'snippet' in my template that reads all the [TITLES] in a specific group or array of groups, and shows those titles as a clickable list. Of course you can have such a list on the OneForAll-page itself in the 'overview'-view, but I want that list to be shown in my templates outside the actual OneForAll-page. 

Kind of like you can get all the news headlines in your template using the Anynews-module, that basically only reads the headlines and links and presents them in a list, according to the .tpl-file you made for it. That's what I meant with the templates remark.

Hope this clarifies things a bit.