Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Montezuma Theme »

wp-voting & montezuma


  #1  
Old Mar 29, 2013, 07:05 PM
tdhz77
 
3 posts · Mar 2013
I've had mixed results using php-exec plugins to get wp-voting to show up on the index.php and single.php to work.

I was able to get the voting to work when I edited comments.php.

The problem with php-exec is two fold. One, My site allows users to submit stories, so I don't want registered users to be able to write php into the post. Second, php exec as a widget shows up on homepages/posts and I don't want users to vote on those sites.

Is there anything else I could do to ensure that this works.

Adding <?php if(function_exists('wpv_voting_display_vote'))
wpv_voting_display_vote(get_the_ID()); ?>

to single.php or index.php does not work from admin or from an edited file through ftp.

Thanks.
  #2  
Old Mar 29, 2013, 07:40 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
use one of the php widgets like 'php code widget' it just runs php in the widget. Then you could also use 'widget logic' to control when teh other widget shows up.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Mar 29, 2013, 09:44 PM
tdhz77
 
3 posts · Mar 2013
Thank you for your quick response. That is certainly a solution, however if I want the voting to be position next to the title and not in a widget, why does editing index.php or single.php not work like editing comments.php? I assume because comments.php is in the root and index.php and single.php are nested in the child theme. As a matter of education and knowledge could you point me to some resource or perhaps what to google, so that the theme will run new php code from within these plugins? Thank you.
  #4  
Old Mar 30, 2013, 04:02 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Are you editing the physical or virtual templetes?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #5  
Old Mar 30, 2013, 10:13 AM
jerryc
 
367 posts · Oct 2012
Florida
Quote:
Originally Posted by tdhz77
I want the voting to be position next to the title and not in a widget
To make them side by side, use the MZ grid. If you don't put a title on the widget, and style the css so it lays out how you want, only somebody looking at your source code will know it's in a widget.

Quote:
why does editing index.php or single.php not work like editing comments.php?
I had problems with getting index.php to work, too. Juggledad suggested I make new template called front-page.php and use it instead. I don't know what the difference is, but it works perfectly. I'm only using WP as a CMS for pages, so I can't tell you anything about single.php.
  #6  
Old Mar 31, 2013, 01:17 AM
tdhz77
 
3 posts · Mar 2013
I much prefer to edit the file templates and not the virtual. Most importantly because for whatever reason I can't use copy paste. However, I've made edits using both, but only had luck using the virtual.

That's good advice on front-page.php. Thank you very much, for the advice. I will try this as soon as I can.
  #7  
Old Mar 31, 2013, 01:51 PM
lmilesw's Avatar
lmilesw
 
10,176 posts · Jul 2009
Central New York State USA
If you edit other than the virtual templates they will not survive a theme upgrade. This theme is build with the idea of just editing the virtual templates.

How are you trying to copy and paste? It works fine for me.
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.

Bookmarks



Similar Threads
Thread Thread Starter Forum Replies Last Post
Montezuma & Woocommerce Help windswept321 Montezuma Theme 5 Feb 18, 2013 05:41 AM
Montezuma-Where's the Editor? tricia Montezuma Theme 3 Feb 15, 2013 09:41 PM
Montezuma in Safari brilla Montezuma Theme 5 Jan 1, 2013 04:20 PM
[SOLVED] Montezuma 2.0 for WP 3.x delware99 Other BFA WordPress Themes 2 Jan 20, 2011 03:33 PM
A query on customizing the byline in config to allow external voting for a permalink stribe Post-Kicker, -Byline & -Footer 9 Feb 15, 2009 06:10 PM


All times are GMT -6. The time now is 12:35 PM.


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.