Support has been upgraded!
The Support Forum is closed. Not to worry! Providing the top quality support you expect and we're known for will continue! We're not ending support, just changing where you submit requests. This will provide you with the best experience possible.
Premium Support
Have you purchased an addon for Connections such as one of our premium templates or extensions with a valid license and you need help?
Please open a Support Ticket in your user account.
Free Support
Are you using the free Connections plugin? Don't worry, you are still very important to us! We are still providing you with the same high quality support that we're known for.
Please open a new support topic in the WordPress support forums for Connections.
- This topic has 24 replies, 2 voices, and was last updated 10 years, 3 months ago by
Steven Zahm.
-
AuthorPosts
-
06/11/2015 at 12:13 pm #337092
Steven Zahm
Keymaster@ Lynn
Sorry, there so many replies I’m now kind of lost at to what actually needs answered now. I’ll do my best…
re: ! must have certain items on the gridder panel where it shows, The phone, email and social media icons. What I actually need there is the Owner (outfitter) First & Last Name, phone number, website link View Profile. I know view profile is at the bottom but I really need it at the top.
This can only be accomplished by editing the template’s PHP file.
re: All of that being said, where it says, view profile i will have to change that to say “View Hunt Information” I need it to link to a specific page within my site..
Also, this can only be done by editing the template’s PHP file. Also, removing this will remove the ability to view the profile page?
re: I need to do it like this because I cannot get all the details I need in your profile page.
Why? I looked at a this page, http://75.103.85.206/andre-van-hiltens-willow-creek-outfitters/. It seems that could be included in the bio area of the profile page. I guess I do not understand the end goal.
re: Steven, i think i’m almost there. i went back and read your message about custom links and i’m not quite sure where to put this;
If i add these Will these then show up on the “add entry” form in admin?
add_filters( ‘cn_link_options’, ‘cn_add_new_link_types’ );
function cn_add_new_link_types( $options ) {
$options[‘new_one’] = ‘New One’;
$options[‘new_two’] = ‘New Two’;
return $options;
}You need to install the Code Snippets plugin to add the filter. Rather than repeat the instructions, they are in this reply.
After you have successfully added the filter, yes, that will show up on the “add entry” form in admin.
re: Okay so i went into admin and added additional links but they all say Website:
The links you added were added as the Website link type. You should select your custom link types added by the filter. The the correct labels will be displayed.
06/11/2015 at 7:49 pm #337180Lynn Weintraub
ParticipantSteven, thanks for the reply,
I did edit the template PHP file, card.php and put it in uploads/connection-templates/gridder to make the changes to view profile and I added additional information in the panel. That all works perfectly.
The end goal is to have a separate page for each outfitter based on the species he hunts as well as a company listing. So Willow Creek will have a page with just his whitetail deer hunt information, his whitetail deer hunting photos and his whitetail videos. Same for bear and mule deer. Each of these listings will have SEO based on the species he hunts. I would like the main area to have the hunt details, featured image, slider & contact form and the side widgets with the photo gallery, Videos, Links to other listings, social media and link to website. I have not seen a way to have this particular layout in Connections. There are too many items on one page to have to scroll down forever to see it all that is why i must have the side widgets with all the “media” files.
Also, when the “bio” page loads it loads within the category so the URL has a lot of subfolders and the category description shows on every outfitter listing. See below:
So here’s the Black Bear Category Page: All the outfitters who advertise and hunt black bear will have a listing on here in the Gridder format. When a user clicks view profile I need it to go to that outfitter’s species page:
http://75.103.85.206/black-bear-hunting-alberta-canada/when you click on Willow Creek Outfitters “View Hunt Details” I need that to go to a page outside of Connections… http://75.103.85.206/andre-van-hiltens-willow-creek-outfitters-black-bear-hunting/
So in essence i need to be able to create a species page for a client and link their listing on the categoy page to that listing.Does that make any sense?
06/12/2015 at 9:27 am #337218Steven Zahm
Keymaster@ Lynn
Ok, I think I understand…
The View Hunt Details needs to be a dynamic link. This link show go to correct species page for a client based on which hunt category page is being viewed.
This could be done. My thought is you would add the the custom links types as explained using the filter. A second filter could be added to add a new shortcode option where you could set; bear, whitetail, muledeer and based on that setting render the link with the correct custom link. Will that get you what you need?
06/27/2015 at 1:03 pm #338808Lynn Weintraub
ParticipantHello Steven,
I had to put this aside for awhile while I build a website for a client. I’m back to this now and will be working on it for a bit today.To answer your question, YES! what you said is exactly what I need.
I installed the Code Snippet plugin and created a new snippet;add_filters( ‘cn_link_options’, ‘cn_add_new_link_types’ );
function cn_add_new_link_types( $options ) {
$options[‘bear’] = ‘black bear listing’;
$options[‘whitetail’] = ‘whitetail deer listing’;
$options[‘muledeer’] = ‘mule deer listing’;
$options[‘moose’] = ‘moose listing’;
$options[‘elk’] = ‘elk listing’;
$options[‘cougar’] = ‘cougar listing’;
$options[‘bison’] = ‘bison listing’;
$options[‘wolf’] = ‘wolf listing’;
$options[‘antelope’] = ‘antelope listing’;
$options[‘waterfowl’] = ‘waterfowl listing’;
$options[‘fishing’] = ‘fishing listing’;
return $options;
}I chose the option “use through entire site” (I didn’t know what to pick)
I then went to the new snippet i created and said, “Activate”It broke my entire site. Nothing loaded but white screen. I had to go to FTP and delete the entire code snippet plugin to get my site back.
I have no clue what I’m doing. Will you private email me at info@abhunting.com. It may be easier since this thread is getting so long!
Thank you!!
06/30/2015 at 10:25 am #339089Steven Zahm
Keymaster@ Lynn
Make sure all the quotes are single straight-quotes and not fancy-quotes. Also, the function name has to be unique. If it is not that would cause the site to crash. Like so:
add_filters( 'cn_link_options', 'cn_add_new_link_types_make_me_unique' ); function cn_add_new_link_types_make_me_unique( $options ) { $options['bear'] = 'black bear listing'; $options['whitetail'] = 'whitetail deer listing'; $options['muledeer'] = 'mule deer listing'; $options['moose'] = 'moose listing'; $options['elk'] = 'elk listing'; $options['cougar'] = 'cougar listing'; $options['bison'] = 'bison listing'; $options['wolf'] = 'wolf listing'; $options['antelope'] = 'antelope listing'; $options['waterfowl'] = 'waterfowl listing'; $options['fishing'] = 'fishing listing'; return $options; }You would choose the use through entire site option for the snippet.
Hope that helps.
11/01/2015 at 4:37 pm #352982Lynn Weintraub
ParticipantHi Steve… Been a long time! I’ve been super busy with other things and now i’m back at this again!
I have added this code to code snippets plugin and it continues to crash my site.
I need the Connections —> Add Entry to have additional options for links to other pages. So when I go to that form to add an outfitter it allows me to add something besides a website and blog. I’m really stuck and don’t know what to do at this point.add_filters( ‘cn_link_options’, ‘species’ );
function species( $options ) {
$options['bear'] = 'black bear listing'; $options['whitetail'] = 'whitetail deer listing'; $options['muledeer'] = 'mule deer listing'; $options['moose'] = 'moose listing'; $options['elk'] = 'elk listing'; $options['cougar'] = 'cougar listing'; $options['bison'] = 'bison listing'; $options['wolf'] = 'wolf listing'; $options['antelope'] = 'antelope listing'; $options['waterfowl'] = 'waterfowl listing'; $options['fishing'] = 'fishing listing'; return $options;}
Your help is appreciated!
Lynn
11/02/2015 at 12:05 pm #353094Steven Zahm
Keymaster@ Lynn
Oh, I see an error, it should be
add_filternotadd_filters. Try this version.add_filter( 'cn_link_options', 'cn_add_new_link_types_make_me_unique' ); function cn_add_new_link_types_make_me_unique( $options ) { $options['bear'] = 'black bear listing'; $options['whitetail'] = 'whitetail deer listing'; $options['muledeer'] = 'mule deer listing'; $options['moose'] = 'moose listing'; $options['elk'] = 'elk listing'; $options['cougar'] = 'cougar listing'; $options['bison'] = 'bison listing'; $options['wolf'] = 'wolf listing'; $options['antelope'] = 'antelope listing'; $options['waterfowl'] = 'waterfowl listing'; $options['fishing'] = 'fishing listing'; return $options; }11/02/2015 at 12:31 pm #353096Lynn Weintraub
ParticipantSteven, I wish that worked but it didn’t :(
I’m thinking of just changing this whole idea that I had for dynamic links and working within the parameters your program allows. It is really awesome and will serve what I need, just won’t have all the extra bells and whistles I was hoping to have.
Lynn
11/02/2015 at 12:54 pm #353098Lynn Weintraub
ParticipantOne other thing, how do i get rid of “name” in the URL?
http://75.103.85.206/black-bear-hunting-alberta-canada/name/willow-creek-outfitters/11/02/2015 at 1:02 pm #353100Steven Zahm
Keymaster@ Lynn
re: I wish that worked but it didn’t :(
Just tested the code, it does add the new link types. They do not show up under the Links Type option when adding/editing an entry???
re: how do i get rid of “name” in the URL?
Sorry, that is not possible. This is simple how the WordPress permalink structure is setup. however, you can change it on the Connections : Settings admin page under the Advanced tab.
-
AuthorPosts
You cannot reply to this support topic. Please open your own support topic.
