baszer
Forum Replies Created
-
Forum: Plugins
In reply to: [Plugin: All-in-One Event Calendar] WarningI found a solution, but can anybody tell me why I had to do this? And is it now still safe?
solution:
This kind of problem is easily solved adding this line to .htaccess in the base of your WP installation:
php_value allow_call_time_pass_reference on
what did you do to make it work?
mine is local and does the same as you descriped
Forum: Themes and Templates
In reply to: Function Reference/previous post linkaaaargh, still not perfect. Now I got the » still visible even if you are on the latest post!
Forum: Themes and Templates
In reply to: Function Reference/previous post linkThanks Jeremy! This did the trick, for everyone who comes to this topic:
add the following to your function.php function filter_shorten_linktext($linkstring,$link) { $characters = 33; preg_match('/<a.*?>(.*?)<\/a>/is',$linkstring,$matches); $displayedTitle = $matches[1]; $newTitle = shorten_with_ellipsis($displayedTitle,$characters); return str_replace('>'.$displayedTitle.'<','>'.$newTitle.'<',$linkstring); } function shorten_with_ellipsis($inputstring,$characters) { return (strlen($inputstring) >= $characters) ? substr($inputstring,0,($characters-3)) . '...' : $inputstring; } // This adds filters to the next and previous links, using the above functions // to shorten the text displayed in the post-navigation bar. The last 2 arguments // are necessary; the last one is the crucial one. Saying "2" means the function // "filter_shorten_linktext()" takes 2 arguments. If you don't say so here, the // hook won't pass them when it's called and you'll get a PHP error. add_filter('previous_post_link','filter_shorten_linktext',10,2); add_filter('next_post_link','filter_shorten_linktext',10,2);
and the following on the place where you want the navigations
<div id="nav-below" class="navigation"> <div class="nav-previous">« <?php previous_post_link ( '%link', '%title' ) ?></div> <div class="nav-next"><?php next_post_link( '%link', '%title »' ) ?> »</div> </div>
Forum: Themes and Templates
In reply to: Function Reference/previous post linkthanks! the downside is that it also kills the ? (and not this one, but the one to the right)
Is there a way to have this:
longtit… ->
Forum: Themes and Templates
In reply to: Custom menu, different depth, different placeuhm, folding?
I try to create a menu with two depths.
Depth one is the main menu in the header.
Depth two is in the sidebar.Now I want to show the childs of Depth one in de sidebar when clicked on items in the header. Do you understand it? ??
like this plugin, but I dont want to use this plugin
Forum: Themes and Templates
In reply to: Custom menu, different depth, different placeI think i need: child_of , but I want to show the childs of the selected item in the header, so its variable? How can you set that?
Forum: Themes and Templates
In reply to: Custom menu, different depth, different placeyes, but I want it so, that when you click on the item in the sidebar, that the menu is changed in the sidebar to the right depth
Forum: Plugins
In reply to: E-mail new posthello Nate, nice job! ??
first time I got an warning that I entered a wrong email address. But it was my mistake, I added a space after the comma ??
If i may make one suggestion. It would be great to combine the users / e-mail field. In other words: an optionpanel for the plugin, where I can add the emails and give the email a name. And when I post a message I can check the name in userspart. Because now I don’t have to remember the e-mail adresses. ??
Forum: Themes and Templates
In reply to: One wordpress database 2 websitesIt would be great to also have one place to change all the menu’s (instead of logging-in on the different menu’s). How would you do that if you do it your way?
Forum: Plugins
In reply to: E-mail new postEy Nate,
your plugin does work! I tried it the firsttime on local server. Sorry! Can’t wait to try the new example! ??
Forum: Themes and Templates
In reply to: One wordpress database 2 websitesone more question,
how would you set up the menu structure?
Forum: Themes and Templates
In reply to: One wordpress database 2 websitesSamuel, I just tried your solution and so far it works great and this is what I want.
thanks for both your replies!
Forum: Themes and Templates
In reply to: One wordpress database 2 websiteshmmm,
I quick read both the instructions and the solution of Samuel sounds way easier.
Is there a page with all the pros and cons to using two separate installs versus using two network sites with MultiSite enabled?
Forum: Themes and Templates
In reply to: One wordpress database 2 websitesthanks for your quick answers.
Is the answer of Samuel not outdated?
Since:
Please note in WordPress 3.0 there is now a native ability to create multiple blogs, referred to as a network of sites. This is because the codebase for WordPressMU was merged into core