Keyword

Advanced Search

Search Results (Searched for: Joomla K2 user extra fields)

  • JoomlaJet
  • JoomlaJet's Avatar
19 May 2011 00:03
Replied by JoomlaJet on topic Use Joomla Plugins in extra fields?

Use Joomla Plugins in extra fields?

Category: English K2 Community

actually, this one (the first one I pointed out):

extensions.joomla.org/extensions/core-enhancements/embed-a-include/9801

does work the way you are asking. I just did a quick test to make sure, and it does cause the plugins to be parsed correctly.

The only "catch" is that some users say that it doesn't work when they turn on caching and truthfully, I didn't test that out for myself. 

 

I have used this 2 ways and both worked:

1. add plugin code to the k2 field

2. add plugin code the the k2 custom template
  • Brenda
  • Brenda's Avatar
18 May 2011 17:00
Replied by Brenda on topic Help with css on a Tag Menu page

Help with css on a Tag Menu page

Category: English K2 Community

I still got:

Parse error: syntax error, unexpected T_IS_EQUAL in /home/.../public_html/templates/.../html/com_k2/templates/generic.php on line 129

 

I put the

<?php if(($keyItem+1)%2)==0): ?>    <div class="clr"></div><?php endif; ?>

right before the endforeach that was before the Pagination section, there were two endforeach.  Did I put it in the right spot?



Here's my new file:

&lt;?php/** * @version        $Id: generic.php 478 2010-06-16 16:11:42Z joomlaworks $ * @package        K2 * @author        JoomlaWorks www.joomlaworks.gr * @copyright    Copyright (c) 2006 - 2010 JoomlaWorks, a business unit of Nuevvo Webware Ltd. All rights reserved. * @license        GNU/GPL license: www.gnu.org/copyleft/gpl.html */// no direct accessdefined('_JEXEC') or die('Restricted access');?><!-- Start K2 Generic Layout --><div id="k2Container" class="genericView<?php if($this->params->get('pageclass_sfx')) echo ' '.$this->params->get('pageclass_sfx'); ?>">    <?php if($this->params->get('show_page_title')): ?>    <!-- Page title -->    <div class="componentheading<?php echo $this->params->get('pageclass_sfx')?>">        <?php echo $this->escape($this->params->get('page_title')); ?>    </div>    <?php endif; ?>    <?php if($this->params->get('userFeed')): ?>    <!-- RSS feed icon -->    <div class="k2FeedIcon">        <a href="/<?php echo $this->feed; ?>" title="<?php echo JText::_('Subscribe to this RSS feed'); ?>">            <span><?php echo JText::_('Subscribe to this RSS feed'); ?></span>        </a>        <div class="clr"></div>    </div>    <?php endif; ?>    <?php if(count($this->items)): ?>    <div class="genericItemList">        <?php foreach($this->items as $keyItem=>$item): ?>        <!-- Start K2 Item Layout -->        <div class="genericItemView">            <div class="genericItemHeader">                <?php if($item->params->get('genericItemDateCreated')): ?>                <!-- Date created -->                <span class="genericItemDateCreated">                    <?php echo JHTML::_('date', $item->created , JText::_('DATE_FORMAT_LC2')); ?>                </span>                <?php endif; ?>                          <?php if($item->params->get('genericItemTitle')): ?>              <!-- Item title -->              <h2 class="genericItemTitle">                  <?php if ($item->params->get('genericItemTitleLinked')): ?>                    <a href="/<?php echo $item->link; ?>">                      <?php echo $item->title; ?>                  </a>                  <?php else: ?>                  <?php echo $item->title; ?>                  <?php endif; ?>              </h2>              <?php endif; ?>          </div>          <div class="genericItemBody">              <?php if($item->params->get('genericItemImage') && !empty($item->imageGeneric)): ?>              <!-- Item Image -->              <div class="genericItemImageBlock">                  <span class="genericItemImage">                    <a href="/<?php echo $item->link; ?>" title="<?php if(!empty($item->image_caption)) echo $item->image_caption; else echo $item->title; ?>">                        <img src="/<?php echo $item->imageGeneric; ?>" alt="<?php if(!empty($item->image_caption)) echo $item->image_caption; else echo $item->title; ?>" style="width:150px; height:auto;" />                    </a>                  </span>                  <div class="clr"></div>              </div>              <?php endif; ?>                            <?php if($item->params->get('genericItemIntroText')): ?>              <!-- Item introtext -->              <div class="genericItemIntroText">              <?php echo K2HelperUtilities::wordLimit($item->introtext,25);?>                  </div>              <?php endif; ?>              <div class="clr"></div>          </div>                    <div class="clr"></div>                    <?php if($item->params->get('genericItemExtraFields') && count($item->extra_fields)): ?>          <!-- Item extra fields -->            <div class="genericItemExtraFields">              <h4><?php echo JText::_('Additional Info'); ?></h4>              <ul>                <?php foreach ($item->extra_fields as $key=>$extraField): ?>                <li class="<?php echo ($key%2) ? "odd" : "even"; ?> type<?php echo ucfirst($extraField->type); ?> group<?php echo $extraField->group; ?>">                    <span class="genericItemExtraFieldsLabel"><?php echo $extraField->name; ?></span>                    <span class="genericItemExtraFieldsValue"><?php echo $extraField->value; ?></span>                        </li>                <?php endforeach; ?>                </ul>            <div class="clr"></div>          </div>          <?php endif; ?>                      <?php if($item->params->get('genericItemCategory')): ?>            <!-- Item category name -->            <div class="genericItemCategory">                <span><?php echo JText::_('Published in'); ?></span>                <a href="/<?php echo $item->category->link; ?>"><?php echo $item->category->name; ?></a>            </div>            <?php endif; ?>                        <?php if ($item->params->get('genericItemReadMore')): ?>            <!-- Item "read more..." link -->            <div class="genericItemReadMore">                <a class="k2ReadMore" href="/<?php echo $item->link; ?>">                    <?php echo JText::_('Read more...'); ?>                </a>            </div>            <?php endif; ?>            <div class="clr"></div>        </div>        <!-- End K2 Item Layout -->            <?php if(($keyItem+1)%2)==0): ?>    <div class="clr"></div><?php endif; ?>            <?php endforeach; ?>    </div><div class="clr"></div>    <!-- Pagination -->    <?php if($this->pagination->getPagesLinks()): ?>    <div class="k2Pagination">        <?php echo $this->pagination->getPagesLinks(); ?>        <div class="clr"></div>        <?php echo $this->pagination->getPagesCounter(); ?>    </div>    <?php endif; ?>    <?php endif; ?>    </div><!-- End K2 Generic Layout -->
  • Brenda
  • Brenda's Avatar
