× If you expect answers you should describe your problem and give as much information's as possible. (SQL-Structure, Template Code, Joomla Version ...) Please read this before posting: joodb.feenders.de/support.html

question mod_joodb

More
11 years 1 month ago - 11 years 1 month ago #1723 by mikhaelm
Replied by mikhaelm on topic Re: question mod_joodb
But for example, the database structure:
CREATE TABLE IF NOT EXISTS `#__joodb_sample` (
`myid` int(1) NOT NULL AUTO_INCREMENT,
`title` varchar(100) NOT NULL,
`value` varchar(10) DEFAULT NULL,
`usefull` enum('Yes','No','Unknonwn') NOT NULL DEFAULT 'Yes',
`picture` varchar(100) DEFAULT NULL,
`short_description` text,
`description` text NOT NULL,
`wikipedia` varchar(254) DEFAULT NULL,
`category` set('Sport','Food','Tool','Creature') NOT NULL,
`date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`state` tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`myid`),
KEY `title` (`title`),
KEY `state` (`state`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='Table with joodb sample nosense data. Save to remove';
INSERT INTO `#__joodb_sample` (`myid`, `title`, `value`, `usefull`, `picture`, `short_description`, `description`, `wikipedia`, `category`, `date`, `state`) VALUES
(1, 'Cat', '3,45', 'No', 'cat.jpg', 'A very useless domestic cat.', 'The cat (Felis catus), also known as the domestic cat or housecat to distinguish it from other felines and felids, is a small carnivorous mammal that is valued by humans for its companionship and its ability to hunt vermin and household pests. It has been associated with humans for at least 9,500 years and is currently the most popular pet in the world.', 'en.wikipedia.org/wiki/Cat', 'Sport,Food,Creature', '2009-10-27 16:37:49', 1);

Need from the field "Picture" get the filename in module mod_joodb
Last edit: 11 years 1 month ago by mikhaelm.

Please Log in to join the conversation.

More
11 years 1 month ago #1724 by Dirk
Replied by Dirk on topic Re: question mod_joodb

mikhaelm wrote: Need from the field "Picture" get the filename in module mod_joodb


Don't use the way the example database uses images unless your are a programmer and you know what to do.

Please use the internal image-system which will automatically resize an create a thumbnail.

Please Log in to join the conversation.

More
11 years 1 month ago #1725 by mikhaelm
Replied by mikhaelm on topic Re: question mod_joodb
You did not answer the question

Please Log in to join the conversation.

More
11 years 1 month ago #1726 by mikhaelm
Replied by mikhaelm on topic Re: question mod_joodb
You did not answer the question, I'm not interested resize, interest me how to get filename and output it in a module

Please Log in to join the conversation.

More
11 years 1 month ago #1727 by Dirk
Replied by Dirk on topic Re: question mod_joodb

mikhaelm wrote: You did not answer the question, I'm not interested resize, interest me how to get filename and output it in a module


Do you want to output the filename or the image?
I gave you all necessary information.

Example
<img src="<?=JUri::root(true)?>/images/WHATEVER/<?=$item->picture?>" style="width: 80px; float: right;" />

THIS TOPIC IS CLOSED!!!!

Please Log in to join the conversation.

Moderators: Dirkjoest