[Submitted] Simple Link-Manager v1.0.2

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
Locked
R. U. Serious
Registered User
Posts: 830
Joined: Mon Feb 11, 2002 2:07 pm

[Submitted] Simple Link-Manager v1.0.2

Post by R. U. Serious » Sun May 26, 2002 10:11 am

Download in the mod database.

updated 1.0.2 on 13.July 2002
updated 1.0.1 on 18.June 2002

I have just received a note from the mod-validators, there are quite a few issues I will have to fix. You may want to wait for the next/validated version).

Updated to 1.0.0 on 17. June 2002
Updated to 0.9.2 on 08. June 2002

Code: Select all

################################################################# 
## Mod Title: Links 
## Mod Version: 1.0.2 
## Author: R. U. Serious <r.u.serious@handykoelsch.de> - www.handykoelsch.de
##
## Description: This MOD adds a link list to your site. 
##		Admins can add categories. Everybody can add links and
##		assign them to one (or more) categories. Also every User
##		can manage their own private favorites.
## 
## Installation Level: (easy) 
## Installation Time: 5 Minutes 
## Files To Edit: page_header.php, overall_header.tpl, lang_main.php
## Included Files: 	links.php, 
##					links_body.tpl, 
##					link_editcat.tpl, 
##					link_editurl.tpl,
##					install_links_db.php
##					links_schema.sql,
##					update_from090.sql
##					german_lang.txt,
############################################################## 
## This MOD is released under the GPL License. 
## Intellectual Property is retained by the MOD Author(s) listed above 
############################################################## 
## For Security Purposes, Please Check: http://www.phpbb.com/mods/downloads/ for the 
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code 
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered 
## in our MOD-Database, located at: http://www.phpbb.com/mods/downloads/ 
################################################# 
## Version History:
##  1.0.1 - Fixed another Lost Session Bug
##		changes all lang-variables to be phpBB-compliant
##		added support for tableprefix
##	1.0.0 - Fixed Lost Session Bug
##		Cleaned up Language & template stuff
##		(improved template thanks to nexialys from http://mx-system.com/ )
##	0.9.2 - Added BBCode Support
## 		Added Rearranging of Links (in edit-category)
##		Fixed Bug that un-hidden categories were not shown
##		small fixes
##		(DB-Change and minor template changes)
## 	0.9.0 - First Release
## 
################################################################# 
## 
## Author Note: 
## This mod is good to use on smaller or medium sized boards. 
## It has only been tested with mysql so far.
## Make the appropiate changes to your database 
## (run install_links_db.php from your main phpBB-directory).
## If you don't have any category, you will receive errormessages. The 
## last 3 lines add an example category/link to my site. I'd be happy
## if you'd let the link to my site in there :-)
## 
## Put links.php in your main phpBB-directory.
## Put *.tpl in templates/subSilver/
##
## This basically uses the colors of your style, except for the navigation
## bar on the left. Edit the color values in links_body.tpl to suite your needs.
##
## There are a few "switches" which are explained. Look in links.php
## They are for anonymous adding links, BBcode enable, default-category etc.
## AT LEAST CHECK THE DEFAULT CATEGORY; YOU WILL GET ERROR MSG IF IT
## DOES NOT EXIST!
##
## =================> IF YOU ARE UPDATING: <===================
## Replace all files with the bew version, replace all Language-file entries
## in lang_main.php with the new ones (all of them changed in 1.0.1 !).
## Also check the instrucions above if you still have to make changes to other phpBB files
##
## 1.0.0 and older - Rename all your tables, so they have your regular phpBB-prefix.
## 0.9.0 	In addition to that execute the changes in update_from090.sql 
## 
################################################################# 
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD 
################################################################# 

# 
#-----[ OPEN ]------------------------------------------ 
#
includes/page_header.php

# 
#-----[ FIND ]------------------------------------------ 
#
    'L_MEMBERLIST' => $lang['Memberlist'], 

# 
#-----[ AFTER, ADD ]------------------------------------------ 
#
    'L_LINKS' => $lang['Links'],

# 
#-----[ FIND ]------------------------------------------ 
#
	'U_MEMBERLIST' => append_sid('memberlist.'.$phpEx), 

# 
#-----[ AFTER, ADD ]------------------------------------------ 
#
    'U_LINKS' => append_sid('links.'.$phpEx),


# 
#-----[ OPEN ]------------------------------------------ 
#
templates/subSilver/overall_header.tpl

# 
#-----[ FIND ]------------------------------------------ 
#
# somewhere around line 236

<!-- BEGIN switch_user_logged_out -->

# 
#-----[ BEFORE, ADD ]------------------------------------------ 
#
<a href="{U_LINKS}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_members.gif" width="12" height="13" border="0" alt="Links" hspace="3" />{L_LINKS}</a>&nbsp;


# 
#-----[ OPEN ]------------------------------------------ 
#
language/lang_english/lang_main.php



# 
#-----[ FIND ]------------------------------------------ 
#
//
// That's all Folks!
// -------------------------------------------------


# 
#-----[ AFTER, ADD ]------------------------------------------ 
#
$lang['Links']='Links';
$lang['show_all']='All';
$lang['my_urls']='Favorites';
$lang['lost_links']='Lost Links';
$lang['cat_c']='Category(s)';
$lang['url_c']='Link(s)';
$lang['add_cat'] = 'New Category';
$lang['edit_cat'] = 'Edit Category';
$lang['del_cat'] = 'Delete Category';
$lang['add_url'] = 'New Link';
$lang['edit_url'] = 'Edit Link';
$lang['del_url'] = 'Delete Link';
$lang['cat'] = 'Name of Category';
$lang['url'] = 'URL/Address of Site';
$lang['pos'] = 'Position:';
$lang['hide_cat'] = 'Hide Category?';
$lang['url_name'] = 'Name of Site';
$lang['url_desc'] = 'Decription/Commentary to Website';
$lang['Sorry_auth'] = 'You are not authorized';

# 
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ 
# 
# EoM

Like I said: Download here

Demo-Site: www.handykoelsch.de/phpBB/links.php
Last edited by R. U. Serious on Sun Nov 24, 2002 3:07 pm, edited 12 times in total.

User avatar
dkklein
Registered User
Posts: 741
Joined: Mon May 13, 2002 5:52 pm
Location: Copenhagen, Denmark

Post by dkklein » Sun May 26, 2002 10:42 am

When not logged in the link "New link" is still visible and it is possible to add a link, although it is only visible under admins lost links.
Best regards Tommy

totoelectro
Registered User
Posts: 358
Joined: Tue Dec 11, 2001 8:47 am
Location: Nimes (South of France)
Contact:

Post by totoelectro » Sun May 26, 2002 10:45 am

Code: Select all

################################################################# 
## Mod Title: Links French support
## Author: totoelectro<totoelectro@wanadoo.fr>
## Description: French support language. 
## 
## Installation Level: (easy) 
## Installation Time: 1 Minutes 
## Files To Edit: lang_main.php 
## 
################################################################# 


# 
#-----[ OPEN ]------------------------------------------ 
# 
language/lang_french/lang_main.php 



# 
#-----[ FIND ]------------------------------------------ 
# 
// 
// That's all Folks! 
// ------------------------------------------------- 


# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 
 
