Oggetto: Re: FAP 1.4.0 RC10
nims ha scritto: [Visualizza Messaggio]
Is Demo available for this MOD ?


You can see how the album is working here:
http://www.mightygorgon.com/album.php

Profilo PM  
Oggetto: Re: FAP 1.4.0 RC10
Hi Mighty.
Just one question.
in full_album_pack_1_4_0.txt you wrote:
Codice: [Nascondi]
  1. #  
  2. #-----[ OPEN ]------------------------------------------------  
  3. #  
  4. includes/bbcode.php  
  5. #  
  6. #-----[ FIND ]------------------------------------------------  
  7. #  
  8.     $bbcode_tpl['url4'] = str_replace('{DESCRIPTION}', '\3', $bbcode_tpl['url4']);  
  9. #  
  10. #-----[ AFTER, ADD ]------------------------------------------  
  11. #  
  12.     // Mighty Gorgon - Full Album Pack - BEGIN  
  13.     // Get Album PIC based on ID  
  14.     $bbcode_tpl['fullalbumimg'] = str_replace('{IMG_NUM}', '\1', $bbcode_tpl['fullalbumimg']);  
  15.     $bbcode_tpl['albumimg'] = str_replace('{IMG_NUM}', '\1', $bbcode_tpl['albumimg']);  
  16.     $bbcode_tpl['albumimgl'] = str_replace('{IMG_NUM}', '\1', $bbcode_tpl['albumimgl']);  
  17.     $bbcode_tpl['albumimgr'] = str_replace('{IMG_NUM}', '\1', $bbcode_tpl['albumimgr']);  
  18.     $bbcode_tpl['albumimgc'] = str_replace('{IMG_NUM}', '\1', $bbcode_tpl['albumimgc']);  
  19.     // Mighty Gorgon - Full Album Pack - END  
  20. #  
  21. #-----[ FIND ]------------------------------------------------  
  22. #  
  23.     $replacements[] = $bbcode_tpl['url4'];  
  24. #  
  25. #-----[ AFTER, ADD ]------------------------------------------  
  26. #  
  27.     // Mighty Gorgon - Full Album Pack - BEGIN  
  28.     // [albumimg]image number here[/albumimg]  
  29.     $album_img_patterns[1] = "#[albumimg:$uid]([0-9]+)[/albumimg:$uid]#si";  
  30.     $album_img_replacements[1] = $bbcode_tpl['albumimg'];  
  31.  
  32.     // [albumimgl]image number here[/albumimgl]  
  33.     $album_img_patterns[2] = "#[albumimgl:$uid]([0-9]+)[/albumimgl:$uid]#si";  
  34.     $album_img_replacements[2] = $bbcode_tpl['albumimgl'];  
  35.  
  36.     // [albumimgr]image number here[/albumimgr]  
  37.     $album_img_patterns[3] = "#[albumimgr:$uid]([0-9]+)[/albumimgr:$uid]#si";  
  38.     $album_img_replacements[3] = $bbcode_tpl['albumimgr'];  
  39.  
  40.     // [albumimgc]image number here[/albumimgc]  
  41.     $album_img_patterns[4] = "#[albumimgc:$uid]([0-9]+)[/albumimgc:$uid]#si";  
  42.     $album_img_replacements[4] = $bbcode_tpl['albumimgc'];  
  43.     // site image-end  
  44.  
  45.     // [fullalbumimg]image number here[/fullalbumimg]  
  46.     $album_img_patterns[5] = "#[fullalbumimg:$uid]([0-9]+)[/fullalbumimg:$uid]#si";  
  47.     $album_img_replacements[5] = $bbcode_tpl['fullalbumimg'];  
  48.  
  49.     $text = preg_replace($album_img_patterns, $album_img_replacements, $text);  
  50.     // Mighty Gorgon - Full Album Pack - END  
  51. #  
  52. #-----[ FIND ]------------------------------------------------  
  53. #  
  54.     $text = preg_replace("#[img]((http|ftp|https|ftps)://)([^ ?&=#"nrt<]*?(.(jpg|jpeg|gif|png)))[/img]#sie", "'[img:$uid]\1' . str_replace(' ', '%20', '\3') . '[/img:$uid]'", $text);  
  55. #  
  56. #-----[ AFTER, ADD ]------------------------------------------  
  57. #  
  58.     // Mighty Gorgon - Full Album Pack - BEGIN  
  59.     // [albumimg]album image id here[/albumimg]  
  60.     $text = preg_replace("#[fullalbumimg]([0-9]+)[/fullalbumimg]#sie", "'[fullalbumimg:$uid]\1[/fullalbumimg:$uid]'", $text);  
  61.     $text = preg_replace("#[albumimg]([0-9]+)[/albumimg]#sie", "'[albumimg:$uid]\1[/albumimg:$uid]'", $text);  
  62.     $text = preg_replace("#[albumimgl]([0-9]+)[/albumimgl]#sie", "'[albumimgl:$uid]\1[/albumimgl:$uid]'", $text);  
  63.     $text = preg_replace("#[albumimgr]([0-9]+)[/albumimgr]#sie", "'[albumimgr:$uid]\1[/albumimgr:$uid]'", $text);  
  64.     $text = preg_replace("#[albumimgc]([0-9]+)[/albumimgc]#sie", "'[albumimgc:$uid]\1[/albumimgc:$uid]'", $text);  
  65.     // Mighty Gorgon - Full Album Pack - END  
  66.  


My problem is that in includes/bbcode.php I don't have any of the lines I have to find.
I'm running XS 058. What can I do?

Profilo PM  
Oggetto: Re: FAP 1.4.0 RC10
If you have phpBB XS, you don't need to edit that part. :wink:

Oggetto: Re: FAP 1.4.0 RC10
Thank you. I'll try.

EDIT: I tried... but:

in ACP

Codice: [Nascondi]
  1. Warning: main(../ALBUM_MOD_PATHalbum_hierarchy_debug.php) [function.main]: failed to open stream: No such file or directory in /xxx/adm/admin_album_config_extended.php on line 66  
  2.  
  3. Warning: main(../ALBUM_MOD_PATHalbum_common.php) [function.main]: failed to open stream: No such file or directory in /xxx/adm/admin_album_cat.php on line 46  
  4.  
  5. Warning: main(../ALBUM_MOD_PATHalbum_common.php) [function.main]: failed to open stream: No such file or directory in /xxx/adm/admin_album_cat.php on line 46  
  6.  
  7. Warning: main(../ALBUM_MOD_PATHalbum_common.php) [function.main]: failed to open stream: No such file or directory in /xxx/adm/admin_album_cat.php on line 46  
  8.  
  9. Template->make_filename(): Error - template file not found: ADM_TPLalbum_personal_body.tpl 


I think I'm missing some "/" and the system doesn't recognize "ALBUM_MOD_PATH"

Profilo PM  
Oggetto: Re: FAP 1.4.0 RC10
Ok, I fixed the four Warning, but I still have problem with:

Template->make_filename(): Error - template file not found: ADM_TPLalbum_personal_body.tpl

I guess that a "/" is still missing, and also the definition of ADM_TPL is not correct. Where can I find this?

Profilo PM  
Oggetto: Re: FAP 1.4.0 RC10
Try the final release...

I'm locking this topic because now it is out of date.


Pagina 5 di 5


  
Non puoi inserire nuovi Argomenti
Non puoi rispondere ai Messaggi
Non puoi modificare i tuoi Messaggi
Non puoi cancellare i tuoi Messaggi
Non puoi votare nei Sondaggi
Non puoi allegare files
Puoi scaricare gli allegati
Non puoi inserire eventi calendario

   

Questa visualizzazione "Lo-Fi" è semplificata. Per avere la versione completa di formattazioni ed immagini clicca su questo link.

Powered by Icy Phoenix based on phpBB
Design by DiDiDaDo

Tempo Generazione: 0.2501s (PHP: 76% SQL: 24%)
SQL queries: 12 - Debug On - GZIP Abilitato