Author |
Topic |
guido100uk
Starting Member
United Kingdom
14 Posts |
Posted - 20 August 2005 : 17:02:37
|
Having used Links Manager for sometime now I'm interested in adding a number of new flags I can see that the images have a set name icon_links_langXX.gif also I can see that in links.asp that strLinksLanguages just under the includes is where you add new names but I can't see how the two marry up. I can get it to work by manually adding the number to THELANGUAGE in the FORUM_LINKS part of the db. Would be possible to have the language names in the db rather than in the code so it makes it easier to update or add new lanuages and flags.
Regards, < |
Guido100uk http://www.searchhuts.co.uk/forum http://www.searchhuts.co.uk |
|
|
OneWayMule
Dev. Team Member & Support Moderator
Austria
4969 Posts |
|
Astralis
Senior Member
USA
1218 Posts |
Posted - 03 September 2005 : 06:34:46
|
Where is an example of the links mod? The version on onewaymule.com is down and he restricted membership to the forum so I couldn't leave a message there.
I wanted to see if it does paging of comments and displays the newest ones at the top.< |
Edited by - Astralis on 03 September 2005 06:38:36 |
|
|
OneWayMule
Dev. Team Member & Support Moderator
Austria
4969 Posts |
|
Astralis
Senior Member
USA
1218 Posts |
Posted - 03 September 2005 : 07:27:12
|
Cool! Thanks for the response and for working on this mod!
I checked out the code and I like how you separated it into functions. Very nice.
BTW, your forum is nice on the eyes.< |
Edited by - Astralis on 03 September 2005 07:29:26 |
|
|
laser
Advanced Member
Australia
3859 Posts |
Posted - 03 September 2005 : 18:42:03
|
OWM, did you get my email the other day ?< |
|
|
OneWayMule
Dev. Team Member & Support Moderator
Austria
4969 Posts |
|
laser
Advanced Member
Australia
3859 Posts |
Posted - 03 September 2005 : 19:40:03
|
Oops, sorry about that, all fixed now < |
|
|
Astralis
Senior Member
USA
1218 Posts |
Posted - 04 September 2005 : 22:55:30
|
quote:
The final version includes paging for the comments, and the user may choose the order of the comments. (Beta 2 has no paging, and displays the oldest comments first.)
Has the final version been released?< |
|
|
OneWayMule
Dev. Team Member & Support Moderator
Austria
4969 Posts |
|
hennep
Starting Member
Netherlands
4 Posts |
Posted - 18 February 2006 : 08:37:49
|
quote: Originally posted by K.Storm
quote:
What do you mean with "can't edit link as moderator"? Doesn't the Edit icon () show up? It works fine even on Beta 2, you can take a look at the demo forum I've set up: http://www.onewaymule.org/onewayscripts/lm3/
The edit icon is there, but when you click on the icon, you are send back to links.asp, i works for admin that can edit all and members that can edit there own links, but moderators can't edit at all.
i have looked on this part of the links.asp:
CASE "edit" If Request.QueryString("id") = "" or IsNumeric(Request.QueryString("id")) = False Then Response.Redirect("links.asp") intLinkID = Request.Querystring("id") AllowEdit = 0 If mLev = 4 Then AllowEdit = 1 End If If intLMEdit > 0 and mLev >= 3 Then AllowEdit = 1 End If If mLev < 3 and strLMEdit = 2 Then strsql = "SELECT MEMBER_ID FROM " & strTablePrefix & "LINKS WHERE LINK_ID= " & intLinkID Set lrs = my_conn.execute(strsql) If lrs.EOF Then lrs.Close Set lrs = Nothing Response.Redirect("links.asp") Else lmID = lrs("MEMBER_ID") lrs.Close set lrs = nothing End If If lmID = getMemberID(Request.Cookies(strUniqueID & "User")("Name")) Then AllowEdit = 1 End If End If If AllowEdit <> 1 Then Response.Redirect("links.asp") End If
it is here that it is going wrong
/K.storm
Ps: i'am using a MySQL 3.23.58 database
I had exactly the the same problem, moderators cannot not edit links. I noticed that there is a bug in the code, change intLMEdit to strLMEdit and it will work. It is marked in red in the code below.
CASE "edit"
If Request.QueryString("id") = "" or IsNumeric(Request.QueryString("id")) = False Then Response.Redirect("links.asp")
intLinkID = Request.Querystring("id")
AllowEdit = 0
If mLev = 4 Then
AllowEdit = 1
End If
If strLMEdit > 0 and mLev >= 3 Then
AllowEdit = 1
End If
If mLev < 3 and strLMEdit = 2 Then
strsql = "SELECT MEMBER_ID FROM " & strTablePrefix & "LINKS WHERE LINK_ID= " & intLinkID
Set lrs = my_conn.execute(strsql)
If lrs.EOF Then
lrs.Close
Set lrs = Nothing
Response.Redirect("links.asp")
Else
lmID = lrs("MEMBER_ID")
lrs.Close
set lrs = nothing
End If
If lmID = getMemberID(Request.Cookies(strUniqueID & "User")("Name")) Then
AllowEdit = 1
End If
End If
If AllowEdit <> 1 Then
Response.Redirect("links.asp")
End If
< |
|
|
i011877
Junior Member
Denmark
169 Posts |
Posted - 25 August 2006 : 04:30:02
|
Hi all
Just implemented this splendid MOD on my forum without ANY problems. Running this on a WIN2003 with SQL2005, and all works perfect.
Altered the language to Danish and added a HOME to the navigationbar.
Thanks OneWayMule for this awesome work.
Demo @ http://www.myforum.dk/links.asp< |
|
|
|
i011877
Junior Member
Denmark
169 Posts |
|
i011877
Junior Member
Denmark
169 Posts |
Posted - 29 August 2006 : 03:24:01
|
Well it's only when viewing a comment, which I admit not to have tested.
I only wrote that the implementation were done without problems < |
|
|
|
OneWayMule
Dev. Team Member & Support Moderator
Austria
4969 Posts |
|
Topic |
|