18 May 2011 16:20
Replied by Brenda on topic Help with css on a Tag Menu page

Help with css on a Tag Menu page

Category: English K2 Community

Thanks for your fast response!

When I added the code, I got:

Parse error: syntax error, unexpected T_IS_EQUAL in .../html/com_k2/templates/generic.php on line 128 Yiota Ziaggou said:

In generic.php locate the foreach right after the genericItemList div container and replace it with this:

&lt;?php foreach($this-&gt;items as $key=&gt;$item): ?&gt;

Then go to the endforeach and right before that put this

&lt;?php if(($key+1)%2)==0): ?&gt;    &lt;div class="clr"&gt;&lt;/div&gt;&lt;?php endif; ?&gt;

 

This will just put a clear div after the second column.

 

 

Here is my entire file:

&lt;?php/** * @version        $Id: generic.php 478 2010-06-16 16:11:42Z joomlaworks $ * @package        K2 * @author        JoomlaWorks www.joomlaworks.gr * @copyright    Copyright (c) 2006 - 2010 JoomlaWorks, a business unit of Nuevvo Webware Ltd. All rights reserved. * @license        GNU/GPL license: www.gnu.org/copyleft/gpl.html */// no direct accessdefined('_JEXEC') or die('Restricted access');?><!-- Start K2 Generic Layout --><div id="k2Container" class="genericView<?php if($this->params->get('pageclass_sfx')) echo ' '.$this->params->get('pageclass_sfx'); ?>">    <?php if($this->params->get('show_page_title')): ?>    <!-- Page title -->    <div class="componentheading<?php echo $this->params->get('pageclass_sfx')?>">        <?php echo $this->escape($this->params->get('page_title')); ?>    </div>    <?php endif; ?>    <?php if($this->params->get('userFeed')): ?>    <!-- RSS feed icon -->    <div class="k2FeedIcon">        <a href="/<?php echo $this->feed; ?>" title="<?php echo JText::_('Subscribe to this RSS feed'); ?>">            <span><?php echo JText::_('Subscribe to this RSS feed'); ?></span>        </a>        <div class="clr"></div>    </div>    <?php endif; ?>    <?php if(count($this->items)): ?>    <div class="genericItemList"><?php foreach($this->items as $key=>$item): ?>        <!-- Start K2 Item Layout -->        <div class="genericItemView">            <div class="genericItemHeader">                <?php if($item->params->get('genericItemDateCreated')): ?>                <!-- Date created -->                <span class="genericItemDateCreated">                    <?php echo JHTML::_('date', $item->created , JText::_('DATE_FORMAT_LC2')); ?>                </span>                <?php endif; ?>                          <?php if($item->params->get('genericItemTitle')): ?>              <!-- Item title -->              <h2 class="genericItemTitle">                  <?php if ($item->params->get('genericItemTitleLinked')): ?>                    <a href="/<?php echo $item->link; ?>">                      <?php echo $item->title; ?>                  </a>                  <?php else: ?>                  <?php echo $item->title; ?>                  <?php endif; ?>              </h2>              <?php endif; ?>          </div>          <div class="genericItemBody">              <?php if($item->params->get('genericItemImage') && !empty($item->imageGeneric)): ?>              <!-- Item Image -->              <div class="genericItemImageBlock">                  <span class="genericItemImage">                    <a href="/<?php echo $item->link; ?>" title="<?php if(!empty($item->image_caption)) echo $item->image_caption; else echo $item->title; ?>">                        <img src="/<?php echo $item->imageGeneric; ?>" alt="<?php if(!empty($item->image_caption)) echo $item->image_caption; else echo $item->title; ?>" style="width:150px; height:auto;" />                    </a>                  </span>                  <div class="clr"></div>              </div>              <?php endif; ?>                            <?php if($item->params->get('genericItemIntroText')): ?>              <!-- Item introtext -->              <div class="genericItemIntroText">              <?php echo K2HelperUtilities::wordLimit($item->introtext,25);?>                  </div>              <?php endif; ?>              <div class="clr"></div>          </div>                    <div class="clr"></div>                    <?php if($item->params->get('genericItemExtraFields') && count($item->extra_fields)): ?>          <!-- Item extra fields -->            <div class="genericItemExtraFields">              <h4><?php echo JText::_('Additional Info'); ?></h4>              <ul>                <?php foreach ($item->extra_fields as $key=>$extraField): ?>                <li class="<?php echo ($key%2) ? "odd" : "even"; ?> type<?php echo ucfirst($extraField->type); ?> group<?php echo $extraField->group; ?>">                    <span class="genericItemExtraFieldsLabel"><?php echo $extraField->name; ?></span>                    <span class="genericItemExtraFieldsValue"><?php echo $extraField->value; ?></span>                        </li>                <?php endforeach; ?>                </ul>            <div class="clr"></div>          </div>          <?php endif; ?>                      <?php if($item->params->get('genericItemCategory')): ?>            <!-- Item category name -->            <div class="genericItemCategory">                <span><?php echo JText::_('Published in'); ?></span>                <a href="/<?php echo $item->category->link; ?>"><?php echo $item->category->name; ?></a>            </div>            <?php endif; ?>                        <?php if ($item->params->get('genericItemReadMore')): ?>            <!-- Item "read more..." link -->            <div class="genericItemReadMore">                <a class="k2ReadMore" href="/<?php echo $item->link; ?>">                    <?php echo JText::_('Read more...'); ?>                </a>            </div>            <?php endif; ?>            <div class="clr"></div>        </div>        <!-- End K2 Item Layout -->        <?php if(($key+1)%2)==0): ?>    <div class="clr"></div><?php endif; ?>        <?php endforeach; ?>    </div><div class="clr"></div>    <!-- Pagination -->    <?php if($this->pagination->getPagesLinks()): ?>    <div class="k2Pagination">        <?php echo $this->pagination->getPagesLinks(); ?>        <div class="clr"></div>        <?php echo $this->pagination->getPagesCounter(); ?>    </div>    <?php endif; ?>    <?php endif; ?>    </div><!-- End K2 Generic Layout -->
  • BBC
  • BBC's Avatar
