News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Mod Picture View

Started by MkC, June 15, 2005, 05:25:29 AM

Previous topic - Next topic

MkC

Link to Mod

Ce mod permet de modifier chaque image se situant devant chaque forum ou sous-forum. Voir le site pour les patchs de theme http://smf.marckisscool.net

Version V4 ICI

This MOD makes it possible to modify each image being in front of each forum or under-forum
See the site for the patchs of theme

ArkServer

how to make this a phpMyadmin file?

file: PFVPdb.php


mysql_query("
   ALTER TABLE {$db_prefix}boards
   ADD img_cat_on text,
   ADD img_cat_on2 text,
   ADD img_cat_off text");
   

//insert dans la table les images par defaut
db_query("
   UPDATE {$db_prefix}boards
   SET img_cat_on = 'on.gif', img_cat_on2 = 'on2.gif', img_cat_off = 'off.gif'
   WHERE img_cat_on IS NULL OR img_cat_on = ''", __FILE__, __LINE__);

?>

thank you.

Escobar

Sorry, can someone explain what this does?
I'm assuming the mod allows me to edit a banner at the top or bottom of the forum?
I chose SMF because you get your questions answered.

DangerGirl

It allows you to change the little icons next to forum names.  There are screenshots on this other thread about it:

http://www.simplemachines.org/community/index.php?topic=29991.0

Escobar

Oh! That's awesome! Thanks for the info.  :)
I chose SMF because you get your questions answered.

Escobar

EDIT:

Okay, I understand how this mod works...

You choose the pic for each of the 3 settings, and it shows up next to the forum.

However, I can't get it to work with my black22 theme.
I moved the cat folder to the black22 image directory.
I chmoded it to 755.

BUT IT WON'T WORK. No matter what pic combination I use, it does not change the image next to the forum.

The only theme that it works for is the default theme.
Is there any manual changes I can make to my themes to let them have an icon to represent each forum?
I chose SMF because you get your questions answered.

xenovanis

"Insanity: doing the same thing over and over again and expecting different results."

Escobar

Thanks. That's a good article.  :D
I hope I can figure this out.
I chose SMF because you get your questions answered.

MkC

QuoteCompatible:
SMF 1.0.2
SMF 1.0.3
SMF 1.0.4
SMF 1.0.5
SMF 1.1 beta 3 uniquement default et classic themes

Il faut faire un patch pour chaque theme, j'ai vu que tu utilisais les themes black22/elemenT/simpleblue/helios_multi , je vais donc faire le necessaire.

**********************

It is necessary to make a patch for each theme, I saw that you used the topics black22/elemenT/simpleblue/helios_multi, I thus will do what is necessary.

Escobar

#9
QuoteIt is necessary to make a patch for each theme, I saw that you used the topics black22/elemenT/simpleblue/helios_multi, I thus will do what is necessary.

Pardon mon Francais. Je suis un imbecile anglo  :P.

Est-ce-que vous prepare pour moi les Mods pour Helios/Black22/ElemenT/SimpleBlue?

Vous response dans le forum ici?
I chose SMF because you get your questions answered.

ANARCH¥

#10
Install Actions for archive picture_forum_view.zip:
There are no installation or uninstallation actions defined! 

j'ai le theme default...version 1.0 RC2.

que dois je faire s'il te plait ? c'est la version de SMF qui est trop vieille ?

MkC

Quote from: Escobar on September 23, 2005, 03:00:39 PM
QuoteIt is necessary to make a patch for each theme, I saw that you used the topics black22/elemenT/simpleblue/helios_multi, I thus will do what is necessary.

Pardon mon Francais. Je suis un imbecile anglo  :P.

Est-ce-que vous prepare pour moi les Mods pour Helios/Black22/ElemenT/SimpleBlue?

Vous response dans le forum ici?

Yes, I prepare patchs for these themes  ;)

Oui, je prepare les patchs pour ces différents thèmes  ;)

Quote from: ANARCH¥ on September 24, 2005, 12:05:42 PM
Install Actions for archive picture_forum_view.zip:
There are no installation or uninstallation actions defined! 

j'ai le theme default...version 1.0 RC2.

que dois je faire s'il te plait ? c'est la version de SMF qui est trop vieille ?
Pour te repondre le mod detecte la version de SMF donc il ne s'installera que sur les versions suivantes:
QuoteCompatible:
SMF 1.0.2
SMF 1.0.3
SMF 1.0.4
SMF 1.0.5
SMF 1.1 beta 3 uniquement default et classic themes