$lang['L_SHOW_ALL']='Tous'; 
$lang['L_MY_URLS']='Favoris'; 
$lang['L_LOST_LINKS']='Vieux liens'; 
$lang['L_CAT_C']='Categorie(s)'; 
$lang['L_URL_C']='Lien(s)'; 
$lang['L_ADD_CAT'] = 'Nouvelle Categorie'; 
$lang['L_EDIT_CAT'] = 'Editer Categorie'; 
$lang['L_DEL_CAT'] = 'Effacer Categorie'; 
$lang['L_ADD_URL'] = 'Nouveau Lien'; 
$lang['L_EDIT_URL'] = 'Editet Lien'; 
$lang['L_DEL_URL'] = 'Effacer Lien'; 
$lang['L_CAT'] = 'Nom de la Categorie'; 
$lang['L_URL'] = 'URL/Addresse du site'; 
$lang['L_URL_NAME'] = 'Nom du Site'; 
$lang['L_URL_DESC'] = 'Decription/Commentaire du site'; 
$lang['Sorry_auth'] = 'Vous n'etes pas autorisé';

# 
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ 
# 
# EoM 


 

R. U. Serious
Registered User
Posts: 830
Joined: Mon Feb 11, 2002 2:07 pm

Post by R. U. Serious » Sun May 26, 2002 10:56 am

dkklein wrote: When not logged in the link "New link" is still visible and it is possible to add a link, although it is only visible under admins lost links.


Ooops, I forgot. That is actually a feature. :roll: :lol:

You can turn it off. Open links.php and look at line 28:

Code: Select all

// Change this to zero (0) if you do not want anonymous to add links
// Links added by anonymous always go under lost links first.
$allow_anonymus_to_addlink = 1;

User avatar
dkklein
Registered User
Posts: 741
Joined: Mon May 13, 2002 5:52 pm
Location: Copenhagen, Denmark

Post by dkklein » Sun May 26, 2002 11:16 am

Ok, thanks. :D
Best regards Tommy

testin
Registered User
Posts: 12
Joined: Tue May 14, 2002 10:09 am
Location: Paris

Post by testin » Sun May 26, 2002 11:44 am

Totoelectro :

Code: Select all

################################################################# 
## Mod Title: Links French support
## Author: totoelectro<totoelectro@wanadoo.fr>
## Description: French support language. 
## 
## Installation Level: (easy) 
## Installation Time: 1 Minutes 
## Files To Edit: lang_main.php 
## 
################################################################# 


# 
#-----[ OPEN ]------------------------------------------ 
# 
language/lang_french/lang_main.php 



# 
#-----[ FIND ]------------------------------------------ 
# 
// 
// That's all Folks! 
// ------------------------------------------------- 


# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 
 
$lang['L_SHOW_ALL']='Tous'; 
$lang['L_MY_URLS']='Favoris'; 
$lang['L_LOST_LINKS']='Vieux liens'; 
$lang['L_CAT_C']='Catégorie(s)'; 
$lang['L_URL_C']='Lien(s)'; 
$lang['L_ADD_CAT'] = 'Nouvelle Catégorie'; 
$lang['L_EDIT_CAT'] = 'Editer Catégorie'; 
$lang['L_DEL_CAT'] = 'Effacer Catégorie'; 
$lang['L_ADD_URL'] = 'Nouveau Lien'; 
$lang['L_EDIT_URL'] = 'Editer Lien'; 
$lang['L_DEL_URL'] = 'Effacer Lien'; 
$lang['L_CAT'] = 'Nom de la Catégorie'; 
$lang['L_URL'] = 'URL/Adresse du site'; 
$lang['L_URL_NAME'] = 'Nom du Site'; 
$lang['L_URL_DESC'] = 'Description/Commentaire du site'; 
$lang['Sorry_auth'] = 'Vous n'êtes pas autorisé';

# 
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ 
# 
# EoM 

 
Fixed :
- missing accents (all of them, you have an english keyboard I guess)
- description instead of Decription
- Adresse instead of Addresse
- One or tow things I forgot...

stitch626
Registered User
Posts: 169
Joined: Sat Apr 06, 2002 4:21 pm
Location: London, England
Contact:

Post by stitch626 » Sun May 26, 2002 5:11 pm

What does "Kategorie verstecken?" mean, it comes up when I am editing my favorites.

Thanks

R. U. Serious
Registered User
Posts: 830
Joined: Mon Feb 11, 2002 2:07 pm

