e-sushi
Forum Replies Created
-
Forum: Plugins
In reply to: How to restrict comment-ability on a per-user/per-page basis?Forum: Fixing WordPress
In reply to: How to restrict comment-ability on a per-user/per-page basis?Forum: Fixing WordPress
In reply to: How to restrict comment-ability on a per-user/per-page basis?Thank’s for the heads-up. You’ve actually amazed me by collecting so many links for me to dig. Thank you!
In the end, it turned out I just needed some “talking to someone” to set my mind back into logic-mode. (Ok, I have to admit a coffee helped too.)
Forum: Fixing WordPress
In reply to: Change blog title font and colourI would go hunting for the
h1
tag, showing something likefont:
orfont-family:
.Forum: Fixing WordPress
In reply to: How to restrict comment-ability on a per-user/per-page basis?Ha, solved it myself. Tnx anyway @mrmist
Forum: Fixing WordPress
In reply to: Moved to a new server, permalinks no longer workingJust said to check the domain settings to make sure everything is in place there too. Hmmm, I must admit I can’t think of much more without looking at the problem directly… unless a file got corrupted during the move and now causes problems (but a 404 would be not logical), I’m out of ideas. Sorry!!! I’ll better step aside now to make room for someone that will hopefully be able to solve your issue. Good luck! 8}
Forum: Fixing WordPress
In reply to: How to restrict comment-ability on a per-user/per-page basis?Strategy:
1. user registers and get’s a page created by the admin, with his e-mail in a custom field.
2. if user is logged in, he is allowed to see and use the comment form. No one else is allowed to use that form. (Unique e-mail should take care of seperation).
3. all other users simply see the page and the comments. Unless they are looking at their own, custom-fielded page.Question:
How do I compare the user e-mail with the e-mail in the custom field within the loop (where the comments template get’s called) so that I can do a simple “if(pageemail=useremail) { comment } else { ignore }”It’s the “get user e-mail from profile” and “get custom-field value” thingy that I somehow can’t combine in my mind. What would be the code? Some tiny, small and incomplete snippets related to something like “get_xxx” would be enough and a great way to make my day! 8)
Forum: Fixing WordPress
In reply to: How to restrict comment-ability on a per-user/per-page basis?So far it’s all in my mind, so no code to share or show… yet.
I’m probably just not sure how to compare a “logged in user nick” to the “custom field of the current page and/or post” the correct way. Can’t be more than 3 lines of code, can it?
(Been wp-looping so much lately that I’ve lost some logic I guess.)
Forum: Fixing WordPress
In reply to: Is this design feasible?Always welcome! ??
Forum: Fixing WordPress
In reply to: Moved to a new server, permalinks no longer workingI bet you missed the “change the url (both of them) in the options” part before you downloaded your database backup? Then check the urls using phpmyadmin too… you never know. ??
Forum: Fixing WordPress
In reply to: Moved to a new server, permalinks no longer workingIf You Don’t Care If Your Old Blog Works
1. Download a copy of the main wordpress files from your OLD blog to your hard drive and edit wp-config.php to suit the new server.
2. Go back to your OLD blog and go to options and change the url (both of them) to that of your new site.
3. Again, download your database (but keep the old one just in case), upload this new database and the copy of the wordpress core files with the edited wp-config.php to your new server. Thats it!Forum: Fixing WordPress
In reply to: How to feed WP data to the main index.php pageThe simples way? Put it in the template. Another way would be to “inject” an external file.
Let’s say you have a html-snippet with your top-10 stored in a file called “top10.txt”, then you can use php to “read and inject” it into the page like this:
<?php echo(file_get_contents('./top10.txt')); ?>
Forum: Fixing WordPress
In reply to: Page went blank!Yep, move all themes except “default” out of the themes directory.
If a theme is missing, wordpress tries to fall back on the default one.Forum: Fixing WordPress
In reply to: How to restrict comment-ability on a per-user/per-page basis?Ok, I’ve helped about 30 people the last 3 to 4 hours. Where’s my help? 8[
Forum: Plugins
In reply to: How to restrict comment-ability on a per-user/per-page basis?Ok, I’ve helped about 30 people the last 3 to 4 hours. Where’s my help? 8[