Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#151 2007-06-08 13:58:12
- Qwest
- Member
- From: London, UK
- Registered: 2007-01-24
- Posts: 112
Re: smd_slimbox
Bloke! I gave your ideas a go, and it failed :( Although i think i may know why!
In all, im using 4 custom fields, flyer_front, flyer_back, flyer_date and schedule_img.
essentially, schedule_img holds the image URLs to be shown on the schedule page. Now this works with slimbox as can be seen on the schedule pages
I tried using the same code to display the same flyers from the same field on the front page and that failed, even though it’s working on another part of the site which suggests it’s not a problem with slimbox itself, more of a problem the way the site’s set up.
For my front page, and to get the ‘next event’ box to appear, i have to use the GLX_If plugin and this is what it looks like, code wise –
<txp:glx_if_frontpage>
<div id="showevent">
<txp:article_custom form="nextevent" section="event" limit="1" sort="custom_1 ASC" >
</div>
</txp:glx_if_frontpage>
obviously, the form is what i posted earlier.
Im just curious as to why none of the ‘custom_field’ code is being used even though it works via the excerpt box?
I think a re-work of that area might be needed! Thanks for your help :)
As for Dissential, sounds very interesting indeed. I’ve dabbled with a bit of music production. Much prefer remixing though. Not sure why. And no, i dont know anyone who’s awesome at marketing.. unfortunately, i could do with someone myself actually!
Offline
#152 2007-06-08 14:23:41
Re: smd_slimbox
Qwest wrote:
it’s working on another part of the site which suggests it’s not a problem with slimbox itself, more of a problem the way the site’s set up.
Ahhh. You just jogged my memory. Are you using the latest version 0.21b of smd_lib? There was a subtle bug in prior versions that prevented the articles using custom fields when in article list mode or made sticky.
That may explain why it’s misbehaving? I hope… or else I’m out of ideas.
btw, the latest public slimbox is v0.24
The other option is that it’s something to do with the date being in the future. Is the article itself set to a future date or are you simply posting the article “now” or in the past and using flyer_date to control when the event takes place?
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Hire Txp Builders – finely-crafted code, design and Txp
Offline
#153 2007-06-08 15:28:02
- Qwest
- Member
- From: London, UK
- Registered: 2007-01-24
- Posts: 112
Re: smd_slimbox
aaah.. Right.
I’ve looked in my plugin page, and i’ve got smd_lib: 0.2 and smd_slimbox: 0.22 so im presuming that it’ll need updating?!… I might just do that now!
And the article is being posted ‘now’, and using the flyer_date to control when the event appears on the site, and how it’s sorted on the schedule page..
edit: haaallaluyah!!! lol it works :) Well done ‘Bloke’! Thanks for all your help, you are a god! Just have to figure out the crazy css div problem i’ve got there now lol! Ahh, the beauty of de-bugging =\
Thanks pal!
Last edited by Qwest (2007-06-08 15:35:44)
Offline
#154 2007-06-09 17:53:15
- valmeria
- Member
- From: France
- Registered: 2005-10-22
- Posts: 46
Re: smd_slimbox
Hi all, sorry if I post on the wrong thread (hope not !). I’m just trying a new install of TXP with some plugins I would like to try before using on my websites. I have a problem with running smd_slimbox :
- contents of the js folder and the css folder are uploaded to the server, assuming the textpattern root folder is mysite.com/textpattern/ and not mysite.com/texpattern/texpattern/. On my particular case, name of main folder (the first “texpattern”) is “tienda” and, by precaution, I put both folders on both folders (“tienda” and “tienda/texpattern”).
- plugin and lib are enabled
- code <txp:smd_slimbox_inc jsdir="/js" cssdir="/css" /> is on the head
- code <txp:smd_slimbox category="essai" limit="10" /> is on the article module
- CSS is on the style page
Result is here and when clicking on thumb seems that JS are not working : I just have the image on a new page, nothing more.
Due to my english, maybe I missed something on install ? Or can it be any hosting restriction ??? Thanks for help if possible.
Offline
#155 2007-06-09 18:13:22
Re: smd_slimbox
valmeria wrote:
<txp:smd_slimbox_inc jsdir="/js" cssdir="/css" />is on the head
Hi valmeria. Looking at your source it seems you are correct: your js and css are installed correctly, but the path to your js and css is not quite right. Try this instead, without the beginning ‘/’ characters so the script looks in the ‘current’ directory instead of going back to the root directory:
<txp:smd_slimbox_inc jsdir="js" cssdir="css" />
That should work. If not, can you let me know the value of your “Site URL” field please (from the Admin->Preferecnes page) and I’ll see if I can figure out why it’s not working for you.
Last edited by Bloke (2007-06-09 18:14:39)
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Hire Txp Builders – finely-crafted code, design and Txp
Offline
#156 2007-06-09 18:17:36
- valmeria
- Member
- From: France
- Registered: 2005-10-22
- Posts: 46
Re: smd_slimbox
Shame on me ! You’re perfectly right …. thanks for helping !
Offline
#157 2007-06-26 19:01:56
- Qwest
- Member
- From: London, UK
- Registered: 2007-01-24
- Posts: 112
Re: smd_slimbox
Bloke! Your the man who knows everything about Slimbox lol!
Is there a tag or attribute for Slimbox to show the latest images uploaded to txp? I want to show the latest 4 images uploaded on the front page of the site im working on at the moment.
Please tell me theres an attribute to do that!
Thanks buddy :)
Offline
#158 2007-06-26 19:10:09
Re: smd_slimbox
Qwest wrote:
I want to show the latest 4 images uploaded on the front page of the site im working on at the moment.
How about <txp:smd_slimbox limit="4" orderby="id:desc" /> ?
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Hire Txp Builders – finely-crafted code, design and Txp
Offline
#159 2007-06-30 10:36:18
- Qwest
- Member
- From: London, UK
- Registered: 2007-01-24
- Posts: 112
Re: smd_slimbox
Bloke wrote:
How about
<txp:smd_slimbox limit="4" orderby="id:desc" />?
Bloke, thanks for that! It works lovely! Is there anyway i can remove the ‘next’ link which appears below the images though? For some reason, the URL doesn’t go where it’s supposed to.
You see, i’m running 4 or 5 different txp installations on one server. 1 is in the root, and the rest are in sub-directorys. The site im developing at the moment is in a sub-dir. When i click next, it takes me back to the root installation, which is a different website.
Any help? Cheers fella!
Last edited by Qwest (2007-06-30 10:37:01)
Offline
#160 2007-06-30 10:51:25
Re: smd_slimbox
Qwest wrote:
Is there anyway i can remove the ‘next’ link which appears below the images though?
Try adding the attribute showpagelinks="0"
You see, i’m running 4 or 5 different txp installations on one server. 1 is in the root, and the rest are in sub-directorys.
Hmm, I think this has been mentioned before. I really should make a proper ToDo list up one day. Offhand I can’t see why subdir installations might suffer in the next/prev links but I still haven’t tested it in a subdir yet: what a slacker! There’s every likelihood it might fall over. I’ll set up a test site and see what I can find.
BTW, are you running MLP? That has a known subdir issue which I’ve kludged my way around in an (unreleased) alpha release of slimbox.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Hire Txp Builders – finely-crafted code, design and Txp
Offline
#161 2007-06-30 11:00:49
- Qwest
- Member
- From: London, UK
- Registered: 2007-01-24
- Posts: 112
Re: smd_slimbox
Again Bloke, you’ve helped me right out and got me outta the schtook!
It works perfectly!
Right, what’s MLP?
Offline
#162 2007-06-30 11:11:21
Re: smd_slimbox
Qwest wrote:
Right, what’s MLP?
The awesome Multi-Lingual Publishing pack. If you’ve not heard of it, you’re not running it!
Anyway, I just tested it on a subdir install and you’re right the paging is mashed (ultramega mentioned it before too and I forgot to fix it, oops). My unreleased alpha version works fine but that uses a new MLP function I wrote so I’ll have to find another way round it for now until that code becomes integrated into MLP itself.
Sorry it’s broken. Watch this space for the bug fix version.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Hire Txp Builders – finely-crafted code, design and Txp
Offline
#163 2007-06-30 11:18:07
- Qwest
- Member
- From: London, UK
- Registered: 2007-01-24
- Posts: 112
Re: smd_slimbox
Hey, it’s no problem for me, i wasn’t interested in using the next / prev links anyway. If users want to see more pictures, they can go to the gallery! This is just for a box on the front page that’ll show the most recent pictures.
But no, im not running MLP! lol
Offline
#164 2007-06-30 11:39:15
Re: smd_slimbox
D’oh! I was using the wrong variable. That’ll teach me.
Anyone who needs the plugin to work with paging in sub-directories should grab the fixed v0.24b. Apologies for not fixing it sooner.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Hire Txp Builders – finely-crafted code, design and Txp
Offline
#165 2007-07-02 08:50:29
- mlarino
- Member
- Registered: 2007-06-29
- Posts: 367
Re: smd_slimbox
Hi
I am new to textpattern, and I am designing my portfolio site with it, and would love to use this plugin but I have some problems.
I have installed the 2 plugins that come with it, and uploaded the 2 folders inside the /textpattern folder in my server. Inside the default page I placed the
<txp:smd_slimbox_inc jsdir=”/js” cssdir=”/css” />
<txp:smd_slimbox />
The thumbnails load perfect, but the slimbox script doesnt work, I get the full image loaded instead of the overlay effect.
I am not sure if I would have to do anything else to make this work.
Can someone help?
www.mlarino.com/web2
Thanks
Offline