Follow Us:
Tricked Out Mods: Forums

Best Hosting
 Forum FAQForum FAQ   SearchSearch   UsergroupsUsergroups   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

new nuke wysiwyg
 Goto page 1, 2  Next
 
Post new topic   Reply to topic   print    Tricked Out News Forum Index -> Colorbox addon
View previous topic :: View next topic  
Author Message
nextgen
I might as well work here
I might as well work here


Joined: Jun 28, 2009
Posts: 79
Location: Maryland

PostPosted: Sat Aug 04, 2012 6:39 pm 
Post subject: new nuke wysiwyg
Reply with quote

bobby, would you offer a colorbox fix for the 3.6 ckeditor nuke wysiwyg ?
  
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
bobby
Site Admin
Site Admin


Joined: Jan 20, 2009
Posts: 782


PostPosted: Sat Aug 04, 2012 8:37 pm 
Post subject:
Reply with quote

I will look at it later this week.
_________________
Tricked Out News
  
Back to top
View user's profile Send private message Visit poster's website
bobby
Site Admin
Site Admin


Joined: Jan 20, 2009
Posts: 782


PostPosted: Sun Aug 05, 2012 11:49 am 
Post subject:
Reply with quote

There is a super simple way to use the colorbox without any plugin. I will create a video and post it here with an example.
_________________
Tricked Out News
  
Back to top
View user's profile Send private message Visit poster's website
bobby
Site Admin
Site Admin


Joined: Jan 20, 2009
Posts: 782


PostPosted: Sun Aug 05, 2012 1:42 pm 
Post subject:
Reply with quote


_________________
Tricked Out News
  
Back to top
View user's profile Send private message Visit poster's website
bobby
Site Admin
Site Admin


Joined: Jan 20, 2009
Posts: 782


PostPosted: Sun Aug 05, 2012 3:24 pm 
Post subject:
Reply with quote

I should have also said that you can add the title for the colorbox in edit link advanced Advisory Title field. And if you want to group images together, just use the same number in the Relationship field for any images you want grouped.
_________________
Tricked Out News
  
Back to top
View user's profile Send private message Visit poster's website
neralex
I might as well work here
I might as well work here


Joined: Nov 01, 2010
Posts: 61


PostPosted: Mon Aug 06, 2012 6:34 pm 
Post subject:
Reply with quote

nice Smile
  
Back to top
View user's profile Send private message
nextgen
I might as well work here
I might as well work here


Joined: Jun 28, 2009
Posts: 79
Location: Maryland

PostPosted: Tue Aug 14, 2012 12:08 pm 
Post subject:
Reply with quote

Thanks bobby, you are always on time with perfect solutions.
_________________
Ravennuke is a state of mind.
  
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
andyb
Regular
Regular


Joined: Aug 09, 2011
Posts: 11
Location: Tamworth, UK

PostPosted: Mon Sep 03, 2012 1:18 pm 
Post subject:
Reply with quote

I may have missed something here. I'm wanting to make it so when the colorbox opens up, you can click to go forwards or backwards to the next image.
The following were my settings:

ID= blank
Advisory title = blank
Name = blank
Relationship = 5

It didn't appear to work. When I clicked in to re-edit, the relationship field is blank when I preview.... (although I've not saved the article)

Advice/ feedback welcomed.

If it can't be done, it can't....
  
Back to top
View user's profile Send private message Visit poster's website
spasticdonkey
Super Dev Donkey
Super Dev Donkey


Joined: May 08, 2009
Posts: 76


PostPosted: Mon Sep 03, 2012 2:10 pm 
Post subject:
Reply with quote

In terms of html5 readiness, I've been trying to get out of the habit of using the rel attribute. While it wont be an issue now, down the road it may be. In html5 the rel attribute can only be one of these values: alternate, author, bookmark, help, license, next, nofollow, noreferrer, referer, prefetch, prev, search, tag.

This is going to be a major headache on one of my sites, when the day comes Rolling Eyes

I imagine if you use the editor in "source" mode you could paste in your own colorbox coding as needed, directly with your story/content. Then just use a class to group them. My 2 cents.

html Code:
<p><a class="group4"  href="ohoopee1.jpg" title="Me and my grandfather on the Ohoopee.">Grouped Photo 1</a></p>

<p><a class="group4" href="ohoopee2.jpg" title="On the Ohoopee as a child">Grouped Photo 2</a></p>
<p><a class="group4" href="ohoopee3.jpg" title="On the Ohoopee as an adult">Grouped Photo 3</a></p>
<script type="text/javascript">
$(document).ready(function(){
$(".group4").colorbox({rel:'group4', slideshow:true});
});
</script>
  
Back to top
View user's profile Send private message Visit poster's website
bobby
Site Admin
Site Admin


Joined: Jan 20, 2009
Posts: 782


PostPosted: Mon Sep 03, 2012 2:40 pm 
Post subject:
Reply with quote

I don't know what to say about the grouping not working. It works fine for me if I have all the images with the Relationship and they are all on the same page.
_________________
Tricked Out News
  
Back to top
View user's profile Send private message Visit poster's website
andyb
Regular
Regular


Joined: Aug 09, 2011
Posts: 11
Location: Tamworth, UK

PostPosted: Mon Sep 03, 2012 4:34 pm 
Post subject:
Reply with quote

