|
|
|
|
|
|
#1
|
|||
|
|||
|
WP Side Bar Hacking Problem
Hello All: I am trying to take advantage of the "Blog Trade" plugin for WP and am having trouble (as usual). I followed all the steps put forth by the Wankmaster in the readme, everything seems set inside of WordPress. I then went to Presentation, Theme Editor, and then selected sidebar.php. I insterted the following code (just picked a spot, as I am clueless of where it should actually go).
<li> <?php _e('<h2>Toplist</h2>'); ?> <ul> <?php function blogtrade_output($url,$name,$count) { echo '<li><a href="' . $url . '"' . 'target="_blank"' . '>' . $name . '</a></li>'; } blogtrade_show(); ?> </ul> </li> When I go to my site it does not show up. I am wondering though, when I scroll through the sidebar file, even though it is way above my head at the moment, the code seems to be what the default sidebar that came with the template. Since I started rearranging it with widgets and where I want things, those items are not listed in this file, so I am wondering if there is another side bar file that is my customized settings? Thanks for any insight. |
|
#2
|
||||
|
||||
|
Depending on your theme, there may well be more than 1 sidebar file. Also, if you are editing from WP Admin --> Presentation --> Theme editor, you will need to make sure that the files you are trying to edit are writable. If you have a host with 1 click install, then they probably already are. However, if you installed WP yourself, then you may have to adjust the file permissions in order to edit using the Theme Editor. When you open the Theme Editor, look to the bottom of the page. If you see "If this file were writable, you'd be able to edit this." or something to that effect, then it's a permissions problem. If you don't see that, then it's something else.
|
|
#3
|
|||
|
|||
|
Thank you. I did check to make sure I have the permsissions to edit the file this way and that seems to be good (as I have seen that message you mentioned above on another blog I had permission issues with). It does save the changes.
I looked in the folder and subfolders to see if I could find another sidebar.php file and do not (unless it is located somewhere else and I didn't find it yet). I notice that the sidebar.php file is dated the same date that I installed word press, not the date that I edited the file (although my changes are saved if I reopen the file). Also, when I edit the sidebar file - I see like Calendar stuff (which is in the default view with the Theme before I moved Calendar out and put down in the unused section of widgets). So, I am guessing it is another file, but it seems to be a mystery of what it is or where it is. Thanks for any insight. |
|
#4
|
|||
|
|||
|
Quote:
Correction on that the date is the same as when I installed the theme. The date does reflect that sidebar.php was modified on 7/26/07, which is when I inserted the code. I only see one sidebar.php in that folder, so again, I am sure there is another portion of all the custom widgets I have inserted and where I probably need to add this blog trade code.... but where? Thanks |
|
#5
|
||||
|
||||
|
Which theme are you using? Do you know the link to download the theme?
|
|
#6
|
|||
|
|||
|
Quote:
|
|
#7
|
||||
|
||||
|
Ok, I found it. I'll take a closer look at it tomorrow and see if I can help you out at all. At a quick glance, both the left and right sidebars are in that sidebar.php file. I don't know much about the widget thing, so I don't know if that's causing you any problems or not.
|
|
#8
|
||||
|
||||
|
Most of the time, if you are using widgets, the static changes you make in the file won't show up. Turn off the widgets and you will be fine.
__________________
Go Fuck Yourself! |
|
#9
|
|||
|
|||
|
Quote:
Or are you saying you can turn the widgets off - (which, I am not sure where or how to do this) - then make the coding change in the file, and turn widgets back on to restore my current configuration? Thanks |
|
#10
|
||||
|
||||
|
Quote:
However, you can not use both widgets and the static content in the sidebar file (i think). Why not just leave the widgets, and put the hardlinktrade in the footer file? It is mainly for PR purposes anyway, right?
__________________
Go Fuck Yourself! |
|
#11
|
||||
|
||||
|
You can use widgets on the sidebars you want and it won't affect the sidebars you aren't using them on and you can still hack your other sidebar with the toplist code.
This goes for that particular toplist code as I'm doing that now. Not sure about other types of hacks
__________________
LINK EXCHANGE PAGE! MY LINK EXCHANGE TRADE PAGE ICQ 278-804-660 smutnut(AT)smutnut.org |
|
#12
|
||||
|
||||
|
Quote:
Not sure yet how they'll affect seo
__________________
LINK EXCHANGE PAGE! MY LINK EXCHANGE TRADE PAGE ICQ 278-804-660 smutnut(AT)smutnut.org |
|
#13
|
||||
|
||||
|
Just quickly reading about widgets, it seems that making "text widgets" is really easy. There is a plugin that works kind of like text widgets, but allows for execution of PHP code in it. I think that if you use this plugin, put the blogtrade code in it, then you should be able to move it all around just like a text widget and have it show on your side bar no problems.
Here is the plugin, take a look at it and see if it seems like it might help. http://ottodestruct.com/blog/2006/04...-with-widgets/ Look for the ExecPHP plugin. |
|
#14
|
|||
|
|||
|
Quote:
<?PHP // Do you want to remove the footer links in Finishing Touch // Please purchase a branding free license // Over at http://www.theme-time.com/26/ ?> When I added the code earlier in the post, it did not show in the footer, still just shows copyright info, etc. So I think it is "locked down"? So, I think I am still stuck without going through them with a branding license (which I don't know about yet)? I appreciate your input. Thanks |
|
#15
|
|||
|
|||
|
Quote:
|
|
#16
|
||||
|
||||
|
The branding license is just what he does so people buy the template.
I use the "mind break" template from the same guy. I paid the $10 and he sends you a zip without the extra links. You can remove them yourself, but at least pay the $10 first if you can afford it. For long term, I would say pay the $10 and remove the links. Having those random outbound links for home decor or whatever it is looks weird on a porn blog. Plus it might hurt your SEO. |
|
#17
|
|||
|
|||
|
Quote:
|
|
#18
|
|||
|
|||
|
Quote:
|
|
#19
|
||||
|
||||
|
Glad it worked for you. BTW, got your email.
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|