![]() |
|
#81
|
|||
|
|||
|
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. |
|
#82
|
|||
|
|||
|
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? |
|
#83
|
|||
|
|||
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; Code:
// First Attachment $show['entrybit_firstattach'] = true; $show['entrybit_attach'] = true; $show['firstattachment'] = true; 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'; $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> Attached are the module settings from the system. Hope that helps clarify for those that need it. Last edited by tfw2005; 12-16-2008 at 02:16 PM. |
|
#84
|
|||
|
|||
|
Quote:
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. |
|
#85
|
|||
|
|||
|
Quote:
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&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> |
|
#86
|
|||
|
|||
|
Quote:
Quote:
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. |
|
#87
|
|||
|
|||
|
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. |
|
#88
|
|||
|
|||
|
Last edited by J_Caesar; 01-21-2009 at 02:38 AM. Reason: Found the file |
|
#89
|
||||
|
||||
|
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. |
|
#90
|
|||
|
|||
|
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? |
|
#91
|
|||
|
|||
|
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. |
|
#92
|
|||
|
|||
|
how would you go about getting the category icon to show in this module?
|
|
#93
|
||||
|
||||
|
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]} |
|
#94
|
|||
|
|||
|
I tried that. the only one i didn't try was the simple... hmmm let me do that one.. Thanks for the reply!
|
|
#95
|
|||
|
|||
|
do you have to add anything in showentry.php for this to work?
|
|
#96
|
|||
|
|||
|
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...
|
|
#97
|
|||
|
|||
|
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.
|
|
#98
|
|||
|
|||
|
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:
2. I also do not understand what Multiple Instances mean? |
|
#99
|
||||
|
||||
|
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. |
|
#100
|
|||
|
|||
|
Quote:
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? ![]() ![]()
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
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 |