Code:
<a class="cooliris" href="uploads/image/robaustin/rob_resized/189830_10150181980071321_4604623_n.jpg"><img alt="" src="uploads/image/robaustin/rob_resized/189830_10150181980071321_4604623_n.jpg" style="width: 200px;height: 118px;float: right" /></a>


is one of my examples. I tried adding them all to group1, but they didn't show as a slide show. They will show in cooliris individually.... or am I doing something wrong? Is it a limitation because I am still "previewing" and it doesn't save the additional parts unless it's saved?
  
Back to top
View user's profile Send private message Visit poster's website
andyb
Regular
Regular


Joined: Aug 09, 2011
Posts: 11
Location: Tamworth, UK

PostPosted: Mon Sep 03, 2012 5:02 pm 
Post subject:
Reply with quote

example of where I'm wanting to add it here: http://www.audifans.net/article714.html

There are a lot more photos I was going to add as thumbnails to the bottom of the article... but have waited (for now)

Cheers

Andy
  
Back to top
View user's profile Send private message Visit poster's website
neralex
I might as well work here
I might as well work here


Joined: Nov 01, 2010
Posts: 61


PostPosted: Mon Sep 03, 2012 6:11 pm 
Post subject:
Reply with quote

andyb wrote:
I may have missed something here. I'm wanting to make it so when the colorbox opens up, you can click to go forwards or backwards to the next image.


Without the "rel" atrribute in the $AllowableHTML you can try it a long time without a result Smile

open includes/jquery/colorbox-settings.js and add before "});" this one:

javascript Code:
$(".colorboxslide").colorbox({slideshow:true, slideshowAuto:false, scalePhotos:true, width:"800px", maxHeight:"600px"});



open rn_config.php and add the "rel" atrribute to the a-tag of the $AllowableHTML:

find:

php Code:
$AllowableHTML = array(

'a' => array('class' => 1, 'style' => 1, 'id' => 1, 'href' => 1, 'target' => 1, 'title' => array('minlen' => 4, 'maxlen' => 120)),


change it to:

php Code:
$AllowableHTML = array(

'a' => array('class' => 1, 'style' => 1, 'rel' => 1, 'id' => 1, 'href' => 1, 'target' => 1, 'title' => array('minlen' => 4, 'maxlen' => 120)),



Now edit your article, make a right click on a every image, click an "Edit Link", click on "Advanced", add "colorboxslide" in the field "Stylesheet Classes" and type "colorbox" in the field "Relationship".

...save and have fun Smile

ps: html5 sucks atm in my eyes, working without a standard is not my thing! i will wait an a stable version!
  
Back to top
View user's profile Send private message
andyb
Regular
Regular


Joined: Aug 09, 2011
Posts: 11
Location: Tamworth, UK

PostPosted: Wed Sep 05, 2012 4:11 am 
Post subject:
Reply with quote

here's a curveball.... (that may make things a LOT easier/ quicker for people doing news- I'm not sure if this is the bast place to ask?

Basically, I know there are some scripts available (open source) where they will look at a given folder, generate thumbnails (GD library needs to be installed, I think) and then when you click on the thumbnail, will open it into a colorbox/ lightbox type affair where you can click them, and go forwards and back, etc.

Is it possible to include this- either into the generated/ source code when you create an article (or will it get stripped out?)- or possible to add it as a "feature" to the editor? I'm trying- where possible- to avoid changing "core" files as this would be a bit of a nightmare come upgrade time remembering what was added/ changed (I'm trying to keep notes, btw)

It's easy enough to upload either via FTP or the editor the images within a (created) sub directory.

I hope I'm making sense here?

Something akin to the code mentioned here (there are LOTS of examples)- http://davidwalsh.name/generate-photo-gallery

We used to have a gallery installation on the site- it contained over 10,000 photos. PHP has moved on and it no longer works, and there are no suitable updates you can plug in to *nuke easily enough.

Users can upload their images into the forums for discussion, etc- this just leaves me with a "gap"/ requirement for something to handle the news side of things. I don't always have access to FTP, or have time/ software to manipulate images to create thumbnails, etc.- something like this would be a HUGE bonus.

Maybe I'm asking too much?

I'm just thinking- mainly aimed at NERALEX as he has done an EXCELLENT job with the news update so far (I hope it's in future releases as standard of RN)

If I'm better posting this question over on the news module upgrade on RN, please advise. If there is no time/ resources / capability to do this, no problem- I appreciate all the information and support/ feedback received so far.
  
Back to top
View user's profile Send private message Visit poster's website
neralex
I might as well work here
I might as well work here


Joined: Nov 01, 2010
Posts: 61


PostPosted: Wed Sep 05, 2012 7:11 am 
Post subject:
Reply with quote

To make a change like the news mod you must go very deep inside a module and you must change many basic functions and database fields. After this, there is no turning back to the old version. If people using the old method an you come with a new version, then it must make sense for all. I think, but this only my opinion, a gallery combine with the news is not the best solution. Because then you must have a connection between the gallery and the respective News ID. This means it must be made massive changes that work for you, but ultimately only a majority of the people do not need this. I think its better to use a real gallery outside of the news and for all other things you have the colorbox.
_________________
soe.media - soe.fm
  
Back to top
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic   print    Tricked Out News Forum Index -> Colorbox addon All times are GMT - 5 Hours
 Goto page 1, 2  Next
 Page 1 of 2
 
 

Jump to:   
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Powered by phpBB © 2001-2008 phpBB Group
Forums ©