Welcome, Guest. Please login or register.
Did you miss your activation email?
May 23, 2012, 11:42:03 AM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite.
155407 Posts in 21698 Topics by 7731 Members
Latest Member: elwin90
* Home Help Search Login Register
Pages: [1] 2   Go Down
Print
Author Topic: New module - Catalogs  (Read 3503 times)
pcwacht
AddOn Development
*
Offline Offline

Posts: 2855



WWW
« on: July 19, 2008, 11:37:59 AM »

Well I had to give ir a name, so choosed catalogs since it can be used for it.

Made this for vanbemmel, so the ideas came from him

It is basicly the same as the News module but added and changed some of its functionality
1 - an item has 15 choosable userfields (wich are searchable as well)
2 - lists (groups or items) can have 1, 2 or 3 columns, changable in settings, each column has its own layout in settings
3 - group image is shown in backend
4 - page lists all groups by default
5 - in comments a name can be given


Have fun,
John
 
Logged

http://www.ictwacht.nl = Dutch ICT info
http://www.pcwacht.nl = My first
both still work in progress, since years.....
Availor

Offline Offline

Posts: 225



« Reply #1 on: July 19, 2008, 01:04:51 PM »

Yeeeey a new module  grin I love modules  grin grin grin grin

I made a test - the fields, eventhough they are disabled - they are shown, and the name I gave them did not show (I named the first field images and the second field "text")

See test here http://www.videoxone.com/websitebaker/pages/catalogs/title2.php?g=2
Logged
pcwacht
AddOn Development
*
Offline Offline

Posts: 2855



WWW
« Reply #2 on: July 19, 2008, 03:50:30 PM »

Look at settings - item - footer, remove the fields there
They are just there to proof and show how those fields can be used... will remove it in add.php in next version

the name of the userfield is only used in backend adding a post, not in frontend, there the content of that field can be used, if you need to name it do something like:
Code:
<p>Name_of_field1 = [FIELD1]</p>

Those fields can be used for loads of things
Like prices, deliverytime etc etc

Can allso be used as a member mod
short = short description
long = longdescription
userfields can be used for :
Name
Addres
Zip
Place
Phone
etc etc

Or recipes
Userfields can be used for
ingredients
cooking time

Well anything goes... Wink


There is one feature not yet implemented, The item in Settings -Item is not used yet - will be settings for the long text in next version

John
Logged

http://www.ictwacht.nl = Dutch ICT info
http://www.pcwacht.nl = My first
both still work in progress, since years.....
Ruud
WebsiteBaker Org e.V.

Offline Offline

Posts: 2294



WWW
« Reply #3 on: July 20, 2008, 05:15:16 PM »

There is already a module called "Catalogs".
http://www.websitebaker2.org/forum/index.php/topic,1463.0.html