14 May 2011 00:19
Replied by BBC on topic Users Select List in Extra Fields

Users Select List in Extra Fields

Category: English K2 Community

Users are synchronised between joomla and K2.

So, try to find some Joomla plugin, not K2.

 

You need a module too, to show users somewhere.
  • Pepijn Baart
  • Pepijn Baart's Avatar
10 May 2011 03:03
Replied by Pepijn Baart on topic cannot see jce editor

cannot see jce editor

Category: English K2 Community

Hi everybody,

 

I had the same trouble with different sites on different servers.

1. I had no JCE when writing a new K2 article.

2. I had no editor on the K2 extra fields when editing a previously written item.

btw. im using Joomla 1.5.23 with K2 2.4.1 and JCE 1.5.7.11

The first problem i solved by turning on gzip compression on the editor. I don't know why, but it did the job for me.

The second one was a little harder (I'm no programmer). I fixed it by changing a class in the code of K2.

in the /administrator/components/com_k2/models/extrafield.php i found somewhere around line 209-210

$output='&lt;textarea name="K2ExtraField_'.$extraField-&gt;id.'" id="K2ExtraField_'.$extraField-&gt;id.'" rows="10" cols="40" class="k2ExtraFieldEditor"&gt;'.$active[0].'&lt;/textarea&gt;';
$output='&lt;textarea name="K2ExtraField_'.$extraField-&gt;id.'" id="K2ExtraField_'.$extraField-&gt;id.'" rows="10" cols="40" class="mceEditor"&gt;'.$active[0].'&lt;/textarea&gt;';

I changed the class from K2ExtraFieldEditor to mceEditor, and i can use JCE (my default editor), but when i tried tinyMCE  i again had no editor field. So i changed the line to:

$output='&lt;textarea name="K2ExtraField_'.$extraField-&gt;id.'" id="K2ExtraField_'.$extraField-&gt;id.'" rows="10" cols="40" class="k2ExtraFieldEditor mceEditor"&gt;'.$active[0].'&lt;/textarea&gt;';
Now i can use both editors. When I now use JCE as a default editor of the user i see JCE, when i switch to tinyMCE i see the default k2 editor.

I haven't tested all the JCE plugins, but so far it works for me.
  • nusilmar
  • nusilmar's Avatar
28 Apr 2011 12:29

Questions or sugestions !! Where K2 is going ??

Category: English K2 Community

I realy love this component but there are some things that i need to ask :

 

There aren't any updates to k2 for a long time , although it shows stability it also show lack of future options. Is it going to take long for an update or a new version ??

 

Take this as sugestions , please .- need to show categorie content in a table style and not in blog style ( like in joomla content)- Need to have new data types in extra fields ( date type, image type, ...)- i know that there is a paid plugin that do this but i think k2 should have this in default : Import and export abilities ( to xml or csv )- Visual templating ( this is for dumb guys like me in programming) to help us in configure a template ( like define ordering of content ( Video, content, extrafiels, etc...)- Integration with Tabs &amp; Slides In Content Items : For content or for extra fields

- Need to change images handling ( my site is growing larger and larger due to duplication of images ( i can have several articles that could use the same image but i'm stuck to upload another ( or could copy an article and change the text)))

- Allow better integration with other components ( Comunity builder, Jom Social, Alpha user points, ...)

 

Any other feature ???

 

Thank You

 

 
  • Gil
  • Gil's Avatar
14 Apr 2011 23:04
Extra Fileds Clickable was created by Gil

Extra Fileds Clickable

Category: English K2 Community

Hi Every one

 

I am new to K2, but very exited about how it enhances joomla.

I am trying to build a product review site, naturally i extensively use the Extra fields feature.

The Only thing i am missing is to make the Extra Fields Clickable, so the user can easily sort and refine his prefered search by the product's specifications.

 

Is anyone know of a good solution to to make the EXTRA FIELDS be clickable just like the TAGS are?

 

 

 

 
  • Daniele Grassi
  • Daniele Grassi's Avatar
09 Apr 2011 11:15
DM K2 Maps was created by Daniele Grassi

DM K2 Maps

Category: English K2 Community

DM K2 Maps lets you to display a Google Map in K2 articles. You can display several markers inside the map: the plugin can use normal extra fields to load addresses to display inside the map.

1) Install the plugin
2) Configure it by setting the extra fields (containing addresses) to use for loading markers inside the map
3) That's it!

Other important features are:

Route directions support! You can let the user input his starting location, and see the route calculated inside the map!
Route directions popup! Directions can be displayed in a jQuery popup!
Street View support! The user can activate - with one click - Street View for the location shown in the map; Street View is displayed in a jQuery popup!
Popup theming: support for several jQuery UI themes, and animation effects!

 


URL: joomlaextensions.dmdigital.it/pro-extensions/k2-extensions/dm-k2-maps.html

Demo: joomlaextensions.dmdigital.it/dm-k2-maps-demo.html
  • Loucas Charalambous
  • Loucas Charalambous's Avatar
26 Mar 2011 15:31
Users Select List in Extra Fields was created by Loucas Charalambous

Users Select List in Extra Fields

Category: English K2 Community

Hello,

 

I am using K2 and Extra Fields and i would like to extend the extra field types with one more option.

I would like to have a multiselect list of all the Joomla Users of my website. This list must be updated automatically when a user is added or deleted.

In the front-end I 'll like to show the users as a link to the users page.

 

how can i implement this service.?? Have to develop any plugin..? Is anything ready..?

Please Help me..!!

 

Thank you

 
  • Paula Ayala
  • Paula Ayala's Avatar
18 Mar 2011 22:49
Replied by Paula Ayala on topic K2 CSV import tool

K2 CSV import tool

Category: English K2 Community

Hi Artur! thank you so much for your answer, I guess I was just using the 0.6stable version, now it works, thanks for your help!

Paula

Artur Neumann said:

Hi Paula,

Yes the export of the extra fields should work. What version do you use? Please try the 0.7 RC3 version. If it does not work please send me a joomla admin user : www.individual-it.net/en/kontakt-impressum.html
  • Artur Neumann
  • Artur Neumann's Avatar
18 Mar 2011 11:19
Replied by Artur Neumann on topic K2 CSV import tool

K2 CSV import tool

Category: English K2 Community

Hi Paula,

Yes the export of the extra fields should work. What version do you use? Please try the 0.7 RC3 version. If it does not work please send me a joomla admin user : www.individual-it.net/en/kontakt-impressum.html
  • Denis Devine
  • Denis Devine's Avatar
09 Mar 2011 13:23
K2 Login Issue was created by Denis Devine

K2 Login Issue

Category: English K2 Community

I know this has been discussed but I cannot find a suitable answer to my specific question.

My Joomla site uses the following:-


Joomla 1.5
JomSocial 2.0
K2 (latest release)

I realise that a K2 site must use K2's login module. And this is necessary so that registered users can create and edit articles from the frontend.

But this means that all the extra fields I have created in JomSocial don't get completed unless the user goes to their profile (after logging in) and *chooses* to do it.

This is a problem cause I also use a mod/plg called AutoGroup whichautomatically assigns new users to certain groups based upon choices they make in the JomSocial registration process.

 

So my question is this: is there a way to force a new user to go to their profile and edit it *before* immediately after signing up, hence overcoming the K2 login issue?Thanks,Dom
  • wimm72
  • wimm72's Avatar
08 Mar 2011 07:44
Replied by wimm72 on topic item "category" comments

item "category" comments

Category: English K2 Community

Hi William,

First of all thanks to reply this topic,

And a have now a forum with work great for years now ,but i want to rebuild the site and need more functions to it .

I like joomla sites to work with and even more like K2 for it. :)

Comments are the way i thought to get it,but i also get to the point that ist not possible maybe, or i need to find some other way to get it.(other then comments)

I only have made the item page with extra fields.Item = model nr:

aditional info:

 

extra field: Manufacturer:

extra field: Chassis

extra field: Fabrication date

extra field: ...

When is see the K2 catalog its that what i need,the only thing thats missing is the possibility that users could put in the service tips about the item. (Q&amp;A on different kind of problems)

I'm testing this on my local server.

 
  • TheHacker
  • TheHacker's Avatar
03 Mar 2011 23:40
Replied by TheHacker on topic Google Maps Plugin for K2

Google Maps Plugin for K2

Category: English K2 Community

Plugin is just superb :) Thanks for coding it :)

Vlastimil Vašek said:
As I could not install the K2 Map plugin from Joomla Extension repository I coded my own. It adds extra fields in K2 backend for category, user and item and show it in frontend.
You can creade your own div element for the map, e.g. in a custom modul. Highly customizable.
Works with K2 2.2 and 2.3.
Download: K2 Google Map plugin
  • Coptechs
  • Coptechs's Avatar
11 Feb 2011 03:25

Add/Edit Item modal window has no WYSIWYG editor or place to put item content

Category: English K2 Community

Let me just say upfront that I have spent the last 2-3 hours scouring the forum's here and at joomla.org and cannot find a resolution to this issue.

