Of course, any traduction would be great. Don't hesitate to contact me in order to integrate a new language file.

##
##
##        Mod title:  Facebook / Trombinoscope
##
##      Mod version:  2.0
##        
##   Works on PunBB:  1.2.x
##     Release date:  2007-07-20
##
##           Author:  Fabien Appert ( appertfabien-punbb@yahoo.fr )
##     Contributors:  
##
##      Description:  This mod display a facebook of all users.
##                Features are :
##                - display a page with a facebook of all users
##                - user could manage his face picture in the "Personality" 
##                    section of his profile
##                - administration plugin for several options :
##                    * use facebook or not
##                    * display search user form or not
##                    * display user without picture
##                    * public access or not
##                    * picture directory
##                    * maximum width allowed
##                    * maximum height allowed
##                    * maximum size alloawed
##                                        
##                                        
##
##   Affected files: lang/French/facebook.php (added)
##                   lang/English/facebook.php (added)
##                   img/facebook/0.jpg (added)
##                   plugins/AP_Facebook.php (added)
##                   facebook.php (added)
##                   profile.php (updated)
##
##       Affects DB: yes for config data, no structure changes
## 
##
##       DISCLAIMER: Please note that "mods" are not officially supported by
##                   PunBB. Installation of this modification is done at your
##                   own risk. Backup your forum database and any and all
##                   applicable files before proceeding.
##
##

Here is a new mod i have made quickely to cover a recursive need for a facebook.

Features are :
- display a page with a facebook of all users
- user could manage his face picture in the "Personality" section of his profile
- administration plugin for several options

If you already have 1.0 or 1.1 installed, please uninstall it with the instructions in the download section.


Download : http://www.punres.org/files.php?pid=420

Main facebook screenshot : http://www.punres.org/files/projects/pr … k_main.gif

profile section screenshot : http://www.punres.org/files/projects/pr … rofile.gif

upload picture screenshot : http://www.punres.org/files/projects/pr … upload.gif

mod administration screenshot : http://www.punres.org/files/projects/pr … _admin.gif



Hope this will be usefull !

bye

hello craigatcrow,

sorry for the waiting time , I didn't see your post :-/ Do you you still have the problem ?

There should be no problem with SSL, the mod use the same email functions as punbb does.

Well ... version 1.2 has been released, look at the first post for more information wink


Rustin : I have take a look to your request and I know how to do it, sorry for the wait but I don't forget you wink It will be done in the next release

ok sorry I was totally in the wrong way

I never use this feature and I see what you mean now wink I'll see what I can do.

Rustin wrote:

Now the last bit to edit is the list that shows up with a user clicks "Show your subscribed topics".  Since forum titles don't show up in that list either.

Sorry Rustin I didn't understand what you mean... you want a link for a user ("Show your subscribed topics") to allow him to see his subscriptions ?

Hi Rustin !

I had totally forgotten smile So I have done it this morning

So version 1.1 is now released. For those who had previous version just had the "plugins/AP_Forum_Subscriber.php" files

Hi Rustin

okay I will have a look and see what I can do

If I don't give you a feedback at the end of last week, feel free to contact me again wink

9

(6 replies, posted in PunBB 1.2 show off)

Great job downliner !

I totally agree with all of you... share the style would be great ! wink

Well, as the user is able to do it by himself, I don't think it is administrator's work to subscribe/unsubscribe for him. But a list of current subscriptions could be usefull, just for informations.

Hi Rustin,

I was thinking to had a mass subscriptions option in an admin plugin, but I don't have enough time for the moment :-/
What kind of features do you think about when you say "manage subscriptions for users". Is it to add and remove a subscription for every user ? or anything else ?

I already have released a 1.0.1 to correct an incomptatibility with the mod "Mark As Read"

You will have to take care and follow instructions in readme :

don't forget to invert comment if you use this mod

#
#---------[ 6. REPLACE WITH ]-------------------------------------------------
# !!! TAKE CARE !!! If you have the mod "MARK AS READ" you will have to uncomment a line et comment an other one

