vBadvanced Forums  
Go Back   vBadvanced Forums > vBadvanced Products > vBadvanced Dynamics > vBa Dynamics v1.0 Support > Addon Modules & Modifications > Add-On Modules

Reply
 
Thread Tools Display Modes
  #81  
Old 12-15-2008, 07:13 PM
taiwanpizza taiwanpizza is offline
Junior Member
 
Join Date: Dec 2008
Posts: 13
Default

Referring to my thread up above...

A better example is that when I turn java/javascript off in my browser, the image appears when I click the image. It accesses the attachment.php file in the /dynamics directory (the right location).

But if java/javascript is on, it shows that I am trying to access the attachment.php file in the root directory instead of the /dynamics directory.

It has to do with the location of attachment.php and the javascript lightbox, i think. Am I wrong?

Maybe if I put /dynamics in my root directory? Or can I change a single line of code for the javascript lightbox? I would prefer not to put dynamics in my root directory though.

Last edited by taiwanpizza; 12-15-2008 at 08:36 PM.
Reply With Quote
  #82  
Old 12-16-2008, 01:08 PM
taiwanpizza taiwanpizza is offline
Junior Member
 
Join Date: Dec 2008
Posts: 13
Default

This sounds like the same problem I am having with the Lightbox issue.

http://www.vbadvanced.com/forum/showthread.php?t=32927

He says, "Found the error, for some odd reason lightbox is trying to load my images at "forum/attachment.php" instead of "forum/dynamics/attachment.php"
How can I fix this?"

But my problem is that my lightbox is showing root/attachment.php in the vba module, when it should be showing root/dynamics/attachment.php. How would I fix it?
Reply With Quote
  #83  
Old 12-16-2008, 02:08 PM
tfw2005 tfw2005 is offline
Senior Member
 
Join Date: Aug 2004
Posts: 352
Default

  • These instructions are for adding a thumbnail image to the entrybit expanded template in Dynamics while viewing it through the CMPS plugin. That way you can see thumbnails from your Dynamics stories on your front page running CMPS.
  • These instructions are for a single installation, where only one instance of Dynamics is showing up on your CMPS page at a time.
  • I do not use VB 3.8x, and have no idea how to apply lightbox or anything related to that. This is running on 3.7.x using the 1.0.3 module.
  • This will turn on attachments for all stories by default.
  • You should make your category image, aka the "featured attachment" for the story, be an image if you want it to show up.

STEP 1

Do as instructed here:

http://www.vbadvanced.com/forum/show...21&postcount=1

STEP 2

Now, edit the file directly.

Find this in dyna_newrand_cmps.php:

Code:
	// First Attachment
	$show['entrybit_firstattach'] = false;
	$show['entrybit_attach'] = false;
	$show['firstattachment'] = false;
Change it to:

Code:
	// First Attachment
	$show['entrybit_firstattach'] = true;
	$show['entrybit_attach'] = true;
	$show['firstattachment'] = true;
STEP 3

Go to your plugins section, and find the vBa Dynamics CMPS Module (Special Templates) plugin. Copy what is below and paste it in there:

Code:
$datastore_fetch[] = "'adv_dyna_rand'";
$datastore_fetch[] = "'adv_dyna_cats'";
$datastore_fetch[] = "'adv_dyna_perms'";
$datastore_fetch[] = "'adv_dyna_opts'";
$datastore_fetch[] = "'adv_dyna_attach'";

$phrasegroups[] = 'adv_dyna';
*Note: the only thing different is that you added this line:
$datastore_fetch[] = "'adv_dyna_attach'";


STEP 4

In your adv_dyna_entrybit_expanded template, place this wherever you want to show the attachment:

Code:
<if condition="$show['entrybit_attach']"><if condition="$show['firstattachment']"><if condition="$entry['hasthumb']"><a href="$entry[url]"><img src="$entry[thumburl]" alt="$entry[filename]" border="0" align="$stylevar[left]" /></a></if></if></if>
This is what I do to get the thumbnails to show up on my front pages, when using the entrybit expanded template, and the CMPS/Dynamics module.

Attached are the module settings from the system.

Hope that helps clarify for those that need it.
Attached Images
File Type: png cmpsdynamics2.png (45.9 KB, 28 views)
File Type: png cmpsdynamics1-1.png (64.2 KB, 24 views)

Last edited by tfw2005; 12-16-2008 at 02:16 PM.
Reply With Quote
  #84  
Old 12-16-2008, 09:16 PM
taiwanpizza taiwanpizza is offline
Junior Member
 
Join Date: Dec 2008
Posts: 13
Default

Quote:
This is what I do to get the thumbnails to show up on my front pages, when using the entrybit expanded template, and the CMPS/Dynamics module.

Attached are the module settings from the system.

Hope that helps clarify for those that need it.
Question 1:

Are you using this on your vBA main page or vBA Dynamics main page? I know it sounds like a dumb question, but just wanted to clarify.

Question 2:

So, you skipped the whole lightbox all together and just linked it directly to the article? Should we just avoid having a lightbox to images on the vBA main page? (just curious... although I think to link directly to the article is better)

Last edited by taiwanpizza; 12-16-2008 at 09:38 PM.
Reply With Quote
  #85  
Old 12-17-2008, 12:11 AM
tfw2005 tfw2005 is offline
Senior Member
 
Join Date: Aug 2004
Posts: 352
Default

Quote:
Originally Posted by taiwanpizza View Post
Question 1:

Are you using this on your vBA main page or vBA Dynamics main page? I know it sounds like a dumb question, but just wanted to clarify.

Question 2:

So, you skipped the whole lightbox all together and just linked it directly to the article? Should we just avoid having a lightbox to images on the vBA main page? (just curious... although I think to link directly to the article is better)
1.

I use the module attached to this thread in CMPS, my vba main page. So I have

root/cmps_index.php
root/dynamics/index.php
root/forum/index.php

This module is imported to the CMPS system, and displays on root/cmps_index.php. But links to the articles that show up, go to the full story page in root/dynamics/.....



2.

I forgot that is not how it is by default. To have it show up as a clickable image right on your CMPS front page you can use this code:

Code:
<if condition="$show['entrybit_attach']">	<if condition="$show['firstattachment']"><if condition="$entry['hasthumb']"><a href="attachment.php?$session[sessionurl]do=fullview&amp;attachmentid=$entry[attachmentid]"$target_blank><img src="$entry[thumburl]" alt="$entry[filename]" border="0" align="$stylevar[left]" style="padding-right: $stylevar[cellpadding]px; padding-bottom: $stylevar[cellpadding]px" /></a></if></if></if>
To get lightbox, I am not exactly sure as I am not using 1.1.0, and vbulletin lightbox support was not in 1.0.3. In theory you could add rel="Lightbox" at the end of the image html code, but again, not sure how Brian handled the Lightbox integration and if that will work or not.
Reply With Quote
  #86  
Old 12-17-2008, 02:00 AM
taiwanpizza taiwanpizza is offline
Junior Member
 
Join Date: Dec 2008
Posts: 13
Default

Quote:
Originally Posted by tfw2005 View Post
1.

I use the module attached to this thread in CMPS, my vba main page. So I have

root/cmps_index.php
root/dynamics/index.php
root/forum/index.php

This module is imported to the CMPS system, and displays on root/cmps_index.php. But links to the articles that show up, go to the full story page in root/dynamics/.....
Cool. I have it set up the same way. It works for me now.


Quote:
Originally Posted by tfw2005 View Post

To get lightbox, I am not exactly sure as I am not using 1.1.0, and vbulletin lightbox support was not in 1.0.3. In theory you could add rel="Lightbox" at the end of the image html code, but again, not sure how Brian handled the Lightbox integration and if that will work or not.
Yeah, I'm using the newest version. This is the only module where the lightbox doesn't work. It works everywhere else though.

I sent a support ticket to vBAdvanced. For our application, we sort of need the lightbox to work. But at least the other parts are working. Thank you.

I also want to say thank you for taking the time out to help.
Reply With Quote
  #87  
Old 01-15-2009, 03:59 PM
kirkus-tat kirkus-tat is offline
Senior Member
 
Join Date: Mar 2007
Posts: 149
Default

Does anyone know if installing the updated version of this module will replace the "newrand" template?

I've done some major customizations to that template and I'd hate to have it replaced when updating to the latest version of this module.
Reply With Quote
  #88  
Old 01-16-2009, 06:58 AM
J_Caesar J_Caesar is offline
Member
 
Join Date: Jan 2009
Posts: 31
Default

What's New did not show contents of articles for me:
http://mysite.com/cmps_index.php.
fixed.

Last edited by J_Caesar; 01-21-2009 at 02:38 AM. Reason: Found the file
Reply With Quote
  #89  
Old 01-25-2009, 12:53 AM
ibaker's Avatar
ibaker ibaker is offline
Senior Member
 
Join Date: Feb 2008
Posts: 295
Default

re tfw2005 post on getting the attachment image working - all I get in my expanded entry bit on my CMS page is the number of the attachment as in "7" that is [ attach] 7 [ /attach ] which looks pretty silly - I am not sure if I have done anything wrong but would very much like this to work

EDIT: Still testing as it suddenly started working then stopped

Last edited by ibaker; 01-27-2009 at 12:33 AM.
Reply With Quote
  #90  
Old 02-01-2009, 04:39 PM
ctolton ctolton is offline
Junior Member
 
Join Date: Oct 2008
Posts: 24
Default

First of all thank you to tfw2005 for fixing the attachment problem! We were able to get the attachments to show up only after making his suggested changes.