When I go to edit and item from the front end, the modal window opens but there is no WYSIWYG editor or any area that would allow me to input the item content. This holds true for all the tabs: Content, Image, Image Gallery, Video, Extra Fields and Attachments. Clicking on any of those tabs does nothing either. I have posted a screenshot of my Edit Item modal window.

 

I have tried the following to resolve the issue to no avail:


disabled all plugins
turned off the JCE editor so that the user default was to have NO EDITOR
switched my template menu script from jQuery to S5 Effects
turned on debug mode in Joomla Global Config-saw no errors

I am using a Shape5 template with some of the following extensions:


JCE
JEvents Calendar
Akeeba Backup
EXTplorer
SWF Pro
JSN Imageshow
AllVideos
Simple Image Gallery
Mootools upgrade 1.2.4 (tried turning this plugin off too)

SEF not enabled....yet.

PHP 5.3.1

Joomla 1.5.20

Apache 2.2.14

 

This is my first time using K2 and I really like it, but I really need to get this front end editor working for my client. Any help would be appreciated.
  • spock
  • spock's Avatar
24 Jan 2011 11:20

[Hack] hide options for front-enduser article form

Category: English K2 Community

  I have some problems to limit sections, specific users and user groups k2

hidden apps tabs is identical process

change in config.xml

 

