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.

Advertisement: