tfleming
Forum Replies Created
-
Forum: Installing WordPress
In reply to: Blank Permalink SettingsJauhari — did you ever get this resolved? If so, what was the solution?
Tony
I have a similar problem. Hopefully someone can help.
I just installed WP and get the following error:
Parse error: syntax error, unexpected T_LNUMBER in /home/tfleming/public_html/weblog/wp-includes/formatting.php on line 98
I really have no idea what this means. What is a T_LNUMBER?
Forum: Fixing WordPress
In reply to: Embed Wiki within WP siteIt might work for this project. I’ll work with it. Unfortunately, promised updates to make it PHP5 compatible don’t appear forthcoming as it appears the author has abandoned his blog…no new posts at all since May 2007 and quite a few spam comments since then.
Forum: Plugins
In reply to: WordPress and Mediawikiwell, it seems the author of that page has abandoned the blog. No new updates since May 2007. What he does provide only works for PHP4 and under. Promised updates don’t appear forthcoming…
Forum: Fixing WordPress
In reply to: Amazon others pluginOkay, here is code that would insert a link following a book title, linking to that title on three booksellers. Could this be turned into a plugin?
<i>TITLE</i><sup><span style=”font-size: 9px;”>(
<a href="http://amazon.com/exec/obidos/ASIN/ISBN/pharyngula-20" title="buy this book at amazon">amzn/<a href="http://service.bfast.com/bfast/click?bfmid=2181&sourceid=41505966&bfpid=ISBN&bfmtype=book" title="buy this book at barnes&noble">b&n</a>/<a href="http://www.dpbolvw.net/click-1772498-9836638?url=http%3A%2F%2Fwww.abebooks.com%2Fservlet%2FSearchResults%3Fisbn=ISBN&cm_ven=CJ&cm_cat=1616003&cm_pla=1772498&cm_ite=Abebooks-Book+Redirection+Allowed" title="buy this book at abebooks">abe</a>/<a href="http://www.powells.com/cgi-bin/partner?partner_id=30010&cgi=product&isbn=ISBN" title="buy this book at Powells">pwll</a>)</span></sup>’Forum: Fixing WordPress
In reply to: Help… WP keeps rewriting my SWF embed code…I don’t know if crookdimwit ever resolved this, but for those who stumble upon this with the same problem like I did,
when I cut and pasted some HTML into the editor (using both the visual turned on and off), it turned out that it was also copying the linebreaks in the original. This was confusing the editor and it was trying to resolve what I intended, changing the code in the process. I ended up have to just hit “backspace” or “delete” enough times to where the code backed up then inserted a space. Visually, you could really tell the difference. But the editor could I guess.
Hope this helps.
Forum: Fixing WordPress
In reply to: ‘Share This’ Icon AlignmentIn the share-this.php file, I changed the padding in this:
<?php
if (AKST_SHOWICON) {
?>
.akst_share_link {
background: 1px 0 url(share-icon-16×16.gif) no-repeat;
padding: 1px 0px 13px 22px;
}
<?phpbut it didn’t appear to make a difference so I just changed it back.
Any suggestions where else I should try?
Forum: Fixing WordPress
In reply to: ‘Share This’ Icon AlignmentOn my page, http://www.interaction.org/difference
the Icon is overlapping the text ‘Share this’. I tried to locate the code for it placement, but changes I made to what I thought was the right part of the .php made no difference.Any help would be appreciated.
Thanks!
Forum: Plugins
In reply to: Header based on date?Kukyideas – thanks so much for this! I was looking for something very similar to allow me to switch out my sidebars and I was able to use your code for that.
Anyone else wanted to do the same.. here’s what i did using Cutline theme with a left sidebar to switch over a five-day period).
First, make 5 copies of your l_sidebar.php file.
Rename each one, l_sidebar_mo.php for Monday’s version, l_sidebar_tu.php for Tuesday’s version, and so on.
In your index.php, single.php and archive.php files, replace
<?php include (TEMPLATEPATH . ‘/l_sidebar.php’); ?>
with
<?php $sidebar = get_the_time(‘nj’); ?>
<?php if ($sidebar == 1015){ ?>
<?php include (TEMPLATEPATH . ‘/l_sidebar_mo.php’); ?>
<?php } else if ($sidebar == 1016) { ?>
<?php include (TEMPLATEPATH . ‘/l_sidebar_tu.php’); ?>
<?php } else if ($sidebar == 1017) { ?>
<?php include (TEMPLATEPATH . ‘/l_sidebar_we.php’); ?>
<?php } else if ($sidebar == 1018) { ?>
<?php include (TEMPLATEPATH . ‘/l_sidebar_th.php’); ?>
<?php } else if ($sidebar == 1019) { ?>
<?php include (TEMPLATEPATH . ‘/l_sidebar_fr.php’); ?>
<?php } else { ?>
<?php include (TEMPLATEPATH . ‘/l_sidebar.php’); ?>
<?php } ?>Populate each sidebar with what you want to appear that day. (The days above are for a five-day window in October.)
If the post’s date doesn’t match any of the dates set, it will default to the regular l_sidebar.php.
Forum: Fixing WordPress
In reply to: Possible? content displayed based on date rangeHi Csleh – did you ever get a response to this? I would like to do the same, plus have the sidebar change back when a post from the archive is chosen (to reflect what was displayed when the post was originally written.)
Forum: Fixing WordPress
In reply to: Functions-compat.php disappears in middle of writing post???Thanks colobren. I followed your example and upgraded to the latest addition. Works now, but still leaves me puzzled.
Forum: Fixing WordPress
In reply to: Functions-compat.php disappears in middle of writing post???more info… I deleted my wp-includes folder and re-uploaded as others have suggested this usually work. Not in this case however.
Any help would be appreciated as my blog is currently off-line!
Forum: Fixing WordPress
In reply to: Embedded CodeHi Faustina — THANK YOU!!!
I’ve searched and searched for a way to imbed a video that validates! Your code worked beautifully!
Thank you!
TonyForum: Themes and Templates
In reply to: Travelogue theme is cool but….ARGH… frustrated, I just ripped out that section of the upgrade-functions.php file… and it now works fine! Stupid design….
Forum: Themes and Templates
In reply to: Travelogue theme is cool but….I’m having the same “Invalid argument supplied for foreach()” error pop up, but only when I use my Travelogue theme. It’s not there when I use the default or classic themes.
Unfortunately, the 2gng site has been abandoned and I can’t find the solution otherwise.
My specific error is this:
Warning: Invalid argument supplied for foreach() in /home2/tfleming/tonyfleming-www/wordpress/wp-admin/upgrade-functions.php on line 879
879 foreach($indices as $index) {
880 // Push a query line into $cqueries that adds the index to that table
881 $cqueries[] = “ALTER TABLE {$table} ADD $index”;
882 $for_update[$table.’.’.$fieldname] = ‘Added index ‘.$table.’ ‘.$index;
883 }