talino
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Creating semi-invisible postsThanks MichaelH. Didn’t think of using Pages. The ‘include’ parameter doesn’t seem to work for me but ‘exclude’, so I’ll stick to that.
Thanks again.
Forum: Fixing WordPress
In reply to: Custom functionsNot working across themes is indeed a problem, but I don’t see what I can do about it aside from writing a plugin (which I don’t know how to do, I tried reading about it and got totally confused).
The function is a very simple one, a kind of mini gallery. I want to be able to add it between two paragraphs, and it should scan a specified folder and spit out formatted divs & tags based on my folder structure and links. This is so that the mini gallery is automatically updated when I simply upload a new image.
For an example on how this looks: http://www.talino.org/photography/fishermen/
I simply want to write this in a post:
blah blah
<? gallery_here('blah'); ?>
more blah
and have it create this dynamically :
blah blah
<div class="thumbnail"><a href="/images/blah/01.jpg" rel="lightbox[blah]"><img src="/images/blah/thumbs/01.jpg"/></a></div>
<div class="thumbnail"><a href="/images/blah/02.jpg" rel="lightbox[blah]"><img src="/images/blah/thumbs/02.jpg"/></a></div>
more blah
etc, a div for each image in the folder.
I know how to write this function but I simply don’t know where š
Thanks for all your help.
Forum: Fixing WordPress
In reply to: Custom functionsThanks a lot, now I see that I need a plugin to run PHP from within a post. But still, where do I write my function? Is my theme’s functions.php a good place?
Thanks a lot.
Forum: Themes and Templates
In reply to: A couple of quirky templating issuesThank you so much. This is exactly what I needed. Point n° 2 solved š
Forum: Fixing WordPress
In reply to: How do you good people develop offline?Thank you so much. No words. Problem solved.
Forum: Fixing WordPress
In reply to: How do you good people develop offline?It’s been quite an evening. I fired up my local server and created a database. Went online with my ISP’s phpmyadmin and exported my online database. Back here, I imported it into the local server. Then I changed my local wp-config.php to point to the new db, server, user and password. What I now get is a goofed-up Dashboard which does the following:
http://192.168.0.4/wp/wp-admin/
This shows the Dashboard.
But the “Options” link (or any link for that matter) points to http://www.mysite.com/wp/wp-admin/whatever.php , so I can’t even change the WP root. I managed to get there once, dunno how, and I almost trashed the online site completely. This is delicate stuff. Anyway, I’m now locked in a local server which amazingly points to an online server when its own config file is telling it to go somewhere else.
Bloody nightmare.
I’d really like to know where the WP root settings are stored within the db so I could just go there and fix it myself.
Thanks.
Forum: Fixing WordPress
In reply to: How do you good people develop offline?OK, thanks a lot. I’ve followed your advice and created a db locally, reinstalled WP while keeping my (now online) theme and templates. However, when I try to delete the “Hello World” post (I want to import some real-world stuff from my site in order to work), I get a “You don’t have permission to do that” message in the Dashboard. I’m logged in as the sole and one and only admin here – what could be the problem?
Forum: Fixing WordPress
In reply to: How do you good people develop offline?I see. Do you use that method even on fully-functional sites, for doing stuff like changing background images or seeing what the sidebar would look like if it had a 1px margin? And then synchronize the local template with the server?
And BTW, developing on a Mac doesn’t make one suspicious (nor a zealot)… š
Forum: Fixing WordPress
In reply to: (Advanced?) Theming questionThanks a lot for a simple solution to a simple problem. Always the best course of action…
Forum: Fixing WordPress
In reply to: (Advanced?) Theming questionThanks Kafkaesqui. I was actually reading several WP docs titled “Writing your own plugins” and stuff like that, but I got lost quite quickly. I have some experience with PHP although not enough that it would make me understand sentences with terms like “hooks” and “filters” in them without blinking. I’ve customized my template quite heavily but I’m not really a programmer.
I will try your idea for a functions template (and renaming the function call in the template file), because it does seem much easier to do. All I need to do is shuffle around an anchor tag. Learning to write plugins seems like overkill and anyway I’m reading 150 pages a day on WP now…
From what I understand, your solution involves creating custom template tags, is that right?
Forum: Fixing WordPress
In reply to: Category-dependent PHP functionsThanks a lot. Worked like a charm. I’m just starting to discover how flexible WP is…
Cheers.
Forum: Fixing WordPress
In reply to: (Advanced?) Theming questionAha… Now I’ll have to learn how to write plugins (while at the same learning 300 other WP topics) š
If I understand correctly, this boils down to essentially copying the function to my own script, modifying it there and then activating the script as a plugin, right (assuming I’ve learn to format it correctly)?
Forum: Fixing WordPress
In reply to: Remote access to local WP siteOK, figured that out myself. “Blog URI” in Dashboard Options > change to 192.168 etc instead of ‘localhost’.
Sorry for the traffic š