Post by R. U. Serious » Sun May 26, 2002 5:20 pm

ooops, I knew I forgot somethin :oops: Sorry about that.

It means "Hide Category". If it is checked only the owner can view the category (and only if he is logged in). If it is unchecked, you can send the link to friends for example and anybody can view your favorites.

I'll post how to correct it later...

...here it is:

To your lang_file (lang_main.php)add:

Code: Select all

$lang['L_HIDE_CAT'] = 'Hide Category?';
IN links.php on line 306 replace:

Code: Select all

'L_HIDDEN' => 'Kategorie verstecken?',
with

Code: Select all

'L_HIDDEN' => $lang['L_HIDE_CAT'],
That's it. Thanks again for pointing that out. :)

stitch626
Registered User
Posts: 169
Joined: Sat Apr 06, 2002 4:21 pm
Location: London, England
Contact:

Post by stitch626 » Sun May 26, 2002 6:53 pm

Thanks for that.

One more thing, when you click edit next to a link and you get the edit link window up. If you unselect all categories and click submit, the link is lost (It’s still in the database but you can not get it back) If someone does do this, could it not put the link back in lost links?

R. U. Serious
Registered User
Posts: 830
Joined: Mon Feb 11, 2002 2:07 pm

Post by R. U. Serious » Sun May 26, 2002 7:43 pm

Thats what it does. "Lost Links" is not a category itself, but it shows those links that are assigned to no category.

I tried to make sure that there would be no way "invisible" entries would clutter up the database.

:)

stitch626
Registered User
Posts: 169
Joined: Sat Apr 06, 2002 4:21 pm
Location: London, England
Contact:

Post by stitch626 » Sun May 26, 2002 7:51 pm

Hmm, not with my install. If an unregistered user posts a link, then that goes in ‘lost links’ but after it has been assigned a category, I can lose the link if I unselect it in the category list.

R. U. Serious
Registered User
Posts: 830
Joined: Mon Feb 11, 2002 2:07 pm

Post by R. U. Serious » Sun May 26, 2002 8:00 pm

Are you sure you are not deleting the link?

When you open the "edit link"-window the left button will send what information you entered/changed for the link, the right button will delete the link.

I just checked to make sure:
Logged off, added a link as anonymous, logged in as admin, put link in a cat, then took it out again. It wound up in the "Lost Links"-Category.

Sorry, I could not repruduce you problem. :?

stitch626
Registered User
Posts: 169
Joined: Sat Apr 06, 2002 4:21 pm
Location: London, England
Contact:

Post by stitch626 » Sun May 26, 2002 8:18 pm

Okay I figured out what’s going on.

If I add a link and no one has added it to their favourites then you are right, it goes back into ‘Lost links’, but if another user has added it to their favourites then when I unselect all the categories it is lost. I can’t then reapply it back to another category later.

I hope that makes sense.

R. U. Serious
Registered User
Posts: 830
Joined: Mon Feb 11, 2002 2:07 pm

Post by R. U. Serious » Sun May 26, 2002 8:37 pm

Aaaah, ok, that is right. I understand.

The reason for it is, that those links you describe don't differ from links that users would only add to their own favorites. Or let me say it in another way: If "Lost Links" would show all links which are not in a public category, you would also get to see all private links.

Possible Solution: So what is actually needed would for example be a flag for each link to show wether it is private or not.
Now you know why it is still beta ;) If anyone has a better solution, please say so. I'll do something about it in a future release. Don't expect it too soon, though.

Right now, it is kind of a drawback. You willhave to watch out not to remove links from all categories .... :?

ryuryu
Registered User
Posts: 18
Joined: Tue Jan 08, 2002 7:57 am

Post by ryuryu » Sun May 26, 2002 11:50 pm

You are not authorized.....?
You are not authorized.....?
Thanks ^^;

Locked

Return to “[2.0.x] MODs in Development”