It was a good thing our guy read about the bug that replaced our templates with new ones. He had them backed up. Even though he chose not to overwrite them.

but we still have a problem. We have customized the templates for the regular boxes on dynamics, so that the information is more vertical, but those changes don't work on the content module. We have columns. How can we change that without breaking the templates for the regular Dynamics pages? if they use the same template, what exactly is changed?
Reply With Quote
  #91  
Old 02-12-2009, 11:08 PM
dholt dholt is offline
Senior Member
 
Join Date: Aug 2006
Location: Delaware
Posts: 113
Default

http://localhost/dynamics/newreply.php?e=2

If you get this go to
vBa Dynamics-Modify Settings-Title, URL's, and Terms

and Delete the www. out of the http://

Last edited by dholt; 02-13-2009 at 11:31 AM.
Reply With Quote
  #92  
Old 02-23-2009, 04:13 PM
ashley76 ashley76 is offline
Senior Member
 
Join Date: Jan 2008
Location: Georgia
Posts: 146
Default

how would you go about getting the category icon to show in this module?
Reply With Quote
  #93  
Old 02-25-2009, 11:50 AM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default

I'm thinking you should be able to add this in the adv_dyna_entrybit_expanded/lean/simple template to show the icon:

{$vbulletin->adv_dyna_cats[$entry[catid]][caticon]}
Reply With Quote
  #94  
Old 02-25-2009, 11:53 AM
ashley76 ashley76 is offline
Senior Member
 
Join Date: Jan 2008
Location: Georgia
Posts: 146
Default

I tried that. the only one i didn't try was the simple... hmmm let me do that one.. Thanks for the reply!
Reply With Quote
  #95  
Old 02-25-2009, 12:13 PM
ashley76 ashley76 is offline
Senior Member
 
Join Date: Jan 2008
Location: Georgia
Posts: 146
Default

do you have to add anything in showentry.php for this to work?
Reply With Quote
  #96  
Old 02-27-2009, 01:50 PM
ashley76 ashley76 is offline
Senior Member
 
Join Date: Jan 2008
Location: Georgia
Posts: 146
Default

after viewing it in IE I see what is happening... When viewing in IE there is just a red X where the caticon should be. The link works properly but, the image doesn't. If I delete out {$vbulletin->adv_dyna_cats[$entry[catid]][caticon]} and replace it with some random image it will show that image but, what I want is to be able to pull the image of each category which the code should do it because it pulls it for correctly for the showentry.php file...
Reply With Quote
  #97  
Old 02-27-2009, 01:52 PM
ashley76 ashley76 is offline
Senior Member
 
Join Date: Jan 2008
Location: Georgia
Posts: 146
Default

and it is fixed... a few seconds after posting that I realized I was missing a "]" in the code up there... Working now! Sorry for all of the posting.
Reply With Quote
  #98  
Old 04-22-2009, 07:09 PM
Wiets Wiets is offline
Junior Member
 
Join Date: Feb 2009
Posts: 5
Default

Sorry, I might have a stupid question which is already answered - but I just cannot figure out what to do next. I followed all the steps as per first message in this thread up to;

Quote:
Originally Posted by Brian View Post
Last, activate the module on any of your CMPS pages that you wish it to appear on, and modify any of the new settings for the module to your liking.
1. How and where do I do this? I require all entries made in Dynamics to show on the Recent Threads on the main forum page.

2. I also do not understand what Multiple Instances mean?
Reply With Quote
  #99  
Old 04-24-2009, 11:25 AM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default

1). Edit the CMPS page you want the module to appear on and use the form there to activate the module, just like you would with any other module.

2). Anything to do with Multiple Instances only applies if you have purchased a Multiple Instance license.
Reply With Quote
  #100  
Old 04-25-2009, 09:41 PM
Wiets Wiets is offline
Junior Member
 
Join Date: Feb 2009
Posts: 5
Default

Quote:
Originally Posted by Brian View Post
1). Edit the CMPS page you want the module to appear on and use the form there to activate the module, just like you would with any other module.
2). Anything to do with Multiple Instances only applies if you have purchased a Multiple Instance license.
Hi Brian

I'm still not getting it right!
There are 2 pages listed in CMPS - see Image #1
There are no "Dyna" inactive modules listed in either page - see image #2
As can be seen from Image # 3, "vba_dyna" is added to the "Portal Output Global Variables".

What am I missing?





Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
CMPS Module New Entries problem kirkus-tat Troubleshooting & Problems 7 02-12-2008 11:44 PM
Random entries module attroll Feedback & Suggestions 3 08-03-2007 03:13 AM


All times are GMT -4. The time now is 12:01 AM.

Forums Powered by vBulletin, Copyright ©2000-2009, Jelsoft Enterprises Ltd.
Please note that vBadvanced is in no way affiliated with Jelsoft Enterprises Ltd, nor will Jelsoft be able to provide any support for our products.