&lt;param menu="hide" name="showImageTab" .....&lt;param menu="hide" name="showImageGalleryTab" ....&lt;param menu="hide" name="showVideoTab" .... &lt;param menu="hide" name="showExtraFieldsTab" ..... &lt;param menu="hide" name="showAttachmentsTab" .....



can follow this little tutorial in Spanish remember to hide for joomla user level need to include this syntax in xml (in sample is yes/no)

&lt;param menu="hide" name="showXXXXXXXX" type="list" default="18" label="showXXXXX" description=""&gt;      &lt;option value="26"&gt;none&lt;/option&gt;      &lt;option value="25"&gt;Super Administrator&lt;/option&gt;      &lt;option value="24"&gt;Administrator&lt;/option&gt;      &lt;option value="23"&gt;Manager&lt;/option&gt;      &lt;option value="21"&gt;Publisher&lt;/option&gt;      &lt;option value="20"&gt;Editor&lt;/option&gt;      &lt;option value="19"&gt;Author&lt;/option&gt;      &lt;option value="18"&gt;Registered&lt;/option&gt;      &lt;option value="1"&gt;all&lt;/option&gt;      &lt;/param&gt;

 

sorry 4 my english
  • syntax89
  • syntax89's Avatar
05 Jan 2011 06:14
Attachment field, upload function was created by syntax89

