Mod Picture View

Started by MkC, March 09, 2005, 02:44:16 AM

Previous topic - Next topic

menzagitat

#80
Quote from: LostProphecy on October 16, 2005, 06:25:47 AM
i don't know why it's happening but my forum isn't taking too calmly to this mod, it installs fine and all but when i click on "picture forum view" in admin it comes up with "an error has occured"

i've checked all my code and went through bit by bit to check all the modifications were made, even the database ones but it's still not working...

funny thing is, is that it's working fine on my test forum :(

I have precisely the same problem and I'm on french SMF 1.1RC1
Whenever i click on "Picture Forum View" in the admin pannel, i get the error "An error has occured !". (in french of course)
I've checked that all the modifications were done, everything is ok but i can't get it to work.
Since nobody except LostProphecy seems to have such a problem, and nobody offered a solution, i ask for help.
--------------------------------------------------------------------
J'ai exactement le même problème et j'utilise SMF 1.1RC1 français.
Lorsque je clique sur "Picture Forum View" dans le panneau d'admin, j'obtiens l'erreur "Une erreur s'est produite !".
J'ai vérifié que toutes les modifications aient été faites, tout est ok mais je n'arrive pas à le faire fonctionner.
Etant donné que personne ne semble avoir un tel problème à part LostProphecy, et que personne n'a proposé de solution, je demande de l'aide à mon tour.

LostProphecy

i've never even seen this work for me... i would love so much to have this working...

the mod developer doesn't seem to ever visit this thread and never replied to my post so good luck with them replying to yours :)
Angelus Ex Quo Nox

menzagitat

I am about to try to install the mod and modify SQL database manually to customize the icons.
I'll change the images names in the "board" table for each category and see if it work.
I'll keep you informed.
------------------------
Je vais essayer d'installer le mod et modifier la base SQL manuellement pour personnaliser les icônes.
Je vais changer les noms des images dans la table "board" pour chaque catégorie pour voir si ça fonctionne.

LostProphecy

ok thanx,

i would've done that as well but as i have a huge number of boards it just seemed too annoying to try

wish it would work, i spend a couple of hours preparing my images to find that the mod worked on my test forum (the reason for me preparing the images) and then wouldn't work on my real forum...

another thing you might want to consider...

was this mod the first mod that you installed on a fresh install...

going by what i experinced maybe it's actually conflicting with another mod... i don't know which could possibly conflict but anyway
Angelus Ex Quo Nox

menzagitat

no, it's not a fresh install and i have other mods running.

The trick i've explained sooner worked so i intent to modify manually the database as a final recourse.

I also noticed the following error in my logs :
8: Undefined index: no_valid_parent
Fichier: /xxxxxxxx/xxxxxxxxxxxxx/Sources/ManagePFVBoards.php
(the xxxx is only here to hide the site's path).

I will try to exploit that information.

LostProphecy

yes that error looks familiar... i believe i noticed that error on my site but had no idea where it came from
Angelus Ex Quo Nox

menzagitat

I finally managed to make it work.  :D

Follow these instructions and you are done :

Edit the file sources/ManagePFVBoards.php
search for
Quoteelse
         {
            // Parent doesn't exist.
            if (!isset($boards[$row['ID_PARENT']]['tree']))
               fatal_error(sprintf($txt['no_valid_parent'], $row['bName']));

            $boards[$row['ID_BOARD']]['tree'] = &$boards[$row['ID_PARENT']]['tree']['children'][$row['ID_BOARD']];
         }


replace by
Quoteelse
         {
            $boards[$row['ID_BOARD']]['tree'] = &$boards[$row['ID_PARENT']]['tree']['children'][$row['ID_BOARD']];
         }


LostProphecy

oooh cool :D

does that make the whole mod work? *crosses fingers in hope*
Angelus Ex Quo Nox

menzagitat

#88
It seems that everything work as it should  ;D


Edit : I just discovered your forum by clicking the WWW icon under your name, i love the way you customized it. Keep on the good work !
I'll edit my profile to include my own board so you can take a look at it. I hope you have some basis in french language. I would be very pleased to see you among us  ;)

LostProphecy

#89
thanx :) i'm glad you like it...

