New location of php code in ngg 2.x
-
I am currently searching where to put the code for voting in the new version. Unfortunately I updated ngg one day before my wife has a vote going on for her blog.
Thanks for your help
-
No voting on pop up yet… Dont know what I’m doing wrong
Got it to work with image caption but voting appears in both pop up and thumbnail
If you want the voting to be removed from the gallery thumbnails, just remove the tag from the gallery template.
The only thing you need to do to get gallery voting working, is turn the option on for the images you want, and be sure to have “Shutter” selected as the lightbox effect. But it sounds like you got that working.No I dont have it working… I do have option on and shutter selected but theres no voting on popup
I was able to put tag in the gallery-caption.php and it worked on popup and thumbnail but I dont want voting on thumbnail
I also put tag in the gallery.php and the voting activates for both thumbnail and popup but going through photos on popup view voting disappears after a few photos. I have to close then reopen popup and after a few photos again voting disappears
Hope my explanations help get to the bottom of the problem
If you don’t want it on the thumbnail, just remove the voting tag from gallery-caption.php
Yeah even when I remove tag from anywhere I have placed it voting doesnt work on popup…. it only works when I place the tag somewhere but it only shows on popup for a few photos and then I have to close and reopen. In the mean time voting is still showing on thumbnail as well. Only way I can get voting to show up on popup.
Hi Shaun! I am a novice at this, so I may need more of a step-by-step approach, but I am having a problem finding where to place the code. I am using single pic, so I assume the code I would use would be <?php echo nggv_imageVoteForm($image->pid); ?> and the Plugin file I would edit would be /nextgen-gallery/products/photocrati_nextgen/modules/nextgen_basic_singlepic/templates/nextgen_basic_singlepic.php, however I can not locate that anywhere. Here is a list of the plugin files. Any assistance you can give me with this would be appreciated. ?? Thanks! Bob
nextgen-gallery/nggallery.php
nextgen-gallery/pope/README.txt
nextgen-gallery/readme.txt
nextgen-gallery/changelog.txt
nextgen-gallery/index.html
nextgen-gallery/non_pope/class.photocrati_resource_manager.php
nextgen-gallery/non_pope/class.photocrati_cache.php
nextgen-gallery/non_pope/class.nextgen_shortcode_manager.php
nextgen-gallery/non_pope/class.photocrati_settings_manager.php
nextgen-gallery/non_pope/class.photocrati_installer.php
nextgen-gallery/non_pope/class.nextgen_style_manager.php
nextgen-gallery/non_pope/class.nextgen_settings.php
nextgen-gallery/license.txtAs far as I remember, there is no ‘singlepic’ in the new insert gallery interface in NGG v2. Are you still using the old
[singlepic]
shortcode in your page?Sorry Shaun. The display type I am using is NextGen Basic Imagebrowser. I’m confused on what code to add where. Thanks for your help! I’m really excited about this plugin and plan to upgrade after I get this part working. Thanks for all you do.
If you selected the “Select a display type” as “NextGEN Basic ImageBrowser”, there will be a drop down of “Templates” you can selected from the “Customize the display settings” options.
If you select NONE of the template options, NGG will use the
/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_basic_imagebrowser/templates/nextgen_basic_imagebrowser.php
template (please note, this template requires you have a permalink structure other than “Default” set in WordPress “Settings / Permalinks”)If you select the “imagebrowser-caption.php” template, NGG will use the
/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/ngglegacy/view/imagebrowser-caption.php
template (please note, this template requires you have a permalink structure other than “Default” set in WordPress “Settings / Permalinks”)If you select the “imagebrowser-exif.php” template, NGG will use the
/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/ngglegacy/view/imagebrowser-exif.php
template (please note, this template requires you have a permalink structure other than “Default” set in WordPress “Settings / Permalinks”)If you select the “imagebrowser.php” template, NGG will use the
/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/ngglegacy/view/imagebrowser.php
template (please note, this template requires you have a permalink structure other than “Default” set in WordPress “Settings / Permalinks”)Hi Shaun. I have the template selected as none, however I still do not see the templates listed that you show above. I am at a loss here. I am hoping to get this working, so I can buy the premium version. On a side note, when I activate the voting plugin, it causes an error with my NGG Public Uploader, which works perfectly when the voting plug in is deactivated. Would you mind looking at the site if I set up a username and password for you? It’s still in it’s very early stages, however getting this issue solved will help me keep moving forward on this. If you are ok with it, I can email you the site and user/password info. Sorry I am so new at this. I appreciate your patience.
I don’t really know what to tell you, those files are there in NGG v2. Just look at the file names carefully and follow the path.
I have had a few people complain about NGG Public uploader in the last few days. It hasn’t been updated in nearly a year, so I’m not sure it’s NGG 2 compatible. I will definitely have a closer look at it soon though, to see if I can find the issue that breaks its compatibility with NGG Voting
- The topic ‘New location of php code in ngg 2.x’ is closed to new replies.