Attachment field, upload function

Category: English K2 Community

Hi,

 

I want that user can upload their own produced music, but the attachment field of the k2 extra fields has a lot of bugs.

 

My memory limit is 256MB and the max upload size is 200MB, if I upload a bigger file than 100MB than I get after 30minutes or so a timeout.. "internal joomla page not found error.."

If I upload a file with a "rar" extension it not display  the "filname", "title" and "Title attribute".

 

it is possible to fix it? and is it possible to add an "upload" button for uploading without "save".. and an upload progress bar will be very cool...

 

thank you for help
  • Ssubirú Bernal
  • Ssubirú Bernal's Avatar
01 Dec 2010 20:01
Comenting on Joomla author page was created by Ssubirú Bernal

Comenting on Joomla author page

Category: English K2 Community

Well, first.. I am a newbie fan of K2 and I have being using joomla for about 5 months just with my html basic language, photoshop 7.0 and pretty much thats it.. so far i managed to
change the k2 css style to blend with the joomla template i made
translate k2 front end interface from english to spanish (via ftp)
Integrate Jcomments with k2 via jcomments pluggin + hack (to show amount of comments properly )
Kind of understand  how it works

however  I have a website that i want to make as much interactive as i can and honestly i tryed to use community builder but i gave up (too many things to add and make configurations to). at the beggining i used agora (before installing k2) to manage user profile pages and allow them to send messages in between but i like the user profile page that we have with k2 so far .. I used the extended fields for k2 (so far studying ahead the thing of adding extra fields as i know nothing about database configuration and my hosting provider doesnt provide friendly acces to it)  and I will love to add the option to at least comment on user´s pages....Is there something already done or that i can do about it? it comes to my mind add the item php code that trigger the add-comment function to the user php layout file (kind of though that by logic ^_^ ) but I dont know if that is the only one i have to modify--- could anyone help this 23-years-old girls with no programming background.... thanks
  • Jiliko.net
  • Jiliko.net's Avatar
30 Nov 2010 15:17
Replied by Jiliko.net on topic Copy a new item in two tables

Copy a new item in two tables

Category: English K2 Community

Hi Greenslot,

Here's an example of an insert query for the #__k2_items table :

