Support Forum
1. Before today, I used simple press 4.3 but one day I could not access most parts of the admin section anymore. I could access the main pages (e.g. options) but not the sub pages that are displayed on the left side (nothing happened when I clicked on one of them).
Any idea why this was?
2. After installing version 5 my blog did not load. It hang when calling <?php sf_recent_posts_tag(5, true, true, true, true, 0, true); ?> when loading the side bar (I put this in to display a list of the latest 5 forum posts in the sidebar of my blog). (--> Fatal error, call to undefined function...)
I put out this line for now but I want to display that list, what to do?
3. I put in adsense code somewhere (long time ago). As it is gone now, can you point me in the right direction how that was done (do I have to use those hooks?)
4. Can I restore my old skin into v5? Can I copy it in?
5. Each page and post in my blog have some buttons at the bottom (e.g. for facebook like and follow on twitter). These are now in each forum post, too, this was not the case before. What to do to get rid of it?
thanks for any help
Ingo Raven said
1. Before today, I used simple press 4.3 but one day I could not access most parts of the admin section anymore. I could access the main pages (e.g. options) but not the sub pages that are displayed on the left side (nothing happened when I clicked on one of them).Any idea why this was?
There could be several reasons. If you upgraded your WP version but did not match the correct SP version with it then it could be that simple. Other plugins have also been known to cause conflicts if they load their scripts globally. We can usually discover the reason for that sort of behaviour.
2. After installing version 5 my blog did not load. It hang when calling <?php sf_recent_posts_tag(5, true, true, true, true, 0, true); ?> when loading the side bar (I put this in to display a list of the latest 5 forum posts in the sidebar of my blog). (--> Fatal error, call to undefined function...)
I put out this line for now but I want to display that list, what to do?
V5 is a complete and total rewrite. The tag still exists but it has a different name now and different calling methods. You will need to install the SP 'Template Tags' plugin. If your WP theme is set up for widgets then I would recommend using the one supplied in that SP plugin. (http://codex.simple-press.com/.....s/widgets/)
3. I put in adsense code somewhere (long time ago). As it is gone now, can you point me in the right direction how that was done (do I have to use those hooks?)
The old hooks are also gone but there is much, much more flexibility to enable things like this. Where did you want it to display? We can point you in the right direction.
4. Can I restore my old skin into v5? Can I copy it in?
No - as was stated on the V5 upgrade notes, Skins and Icon Sets are no longer supported in favour of themes and templates. Again - much more flexible. Take a look through the colour overlays as we have tried to match wherever possible V4 skin styles. (http://codex.simple-press.com/.....-overlays/)
5. Each page and post in my blog have some buttons at the bottom (e.g. for facebook like and follow on twitter). These are now in each forum post, too, this was not the case before. What to do to get rid of it?
thanks for any help
Every forum post? Not a good sign that it is well-written. is it possible to exclude it from the forum page?
YELLOW
SWORDFISH
|
Thanks for your response. See my reply to your suggestions below.
Yellow Swordfish said
Ingo Raven said
>>
2. After installing version 5 my blog did not load. It hang when calling <?php sf_recent_posts_tag(5, true, true, true, true, 0, true); ?> when loading the side bar (I put this in to display a list of the latest 5 forum posts in the sidebar of my blog). (--> Fatal error, call to undefined function...)I put out this line for now but I want to display that list, what to do?
V5 is a complete and total rewrite. The tag still exists but it has a different name now and different calling methods. You will need to install the SP 'Template Tags' plugin. If your WP theme is set up for widgets then I would recommend using the one supplied in that SP plugin. (http://codex.simple-press.com/.....s/widgets/)
<<
Widgets mess up my sidebar so I'd like to install it manually.
>>
3. I put in adsense code somewhere (long time ago). As it is gone now, can you point me in the right direction how that was done (do I have to use those hooks?)
The old hooks are also gone but there is much, much more flexibility to enable things like this. Where did you want it to display? We can point you in the right direction.
<<
I had one Adsense block below the first post in a thread and another below the last post.
>>
5. Each page and post in my blog have some buttons at the bottom (e.g. for facebook like and follow on twitter). These are now in each forum post, too, this was not the case before. What to do to get rid of it?
thanks for any help
Every forum post? Not a good sign that it is well-written. is it possible to exclude it from the forum page?
<<OK, I could disable the "Buy me a beer" for the forum page and that did the trick that this one is not displayed below each forum post. However, when I enable the facebook/twitter buttons for pages (which I need) it is displayed below each forum post, I did not find a way to exclude this one for the forum page.
due to improper quoting, not sure exactly what you are trying to say...
but if you want to use a tag or shortcode instead of the widget, use:
function sp_RecentPostsTag($args='');
or
function sp_RecentPostsShortcode($atts)
we are working to populate the codex with the complete api, but until then take a look at the code for the possible arguments - they mirror the widget... or just use the default...
how are the buttons added? shortcode? other?
Visit Cruise Talk Central and Mr Papa's World
We will really need to know what mechanism that plugin uses to decide when and where to display itself. Even then it might be a case of negotiating with the plugin author although there may be a workaround.
Give me a link to the plugin and I could download and install it to see if I can work it out. I may not be able to do this today however.
YELLOW
SWORDFISH
|
I worked around it by disabling the automatic display of the buttons and placed them manually now, so this solution works for me. I noticed the same behaviour with several plug-ins:
Twitter facebook social share: http://www.searchtechword.com/.....one-share/
buy me a beer: (no working plugin url anymore)
and another one I was messing around, don't remember which it was, possibly all that automatically display something on pages.
I got the other points sorted out by now, just the adsense is still not clear to me. I would like to have an add below the first and the last post of a thread.
I think the easist way then is to just add to your sp theme... you have made your own sp theme? (http://codex.simple-press.com/.....g-a-theme/)
so go to your sp theme and the template directory... edit the file spTopicView.php... find this line of code:
sp_SectionEnd('', 'post');
after it, do something like:
if ($spThisPost->first_post_on_page || $spThisPost->last_post_on_page) {
# my adsense code here
}
and then put your adsense code where indicated... note, depending on the format of your adsense code (ie js?), you may need to put closing and opening php tags (ie ?> and <?php) around it and add some styling...
Visit Cruise Talk Central and Mr Papa's World