Deprecated: Assigning the return value of new by reference is deprecated in /home/gigcal/public_html/includes/joomla.php on line 836

Warning: Cannot modify header information - headers already sent by (output started at /home/gigcal/public_html/includes/joomla.php:836) in /home/gigcal/public_html/includes/joomla.php on line 697
gigCalendar.net
Home arrow Forum arrow gigCalendar 1.x Forum arrow Wishlist or Suggestions arrow {mos tags} and other content plugins in Gig Calendar
{mos tags} and other content plugins in Gig Calendar
Welcome, Guest. Please login or register.
May 21, 2013, 02:20:42 AM
Home Help Search Login Register

+  gigCalendar Forums
|-+  gigCalendar 1.x Forum
| |-+  Wishlist or Suggestions
| | |-+  {mos tags} and other content plugins in Gig Calendar
« previous next »
Pages: [1] Print
Author Topic: {mos tags} and other content plugins in Gig Calendar  (Read 11588 times)
spinfx
Jr. Member
**
Posts: 12


View Profile
« on: July 10, 2007, 01:01:59 AM »

Hi

I am using Gig Calendar on the soon to be launched new website for the Perth Blues Club (Western Australia).

One of the things that would be useful would be the ability to add page breaks, slide or tabs into the body of the Band info. Sometimes we have a fair bit of details and it would be good to break this up a little - eg if we want to add videos/mp3s of the bands for promo.

Fotis Evangelou of Joomla Works has an excellent GPL slides and tabs plugin and he wrote some code that allows it to be used in Virtuemart.

See: http://forum.joomlaworks.gr/index.php?topic=35.0

He also suggests that the same could be done to allow modules and plugins to be used in other components. My problem is that while I've installed it successfully in VirtueMart, I simply wouldn't have a clue where to add it to the GigCalendar component.

This would be an excellent additional feature and would allow users to choose whatever plugin they would like to use to enhance the information.

Hope you agree and can help me locate where to add the code.

Cheers and keep up the great work, David  cool
Logged
Capt. gigCal
Administrator
Sr. Member
*****
Posts: 495


View Profile
« Reply #1 on: July 11, 2007, 05:08:14 PM »

Question to coders:

Is the code on the referenced page allowing mambots to be displayed in a content area?

If so, seems like all we need is to add this code to the notes/info field when it is displayed in the front-end. Please help us to add this feature....very good idea.
Logged

Capt. gigCalendar
Nobody plays more gigCalendar
jasonrhl
Hero Member
*****
Posts: 24


View Profile
« Reply #2 on: October 25, 2007, 07:30:54 PM »

I dont know if this is what you guys mean but i use this to add mambots to components. Im only a hack and it takes me a while to work out where these go

this goes at the start somewhere

Code:
<?php
// strart to catching output
ob_start();
?>



and this goes at the end

Code:
<?php
// save catched output in variable
$data ob_get_contents();
// stop catching output
ob_end_clean();
// execute mambots
echo HTML_SOBI::execMambots$data );
?>

I will have a play but there is no definite guarantees
Logged
jasonrhl
Hero Member
*****
Posts: 24


View Profile
« Reply #3 on: October 26, 2007, 01:09:19 AM »

sorry above code is for sobi2 component

I use this on another website


Code:
global $_MAMBOTS;

$_MAMBOTS->loadBotGroup( 'content' );


Code:
<?php
$temp 
= new stdClass(); 
$temp->text $resultb->notes;
$result $_MAMBOTS->trigger'onPrepareContent' , array( 1, &$tempnull0));
echo 
$temp->text 
?>


you can view a few mambots working here

you will see simple image gallery - Photos
a link to a video - seyret video
and a wimpy mp3 player - my hack as a mambot
« Last Edit: October 26, 2007, 01:11:39 AM by jasonrhl » Logged
jasonrhl
Hero Member
*****
Posts: 24


View Profile
« Reply #4 on: October 26, 2007, 01:25:58 AM »

HAHAHAHA


I got mambots to work in the gig information screen