// Fetch some info about the topic
if (!$pun_user['is_guest'])
    // MOD: FORUM SUBSCRIBER - line modified
    $result = $db->query('SELECT t.subject, t.closed, t.num_replies, t.sticky, f.id AS forum_id, f.forum_name, f.moderators, fp.post_replies, s.topic_id AS is_subscribed, s.forum_id AS is_subscribed_forum FROM '.$db->prefix.'topics AS t INNER JOIN '.$db->prefix.'forums AS f ON f.id=t.forum_id LEFT JOIN '.$db->prefix.'subscriptions AS s ON ( (t.id=s.topic_id OR t.forum_id=s.forum_id) AND s.user_id='.$pun_user['id'].') LEFT JOIN '.$db->prefix.'forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id='.$pun_user['g_id'].') WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND t.id='.$id.' AND t.moved_to IS NULL') or error('Impossible de retrouver les informations de la discussion', __FILE__, __LINE__, $db->error());
    // If you use MARK TOPIC AS READ MOD uncomment the line after this message and comment the one above
    // $result = $db->query('SELECT t.subject, t.closed, t.num_replies, t.sticky, t.last_post, f.id AS forum_id, f.forum_name, f.moderators, fp.post_replies, s.topic_id AS is_subscribed, s.forum_id AS is_subscribed_forum FROM '.$db->prefix.'topics AS t INNER JOIN '.$db->prefix.'forums AS f ON f.id=t.forum_id LEFT JOIN '.$db->prefix.'subscriptions AS s ON ( (t.id=s.topic_id OR t.forum_id=s.forum_id) AND s.user_id='.$pun_user['id'].') LEFT JOIN '.$db->prefix.'forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id='.$pun_user['g_id'].') WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND t.id='.$id.' AND t.moved_to IS NULL') or error('Impossible de retrouver les informations de la discussion', __FILE__, __LINE__, $db->error());

Here is an quick preview :

http://www.gundya.fr/pub/PunBB_ForumSubscriber/Screenshot_ForumSubscriber.jpg

14

(12 replies, posted in PunBB 1.2 troubleshooting)

well ... I guess this is it

I hope it will be usefull, I redirect you to the release topic :

http://punbb.org/forums/viewtopic.php?pid=67058#p67058

Here is the mod I have just released to be able to subscribe to a forum :

http://punbb.org/forums/viewtopic.php?pid=67058#p67058

##
##
##        Mod title:  Forum Subscriber
##
##      Mod version:  1.2
##   Works on PunBB:  1.2, 1.2.1 to 1.2.12
##     Release date:  2006-04-25
##           Author:  Fabien Appert (appertfabien-web@yahoo.fr)
##
##      Description:  This mod allow users to subscribe to a forum
##
##   Affected files:  post.php
##                    misc.php
##                    viewtopic.php
##                    viewforum.php
##                    lang/XXX/misc.php
##                    lang/XXX/topic.php
##                    lang/XXX/forum.php
##
##       Affects DB:  Yes
##
##            Notes:  This mod allow users to subscribe to a forum, exactly 
##                    as they can subscribe to a topic. If they subscribe, 
##                    they will be notify by email of all post reply or new
##                    post in this forum (the message of the post could be 
##                    included depending on the same user profil option as 
##                    original topic subscription).
##                    Subscription to a topic is disabled when the user has
##                    already subscribe to the topic's forum.
##
##              For upgrade from 1.1 to 1.2, just execute step 8 to 15
##
##       DISCLAIMER:  Please note that "mods" are not officially supported by
##                    PunBB. Installation of this modification is done at your
##                    own risk. Backup your forum database and any and all
##                    applicable files before proceeding.
##
##

This mod works exactly like the punBB native subscription for topics, except that I have make changes to work with forum.
So it will behave exactly like topic subscription :
- depend on activation of subscription in punBB configuration
- depend on user choice to show message in email or not

Features :
- subscribe / unsubscribe
- receive notification on topic response
- receive notification on new topic too
- prevent topic subscription when a user has already subscribed to forum
-

1.0.1 :
- Fix an incomptatibility with mod "Mark As Read"

1.1 :
- Add an admin plugin in order to view current subscriptions

1.1.1 :
- Only add 1.2.12 support, if you have version 1.1 ... keep it, nothing change wink

1.2
This version correct the bug of multiple mail notification when user where topic-subscribed before being forum-subscribed. Now when a user subscribe to a forum, all his topic subscriptions will be disable (not deleted) during the forum subscription.

For upgrade from 1.1 to 1.2, just execute step 8 to 15


Download : http://www.punres.org/files.php?pid=240

for rss feeds... i don't know a way to authenticate... but perhaps it exists...

I had the same problem few weeks ago so in a first time I have broken the guest restriction of the extern.php in order to allow my users to read feeds... it works fine but I guess you will understand that it is absolutely not recommanded as every body would so be able to read forums posts with the feeds !!

An another solution, as you said is to be notify globaly for a whole forum, and I will redirect you to an other post where this question has already been asked. As you will see, i'm working on this mod and will release it as soon as possible

http://punbb.org/forums/viewtopic.php?id=8556

18

(12 replies, posted in PunBB 1.2 troubleshooting)

Hi everybody

