tictok
Forum Replies Created
-
Forum: Alpha/Beta/RC
In reply to: Static home page not showing 3.1What are the locations of your frontpage template files?
It’s in the root of theme folder (same folder as index.php and other theme template files)
Also discovered that is_home() or is_front_page() doesn’t appear to detect or recognise the homepage either. (I tried a conditional check with my theme to load a different template page when on the home page… didn’t work either).
It’s as if the post page is overriding / replacing the static homepage.
I’ll try a few more things this evening to double check (different templates, older no-beta version of wordpress etc) and report back
cheers
StefForum: Alpha/Beta/RC
In reply to: Static home page not showing 3.1Hi there –
I think I’m having the same issue with WP 3.1-beta2
However the lack of static front page issue only seems to occur when using a custom permalink such as /%category%/%postname%/
Reading settings:
A static page (select below)
Front page: Homepage
Posts page: Blogpagehomepage template name ‘myfrontpage’ and file name ‘myfrontpage.php’
wp-admin/options.php
page_for_posts 11
page_on_front 128
show_on_front pageGoing now to try the theme on a 3.0.3 wordpress install
Cheers
StefForum: Plugins
In reply to: Display Tags Like Categories on Add Post Screen?Figured out a solution that works for me.
Create a custom taxonomy – there are loads of great tutorials if you google and probably enough info in the codex
Ensure that witih-in your new taxonomy ‘hierarchical’ => true,
The taxonomy is now displayed and works like a category (with checkboxes in the post write panel)
Works for me!
Forum: Plugins
In reply to: Display Tags Like Categories on Add Post Screen?Looking for a solution too. Please post if you have one!
I have a custom taxonomy, with a tag for each of 10 products.
I’d like admin users to be able to select from these 10 products only (like using the checkboxes in categories).I guess the simplest option would be if tags wete displayed in the write post page like categories are – checkboxes.
Thanks for any help!
Forum: Networking WordPress
In reply to: List which sites a multisite user belongs to?hey –
Yep, its not pretty without any styling. You’d have to maybe wrap the php code in a div or some other markup and style the output with CSS.
As for widgets, try this one;
https://www.ads-software.com/extend/plugins/wp-php-widget/Haven’t tried it myself, so can’t guarantee it’ll work, but it appears to allow you to include PHP code, template tags etc within the widget.
Good luck!
Forum: Networking WordPress
In reply to: List which sites a multisite user belongs to?Exactly as Andrea_r says, wherever you want the list to show.
It depends upon the templates or theme you are using and which page you want the list to appear on. It’ll probably be a little bit different for everyone. It’s really impossible to show you where without see your theme / templates and you deciding where you want the list to be displayed.
You will need to at least be a little comfortable either editing or creating template files.
Another, fairly rough possibility would be to use a plugin for a widget that allows PHP to be parsed run within the widget and put the PHP snippet within there. Assuming your theme is setup to use widgets of course!
Cheers
tStefForum: Plugins
In reply to: Alternative to TDO Tag fixes? (Tags within a single category)Hi Randy –
nope, I still use tdotf_cat_tag_cloud in quite a few places within the template, but as my client doesn’t update the site that regularly and infact doesn’t manage it themselves, Keeping the backend as simple as possible wasn’t too important, so I used a couple of custom taxonomies to keep the db hits down and some fairly aggressive caching speeded things up for me. Not ideal but it did the job.
not much help I know, but do let me know if you find a solution!
Thanks
StefForum: Networking WordPress
In reply to: List which sites a multisite user belongs to?David, the php snippet you posted works perfectly!
Many thanks, you’re a star.. problem solved ??Forum: Networking WordPress
In reply to: List which sites a multisite user belongs to?Thanks guys –
Andrea_r: Fantastic news! I know its a bad question to ask, a bit like asking how long a piece of string is, but do you have any idea of an ETA?
David Sader: Haven’t tried it yet, but I’m about to. Looking at the code you’ve posted it looks to be exactly what I was looking for. get_blogs_of_user() appears to be the function I was looking for!
Thanks again. I’ll let you know how it goes!
Forum: Networking WordPress
In reply to: List which sites a multisite user belongs to?Hi Andrea_r – thanks for your quick reply!
There is a function like that, but it only lists the sites they are administrator on.
Also see under Dashboard -> My sites.
That’s a bit of a problem, anything other than an admin would be fine, but as I’m tidying up and simplifying the backend as much as possible (except for admin = me) I can give them admin privileges.
Anyway to list on a front end page what sites a user belongs to?
This is built in. They only *need* one username and password for however many sites they belong to in the entire network.
Doh! I realised that just after I posted.
I need to find a way a user can select which site to visit from a dynamically generated list of links (showing only sites they have access to).
Guessing its a no go? I realise I’m not really using multisite networks for the purpose it was created, but am instead bending it into a kind of development area to show clients sites in progress.
Thanks
StefForum: Fixing WordPress
In reply to: Conditional check for Javascript?Thanks –
yep if you’re following this thread go here:-
https://www.ads-software.com/support/topic/417120
cheers
SForum: Fixing WordPress
In reply to: Post content ( the_content() ) in lightbox or modal window?Hiya –
Thanks for the suggestion. It might not be very elegant but think it may be a whole lot smoother than the route I took.
I stuck this in my template and it seems to work okay. The page reload is very obvious though so I think I’ll try your method posted above instead.
<object><noscript> <? if ( is_page('example-page')) { ?> <META HTTP-EQUIV="refresh" CONTENT="0;URL=<?php echo get_option('siteurl'); ?>/?page_id=808"> <? } else { ?> // do nothing // <? } ?> </noscript></object>
Essentially it checks to see if JS is enabled or not. If its not and the visitor is on a specific page then refresh the browser and load the page set up for non JS users.
So, which option is best / safest? pros / cons?
Cheers
StefForum: Fixing WordPress
In reply to: How to add class to next_post_link anchor?Thanks alchymyth.
For various reasons-
(Posts opening within a lightbox (hence the need for the class on the
<a>
), Using a secondary simplified template (for the lightbox) and also having nav between posts within the lightbox itself required the posts to be called and navigated using post ID instead of permalinks as the permalink URLs point to the post on my themes full single.php template (which I also need)– I needed to call the previous and next posts by ID and dynamically build my own links with specific classes added directly to the
<a>
so that my nav and lightbox would work.I’ve taken hints from the posts above in this thread, but in the end figured it for my self using
get_adjacent_post()
to get post IDs and making my own links – probably a very inefficient hack but it works for me.Here’s my code – I’m a beginner so it’s fairly rough and I’m sure many of you could find a far better way to do this but it works for me. Now I’ve re-read the posts above I’m fairly positive that I’ve taken a slightly long an abstract approach.
I’ve included a quick method for checking that we’re at the first or last post so I can remove the nav when necessary.
<div class="lightbox-product-nav"> <span id="prev"> <?php if(!get_adjacent_post(false, '', false)) { echo ''; } else { $adjacent_post = get_adjacent_post(true,'3,16,17',false) ; ?> <strong>«</strong><a class="fancybox" href="lightbox/?pid=<?php echo $adjacent_post->ID; ?>"> <strong>Previous product:</strong> <?php echo $adjacent_post->post_title;?></a><?php } ?> </span> <span id="next"> <?php if(!get_adjacent_post(true, '', true)) { echo ''; } else { $adjacent_post = get_adjacent_post(true,'3,16,17',true) ;?> <a class="fancybox" href="lightbox/?pid=<?php echo $adjacent_post->ID; ?>"><strong>Next product:</strong> <?php echo $adjacent_post->post_title; ?></a> <strong>»</strong><?php } ?> </span> </div>
Forum: Fixing WordPress
In reply to: How to add class to next_post_link anchor?Same question really…
I need to be a little more specific than vtxyzzy‘s solution as I need to give the actual
<a>
element its own class and also find away to retrieve the Post ID (pid) of previous and next posts.I’m trying a few things with my limited knowledge and the help of the codex but haven’t got anywhere close yet.
Any help would be great!
jakobud, did you ever get anywhere with this?
Many thanks
StefForum: Plugins
In reply to: Email, Print, PDF Plugin….bump
I’ve found various plugins that can do the individual parts, but nothing nice n easy which includes all 3 (print, email and PDF buttons).
cheers
Stef