I will see if i can make it better and then post what i did.
Logged
jasonrhl
Hero Member
*****
Posts: 24


View Profile
« Reply #5 on: October 26, 2007, 01:35:53 AM »

now hopefully this will allow you to put tags like this in any field (as if you want to) may be just put tags in the notes section.

backup the gigdetails.php in /components/com_gigcal/

rename my file to gigdetails.php from gigdetails.txt

then put my version there.

If a programmer can look at devise a better way i feel that would be for the best.

please remember that i am a code hack that just pastes stuff together until it works.
Logged
Capt. gigCal
Administrator
Sr. Member
*****
Posts: 495


View Profile
« Reply #6 on: October 26, 2007, 09:44:40 AM »

Please post your feedback to this forum. I will be testing as well and will add it to our latest Nightly Builds when enough feedback and testing has accumulated. Thanks for your work on this!

Please let us know which mambots you're using in the content area. It might give other users some ideas of how to use this and if you're having any problems it will help us diagnose them.
Logged

Capt. gigCalendar
Nobody plays more gigCalendar
jasonrhl
Hero Member
*****
Posts: 24


View Profile
« Reply #7 on: October 26, 2007, 03:40:09 PM »

I just put a gig poster in the notes

LOOK'Y here

Im using simple image gallery. - http://www.joomlaworks.gr/
« Last Edit: October 26, 2007, 03:41:40 PM by jasonrhl » Logged
Capt. gigCal
Administrator
Sr. Member
*****
Posts: 495


View Profile
« Reply #8 on: October 26, 2007, 04:03:37 PM »

That's cool. That's what I figured most people would use this for, image and streaming media mambots.
Logged

Capt. gigCalendar
Nobody plays more gigCalendar
jasonrhl
Hero Member
*****
Posts: 24


View Profile
« Reply #9 on: October 26, 2007, 04:10:24 PM »

May be I should only allow the bots to be activated in the notes section?

may be is people can suggest what they would use it for I could change it so we don't get other problems
Logged
Capt. gigCal
Administrator
Sr. Member
*****
Posts: 495


View Profile
« Reply #10 on: October 26, 2007, 04:21:38 PM »

Yes, I think that the only place mambots should be active is in the Notes/Info textarea.
Logged

Capt. gigCalendar
Nobody plays more gigCalendar
jasonrhl
Hero Member
*****
Posts: 24


View Profile
« Reply #11 on: October 26, 2007, 04:28:23 PM »

rename this to gigdetails.php
Logged
Capt. gigCal
Administrator
Sr. Member
*****
Posts: 495


View Profile
« Reply #12 on: March 26, 2008, 11:21:55 PM »

Awesome, jasonrhl. Thanks very much for submitting this. I have verified this fix works and have committed it the SVN and updated the Nightly Builds with this addition.

Please continue submitting bug fixes!

rename this to gigdetails.php
Logged

Capt. gigCalendar
Nobody plays more gigCalendar
Capt. gigCal
Administrator
Sr. Member
*****
Posts: 495


View Profile
« Reply #13 on: April 10, 2008, 01:04:02 PM »

Jasonrhl-

A user is having problems with this modification to the Nightly Builds saying that the HTML formatting is no longer being displayed. The report of the problem is in this thread:
http://gigcalendar.net/index.php?option=com_smf&Itemid=76&topic=1050.0

I updated /components/com_gigcal/gigdetails.php with your modification to add mambot support for this text area. You can see the changes made in the SVN on the JoomlaCode.org Development Site. I'm not sure if THIS LINK will work but it shows me the DIFFs between the versions.

Can you take a look at this and tell me why the HTML code would be stripped out? Perhaps I copied your modifications incorrectly?
Logged

Capt. gigCalendar
Nobody plays more gigCalendar
Pages: [1] Print 
« previous next »
Jump to:  


Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.10 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!

Login Form

Welcome, Guest. Please login or register.
May 21, 2013, 02:20:42 AM
Username: Password:
Login with username, password and session length

Forgot your password?
Basecamp project management and collaboration