Форумы / Cotonti / Extensions / Ping

how do I setup the ping plugin

blackcitys
#1 20.05.2009 04:15
I am trying to setup ping plugin. I have installed plugin and created account at ping.fe but where do I cite the tags given?
pieter
#2 20.05.2009 21:38
Tags available are:
{PINGFM_POST_METHOD} - Status/Blog/Mini-Blog
{PINGFM_POST_DATE}
{PINGFM_POST_SERVICES_NAMES} - services as text
{PINGFM_POST_SERVICES_ICONS} - services as icons
{PINGFM_POST_SERVICES_FULL} - services as icons and text
{PINGFM_POST_TITLE} - for blogs only
{PINGFM_POST_BODY}

These are for index.tpl
You can find these info in the php files.
Here: See pingfm.index.php
[BEGIN_SED_EXTPLUGIN]
Code=pingfm
Part=index
File=pingfm.index
Hooks=index.tags
Tags=index.tpl:{PLUGIN_PINGFM}
........................
	'PINGFM_POST_METHOD' => strtoupper($post['method'][0]) . substr($post['method'], 1, -1),
	'PINGFM_POST_DATE' => @date($cfg['dateformat'], $post['date']['unix'] + $usr['timezone'] * 3600)." ".$usr['timetext'],
	'PINGFM_POST_SERVICES_NAMES' => implode($cfg['plugin']['pingfm']['delim'], $srv_names),
	'PINGFM_POST_SERVICES_ICONS' => implode($cfg['plugin']['pingfm']['delim'], $srv_icons),
	'PINGFM_POST_SERVICES_FULL' => implode($cfg['plugin']['pingfm']['delim'], $srv_full),
	'PINGFM_POST_TITLE' => $post['title'],
	'PINGFM_POST_BODY' => empty($cfg['plugin']['pingfm']['username']) ? $post['body'] : $cfg['plugin']['pingfm']['username'] . ' ' . $post['body']
... can we help you ...
Trustmaster
#3 20.05.2009 23:27
Actually, in index.tpl you just insert {PLUGIN_PINGFM}. And all those tags are for plugins/pingfm/tpl/pingfm.tpl.
May the Source be with you!
blackcitys
#4 21.05.2009 09:49
Ok, thanks, it looks like its working but I am getting some extra output:

[XTemplate]

* [] (skins/sed-light/pingfm.tpl) does not exist

* parse: blockname [PINGFM.PINGFM_POST] does not exist

* parse: blockname [PINGFM.PINGFM_STATUS] does not exist

* parse: blockname [PINGFM] does not exist

Then below this is the ping link which does bring me to the correct page. But what is this extra output?[/]
Trustmaster
#5 21.05.2009 11:54
Try copying plugins/pingfm/tpl/pingfm.tpl to skins/sed-light/pingfm.tpl and see if it disappears
May the Source be with you!
blackcitys
#6 21.05.2009 21:45
Ok now it works. Thank You. Seeing how it only works for admin is there a more descrete place I can place the tags so Only I seee it?
Trustmaster
#7 21.05.2009 21:47
Why would you need this plugin if you don't want to show your blog/status posts to anyone else?
May the Source be with you!
Lombi
#8 21.05.2009 21:57
Right. You can post much more easily via your chat client or via email.
<a href="http://www.domenlo.com">Surreal Art</a>
blackcitys
#9 21.05.2009 23:13
Thank you. Basicly I would like to keep it on the administration page under tools - but then again I could make it available to only a specific group to show on index.php if I wanted to?

Thank you

Is it also possible to duplicate the plugin by changing its name to have multiple ping strings for different blogs?
Отредактировано: blackcitys (21.05.2009 23:17, 14 лет назад)
Lombi
#10 21.05.2009 23:51
With a little bit of hacking you can do both.

The first one is incredibly simple really, just do an if usergroup=whatever then parse, otherwise dont

The other bit is more "difficult" since you'd have to make each part of the plugin unique so to not fight with each other.
<a href="http://www.domenlo.com">Surreal Art</a>
Trustmaster
#11 22.05.2009 00:37
You need to set permissions for this plugin, go to admin.php?m=rightsbyitem&ic=plug&io=pingfm and remove all the permissions from any groups except for those you want to see it.

Multiple plugin instances are not available out of the box, though you could try renaming the plugin and all the codes within it. But if you just need multiple blogs, why not add them to the same Ping.fm account? If you really need multiple Ping.fm accounts, then you have to perform this annoying find&replace operation to make the same plugin with a different name. I could also make a multi-user version of it, so that your users could concentrate their pings on your site, but there has been no such a request so far.
May the Source be with you!