[Solved] on my serendipity

Creating and modifying plugins.
Post Reply
xiaoxue
Regular
Posts: 37
Joined: Wed Sep 13, 2006 5:25 pm
Location: singapore

[Solved] on my serendipity

Post by xiaoxue »

I have an other question

Blog Administration Solved
Provides a link in the sidebar to your blog administration
Author: Serendipity Team; version: 1.0
this add on when i choose the permission nick to me xiaoxue means only after i have login the blog administration will be able to use am i right?

I dont seems it working. Other can see the link. Is there anyway to hide this addon to others but only admin can see it?
Solved
my 2nd help is after you have post a comments you will see a msg say "Your comment was successfully added." this msg. When i try to click the reply on my comments or others coments i have this error msg
Line 498 Solved
char 1
error 'document.getElementByld(...)' is null or not an object
code 0
url: myurl.com/ser/index.php?url=archives/12-talk-place.html&serendipity(csuccess)=true
last help is i turn the comments open to all. Is there a way to stop someone using admin name or like my name xiaoxue in the comments.
Last edited by xiaoxue on Wed Oct 11, 2006 10:45 am, edited 3 times in total.
Image
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: [Request help] on my serendipity

Post by garvinhicking »

Hi!

For that plugin to only show the link for admins, you need to modify the plugin. Edit the file /include/plugin_internal.inc.php.

Search for this:

Code: Select all

echo '<a href="' . $link . '" title="'. $text .'">'. $text .'</a>';
and replace it with:

Code: Select all

if (serendipity_userLoggedIn()) {
  echo '<a href="' . $link . '" title="'. $text .'">'. $text .'</a>';
} else {
  return false;
}
my 2nd help is after you have post a comments you will see a msg say "Your comment was successfully added." this msg. When i try to click the reply on my comments or others coments i have this error msg
Yes, sadly this is a wrong link, because when you get that message, the comment form is not yet available. The "reply" link would need to be changed in that case, but this is template specific and hard to solve generally...
last help is i turn the comments open to all. Is there a way to stop someone using admin name or like my name xiaoxue in the comments.
Yes, you can install the plugin "User Self-Registration". In that plugin you can enable the option "Prevent Identity faking" which will prevent users from using usernames that are already taken.

Best regards,
GArvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
xiaoxue
Regular
Posts: 37
Joined: Wed Sep 13, 2006 5:25 pm
Location: singapore

Post by xiaoxue »

hi thanks for the reply. should give u 100 point for the helping hand xD I will give a try on the 2 issue u mention to me.

my 2nd help is after you have post a comments you will see a msg say "Your comment was successfully added." this msg. When i try to click the reply on my comments or others coments i have this error msg


Yes, sadly this is a wrong link, because when you get that message, the comment form is not yet available. The "reply" link would need to be changed in that case, but this is template specific and hard to solve generally...
you refering to the template im using? bex02?I did try on the default serendipity template i do have the same problem too .

or u trying to tell me this happen to all template?

~_~ sorry forgive me im noob xD

have a nice day to you garvinhicking and all chatters xD
Last edited by xiaoxue on Tue Oct 10, 2006 10:16 am, edited 1 time in total.
Image
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

No, this is not a bex02 problem, this is a problem of all templates I know off. I don't know of any template that has this different/proper. :(

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
xiaoxue
Regular
Posts: 37
Joined: Wed Sep 13, 2006 5:25 pm
Location: singapore

Post by xiaoxue »

garvinhicking wrote:Hi!

No, this is not a bex02 problem, this is a problem of all templates I know off. I don't know of any template that has this different/proper. :(

Best regards,
Garvin
ohh ok so i know what u means. sorry for mistake you. ok I have solve the admin issue.


===============================================
about the "User Self-Registration" i think maybe i did not stats clear what im trying to say. Im refering open to all means without register with my blog anyone can post a comments. But i want to stop some visitor who is trying to use the admin name. eg: in the blog 1 comments by xiaoxue orginal xiaoxue and happen the 2 comments is by xiaoxue too but different person. is there a way to prevent all this happen?

>.< sorry for my bad explain xP

have a nice day thanks
Image
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!
about the "User Self-Registration" i think maybe i did not stats clear what im trying to say. Im refering open to all means without register with my blog anyone can post a comments. But i want to stop some visitor who is trying to use the admin name. eg: in the blog 1 comments by xiaoxue orginal xiaoxue and happen the 2 comments is by xiaoxue too but different person. is there a way to prevent all this happen?
Yes, this plugin is able to do what you want. it offer more functionality than you need, but you can disable the possibility that users register themselves, and just enable the option for identity-preventing.

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
xiaoxue
Regular
Posts: 37
Joined: Wed Sep 13, 2006 5:25 pm
Location: singapore

Post by xiaoxue »

garvinhicking wrote:Hi!
about the "User Self-Registration" i think maybe i did not stats clear what im trying to say. Im refering open to all means without register with my blog anyone can post a comments. But i want to stop some visitor who is trying to use the admin name. eg: in the blog 1 comments by xiaoxue orginal xiaoxue and happen the 2 comments is by xiaoxue too but different person. is there a way to prevent all this happen?
Yes, this plugin is able to do what you want. it offer more functionality than you need, but you can disable the possibility that users register themselves, and just enable the option for identity-preventing.

Best regards,
Garvin
ar im so stupid by reading the info and never give a try and cause you to take the time to reply me. Im very sorry.

Really thanks alot to your replys.

regards

xiaoxue
Image
Post Reply