Sachant que je suis en court de la 1.1 RC1 et 1.1b4

ANARCH¥

#12
et si je tente l'install manuelle, tu crois que je peux obtenir quelque chose ?

ah, et puis rien a voir, mais pour ton soft de gestion de film, bravo.

MkC

Et bien a moins qu'il y a de gros changement de la version 1.0 à 1.0.2 ce que tu peux faire c'est:
-> Dezipper le zip
-> Editer dans un bloc note le fichier package-info.xml
-> chercher la ligne    <install for="1.0.1,1.0.2,1.0.3,1.0.4,1.0.5">
-> remplacer la ligne par    <install>
-> chercher la ligne <uninstall for="1.0.1,1.0.2,1.0.3,1.0.4,1.0.5">
-> remplacer la ligne par <uninstall>
-> rezippe et upload sur ton forum  ;)

Merci pour les encouragements  ;)

ANARCH¥

#14
QuoteInstalling this package will perform the following actions:  Type Action Description
1. Extract Tree ./Themes/default/images/cat 
2. Extract File ./Themes/default/images/cat/on.gif 
3. Extract File ./Themes/default/images/cat/on2.gif 
4. Extract File ./Themes/default/images/cat/off.gif 
5. Execute Code PFVPdb.php 
6. Execute Modification ./Sources/BoardIndex.php Success
7. Execute Modification ./Sources/BoardIndex.php Success
8. Execute Modification ./Sources/BoardIndex.php Success
9. Execute Modification ./Themes/default/MessageIndex.template.php Success
10. Execute Modification ./Themes/default/languages/ManageBoards.english.php Success
11. Execute Modification ./Themes/default/languages/ManageBoards.french.php File not found
12. Execute Modification ./Themes/default/ManageBoards.template.php Failure
13. Execute Modification ./Themes/default/BoardIndex.template.php Success
14. Execute Modification ./Sources/MessageIndex.php Success
15. Execute Modification ./Sources/MessageIndex.php Success
16. Execute Modification ./Sources/ManageBoards.php Success
17. Execute Modification ./Sources/ManageBoards.php Success
18. Execute Modification ./Sources/ManageBoards.php Failure
19. Execute Modification ./Sources/ManageBoards.php Success
20. Execute Modification ./Sources/ManageBoards.php Failure
21. Execute Modification ./Sources/ManageBoards.php Success
22. Execute Modification ./Sources/ManageBoards.php Failure

donc, j'ai un doute, j'ai fait la modif dans le fichier xml et smf me le reconnait maintenant, mais il y a plusieur modifs dans le fichier "manageboard.php" qui ne sont pas accepter ...
dois-je editer de nouveau le fichier xml et reduire a:

Quote<?xml version="1.0"?>
<!DOCTYPE package-info SYSTEM "http://www.simplemachines.org/xml/package-info">
<package-info xmlns="http://www.simplemachines.org/xml/package-info" xmlns:smf="http://www.simplemachines.org/">
   <name>Picture forum view par MkC</name>
   <id>MkC:PFV</id>
   <type>modification</type>
   <version>3.0</version>
   <install>
                <readme type="inline">Ce mod permet de modifier l image se situant devant chaque nom de forum
      Il est compatible avec le thème DEFAUT.
      Il comprend la langue Française et anglaise.
      Merci à Aravot et [Unknown], thanx to Aravot and [Unknown].      
      Ecrit par MkC [email protected]
      http://www.marckisscool.net
      Copyright 2005 MkC</readme>
<require-dir name="cat" destination="$themedir/images" />
<require-file name="on.gif" destination="$themedir/images/cat" />
<require-file name="on2.gif" destination="$themedir/images/cat" />
<require-file name="off.gif" destination="$themedir/images/cat" />
<code>PFVPdb.php</code>
<modification type="file" format="boardmod">PFV_f1_v3.mod</modification>
</install>
<uninstall>
<code>UnPFVPdb.php</code>
<readme type="inline">desinstallation de ce mod.
</readme>
<remove-file name="$themedir/images/cat/on.gif" />
<remove-file name="$themedir/images/cat/on2.gif" />
<remove-file name="$themedir/images/cat/off.gif" />
<remove-dir name="$themedir/images/cat" />
<modification type="file" format="boardmod" reverse="true">PFV_f1_v3.mod</modification>
</uninstall>
</package-info>

