Thursday, February 09, 2012
   
Text Size
Login

Follow me on...

  • Facebook Page: Stalker-and-other-extensions-for-Joomla/134450346612703
  • Twitter: texinick
  • FriendFeed: texinick
  • Xbox Live: texboxnick
  • Picasa: 110636496964515135828
  • YouTube: thetexinick
  • Orkut: 14567036417118626238
  • Google Reader: 09999971611905401066
  • Plurk: texinick
  • Jaiku: texinick
  • Kwippy: texinick
  • LastFM: texinick
  • Linked In: texinick
  • Linked In Group: 52867
  • Meet Up: 9883550
  • External Link: extensions.joomla.org/extensions/owner/texinick/1
  • Google Profile: 100492759863600828297

My last JoomPing update...

Easy like Sunday mooooorning...
- 14/02/10 @ 09:13

Please Donate...

If you like my Joomla Extensions, please consider donating toward continued support & development.

Amount:   
 Forum :: Stalker for Community Builder
Welcome Guest   
ANNOUNCEMENT: New Home for Stalker, TalkToMe and JoomPing!   by admin on 2011-08-02 23:07:13
 Subject :Add new icon etc.. 2010-04-21 20:15:44 
chaos
Fresher
Joined: 2010-04-21 10:10:26
Posts: 3
Location

Hi there,

I've installed the latest component, module, plugin and community builder plugin (didn't know if i needed then all so installed them all anyway).

I've added a new field in CB for a new social site and whilst it shows in the user profile edit screen nothing shows on the front end, further more, there's no where that i can easily see where i can specify an image for this new field.

I've tried creating the new social link in the 'social networks' and 'my social links' areas of the component but again this isn't working, any ideas please?

Ta

IP Logged
 Subject :Re:Add new icon etc.. 2010-04-22 02:07:19 
admin
Fresher
Joined: 2008-02-06 11:56:01
Posts: 200
Location

Hey Chaos,

Ok, firstly, the CB plugin is completely standalone, so you don't need the component installed. The component is only needed in conjunction with the plugin and the module.

If you want to add a new site to the CB plugin, you really need to modify the code.  You need to add a line to the stalker.php file (you'll see an array of existing sites in there), and you need to add the parameter into the stalker.xml file.  The icon would need to be ftp'd up to the /plugins/community/stalker/images folder.

If you have any dramas, then please let me know and I'll give you a hand.

All the best

IP Logged
 Subject :Re:Add new icon etc.. 2010-04-22 06:10:59 
chaos
Fresher
Joined: 2010-04-21 10:10:26
Posts: 3
Location

OK, got it sorted but it was a bit more involved than first thought, so for the benefit of others, here's the gig:

1. Create new field in CB - Make sure that what every you want the field to be you finish the name with 'name', for example, if you wanted to be followed on google, rather than putting google into the field name box you need to put in googlename as the stalker.php looks for fields ending with name, forget this and it doesn't work.

You'll note that Community Builder has already added cb_ infront of this, this is where the main problem lies as i found

2. Edit the stalker.php and stalker.xml files, there are 3 edits you'll need to make.

Within the php file you'll need to duplicate a block of text that looks like this:

array ("youtube",         "YouTube",             "http://youtube.com/#id#",                             "youtube.png"),

And then edit the various bits to represent your new icon parameters.

Within the xml file you'll need to duplicate the following and apply edits as required:

Your icon name and location.

<filename>images/youtube.png</filename>

The code for said icon in CB (please note point 3 below):

<field name="st_youtubename" type="text" default='' title="YouTube Username" description="Enter your YouTube username" registration="0" readonly="0" profile="0" />

3. IGNORE the name you were given by CB for the field, by default it will have become cb_googlename, that won't work as the stalker.php file looks for st_ prefixed fields! So, where in the above code you'd expect to replace st_youtubename with cb_googlename use st_googlename instead.

4. FTP the files and the new icon to your server.

5. Open PHPmyadmin and find your newly created field, open them and edit the cb_ prefix to st_ and make sure that they are indicated as being part of the stalker plugin by editing the plugin number.

6. Go to the CB field manager and open the fields, they will show that they have been changed to an st_ prefix, but unless you open them and then save them in the CB backend they don't seem to work properly on the front end.

It may look complicated but it really isn't and you should have your new icon working in about 5 - 10 minutes

Hope that helps someone along the way

IP Logged
 Subject :Re:Add new icon etc.. 2010-04-22 06:55:13 
admin
Fresher
Joined: 2008-02-06 11:56:01
Posts: 200
Location

Thanks for that detailed update Chaos.

Of course, it would be even better if I could somehow figure out how to integrate the CB Stalker plug in with the Stalker Component... I really must try and look into this, and see if there is a way.  It would make life so much simpler.

All the best

IP Logged
Page # 


Powered by ccBoard


Login