It's a bit old, but I use it on several websites.
(i.e.: http://www.rietdijkauto.nl/pages/voorraadlijst.php

It might be a bit confusing to have 2 modules with the same name.

Ruud
Logged

Professional WebsiteBaker Solutions
pcwacht
AddOn Development
*
Offline Offline

Posts: 2855



WWW
« Reply #4 on: July 20, 2008, 05:37:52 PM »

Will rename this one in next version to avoid naming issues

John
Logged

http://www.ictwacht.nl = Dutch ICT info
http://www.pcwacht.nl = My first
both still work in progress, since years.....
gottfried

Offline Offline

Posts: 979


« Reply #5 on: July 28, 2008, 09:09:26 AM »

Hallo !
Great !

I am from Germany, so my englisch might be bad.

I installed your Catalog on wb 2.7. It seems to be exactly what i am looking for.

Is it possible to leave away the groups ? when I use "no group" in an item, it does not appear on the frontend.

Is it possible to sort the records ? or are they sorted ?

Thank you !
Logged
pcwacht
AddOn Development
*
Offline Offline

Posts: 2855



WWW
« Reply #6 on: July 28, 2008, 11:28:07 AM »

Since this is for newsitems to be listed in groups, every item needs to be in a group, you can use one group.

They are sorted by the order in wich they are put in the backend order.

John
Logged

http://www.ictwacht.nl = Dutch ICT info
http://www.pcwacht.nl = My first
both still work in progress, since years.....
terrajohn

Offline Offline

Posts: 43


« Reply #7 on: August 13, 2008, 02:07:01 PM »

Is there already an update of this module addressing the topics already addressed?
Logged
pcwacht
AddOn Development
*
Offline Offline

Posts: 2855



WWW
« Reply #8 on: August 13, 2008, 06:03:44 PM »

Nope, wich topic do you need addressed?

John
Logged

http://www.ictwacht.nl = Dutch ICT info
http://www.pcwacht.nl = My first
both still work in progress, since years.....
jar

Offline Offline

Posts: 62


« Reply #9 on: August 18, 2008, 12:34:11 PM »

Well I had to give ir a name, so choosed catalogs since it can be used for it.

Made this for vanbemmel, so the ideas came from him

It is basicly the same as the News module but added and changed some of its functionality
1 - an item has 15 choosable userfields (wich are searchable as well)
2 - lists (groups or items) can have 1, 2 or 3 columns, changable in settings, each column has its own layout in settings
3 - group image is shown in backend
4 - page lists all groups by default
5 - in comments a name can be given


Have fun,
John
 
Warning: require_once(/home/hellotra/public_html/include/jscalendar/wb-setup.php) [function.require-once]: failed to open stream: No such file or directory in /home/hellotra/public_html/modules/catalogs/modify_post.php on line 35

Fatal error: require_once() [function.require]: Failed opening required '/home/hellotra/public_html/include/jscalendar/wb-setup.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/hellotra/public_html/modules/catalogs/modify_post.php on line 35
Logged
pcwacht
AddOn Development
*
Offline Offline

Posts: 2855



WWW
« Reply #10 on: August 18, 2008, 02:27:01 PM »

You used it within wb27?

Seems you miss the jscalendar

This module is not for wb 2.6.x

John
Logged

http://www.ictwacht.nl = Dutch ICT info
http://www.pcwacht.nl = My first
both still work in progress, since years.....
web-based-media

Offline Offline

Posts: 100


WWW
« Reply #11 on: October 08, 2008, 09:27:15 PM »

Nice module!
One question:
Is it possible (in an easy way) to change the module, so that I can use it for a kind of catalogue, where the user can post products just by clicking some checkboxes und choosing from some pulldown-menues?

Thanks in advance for your help.

regards,
Jan
Logged
pcwacht
AddOn Development
*
Offline Offline

Posts: 2855



WWW
« Reply #12 on: October 08, 2008, 10:15:13 PM »

Ofcourse this is possible, but it will be a new module, it wouldn't be this one.

This module is an altered standard news module.

John
Logged

http://www.ictwacht.nl = Dutch ICT info
http://www.pcwacht.nl = My first
both still work in progress, since years.....
Ruud
WebsiteBaker Org e.V.

Offline Offline

Posts: 2294



WWW
« Reply #13 on: October 08, 2008, 10:29:03 PM »

Is it possible (in an easy way) to change the module, so that I can use it for a kind of catalogue, where the user can post products just by clicking some checkboxes und choosing from some pulldown-menues?

This sounds like a standard Form.
There you can make pull-down lists and checkboxes.

Ruud
Logged

Professional WebsiteBaker Solutions
Stefek
WebsiteBaker Org e.V.

Offline Offline

Posts: 4883



« Reply #14 on: October 08, 2008, 11:02:30 PM »

Is it possible (in an easy way) to change the module, so that I can use it for a kind of catalogue, where the user can post products just by clicking some checkboxes und choosing from some pulldown-menues?

You want this in a manner of groups which can be selectet form the catalog?

Regards,
Stefek
Logged

"In a time of universal deceit, telling the truth becomes a revolutionary act."
- George Orwell, Nineteen eighty-four (1984)
web-based-media

Offline Offline

Posts: 100


WWW
« Reply #15 on: October 09, 2008, 04:53:28 AM »

I do not even need groups. I just need one category where all the stuff can be posted in an easy way. One page with small pictures and short descriptions of every product and one page with details of each specific product which is shown when one clicks on the specific picture.
Should work like a form, put for the user it should be a ready form where he cannot change fields but just fill them out.
regards,
Jan
Logged
bupaje

Offline Offline

Posts: 519


WWW
« Reply #16 on: October 09, 2008, 06:47:54 AM »

Hi. This looks promising and almost does what I want. I don't get the field names and enabled or not they show (without my assigned names) and looks like something wrong with the html (in settings) as I get messed up columns and such. I will probably give it another go and fight with the html if I can sort out the field name thing.

What I would like to try it for is to create a sort of 'theatre' where I can link to movies from hulu.com related to my site interests with the run time, rating, link etc. I think it might work for this -have to see.

Anyway thanks for your hard work.
Logged

My Blog, My Site
vyni

Offline Offline

Posts: 566


« Reply #17 on: October 09, 2008, 08:30:28 AM »

Hi there,

same happens to me.
The entire extra-fields are shown all the time. Anyway if I enable or disable them.
Regardless if there is a field-name or not.

So someone has got an idea where or how to correct this issue?

regards from Himberg. next to Vienna
Logged

PS: Falls jemand eine Idee hat was zu tun ist und mir das erklären könnt - geh bitte davon aus dass ich ahnungslos bin, was php und so betrifft. Ich kann grad was lesen, kopieren und einfügen,  ungefähr verfolgen und glauben.
pcwacht
AddOn Development
*
Offline Offline

Posts: 2855



WWW
« Reply #18 on: October 09, 2008, 11:29:01 AM »

For the custom userfields, in backend you can enable/disable them to show up in the form or not.

For them to appear in frontend or not
look at settings - item - footer, remove the unneeded fields there
the name of the userfield is only used in backend adding a post, not in frontend, there only the content of that field can be used, if you need to name it do something like:
Code:
<p>Name_of_field1 = [FIELD1]</p>


For the columns, you can choose 1, 2 or 3 columns
Make sure you set the layout for the columns correctly in settings

Have fun
John
Logged

http://www.ictwacht.nl = Dutch ICT info
http://www.pcwacht.nl = My first
both still work in progress, since years.....
vyni

Offline Offline

Posts: 566


« Reply #19 on: October 09, 2008, 02:23:38 PM »

Great,

thank You. I got it.
Just annother thing, maybe I missed it or it´s to high for me: what is enabled/disabled used for? for search? for display? for input?

 embarassed

I made a german language-file. Maybe You like it.

regards from Himberg
Logged

PS: Falls jemand eine Idee hat was zu tun ist und mir das erklären könnt - geh bitte davon aus dass ich ahnungslos bin, was php und so betrifft. Ich kann grad was lesen, kopieren und einfügen,  ungefähr verfolgen und glauben.
pcwacht
AddOn Development
*
Offline Offline

Posts: 2855



WWW
« Reply #20 on: October 09, 2008, 05:04:20 PM »

Disable/Enable is used only for input, wouldnt make sense to me to show all 15 userfields when you use only 5 or so

The userfields are searched for despite disabled- if really unused there is no data thus no searchhit will show up
The userfields can be displayed even if they are set to disabled, the userfields are only shown when they are set in settings, thus keeping this responsibility to the website admin

What you can do for example,
add codesection to the catalogpage aboce the catalog section wich intercept the show detail page and do some php magic to fectch a value from one of the customfields to fill in some others even hthose wich can't be filled in through the form.

Sound difficult maybe but will give an example

You could use this catalogs mod for employees
One customfield would be the emailaddress of the employee
When the detail will be shown, you can fetch that emailaddress, look it up in a table and fetch data from there to fill in other fields

Another example
Use the catalog for products
Use a customfield for productid
Whitin the detailpage you can fetch the productid, fetch prices, stock etc and populate those other fields

You could even fill in a field with a timestamp of last visited, or make a field a nuber of times viewed etc etc.

This explains why I set the customfields disable, thus not showing up in form, but they are still usable in the output


Have fun,
John
Logged

http://www.ictwacht.nl = Dutch ICT info
http://www.pcwacht.nl = My first
both still work in progress, since years.....
vyni

Offline Offline

Posts: 566


« Reply #21 on: October 09, 2008, 05:21:32 PM »

Thank You, John.

So how comes, that all 15 fields are shown all the time? The only thing not to display the fields is to remove them from the footer.

It doesn´t affekt anything if I set the field to inactive if I don´t want to show it in the frontend.

And if it is enabled, I could post something, but it isn´t shown in the frontend. (as long I don´t put it back to the footer)

So do I something wrong or is there a bug?

But let me have a bit more experience.....
Logged

PS: Falls jemand eine Idee hat was zu tun ist und mir das erklären könnt - geh bitte davon aus dass ich ahnungslos bin, was php und so betrifft. Ich kann grad was lesen, kopieren und einfügen,  ungefähr verfolgen und glauben.
pcwacht
AddOn Development
*
Offline Offline

Posts: 2855



WWW
« Reply #22 on: October 09, 2008, 06:39:57 PM »

Quote
But let me have a bit more experience.....
yups, think you better play a bit with it....

Quote
if it is enabled, I could post something, but it isn´t shown in the frontend. (as long I don´t put it back to the footer)
True, is by design
- Enable/Dsable is only for enabling/disabling showing up in the backend when modyfying
- You need to enter the field in the footer (or header) if you want it to show up in the frontend

This version won't show the info in the field if it is disabled in the frontend but this will change in next version.

John


Really, I did this by design.

John
Logged

http://www.ictwacht.nl = Dutch ICT info
http://www.pcwacht.nl = My first
both still work in progress, since years.....
bupaje

Offline Offline

Posts: 519


WWW
« Reply #23 on: October 11, 2008, 09:17:48 PM »

Is there any easy way to add a code module in after the long description? You can see a test page here http://stormvisions.com/pages/catalogs/jackie-chan-adventures2.php?g=2 and I want to add an rss feed when available to some of the posts. There might be other instances where it would be convenient to add a bit of code to a particular post - a countdown timer, a "SPECIAL!" message or some other bit of script -so it could be useful to others.

EDIT: One thing I did notice which may help if all else failes. I can pass an iframe (or other html tags) in those fields. The Ben 10 store on the test page is done that way.
« Last Edit: October 11, 2008, 09:52:07 PM by bupaje » Logged

My Blog, My Site
pcwacht
AddOn Development
*
Offline Offline

Posts: 2855



WWW
« Reply #24 on: October 12, 2008, 12:19:08 PM »

add code section after the main section

in the code test for POST_ID to see if we want to show an item
Code:
if(defined('POST_ID') AND is_numeric(POST_ID)) {
... do what you need
}
the post_id holds the itemnumber

Have fun,
John

Logged

http://www.ictwacht.nl = Dutch ICT info
http://www.pcwacht.nl = My first
both still work in progress, since years.....
Pages: [1] 2   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!