it doesn't have as much customization that it will soon have with this mod and a few more that i'll be shortly adding when i upgrade ;)

unfortunately i know nearly zero french (i want to learn) my best friend and co-webmistress does however so i'll get her to translate some things for me ;)

edit: that code did the trick... you are a genius :D thanx so much for helping me :)
Angelus Ex Quo Nox

menzagitat

Acknowledgements goes to the author of this mod.
I just remembered reading something about having more than 2 (or was it 3 ?) subcategories but I didn't think my issue had a link with that, for the description of the problem was different (or perhaps I misunderstood, don't forget that I'm french  :P ).
The "parent doesn't exist" error found in my log reminded a portion of the text to be replaced in ManagePFVBoards.php.

MkC

#91
Quote from: LostProphecy on January 17, 2006, 04:20:50 PM
i've never even seen this work for me... i would love so much to have this working...

the mod developer doesn't seem to ever visit this thread and never replied to my post so good luck with them replying to yours :)

Faux la reponse à ce probleme est disponible là http://smf.marckisscool.net/forum/index.php?topic=19.msg69#msg69 depuis le 20 novembre 2005

Pour les problemes concernant le mod de menzagitat & LostProphecy, verifier la taille de vos fichier puisque la 1.1RC1 est bugué sur la gestion des packets! Il faut uploader tout les fichiers à la main!

la version courante du mod est la V4, la v5 pour smf 1.1RC2 est en cours

Lien des patchs et mise à jour
http://smf.marckisscool.net/forum/index.php?topic=19.0

*******************************************************************************************
Forgery the response to this problem is available there http://smf.marckisscool.net/forum/index.php?topic=19.msg69#msg69 since November 20, 2005
For the problems concerning the MOD of menzagitat & LostProphecy, verifier size of your file since the 1.1RC1 is bugué on the management of the packets! One needs uploader all the files for the hand!
the current version of the MOD is V4, The v5 in progress
Link of the patchs and updated : http://smf.marckisscool.net/forum/index.php?topic=19.0

ooo_mega

hi guys,
Do u know how can we modify this mod for RC2

Thx

MkC


zaandammer

I'm setting up a new forum based on 1.1rc2 and was looking long for this mod. Now that I found, it's giving me an error during install by package manager.

QuoteInstallatie van deze package zal de volgende acties uitvoeren:  Type Actie Omschrijving
1....
.....
9. Voer aanpassing uit ./Sources/BoardIndex.php Succes
10. Voer aanpassing uit ./Sources/BoardIndex.php Succes
11. Voer aanpassing uit ./Sources/BoardIndex.php Succes
12. Voer aanpassing uit ./index.php Succes
13. Voer aanpassing uit ./Sources/MessageIndex.php Succes
14. Voer aanpassing uit ./Sources/MessageIndex.php Succes
15. Voer aanpassing uit ./Sources/Subs.php Test mislukt This is where it fails.
16. Voer aanpassing uit ./Sources/Subs.php Succes
17. Voer aanpassing uit ./Sources/Subs-Boards.php Succes
18. Voer aanpassing uit ./Sources/Subs-Boards.php Succes
19. Voer aanpassing uit ./Themes/default/BoardIndex.template.php Succes
20. Voer aanpassing uit ./Themes/default/MessageIndex.template.php Succes
21. Voer aanpassing uit ./Themes/default/BoardIndex.template.php Succes
22. Voer aanpassing uit ./Themes/default/MessageIndex.template.php Succes

When I proceed the install, I don't get to see any options to apply the installed mod.
I am using the right mod, the one from the post above.
It's running on a clean install.

Please help.

Ronald.

zaandammer

#95
No one? I'm now going to install it manually. Let's see if that works...

Ronald.

EDIT:

Quote<id>
MkC:PFV
</id>

<version>
5.0
</version>

<mod info>
Picture view
</mod info>

<author>
MkC
</author>

<homepage>
www.marckisscool.net
</homepage>

<edit file>
$sourcedir/Subs.php
</edit file>

