A query on customizing the byline in config to allow external voting for a permalink
Hi all:
That's a rather convoluted long title.. but I was trying to be descriptive as I could be. What my situation is with this is as follows: I'm attempting to help a blogger friend put in a piece of code in her byline that will allow people to "vote" for the blogpiece at an external aggregator (as mentioned here) When I was trying to set this up in the configuration for the Atahualpa 3 theme, it looked to me that it would best fit in the Byline:Homepage section. What I've currently got in there is this: PHP Code:
HTML Code:
http://www.progressivebloggers.ca/vote/<?php the_permalink() ?> So.. I'd like to know what I actually need to put in there so that Atahualpa knows I'm trying to point it at the specific permalink for each different and new blogpost. Thanks for any assistance. |
Addenum: I note in Flynn's "to-do" list on here for Version 3.2.1 of this theme, I see he's added the following:
Add post info item "permalink URL of post" ..which is probably directly related to my question. I was going to try to put %link% in where php the_permalink ()?> is located to see if that would list the permanent link in the line for people to be able to vote.. but perhaps thats's not the right syntax. So.. any other suggestions what bit of php code might work in there? |
There's currently no permalink option in the post info items. I'll put it on my todo list and try to get it into the next version
At the moment you would have to find, at the bottom of functions/bfa_postinfo.php PHP Code:
PHP Code:
|
Hi Flynn:
Well, I found that file and added what you suggested, but the code fails to show up on her page either above her posts in the byline or below the posts in the footer. (Note: I removed that particular code out of her byline and had left it as it was originally, which was: PHP Code:
|
Addenum: I thought maybe the problem was you might have added some extra "." in that code you asked me to add (ie $postinfo.= etc etc) , but removing them didn't fix the issue either.
|
Hi Flynn:
Just for the heck of it, I tried a few other things. I tried changing the part of the code line that reads $post_permalink to this: PHP Code:
So, I've done all that I can here, Flynn. I'm stumped.. unless perhaps there is something that needs to be changed elsewhere (ie in the main index template php file?) for this additional code to work and show up in her byline. |
I am sorry, I gave you a slightly wrong place to add the code. Please check the post above again, I've corrected it.
|
Right now that code would be appended to ANY post footer. You'd have to wrap it into conditional statements to display it only on certain pages.
To display it only on single post pages PHP Code:
|
Quote:
Actually.. Id like it on all post pages.. both on the front pages and single post and so on. |
Quote:
Hi Flynn: I was going to say that looked exactly like what you sent me before.. but I see now that its below the bracket.. THat appears to have done the trick!!! Thanks a lot. |
All times are GMT -6. The time now is 08:19 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.