en laissant de cote pour install :
<modification type="file" format="boardmod">PFV_f2_v3.mod</modification>
<modification type="file" format="boardmod">PFV_f3_v3.mod</modification>
<modification type="file" format="boardmod">PFV_f4_v3.mod</modification>
<modification type="file" format="boardmod">PFV_f5_v3.mod</modification>
<modification type="file" format="boardmod">PFV_f6_v3.mod</modification>
<modification type="file" format="boardmod">PFV_f7_v3.mod</modification>
<modification type="file" format="boardmod">PFV_f8_v3.mod</modification>

et pour uninstall:
<modification type="file" format="boardmod" reverse="true">PFV_f2_v3.mod</modification>
<modification type="file" format="boardmod" reverse="true">PFV_f3_v3.mod</modification>
<modification type="file" format="boardmod" reverse="true">PFV_f4_v3.mod</modification>
<modification type="file" format="boardmod" reverse="true">PFV_f5_v3.mod</modification>
<modification type="file" format="boardmod" reverse="true">PFV_f6_v3.mod</modification>
<modification type="file" format="boardmod" reverse="true">PFV_f7_v3.mod</modification>
<modification type="file" format="boardmod" reverse="true">PFV_f8_v3.mod</modification>
   
???

MkC

Bon je suis en train de faire la version 4 que je viens de valider sur smf 1.0.5 et 1.1b3 , je pense valider dans la soirée les autres versions de smf, si cela te tente d'essayer cette nouvelle version qui n'a absolument plus rien à voir en terme de gestion des icones par rapport aux autres versions, ça serait interessant non?
Tiens moi au courant

ANARCH¥


AzaToth

Quote from: MkC on September 27, 2005, 10:07:19 AM
Bon je suis en train de faire la version 4 que je viens de valider sur smf 1.0.5 et 1.1b3 , je pense valider dans la soirée les autres versions de smf, si cela te tente d'essayer cette nouvelle version qui n'a absolument plus rien à voir en terme de gestion des icones par rapport aux autres versions, ça serait interessant non?
Tiens moi au courant
I think you are supposed to speak english here, but it's not my call...

MkC

Tolérance?

Quote
I think you are supposed to speak english here, but it's not my call...

Je pense que tu voulais poser une question sur le mod? un besoin de support? Merci de traduire la prochaine fois car je ne parle pas anglais!

****************************************************************
Tolérance?

Quote
I think you are supposed to speak english here, but it's not my call...

I think that you wanted to put a question about the MOD? a need for support? Thank you to translate the next time because I do not speak English !

MkC

Pour escobar,

Je suis en train de finaliser la version 4 du mod, qui sera plus operationnel et plus facile à adapter aux différents mods, elle sera d'ici un ou deux jours en ligne donc encore un peu de patience, merci.

***********************************************
For Escobar

I am finalizing version 4 of the MOD, which will be more operationnel and easier to adapt to different themes, it will be from here one or two days in line thus still a little patience, thank you.

MkC

Version 4 dispo!
*************
Version 4 online

mecane

j'ai un petit souci, l'install se déroule parfaitement mais quand je veux aller sur le mod j'ai ce message d'erreur: "impossible de charger le modèle 'main'."

merci

AzaToth

Quote from: mecane on October 25, 2005, 10:10:04 AM
j'ai un petit souci, l'install se déroule parfaitement mais quand je veux aller sur le mod j'ai ce message d'erreur: "impossible de charger le modèle 'main'."

merci
Please speek english  ;)

MkC

#23
modifcations and support for all themes: http://smf.marckisscool.net/forum/index.php?board=10.0

modifications et support pour tous les themes: http://smf.marckisscool.net/forum/index.php?board=10.0

Gobo

hi
the mod installed perfectly for me
but when i access it through the admin panel no images show up
Where can I upload the images so that they show up in the drop down list in the admin panel?

PS: I am using 1.1rc1 with Theme: Amber design by Bloc

MkC

#25
Il n'y a pas d'interface d'upload, il faut uploader par un logiciel ftp dans le repertoire /themes/tontheme/images/cat/ les images.
Ensuite il suffit de les selectionner dans la partie admin, le contenu du repertoire est lu automatiquement.
http://smf.marckisscool.net/forum/index.php?topic=44.0

********************************
There is no interface of upload, one needs uploader by a software ftp in the repertoire /themes/yourtheme/images/cat/ the images.
Then it is enough to the selectionner in the part admin, the contents of the repertoire is read automatically.
http://smf.marckisscool.net/forum/index.php?topic=44.0 ( sorry it's french ).