I was looking for the same feature "subscribe to forum" so I have started doing it and it works fine for the moment.
Technicaly, it is exactly the same as the topic's subscribtion of punBB but adapted to forum.

Today I still have little things to correct and have to package it in a mod, but the main functionnalities are working fine I guess. So I will release the mod as soon as possible I promess wink And I will post it in the "Modifications" Section of the forum.

http://www.gundya.fr/pub/PunBB_ForumSubscriber/Screenshot_ForumSubscriber.jpg

Working fine :
=> subscribe / unsubscribe
=> receive notification on topic response

Todo :
=> mod package
=> receive notification on new topic too
=> prevent topic subscription when a user has already subscribed to forum

Extras Todo :
=> externalize db data from table "subrscritions" of punbb wich is dedicated to topic subscription
=> create email functions to implement BCC: in order to hide user's mail from each other

19

(6 replies, posted in PunBB 1.2 show off)

First of all, great job! I share the goal of your site and hope it will have some success

Then, for your font size problem, I don't see any changes right now...

But i'm not so surprise because I don't think adding the code in the main.tpl will change anything as far as it is already present in your "forums/style/Oxygen.css" (in section 2.1)

thx a lot Panos, I have worked a lot to find a design very simple but as nice as possible. (I am so not a designer tongue)

The content of the site is just to give some informations about the association and invite people to come and see Lalytik's shows in France, as far as the goal of the association is not to make money but to share the love of dance art.

Two new websites running with punBB (and Puntal)

Association of Modern Jazz dance :
www.lalytik.fr

And a community of old students from Orsay (IUT)
www.glandeurspower.com

Thx again for this great project !

Thx for this mod vin100

is it the one on puntal website ?

I don't know if it could help you, but there is exactly what you want with a block of puntal

Puntal use punBB and all the styles of punBB, so i suggest you to have a look at it

Here is the code of the index.php for example :

<?php
/***********************************************************************

  Copyright (C) 2005 Vincent Garnier (vin100@forx.fr)
  
  This file is part of Puntal.

  Puntal is free software; you can redistribute it and/or modify it
  under the terms of the GNU General Public License as published
  by the Free Software Foundation; either version 2 of the License,
  or (at your option) any later version.

  PunBB is distributed in the hope that it will be useful, but
  WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.

  You should have received a copy of the GNU General Public License
  along with this program; if not, write to the Free Software
  Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  MA  02111-1307  USA

************************************************************************/

// if we want to switch style
if (isset($_POST['change_style']) && !$pun_user['is_guest'])
{    
    $db->query('UPDATE '.$db->prefix.'users SET style=\''.$_POST['styles'].'\' WHERE id='.$pun_user['id']) or error('Impossible de mettre à jour le profil', __FILE__, __LINE__, $db->error());
    
    fct::redirect($_SERVER['REQUEST_URI'], $lang_puntal['Style redirect']);
}


if (!$pun_user['is_guest'])
{ 
    $pt_styles = array();
    
    $d = dir(PUN_ROOT.'style');
    
    while (($entry = $d->read()) !== false)
    {
        if (substr($entry, strlen($entry)-4) == '.css')
            $pt_styles[] = substr($entry, 0, strlen($entry)-4);
    }
    $d->close();
    
    if (count($pt_styles) > 1)
    {
        natsort($pt_styles);
?>
    
    <div class="block" id="styleSwitcherBox">
        <h2><span><?php echo $lang_puntal_bloc_style_switcher['style_switcher']; ?></span></h2>
        <div class="box">
            <div class="inbox">
                <form action="<?php echo $_SERVER['REQUEST_URI']; ?>" method="post">
                <div class="inform">
                    <input type="hidden" name="change_style" value="1" />
                    <label for="styles"><?php echo $lang_puntal_bloc_style_switcher['choose_style']; ?></label><br />
                        <select id="styles" name="styles">
<?php
    while (list(, $temp) = @each($pt_styles))
    {
        if ($GLOBALS['pun_user']['style'] == $temp)
            echo "\t\t\t\t\t\t\t".'<option value="'.$temp.'" selected="selected">'.str_replace('_', ' ', $temp).'</option>'."\n";
        else
            echo "\t\t\t\t\t\t\t".'<option value="'.$temp.'">'.str_replace('_', ' ', $temp).'</option>'."\n";
    }
?>
                        </select>  
                    <input name="submit" value="<?php echo $lang_puntal_bloc_style_switcher['change']; ?>" type="submit" />
                </div>
                </form>
            </div>
        </div>
    </div>
    
<?php
    }
}

Hope it will help you

it seems to be very hard ... smile


http://punbb.org/forums/viewtopic.php?id=10694

I have done the same on my website but not for internal link, that's very good idea !

I will do your way now, thx a lot !