<search for>
   // Admin area 'Banner'.
   if (allowedTo('admin_forum'))
   {
      $context['admin_areas']['ExtraMod'] = array(
         'title' => $txt['menu_extramod'],
         'areas' => array(
</search for>

<add after>
                 'manage_pfv_boards' => '<a href="' . $scripturl . '?action=managepfvboards">Picture Forum View</a>',
</add after>

<edit file>
$sourcedir/Subs.php
</edit file>

<search for>
?>
</search for>

<add before>

//fonction Picture forum view by MkC
function aff_PFV ($board_PFV)
{
   global $settings,$txt;

         // Is this board itself new?
         if ($board_PFV['new'])
            echo '<img src="', $settings['images_url'], '/cat/' , $board_PFV['img_cat_on'] , '" alt="', $txt[333], '" title="', $txt[333], '" border="0" />';
         // Is one of this board's children new, then?
         elseif ($board_PFV['children_new'])
            echo '<img src="', $settings['images_url'], '/cat/' , $board_PFV['img_cat_on2'] , '" alt="', $txt[333], '" title="', $txt[333], '" border="0" />';
         // I guess it's not new at all.
         else
            echo '<img src="', $settings['images_url'], '/cat/' , $board_PFV['img_cat_off'] , '" alt="', $txt[334], '" title="', $txt[334], '" border="0" />';
}

//function Color forum view by MkC
function aff_CFV ($board_CFV)
{
         echo '<a href="', $board_CFV['href'], '" name="b', $board_CFV['id'], '">';
         if ($board_CFV['couleur'] != '' || $board_CFV['taille'] != '') echo '<font ';
         if ($board_CFV['couleur'] != '') echo 'color="', $board_CFV['couleur'], '" ';
         if ($board_CFV['taille'] != '') echo 'size="', $board_CFV['taille'], '" ';
         if ($board_CFV['couleur'] != '' || $board_CFV['taille'] != '') echo '>';
         if ($board_CFV['style1'] != '') echo '<', $board_CFV['style1'], '>';
         if ($board_CFV['style2'] != '') echo '<', $board_CFV['style2'], '>';
         if ($board_CFV['style3'] != '') echo '<', $board_CFV['style3'], '>';
         echo '', $board_CFV['name'];
         if ($board_CFV['style3'] != '') echo '</', $board_CFV['style3'], '>';
         if ($board_CFV['style2'] != '') echo '</', $board_CFV['style2'], '>';
         if ($board_CFV['style1'] != '') echo '</', $board_CFV['style1'], '>';
         if ($board_CFV['couleur'] != '' || $board_CFV['taille'] != '') echo '</font>';
         echo '</a><br />';
}
</add before>

The red-colored text can not be found in Subs.php

Also I'm a MySql noob, i don't understand a thing of it so that's where I'm also stuck.

I hope some one comes with a good answer...

Ronald.

MkC

Quote
Obligation d'avoir installé le mod Extra Mod avant d'installer le PFV 5

Extra mod est un mod permettant d'avoir simplement un onglet supplémentaire dans la partie admin.
Il est disponible là: http://smf.marckisscool.net/forum/index.php?topic=446.0

***************************************************
Quote
Obligation to have installed MOD Extra MOD before installing the PFV 5

Extra MOD is a MOD making it possible to have simply an additional mitre in the admin part. It is available there:  http://smf.marckisscool.net/forum/index.php?topic=446.0

zaandammer



MkC

Following threats of staff smf.org I am obliged to remove all what relates to smf and of which I do not have the authorizations by ecrit: 
see the license http://www.simplemachines.org/about/license.php
Quote
Any Distribution of a Modified Package or derivative requires express written consent from Lewis Media.
That includes/understands the mods and topics.
list illegal mods
Liste mods which are interdict of diffusion by the license smf:
- > banner (midgard author)
- > hidepost (adaptation and French improvement)
- > Onlineusers (adaptation and French improvement)
- > Hidekastel (patch security and optimization)
- > translation of French theme
- > all files of translations, since which one distributes a file of a modified MOD (dixit the license)
- > PFV5 (file resulting from package 1.1RC2)

Afflicted for the users, we wanted (TEAM fr+MkC) help and to support smf not to harm to him.

Quote
This Agreement will terminate automatically if you fail to comply with the limitations described herein.
Upon termination, you must destroy all copies of this Package, the Software, and any derivatives within 48 hours.

Thx staff smf.org

Advertisement: