Forum

You must be logged in to post Login Register

Search Forums:


 






0.41.1 known bugs: SOLUTION!!

No Status Selected
UserPost

4:20 pm
9 April, 2009


cybersheep100

Enthusiast

posts 13

Hi Mark,

Listed in known bugs is "URL attachments are not shown on search page."


The Identified Problem:

This appears to be because dictionary.php [files_loop] explicitly references $stuff["Files"].


A Solution:

I solved the issue by

Step 1: updating dictionary.php adding (around line 18):

'[urls_loop]' => '<?php foreach ((array) $stuff["URLS"] as $file): ?>',

'[/urls_loop]' => '<?php endforeach ?>',


Step 2: updating default (and used) search template in admin by adding a new row to the table

         <tr>
            <td class="files">[urls_loop][file_with_download][/urls_loop]</td>
        </tr>


Step 3: Save Template (needed because applies dictionary.php substitutions as well as updating database)


This template shows both files and urls on the search page, complete with audio player if installed.


Hope that helps.


I realise this is a 'work-around' and there may be a better way to do this, but at least it works!


Every blessing.

4:30 pm
9 April, 2009


cybersheep100

Enthusiast

posts 13

Oops – I think technically the line 18 $stuff array in Step 1 should be

$stuff["URLs"]

i.e. lowercase 's'

Don't think it makes a difference though!

9:14 pm
9 April, 2009


Mark Barnes

Admin

posts 321

Thanks for this. I'll include a fix that addresses this problem in the next update.


About the 4:14 evangelical christian theology blog forum

Most Users Ever Online:

19


Forum Stats:

Groups: 1

Forums: 6

Topics: 544

Posts: 2106




Popularity: 37% [?]