Welcome, Guest

Captify Content: Disable links?
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Captify Content: Disable links?

Captify Content: Disable links? 1 year, 11 months ago #26485

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
  • Stevens
  • ( User )
  • OFFLINE
  • Free Extensions
  • Posts: 13
  • Karma: 0

Re: Captify Content: Disable links? 1 year, 11 months ago #26487

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
  • ( Admin )
  • OFFLINE
  • 12 Month Developer
  • Posts: 2947
  • Karma: 75

Re: Captify Content: Disable links? 1 year, 11 months ago #26503

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
  • ( User )
  • OFFLINE
  • Free Extensions
  • Posts: 13
  • Karma: 0

Re: Captify Content: Disable links? 1 year, 11 months ago #26518

Hey Stevens,

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

Cheers,
Jason.
  • Jason D
  • ( Admin )
  • OFFLINE
  • 12 Month Developer
  • Posts: 2947
  • Karma: 75

Re: Captify Content: Disable links? 1 year, 11 months ago #26522

Jason,

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

Cheers
  • Stevens
  • ( User )
  • OFFLINE
  • Free Extensions
  • Posts: 13
  • Karma: 0

Re: Captify Content: Disable links? 1 year, 11 months ago #26603

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
  • ( Admin )
  • OFFLINE
  • 12 Month Developer
  • Posts: 2947
  • Karma: 75

Re: Captify Content: Disable links? 1 year, 11 months ago #26676

Hey Jason,

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

Stevens
  • Stevens
  • ( User )
  • OFFLINE
  • Free Extensions
  • Posts: 13
  • Karma: 0

Re: Captify Content: Disable links? 1 year, 11 months ago #26696

Great thanks for getting back to us
  • Anthony Olsen
  • ( Admin )
  • NOW ONLINE
  • Moderator
  • Posts: 17254
  • Karma: 317
Creative Unique Minimal Joomla Templates

Re: Captify Content: Disable links? 1 year, 10 months ago #29216

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
  • ( User )
  • OFFLINE
  • Free Extensions
  • Posts: 6
  • Karma: 0

Re: Captify Content: Disable links? 1 year, 10 months ago #29219

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
  • ( Admin )
  • NOW ONLINE
  • Moderator
  • Posts: 17254
  • Karma: 317
Creative Unique Minimal Joomla Templates

Re: Captify Content: Disable links? 1 year, 10 months ago #29221

Thanks for the quick replay.

Attached is the file.

Thanks
  • cjabro
  • ( User )
  • OFFLINE
  • Free Extensions
  • Posts: 6
  • Karma: 0

Re: Captify Content: Disable links? 1 year, 10 months ago #29222

Sorry, Here it is

File Attachment:

File Name: files.zip
File Size: 4352
  • cjabro
  • ( User )
  • OFFLINE
  • Free Extensions
  • Posts: 6
  • Karma: 0

Re: Captify Content: Disable links? 1 year, 9 months ago #29329

Hello Anthony,

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

Thanks
  • cjabro
  • ( User )
  • OFFLINE
  • Free Extensions
  • Posts: 6
  • Karma: 0

Re: Captify Content: Disable links? 1 year, 9 months ago #29330

Hi sorry,

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

Thanks Anthony
  • Anthony Olsen
  • ( Admin )
  • NOW ONLINE
  • Moderator
  • Posts: 17254
  • Karma: 317
Creative Unique Minimal Joomla Templates

Re: Captify Content: Disable links? 1 year, 9 months ago #29334

Hi,

I don't know if this is a dumb question but what do you mean by my content source?
  • cjabro
  • ( User )
  • OFFLINE
  • Free Extensions
  • Posts: 6
  • Karma: 0

Re: Captify Content: Disable links? 1 year, 9 months ago #29337

Joomla section, category, k2 item, k2 category etc
  • Anthony Olsen
  • ( Admin )
  • NOW ONLINE
  • Moderator
  • Posts: 17254
  • Karma: 317
Creative Unique Minimal Joomla Templates

Re: Captify Content: Disable links? 1 year, 9 months ago #29352

I'm using Joomla sections and categories
  • cjabro
  • ( User )
  • OFFLINE
  • Free Extensions
  • Posts: 6
  • Karma: 0

Re: Captify Content: Disable links? 1 year, 9 months ago #29354

Hmm I still cant replicate it. Any chance of putting the site online?

Anthony
  • Anthony Olsen
  • ( Admin )
  • NOW ONLINE
  • Moderator
  • Posts: 17254
  • Karma: 317
Creative Unique Minimal Joomla Templates
  • Page:
  • 1
Time to create page: 1.33 seconds