TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,911
  • Total Topics: 21,307
  • Online today: 884
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 681
  • Total: 681

MooFlow into a block/article?

Started by JDC, January 27, 2009, 06:15:23 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

JDC

Quote from: IchBinâ„¢ on January 28, 2009, 02:48:52 PM
How come the single quotes are escaped? Are you putting this in a php or html article?

Its going into my themes index.template.php file

Quote from: JPDeni on January 28, 2009, 12:48:45 PM
Then I would try the full URL.

Also tried that JP but still nothing. :(

JPDeni

So you're just getting a blank page? And you know that what you're doing should give you something?

At this point, I would be very frustrated, which causes me to go back to the very simplest things. You know you have a directory and that your files are there, right? You just can't get to them. Forget the javascript for the moment and just focus on displaying one of the images. Create a new scriptbox and enter the html to display an image. Just that. Keep tweaking it until you get the image to display. You may have to work with relative folders or the full URL, but you'll eventually get it.

I'm wondering about your comment about the index.template.php file. I guess I misunderstood, because I thought you were putting this in a scriptbox.

IchBin

The reason I asked is because in the first post you said you were putting it into a page. But that doesn't tell us whether its an article page, or something in a block on that page. If you are putting it into your index.template.php then the folder should probably be in your themes folder, unless you explicitly give the full path /home/user/www/folder.

JDC

#13
Sorry I think I have confused you all :P basically - that code is in my index.template file and ALSO this code is in a block sciptbox.

<div id="MooFlow">
<div><img longdesc="Link" alt="Some descriptions" title="Title" src="/MooFlow/img/1.jpg" /></div>
<div><img longdesc="Link" alt="Some descriptions" title="Title" src="/MooFlow/img/2.jpg" /></div>
</div>


Now I just put that code straight into the box. If i use an iframe and link it to a html page i made, it shows the images... (I will put it back to an iframe so you can see.)

This is it with an iframe currently: http://fullfusionfilms.com/index.php?page=films  (ignore the "some descriptions bit it because i dont have 3 images i was just testing :P)

JPDeni

Okay. :) Let's do one thing at a time, then. Remove any of the "escapes" so that you can use it in a scriptbox.

Try using this in a scriptbox:


<div id="MooFlow">
<div><img longdesc="Link" alt="Some descriptions" title="Title" src="http://fullfusionfilms.com/MooFlow/img/1.jpg" /></div>
<div><img longdesc="Link" alt="Some descriptions" title="Title" src="http://fullfusionfilms.com/MooFlow/img/2.jpg" /></div>
</div>



JDC

Hmm the images dont show up in either scriptbox or html.... I can see it in the preview box of the html though...just not on the page.  >:(

JPDeni

That's really strange, because it works in a scriptbox on my site:

http://jpdeni.comze.com/index.php

JDC


ZarPrime

Works on my site in a script block as well and I'm using TP 1.05 beta 1, same version as you.

JPD, this is strange, but if you are on his page and refresh it, you see the images for a brief instant (like a half a second or less) and then it disappears once the page has finished loading.  There is something (A Mod or something) that is interfering with this.

ZarPrime

JPDeni

I was wondering if there could be something in the .css file, with the div id.

The first thing with debugging is to switch to the default theme and see what happens. If things don't improve, then start removing mods, checking after each removal.

This website is proudly hosted on Crocweb Cloud Website Hosting.