Support Forum

  • Page:
  • 1

Captify Content: Disable links?

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Hey Guys, I've not been around since my subscription expired a while back. I found this little module to be pretty cool, however Im wondering if its possible to disable linking to anything (in my case, joomla articles) since Im just using it as a image gallery where you can scroll-over and see a pretty cool effect on the images (projects) on the frontpage. Since I just want to show the pictures, I don't want the customer to be able to click to an article or a category that will be empty and Im looking for some ideas of how to disable that feature or, in the worst case scenario, to replace it with a # which won't load anything :)

Any ideas will be appreciated
B)
  • Stevens's Avatar
  • Stevens
  • Free Extensions
  • 13 posts
  • Karma: 0
The administrator has disabled public write access.
Hey Stevens,

You will need to alter some module code for this.

/modules/mod_captifyContent/tmpl/default.php

on lines 204 to 207

replace
<a href="<?php echo $item->link; ?>">
			<span class="<?php echo $background ?>"><?php echo $item->title;?></span>
				<img src="modules/mod_captifyContent/image.php?width=<?php echo $image_width ?>&amp;=<?php echo $image_height ?>&amp;cropratio=<?php echo $crop_width ?>:<?php echo $crop_height ?>&amp;image=<?php echo JURI::root( true ) ?>/<?php echo $firstImage ?>" class="captify" alt="<?php echo $item->title; ?>" />
			</a>
with
<span class="<?php echo $background ?>"><?php echo $item->title;?></span>
				<img src="modules/mod_captifyContent/image.php?width=<?php echo $image_width ?>&amp;=<?php echo $image_height ?>&amp;cropratio=<?php echo $crop_width ?>:<?php echo $crop_height ?>&amp;image=<?php echo JURI::root( true ) ?>/<?php echo $firstImage ?>" class="captify" alt="<?php echo $item->title; ?>" />

That should remove the link from the images.

Cheers,
Jason.
  • Jason D's Avatar
  • Jason D
  • 6 Month Developer
  • 2957 posts
  • 12 Thanks
  • Karma: 75
The administrator has disabled public write access.
Hey Jason, thanks for the update. As a note on this, I did notice that once I took out that particular line the fading effect disappeared. even the title of the article was showing next to the photo rather than inside the photo.
  • Stevens's Avatar
  • Stevens
  • Free Extensions
  • 13 posts
  • Karma: 0
The administrator has disabled public write access.
Hey Stevens,

What version of Captify are you using? I might need to change instructions based on that.

Cheers,
Jason.
  • Jason D's Avatar
  • Jason D
  • 6 Month Developer
  • 2957 posts
  • 12 Thanks
  • Karma: 75
The administrator has disabled public write access.
Jason,

I'm using JB_CaptifyContent_J1.5_v1.3.1 which I downloaded from this site. Running Joomla 1.5.18

Cheers
  • Stevens's Avatar
  • Stevens
  • Free Extensions
  • 13 posts
  • Karma: 0
The administrator has disabled public write access.
Hey Stevens,

A few more changes that you will need to make here.

lines 58-64 should be
jQuery('.viewport').mouseenter(function(e) {
           
            jQuery(this).children('span').$transitionIn($speed);
        }).mouseleave(function(e) {
           
            jQuery(this).children('span').$transitionOut($speedOut);
        });

and in the css/captifyContent.css file

you will need to change the three selectors

.viewport a img
.viewport a span
.viewport a span em

to be

.viewport img
.viewport span
.viewport span em

That should do it.

Cheers,
Jason.
  • Jason D's Avatar
  • Jason D
  • 6 Month Developer
  • 2957 posts
  • 12 Thanks
  • Karma: 75
The administrator has disabled public write access.
Hey Jason,

That DID IT . Thanks for the assistance. It looks just as expected.

Stevens
  • Stevens's Avatar
  • Stevens
  • Free Extensions
  • 13 posts
  • Karma: 0
The administrator has disabled public write access.
Great thanks for getting back to us :)
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.
Hello,

I am trying to do the same thing posted in this topic. I would like to remove the link and title from the images and only have the images and hover effect when the images are rolled over. I tried replacing the code as specified here but keep getting an error.

ERROR:

<br />
<b>Parse error</b>: syntax error, unexpected T_ECHO in <b>/home/content/c/l/o/cloud9photo/html/modules/mod_captifyContent/tmpl/default.php</b> on line <b>203</b><br />

I am using J 1.5 and Captifycontent 1.3.1.

Any help is greatly appreciated.

Thanks
Chris
  • cjabro's Avatar
  • cjabro
  • Free Extensions
  • 6 posts
  • Karma: 0
The administrator has disabled public write access.
Hi Chris,

Looks like there is a mistake in your code probably related to you positioning of the php tags.

If you upload the file here Ill take a look for you.

Anthony
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.
Thanks for the quick replay.

Attached is the file.

Thanks
  • cjabro's Avatar
  • cjabro
  • Free Extensions
  • 6 posts
  • Karma: 0
The administrator has disabled public write access.
Sorry, Here it is

File Attachment:

File Name: files.zip
File Size: 4352
  • cjabro's Avatar
  • cjabro
  • Free Extensions
  • 6 posts
  • Karma: 0
The administrator has disabled public write access.
Hello Anthony,

Just wondering if you had any luck with the file that I uploaded.

Thanks
  • cjabro's Avatar
  • cjabro
  • Free Extensions
  • 6 posts
  • Karma: 0
The administrator has disabled public write access.
Hi sorry,

Just took a look now but cant replicate it. What is your content source?

Thanks Anthony
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.
Hi,

I don't know if this is a dumb question but what do you mean by my content source?
  • cjabro's Avatar
  • cjabro
  • Free Extensions
  • 6 posts
  • Karma: 0
The administrator has disabled public write access.
Joomla section, category, k2 item, k2 category etc
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.
I'm using Joomla sections and categories
  • cjabro's Avatar
  • cjabro
  • Free Extensions
  • 6 posts
  • Karma: 0
The administrator has disabled public write access.
Hmm I still cant replicate it. Any chance of putting the site online?

Anthony
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Happy Campers