Khalid
Forum Replies Created
-
Forum: Plugins
In reply to: [All-In-One Security (AIOS) β Security and Firewall] MJ12botadheres or not… i think no bot got the right to fetch over 1000 url in 1 day :((((
Forum: Plugins
In reply to: [LiteSpeed Cache] using LiteSpeed_Cache_API in afunction<IfModule LiteSpeed>
RewriteEngine on
CacheLookup on
RewriteRule PAGE_URI – [E=esi_on:1]
RewriteRule PAGE_URI – [E=cache-control:max-age=120]
and i also used header : header(βX-LiteSpeed-Cache-Control: public, max-age=120, esi=onβ);
i used both methods separately as well
anyway i may try LSCWP API later, thank you for your help
have a nice dayForum: Plugins
In reply to: [LiteSpeed Cache] using LiteSpeed_Cache_API in afunctioni try to include the counter.php file which is located in folder “include”
<?php
header(‘X-LiteSpeed-Cache-Control: public, max-age=120, esi=on’);
echo ‘line 1 – cache friendly’;
echo ‘<esi:include src=”/include/counter.php” cache-control=”no-cache”/>’;
echo ‘line 3 – cache friendly’;
?>and i got this: line 1 – cache friendlyline 3 – cache friendly
the file wasnt included, i try to force error by including wrong file name too, but it didnt fire error message, esi is on in settings but dosnt include files.
π
thanx for your helpForum: Plugins
In reply to: [LiteSpeed Cache] using LiteSpeed_Cache_API in afunctioni want to have the whole page cached, excluding only the hit counter.
i used every possible method but i couldn’t make it, like the example above, once i exclude any part of the page and open it, LiteSpeed plugin serve the page from fresh code resulting in delay.
i’m about to accept this as fact now and display the counter only for admin, making it rebuild cache each hour or so…
thank you.Forum: Fixing WordPress
In reply to: Order posts by an another table valuei’m not coder, i just like php, may be i explain it wrongly, so plz forgive me.
i guess your code should have three parts:
1. check if the user have voted before, else he can vote.
2. after user votes you need to update records, and reorder posts.
3. reorder posts according to votes.for me, i thought “update_post_meta($id, ‘_votes’, $votes);” will be much easier than the “$wpdb” route, so i was addressing the third part only.
Forum: Fixing WordPress
In reply to: Order posts by an another table valueya you are right, my code is just to replace the $wpdb part, however you still need to solve this other issues.
Forum: Fixing WordPress
In reply to: Order posts by an another table valueemm…
lets first define the $votes in your template, start by zero, then, use a code like this to save new votes:
update_post_meta($id, ‘_votes’, $votes);now you added a the votes count to the database, to retrieve the count, replace the query loop with this query:
query_posts(‘meta_key=_votes&orderby=meta_value&posts_per_page=5’);just like that :), no plugin needed. happy new year…
Forum: Fixing WordPress
In reply to: How-to Postu may make custom post template, then add the custom CSS code to shape it the way you like, or custom category template.
Forum: Fixing WordPress
In reply to: Word Press is not working on my computeris the files stored online or offline? can u give more details?
online:
is the files still there on the hosting?
did u change the name servers?
did u remove the database ?!
what is the message u get?offline:
did u start the local server program?
did u run it but it’s icon isn’t green? some other programs uses port: 80
did u remove the files/database/what is the message u get?Forum: Installing WordPress
In reply to: building a test site for a current domainwordpress web site is hosted files + database data.
for the files u need 2 separate places to host them, lets say /siteone and /sitetwo, or whatever u want.for the database u can have 2 databases.
there is also the prefix thing.
data stored in database in tables, each table have a name, and wordpress creates tables with prefix.
u can make use of this by making the prefix of first website something like one_ and two_ for second, that way u have 2 wordpress sites on same database with no interaction at all.wish this help u, good luck.
Forum: Themes and Templates
In reply to: best themes for building from scratchwill you take my word?
Suffusion theme is the best.
[sig moderated as per the Forum Rules. Stop spamming your site.]Forum: Themes and Templates
In reply to: How would I manage to make categories into pages?i think you don’t mean pages !! coz this is impossible i guess
may be you want to list them as tapes on top of the blog index page
this is done at as custom menus
[sig moderated as per the Forum Rules]Forum: Themes and Templates
In reply to: Newbie mistakesi tell you my system,
i have local server with word press installed and i have somewhere else all my files, backups, themes and plugins. i do what ever i want of edit’s then i test test it locally, when i come to a good thing i backups then continue, when i make mistake i use the pickup.
once i like the theme, plugin or whatever i made i upload it
avoid editing the website theme, google don’t like this, users hat it tooi’m noob coder too but i just try.
look at my site “ar”
[link removed]
this theme contains code coped and edited from a lot of themesForum: Fixing WordPress
In reply to: Spam Comments…How can I stop them?use CAPTCHA software, i don’t like askimet alone
Forum: Your WordPress
In reply to: Tips on SEO required for New WordPress Userall in one seo + on page seo is the best companion