CB Helloworld Plugin (part 2)

17 years 5 months ago #24089 by nant
Replied by nant on topic Re:CB Helloworld Plugin (part 2)
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?

Please Log in to join the conversation.

17 years 5 months ago #24093 by jmedina
Replied by jmedina on topic Re:CB Helloworld Plugin (part 2)
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...

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?

Please Log in to join the conversation.

17 years 5 months ago #24097 by nant
Replied by nant on topic Re:CB Helloworld Plugin (part 2)
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.

Please Log in to join the conversation.

17 years 5 months ago #24100 by jmedina
Replied by jmedina on topic Re:CB Helloworld Plugin (part 2)
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.

Please Log in to join the conversation.

17 years 5 months ago #24111 by nant
Replied by nant on topic Re:CB Helloworld Plugin (part 2)
Just look at the Helloworld plugin - it returns HTML code.
So just add the HTML code you need to the $return variable.

Please Log in to join the conversation.

17 years 5 months ago #24126 by jmedina
Replied by jmedina on topic Re:CB Helloworld Plugin (part 2)
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.

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.224 seconds