zentode
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: permalink seems to break conditional display of imageAhhh, so sorry, my bad. My issue was not totally theme related. So mine was not the “same problem” as massagrans. My apologies.
I was trying to display images that reside in uploads directories and are not always theme related. I did also use one in a page.php theme file pulling it in with a code snippet with that would display it under specific circumstances which created the same problems for me. Pretty specific to my application i guess. Now I can also place this simple image rotator anywhere. Reads a directory and rotates the images. The substr_replace was the key.
Here is the whole script but, I broke it up and used require and called this “slideshow” where ever I needed it. Remains plugin independent.
You can now see how permalinks combined with my limited coding ability created my issue. “But I am feeling better now.” ??<?php $imageDirectory = "wp-content/uploads/rotate-these/"; $interval = 5; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="https://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Slide Show</title> <script type="text/javascript"> var picn=0; var picList = new Array; var actImg = new Image(); <?php if ($handle = @opendir($imageDirectory)) { $i = 0; while (false !== ($file = readdir($handle))) { if ($file != "." && $file != "..") { $path = $imageDirectory; if(is_file($path.DIRECTORY_SEPARATOR.$file)) { $info = $path_parts = pathinfo($file); if ( (strtolower($info['extension']) == 'jpg') || (strtolower($info['extension']) == 'jpeg')) { $file = addslashes($file); echo "picList[$i] = '$path/$file';\r\n"; $i++; } } } } } ?> function setCountDown () { actImg.src = picList[picn++]; document.getElementById("pic").src=actImg.src; if (picn>=picList.length) picn=0; setTimeout ( "setCountDown()", <?php echo ($interval*1000); ?> ); } </script> </head> <!-- Below can be stripped out and used as a standalone via iframe, include or whatever means you desire. Many ways to use it little modification. --> <body onload="setCountDown();" bgcolor="#efe6c5"> <img src="<?php echo $path.'/'.$file; ?>" alt="" id="pic" border="0" width="468" height="60"/> </body> </html>
Forum: Fixing WordPress
In reply to: permalink seems to break conditional display of imageThank you much, I know of all those functions but, my image is located in the uploads and/or other folders. That is my issue. I ended up using iframe (yech) for now which worked. I also used substr_replace referencing the the_permalink() tag to get rid of the permalink structure in the call in another area. Clunky but, effective until I find another solution. Thanks again though. That may help someone else.
Usually, having the obvious staring me in the face and my missing it, I wish dropping a couple directories would work like:
<img src=”<?php bloginfo(‘template_url’); ?>../../uploads/my-pic.jpg” alt=”” />
But, that will not work.Forum: Fixing WordPress
In reply to: permalink seems to break conditional display of imageSame problem. Even when including a script in a template. The permalink interferes with the img src=… or script path.
The image or script cannot be accessed. With an image, viewing properties on the placeholder of the missing image shows a path to the image including the permalink structure. Not the path to the image as hardcoded in a template.
Sure I will find a solution soon but, I know what massagran is experiencing. I have obviously tried rel and abs path but, permalinks interfere with both.
Forum: Your WordPress
In reply to: Examples of WP that don’t look like blogs?Update to my post above for nomorefreebeer.com. I am now using Code Blue theme. There was something weird going on with corp blue in IE vs Firefox. Was probably something I did but, Code Blue works fine for me.
Forum: Fixing WordPress
In reply to: I want to change the order of the commentsHey all,
I found this information on the web that was written about a year ago. Kudos to whomever hypOr is!
After searching through wp-includes/comment-template.php I found where to implement the mod. Works with my WP v2.6 no problem. However, when it comes time to upgrade your 2.6, you will have to do this again provided the future versions don’t change this one particular function. Future versions may even include this in the admin area. I hope. ??
Just go here and you will see my solution. Works great!
Forum: Fixing WordPress
In reply to: Displaying the order of a commentHey all,
I found this information on the web that was written about a year ago. Kudos to whomever hypOr is!
After searching through wp-includes/comment-template.php I found where to implement the mod. Works with my WP v2.6 no problem. However, when it comes time to upgrade your 2.6, you will have to do this again provided the future versions don’t change this one particular function. Future versions may even include this in the admin area. I hope. ??
Just go here and you will see my solution. Works great!
Forum: Fixing WordPress
In reply to: Comment order.Hey all,
I found this information on the web that was written about a year ago. Kudos to whomever hypOr is!
After searching through wp-includes/comment-template.php I found where to implement the mod. Works with my WP v2.6 no problem. However, when it comes time to upgrade your 2.6, you will have to do this again provided the future versions don’t change this one particular function. Future versions may even include this in the admin area. I hope. ??
Just go here and you will see my solution. Works great!
Forum: Your WordPress
In reply to: Examples of WP that don’t look like blogs?Not being used as a blog really but, as a pro-active resource to voice opinions about the fate of the Busch Theme Parks.
I used the CorpBlue Theme.
Forum: Your WordPress
In reply to: Examples of WP that don’t look like blogs?My Alex Sandor Painter of Life site is getting alot of interest! I believe it is a good example of not looking like a blog. The Hobbit theme worked well for me after some css mods. A few people have actually purchased paintings from us as investments thanks to the site. I am thinking of using the WP-Auctions plugin and putting some paintings up for auction.
Here are the latest links to the wordpress auction plugin:
Click here to view more details on the WP-Auctions plug in
Here is another link for the WP-Auctions Gold wordpress plugin.
Here is the PayPal link to purchase WP-Auctions.
I have read that the auction plugin works very well. I will post here when I get it up and going with WP-Auction Gold.
Then it definitely won’t look like a blog!
Forum: Your WordPress
In reply to: Sneak peek! – alexsandor.org – I hope it works well.No changes desired except for header graphic.
Like I always say, why fix it if it isn’t broken!
I didn’t mod the WordPress script either.
I usually hack up the login screen. Also some core scripts when I want to integrate another script like Zencart. Which was a learning curve and a half to say the least.That said, I did have to change the stylesheet a bit to get the site to look the same as the original Hobbit Theme to incorporate my mods, navigation and search box changes. There were issues with nextgen & plugins breaking the theme as well or causing alignment issues. I modded the header and the navigation css to suit. Also the content section. Then, when I tested with IE6 and Firefox, oh man, more mods to my mods. ?? (still broken in IE6.) Took me about an hour. Then two days to prep the paintings images.
When I saw the theme originally, I thought it was perfect for Sandor!
That theme was one of the easiest I have modded though thanks to the efforts of the original designer. Most of the css is original with some previously mentioned minor changes to original classes and about ten new classes. Also changed a couple sections in the other template files. Then I did my own header graphics. If it were not for the gallery format, searchbox and plugins, you could just replace the header graphic and be gone in 60 seconds. Bam!Even when I do totally re-write the css and make new graphics, I still link to the original creator on the site. There resides the original inspiration. Good karma.
The site is a good example of what anyone can do with WordPress. The Hobbit Theme would work right out of the box for most folks. Someone can have a WordPress site installed and looking real nice in less than five minutes. Can’t beat it! I would find it very difficult to charge anyone for something this easy, so I don’t. Although I have written quite a few themes from scratch for WordPress, Coppermine, 4images, Phpws, oscommerce, Zencart and others over the years, all I do now are “freebies” so, I like to use ready made themes as much as possible for obvious reasons.
I am a PERL guy at heart. I struggle a bit with php since I have only been writing custom php scripts and modding existing ones for about six years. The website stuff is just for fun. And it is! (as well as a skill expanding experience). It is nice to help those who actually need help too. I do place AdSense search boxes on every site though. That, along with along with the hosting packages I offer from time to time, help pay the hosting/isp bills so I can play here.
Thanks to everyone again for the great comments. Sandor is pleased to hear people are liking his paintings. I will be adding more as time permits. For now, I must go dive back into line 11,903 of my latest, (actually commissioned) PERL script. (Yes, will be broken into subs! SHEBANG!) MORE COFFEE PLEASE!
Have a great day everyone! Pay it forward!
————————————————–
Play through TUBES!
(But let me replace the caps and adjust the bias first!)
Real techs don’t let friends buy name brand computers!Forum: Your WordPress
In reply to: Examples of WP that don’t look like blogs?How about AlexSandor.org ???
I set this one up as “web site-ish” not a blog. WordPress gives you unlimited aesthetic control. You just need to know a little html/css and have the patience to actually read some instructions ?? (which is the major factor in my learning curve).
WordPress fan 4-ever.
Forum: Your WordPress
In reply to: Sneak peek! – alexsandor.org – I hope it works well.Thank you all for your kind words. I am attempting to keep it un-cluttered and “peaceful”. However, most the kudos go to Sándor (I will relay the message) and to Arcsin for his original theme which I hacked up or “Sándorized” for this site. Not to forget the creators of WordPress.
Within the weeks to come I will have the paintings names and sizes there as well. Most are a meter to a meter and a half in size and the sheeer impact of viewing them in person gets lost on your screen. (That’s the web.) I will also be switching the slideshow music to Franz Liszt.
Many of the paintings displayed there are scans of old pictures that are very skewed and dull. Took me a while to alter the perspective and clean them up. The rain here and conflicting schedules have prevented me from taking many pictures of those works so, had to rely on photos as “placeholders”. I will replace those as time progresses. I prefer natural light for photos of his paintings of nature. (For obvious reasons.)
I have found many aesthetic limitations in keeping it cross browser. I am still struggling with that. I can’t stand having to scroll up and down to take it all in. In order to avoid using browser & user system detection re-directs I had to add some extra text and links for those with less capable graphics logic, memory, connections or older browsers. I used the Exclude Pages from Navigation plug in to house “less resource intense” gallery scripts and linked directly to them as an option to users in attempt to make Alex Sándors works viewable to everyone.
I will be adding Marilyn Monroe in the “You & Me” area today or tomorrow along with others I snapped a couple days ago. There is about 30 more coming after that. (After I fix a couple tube amps which is how I attempt to pay my bills. ?? Sure isn’t web design! Web stuff is just my “hobby”.) There will be a voice clip of Sándor as well. Once you “hear” his wonderful personality (he is a “people person”) you will be able to relate to his paintings little better. (Another emotion that gets lost in the web viewing of his works.)
Sándor is struggling financially (as most of us). Most of the works you see there may be purchased. On request, he will even re-paint any that have been already sold unless they are one of ones. (One of a kind (1 of 1) pieces which are requested by investors.) He will also paint his interpretation of a photo you send him. Many people have sent him pictures of their families for him to paint as gifts to their parents. Shipping is very inexpensive.
Please contact via the site should you desire to own one of these paintings. They really are affordable compared to what a gallery charges. He refuses to work with galleries anymore due to their massive markup which makes his paintings un-afffordable to us “regular folk”.
Thanks again to everyone for your visits and kind words. I will do my best to keep the site worthy of housing the works of Peter Alexander Sándor.
Jim
(and Alex Sándor says “bye bye then“)
Forum: Your WordPress
In reply to: How far can you customize with WordPress?You can customize to your hearts content. You can include flash and javascript in widgets, pages & posts. Themes are easy to modify or make from scratch too. Should there be any issues with wordpress’ security disabling some javascripts in your posts/pages you can use iframe tags. I had to do just that for alexsandor.org and a bunch of local band sites over the years. There are many other options as well but, I suggest you go to the correct forum category for those options.
Once you go wordpress, you will never go back.
Have a good one and good luck.Forum: Plugins
In reply to: auction plugin?Yes, phpauction is a good one. There is an auction plugin for wordpress called WP Auctions found here. However, I tried the free version and could not get it to work. I also did not like the way it handled in the demos or appeared cross browsers. I guess it works quite well for many folks but, not for my application. I gave up on it.
I am working on integrating phpauction gpl into my wordpress install (or visa versa). User authentication issues are similar to the zencart integration. I don’t want others to post items as this will be an original art auction. So, a blog with one specific auction/seller is what I am shooting for. I would prefer that users register for the blog and auction all in one form. Not too much of a problem doing that but, to integrate aesthetically, one of the scripts will have to be modded quite heavily. Could just be on the theme end which is again no problem but, I doubt it, it’s never that easy.
I will let you know when I am successful.
Forum: Fixing WordPress
In reply to: List specific custom fields in a post that match post titleI went over Ivovics code again and I don’t understand why it errors on the foreach line. I compared to other similar snippets and all seems well.
Here is the code from Ivovic I am attempting to use in my single.php.
<?php $children = get_categories('child_of='.$cat); $foreach ($children as $subcat) { $parents = explode('|',get_category_parents($subcat,false,'|')); if ($parents[2] == "")?> <ul> <?php echo $children; ?> </ul> <?php } ?>
It makes sense. Why does it crash? Help?
And this code:
<?php if($post->post_parent) $children = get_posts("title_li=&child_of=".$post->post_parent."&echo=0"); else $children = get_posts("title_li=&child_of=".$post->ID."&echo=0"); if ($children) { ?> <ul> <?php echo $children; ?> </ul> <?php } ?>
Just returns the word “Array”???
HHEELLLLPPP! It’s for a worthy non profit cause!