saedxploid

I install manual it on 1.1RC2 but i have recive this error:
"
Database Error
Unknown column 'b.img_cat_on' in 'field list'
File: d:\easyphp\www\dns\forum\Sources\ManagePFVBoards.php
Line: 204
"
Can you help me?

MkC

Normal tu as oublié de modifier la base de données

Normal you forgot to modify the data base

Quote
//ajout dans la table pour les icones de forum
mysql_query("
   ALTER TABLE {$db_prefix}boards
   ADD img_cat_on text,
   ADD img_cat_on2 text,
   ADD img_cat_off text");
   

//insert dans la table les images par defaut
db_query("
   UPDATE {$db_prefix}boards
   SET img_cat_on = 'on.gif', img_cat_on2 = 'on2.gif', img_cat_off = 'off.gif'
   WHERE img_cat_on IS NULL OR img_cat_on = ''", __FILE__, __LINE__);
   

//ajout dans la table pour les styles de forum
mysql_query("
      ALTER TABLE {$db_prefix}boards
      ADD couleur  TEXT,
      ADD style1  TEXT,
      ADD style2 TEXT,
      ADD style3 TEXT");

// Insert the settings.
   db_query("
      UPDATE {$db_prefix}boards
      SET couleur = '',style1 = '',style2 = '',style3 = '' WHERE style1 IS NULL or style2 IS NULL or style3 IS NULL", __FILE__, __LINE__);
?>

MkC


Gobo

Hi can someone help me step by step in English how to install this mod on 1.1rc2 ?


Cladestino

Hi:

I get this:

Unknown column 'taille' in 'where clause'
File: ......./forum/Packages/temp/PFVPdb.php
Line: 49

Help please  :'(

MkC


benjeewest

When will the Picture View Mod be available for SMF 1.06? I tried to install the package 'for smf_10x' but according to the package manager, it isn't compatible with 1.06.

Quand le mod de 'Picture View' sera-t-il disponible pour SMF 1.06?  J'ai essayé d'installer le package 'pour smf_10x 'mais selon le 'package manager', il n'est pas compatible avec 1.06.


MkC

@cladestino
Version déjà installé auparavant ou nouvelle installation? De mon côté pas de soucis lors d'une installation.

@benjeewest
Ah oui cette vieille version  ;) je vais regarder ce que je peux faire

*******************************************************************************
@cladestino
Version already installed before or new installation? On my side not of concern at the time of an installation.

@benjeewest
Ah yes this old version ;) I will look at what I can do

saedxploid

Unknown column 'taille' in 'where clause'
File: ......./forum/Packages/temp/PFVPdb.php
Line: 49
I think because The mod installer not standard for other lang(Examp: En,Persian,...) :-\
then I install manual mod for 1.1RC2.
But I can import "PFVPdb information" on my Database.
Can You Help me insert "PFVPdb information" in my Database? ???

Cladestino

@ MkC:

Ive had you mod in my rc1 version and let me tell you "BIG THANKS" for that mod.

Then ive updated to rc2 and of course it didnt work
Ive erased the old files and only keep the cat folder with my custom icons.
Ive ftp the new mod files and then when i tried to install it i got that message:

Unknown column 'taille' in 'where clause'
File: ......./forum/Packages/temp/PFVPdb.php
Line: 49

Ive made a "portuguese" version of the ManagePFVBoards.french.php and still got the message.

I even instaled the Extra Mod you had in your fourm and tried to install it again but got the same message.

Thanks in advance for your help.

Best Regards,
Cladestino

PS-Merci beaucoup, c`est an jolie mod. ;)

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

Tim

Yes, yes whine and complain. Perhaps people will not remember you broke the license agreement...

Coincidentally, if you report one more post, I will argue a strong case for further measures against you...

MkC

Quote from: Tim on March 14, 2006, 11:27:29 AM
Yes, yes whine and complain. Perhaps people will not remember you broke the license agreement...

Coincidentally, if you report one more post, I will argue a strong case for further measures against you...
Not whole I apply the license. You have to advise me to read the license and to apply it, I execute.
I like smf, and as I wish to be in the legality if not I quote:

Quote
It is indeed illegal to re-distribute SMF without permission, and if you don't stop we will find ways to make you stop.
Post of Oldiesmann : http://www.simplemachines.org/community/index.php?topic=69303.msg509961#msg509961

I wish to keep my forum and thus I make apply the license

Advertisement: