Moderator: Ulminia
Ulminia wrote:addon['dir'] doesn't work.. tried it at home too, it has to be hard-coded for images
- Code: Select all
$imgdir = '/components/com_wowroster/addons/RosterGallery/screenshots/';
$imgdirthumb = '/components/com_wowroster/addons/RosterGallery/screenshots/thumbs/';
Ulminia wrote:that would work if the screenshots folder was in the images folder but its in the main directory
$imagex = str_replace( 'img/', '', $roster->config['interface_url'] );
$imgdir = $imagex.$addon['url'].'screenshots/';
$imgdirthumb = $imagex.$addon['url'].'screenshots/thumbs/';
$imgdir = $addon['url_path'].'screenshots/';
$imgdirthumb = $addon['url_path'].'screenshots/thumbs/';
It is now possible to see the thumbnails of the uploaded images.zanix wrote:Try this
- Code: Select all
$imgdir = $addon['url_path'].'screenshots/';
$imgdirthumb = $addon['url_path'].'screenshots/thumbs/';
Ulminia wrote:yes im aware of them not working in the admin section was mor concerned with the main page working
http://bellicosus.be.funpic.de/index.php?option=com_wowroster&Itemid=26&p=util-RosterGallery&id=1\
http://bellicosus.be.funpic.de/index.php?option=com_wowroster&Itemid=26&p=util-RosterGallery&id=2\
http://bellicosus.be.funpic.de/index.php?option=com_wowroster&Itemid=26&p=util-RosterGallery&id=3\
Ulminia wrote:open body_apimage.tpl in the inc folder of RosterGallery and change
$apimgdir = 'addons' . DIR_SEP . 'RosterGallery' . DIR_SEP . 'screenshots' . DIR_SEP . 'thumbs' . DIR_SEP;
to
$apimgdir = $addon['url_path'] . DIR_SEP . 'screenshots' . DIR_SEP . 'thumbs' . DIR_SEP;
same thing with body_uapimage.tpl
$upimgdir = $addon['url_path'] . DIR_SEP . 'screenshots' . DIR_SEP . 'thumbs' . DIR_SEP;
fixes the admin section as well
Ulminia wrote:first thing im going to ask you is to download and install the lastest verson of RG in the download section here 3.0.3999 this will help some because of code changes i have made
Next after you upgrade what is the url of the images in the admin section?
146: Table 'bellicosus.roster_addon_config' doesn't exist
SQL:
SELECT `config_name`, `config_value` FROM `roster_addon_config` WHERE `addon_id` = '13' ORDER BY `id` ASC;
File: lib/dbal/mysql.php
Line: 234
Users browsing this forum: No registered users and 0 guests