INSERT INTO `dev_k2_items` (`id`, `title`, `alias`, `catid`, `published`, `introtext`, `fulltext`, `video`, `gallery`, `extra_fields`, `extra_fields_search`, `created`, `created_by`, `created_by_alias`, `checked_out`, `checked_out_time`, `modified`, `modified_by`, `publish_up`, `publish_down`, `trash`, `access`, `ordering`, `featured`, `featured_ordering`, `image_caption`, `image_credits`, `video_caption`, `video_credits`, `hits`, `params`, `metadesc`, `metadata`, `metakey`, `plugins`) VALUES
(1, 'Welcome to Joomla!', 'welcome-to-joomla', 5, 1, 'Joomla! is a free open source framework and content publishing system designed for quickly creating highly interactive multi-language Web sites, online communities, media portals, blogs and eCommerce applications.
Joomla! provides an easy-to-use graphical user interface that simplifies the management and publishing of large volumes of content including HTML, documents, and rich media. Joomla! is used by organisations of all sizes for intranets and extranets and is supported by a community of tens of thousands of users.

', 'With a fully documented library of developer resources, Joomla! allows the customisation of every aspect of a Web site including presentation, layout, administration, and the rapid integration with third-party applications.Joomla! now provides more developer power while making the user experience all the more friendly. For those who always wanted increased extensibility, Joomla! 1.5 can make this happen.

A new framework, ground-up refactoring, and a highly-active development team brings the excitement of ''the next generation CMS'' to your fingertips. Whether you are a systems architect or a complete ''noob'' Joomla! can take you to the next level of content delivery. ''More than a CMS'' is something we have been playing with as a catchcry because the new Joomla! API has such incredible power and flexibility, you are free to take whatever direction your creative mind takes you and Joomla! can help you get there so much more easily than ever before.

Thinking Web publishing? Think Joomla!

', NULL, NULL, NULL, '', '2008-08-12 10:00:00', 62, '', 0, '0000-00-00 00:00:00', '2008-08-12 10:00:00', 62, '2006-01-03 01:00:00', '0000-00-00 00:00:00', 0, 0, 1, 0, 0, '', '', '', '', 92, 'catItemTitle=\ncatItemTitleLinked=\ncatItemFeaturedNotice=\ncatItemAuthor=\ncatItemDateCreated=\ncatItemRating=\ncatItemImage=\ncatItemIntroText=\ncatItemExtraFields=\ncatItemHits=\ncatItemCategory=\ncatItemTags=\ncatItemAttachments=\ncatItemAttachmentsCounter=\ncatItemVideo=\ncatItemVideoWidth=\ncatItemVideoHeight=\ncatItemVideoAutoPlay=\ncatItemImageGallery=\ncatItemDateModified=\ncatItemReadMore=\ncatItemCommentsAnchor=\n =Advanced\ncatItemK2Plugins=\nitemDateCreated=\nitemTitle=\nitemFeaturedNotice=\nitemAuthor=\nitemFontResizer=\nitemPrintButton=\nitemEmailButton=\nitemSocialButton=\nitemVideoAnchor=\nitemImageGalleryAnchor=\nitemCommentsAnchor=\nitemRating=\nitemImage=\nitemImgSize=\nitemImageMainCaption=\nitemImageMainCredits=\nitemIntroText=\nitemFullText=\nitemExtraFields=\nitemDateModified=\nitemHits=\nitemTwitterLink=\nitemCategory=\nitemTags=\nitemShareLinks=\nitemAttachments=\nitemAttachmentsCounter=\nitemRelated=\nitemRelatedLimit=\nitemVideo=\nitemVideoWidth=\nitemVideoHeight=\nitemVideoAutoPlay=\nitemVideoCaption=\nitemVideoCredits=\nitemImageGallery=\nitemNavigation=\nitemComments=\nitemAuthorBlock=\nitemAuthorImage=\nitemAuthorDescription=\nitemAuthorURL=\nitemAuthorEmail=\nitemAuthorLatest=\nitemAuthorLatestLimit=\nitemK2Plugins=\n\n', '', 'robots=\nauthor=', '', '');
Olivier
  • Rhianon Hoffman
  • Rhianon Hoffman's Avatar
17 Sep 2010 20:35
Replied by Rhianon Hoffman on topic Varying Author Name

Varying Author Name

Category: English K2 Community

Whoops - I might have miscommunicated about the image. It doesn't look like that on the site - that's just what I want it to look like. Normal text, not linked, etc. I'm trying to put the code up that will enable browsers to display the information like that. Perhaps it isn't possible.

Thanks

William White said:looks good, nice work Seth Hoffman said:Hi Miltiadis, Thanks for getting back to me so quickly!
I followed your link and copied everything into my /templates/YOURTEMPLATE/html/com_k2/ folder. I did need to create the com_k2 folder which I assume is normal. There was already a mod_k2login there but not a com_ folder. Anyway, inside that folder, it seemed that the tutorial expected the "default" folder and a couple of views to be in the root. The views they used as examples, generic.php, user.php etc were not in the root but in the "templates" folder. Is that ok? The "default" folder was also located in the "templates" folder.

If I want to change the way the author name is displayed across the whole site, can I not just edit the files at the components/com_k2 level? Also, just to ensure I am communicating what I want to happen, I edited my last image to add the location. It doesn't need to be linkable, just displayed. I checked out the plugin you mentioned but it didn't seem to accomplish this.

So what should I do next?

Thanks so much for your help!
Seth

Miltiadis bouchalakis said:Hello you will need to override the template community.getk2.org/notes/Templating_in_K2 then you can create some extra fields and position them in the place of written by. or you can install extensions.joomla.org/extensions/extension-specific/k2-exten... and then call the user extra fields or call the user description i know that my post is cryptic for someone that is just starting to learn k2. Read the tutorials and i will help you. Be aware that you will need some php html and css knowledge in order to modify the template
Displaying 181 - 200 out of 248 results.

Powered by Kunena Forum