Arrow Home arrow Forums
larger font smaller font default font Fixed screen resolution Auto adjust screen size

Joomlapolis Forums  


<< Start < Prev 1 2 3 4 5 6 7 Next > End >>
Re:CB Helloworld Plugin (part 2)
Date: 2006/11/07 07:26 By: nant Status: Admin  
Karma: 462  
Admin

Posts: 5981
graph
jmedina wrote:
How do I make the "hello world" plug in display a link? Can you help with this?

What do you mean "display a link"?

Just a URL to a specific site?

Or something else?
Nick A.
CB Core Team Member
Support CB Development and Get Detailed Documentation
Developer of Nant's Gallery plugin
CB Gallery Extensions Listing, Rate CB Gallery on Extensions Site
Developer of CB AutoWelcome Plugin
CB AutoWelcome Extensions Listing,Rate CB AutoWelcome on Extensions Site
People ignoring your call for help? Read this!
FAQ you
Joomlapolis Extensions Directory (new)- check it out!
Click here to see the profile of this user The administrator has disabled public write access.

Re:CB Helloworld Plugin (part 2)
Date: 2006/11/07 07:35 By: jmedina Status: User  
Karma: 0  
Fresh Joomlapolitan

Posts: 15
graphgraph
Well what I am trying to do is make a simlpe plug in that links to a photo gallery.

Specifically I am trying to link to a search for the users name in zoom.

The idea is that the plugin would display 2 images (which are also links)

1)That will link to the zoom search for the username...

http://warzoneministries.com/home/index.php?option=com_zoom&page=search&type=quicksearch&sstring=jmedina&Itemid=99999999

but instead of jmedina I figure that I could use ".user->name."

2) A link to the zoom upload for the user. Obviously this wouldnt be visible to someone visiting a profile.

Maybe using the Hello world isn't the best choice. What do you think?
Click here to see the profile of this user The administrator has disabled public write access.

Re:CB Helloworld Plugin (part 2)
Date: 2006/11/07 07:47 By: nant Status: Admin  
Karma: 462  
Admin

Posts: 5981
graph
Yeah, its not.

I suggest you study the zoom CB plugin and see how it functions. Displaying a link is very easy to do - everything else you are thinking of is not as straightforward.

If you are trying to do this as a learning experience, I suggest you start with something easier.

If you need it for your site, I suggest you find a freelancer to help you out.
Nick A.
CB Core Team Member
Support CB Development and Get Detailed Documentation
Developer of Nant's Gallery plugin
CB Gallery Extensions Listing, Rate CB Gallery on Extensions Site
Developer of CB AutoWelcome Plugin
CB AutoWelcome Extensions Listing,Rate CB AutoWelcome on Extensions Site
People ignoring your call for help? Read this!
FAQ you
Joomlapolis Extensions Directory (new)- check it out!
Click here to see the profile of this user The administrator has disabled public write access.

Re:CB Helloworld Plugin (part 2)
Date: 2006/11/07 07:57 By: jmedina Status: User  
Karma: 0  
Fresh Joomlapolitan

Posts: 15
graphgraph
Thanks for the response.

I tried the zoom tab, and it didnt suite my needs. all the user's images are in the same gallery so when you click on an image it takes you to the everyone's photos. I know that there is a way to link it to the individual image but I dont want to hack zoom to do this.

I do need it for the site but I was hopeing to learn in the process.

I didn't think it was as difficult as your telling me it is.

I figured to have a plug in that displayed 2 links should be a piece of cake

I can code it in HTML, but I am getting hung up on all the escapes and different thing you have to do to integrate it into a plug in.

Can you give me an example of how to make a plug in that just displays a generic link? I can work on makeing that link the right zoom link and work on adding the image.
Click here to see the profile of this user The administrator has disabled public write access.

Re:CB Helloworld Plugin (part 2)
Date: 2006/11/07 11:40 By: nant Status: Admin  
Karma: 462  
Admin

Posts: 5981
graph
Just look at the Helloworld plugin - it returns HTML code.
So just add the HTML code you need to the $return variable.
Nick A.
CB Core Team Member
Support CB Development and Get Detailed Documentation
Developer of Nant's Gallery plugin
CB Gallery Extensions Listing, Rate CB Gallery on Extensions Site
Developer of CB AutoWelcome Plugin
CB AutoWelcome Extensions Listing,Rate CB AutoWelcome on Extensions Site
People ignoring your call for help? Read this!
FAQ you
Joomlapolis Extensions Directory (new)- check it out!
Click here to see the profile of this user The administrator has disabled public write access.

Re:CB Helloworld Plugin (part 2)
Date: 2006/11/07 15:56 By: jmedina Status: User  
Karma: 0  
Fresh Joomlapolitan

Posts: 15
graphgraph
I tried that!

It's not as simple as just adding the code after the return variable. There is all kinds of escapes involved.

I usually don’t post in the forum until I have exhausted my resources.

I read the API documentation about URLs and it said something about using a getParm variable, but to he honest that document is just over my head a bit. Can you give me an example of displaying a link in a plug-in.

In other words can you post the code, where I can just copy and paste it into the hello world 2 plug-in and get a link? I think I can take it from there.
Click here to see the profile of this user The administrator has disabled public write access.

<< Start < Prev 1 2 3 4 5 6 7 Next > End >>

Documentation

Documentation Subscription Service
(updated for CB 1.2 RC2)

What?

Why?

Where?

Just click here for answers!

Click here for a yearly subscription: subscribe now

Download Latest Release

The latest stable Community Builder Release is version 1.1 for Joomla 1.0 and Mambo.
You need to be a registered member of Joomlapolis to download.

The latest release candidate of Community Builder is version 1.2 RC3, native for Joomla 1.0, 1.5 and Mambo.
It is available as "thank you" to all CB documentation subscribers at this time.

CB Login