xdesi
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Users/Guests to add PhotosAs EqualDesign said I think cformsII can help you create the form with uploads.
Forum: Fixing WordPress
In reply to: Can’t get this ELSEIF to work<?php if (is_category('announcements')) { echo '<div class="post">'; echo '<div class="header">'; echo '<table width="100%"><tr><td><h2>Announcements</h2>'; echo '</td></tr></table>'; echo '</div>'; echo '<div class="entry">'; echo '<h3>Announcement Archives</h3>'; echo '<span style="padding-left:20px"><a href="/wp/announcement-archives">See all archived announcements</a></span><br /><br />'; echo '</div>'; echo '<div class="footer"></div>'; echo '</div>'; }elseif (is_category('talks-seminars')) { echo '<div class="post">'; echo '<div class="header">'; echo '<table width="100%"><tr><td><h2>Talks & Seminars</h2>'; echo '</td></tr></table>'; echo '</div>'; echo '<div class="entry">'; echo '<h3>Talks and Seminars Archives</h3>'; echo '<span style="padding-left:20px"><a href="/wp/talks-archives">See all archived Talks & Seminars</a></span><br /><br />'; echo '</div>'; echo '<div class="footer"></div>'; echo '</div>'; }else { echo "Boo"; } ?>
So the above outputs nothing at all. When before it was satisfying the first criteria?
Also you do know you can create category specific pages? So you can have different layouts for announcements and talk-seminars without using if statements.
Forum: Fixing WordPress
In reply to: Users/Guests to add PhotosI’m not sure about within wordpress, but this would require a form, where the user can submit the photo, and the information about the game etc.. to the server and you display it.
So really your looking at forms I think.
The comment form does this, with textual data supplied by users, you just need to implement the image upload.
Forum: Fixing WordPress
In reply to: How to add automatic text on posts??Ermm well it depends are the links in flow with the text?
Because you could add links as custom fields.
Then use an IF statement to see if the custom field exists.
And if so then append the value of the custom field to the end of: https://x2.xclicks.net/sc/gall.php?s=xxxx&o=That is one option. Another could be a link transformer/encryption of some sort, however i’m not knowledgable on this sorry.
Forum: Fixing WordPress
In reply to: Want to add a splash flash intro…When your making the flash intro you can set the last frame to redirect to whatever page you want in the ActionScript via getURL i think.
Also add Skip to whatever below the movie.Forum: Fixing WordPress
In reply to: Subpage listAre you having trouble adding the PHP?
You can either add it manually to sidebar.php
Or if you are using Widgets, then try a plugin called PHPExec i think it is.
Forum: Fixing WordPress
In reply to: Can’t get this ELSEIF to workWhat are you getting a PHP error?
Not sure maybe your last should be an else rather than elseif?
Try adding
}else { echo "Boo"; }
as a third statement
Forum: Fixing WordPress
In reply to: Can People upload there own avatarOK as an update..
I now have set it up so that my user can choose from a list of avatars.
Now it would be great if I could edit the Gravatar to say:
IF User has gravatar use it
ELSE do blah blahMy PHP isn’t great, all I have is this that submits the gravatar but have no idea how to check if the user has one and shove it inside an IF Statement.
<?php echo get_avatar( $id_or_email, $size = '50'); ?>
Forum: Fixing WordPress
In reply to: WordPress is not creating a page/2/Same problem here when i click for the next page it says Error 404. The URL given is blahblah/page/2 which is correct afaik?
There must be a simple thing we are all doing wrong!!Update: OK if i add /category/ before my category name it works? But I have category base killer installed which should get rid of the usage of /category/ do you have the same plugin? try inserting /category/ before the cat name and see if it works, i will look deeper into the plugin now!
Even further update: OK it seems as if this is a known problem with the category base killer plugin. And it seems as if it is NOT a problem from the plugin end but from the WordPress end who have decided not to sort out the problem ??
I have only two choices
1. To have the stupid /category/ inside the URL
2. To have a file exstension .html .htm /php added to the end of my URL which is just as badCan anyone shed any light on this?
Here try something like this:
https://download.mikelopez.info/2006/10/17/wordpress-themed-categories-plugin/
This allows different themes for different categorires.Forum: Fixing WordPress
In reply to: How to Exclude Current Post from Query?Hi Trisha Thanks for the reply,
If i’m right then offset=1 excludes the most recent post from the query, how could i change this so it excludes the current post it’s on.
It only describes how to use offset=1 in the codex.
For More Information. Lets say the Post is called Blah and is in Cat 10.
OK so it displays everything about this post called Blah, and then later on i have a rewind posts to show some related posts, so inside the query i want to show the titles of posts from cat=10 (which i can do fine), however i do not want to show the title of Blah again, but it’s currently doing this i need to exclude it from the query.Again many thanks.
Forum: Fixing WordPress
In reply to: header’s background color covers pictureSorry for the delay..
OK i took a quick look, and you have no background colours set for your header in your CSS.Delete this out of your header.php you don’t need it? It is appearing in the head section of header.php
<!--#header { background: url('https://www.lilalive.com/blog/wp-content/themes/default/images/header-img.php?upper=FFCCCC&lower=FFCCCC') no-repeat bottom center; } #headerimg h1 a, #headerimg h1 a:visited, #headerimg .description { color: #000000; }
OK i believe this will solve it, but if it doesn’t then simply change where it says <div id=”headerimg”> to <div id=”headi”>
Forum: Fixing WordPress
In reply to: header’s background color covers picturegive us a link and i’ll try my best
Forum: Fixing WordPress
In reply to: Subscribe Sidebarwhat’s wrong with copying the code from the right to the left??
Forum: Fixing WordPress
In reply to: How to Call a Custom Field in Head?OK many thanks, we have progress tag_slug__in works, however only without the CAT parameter.
I could probably overcome this by just using certain tags as a flag for a certain category.What do you suggest when you say it needs to be rewritten I am open to anything!!
Also if i add showposts=5 to this query, and only 3 posts match the critera is it possible to have another 2 random posts show up??
Again Otto i really appreciate your help!!