The code below works if I put it in a php file by itself but as soon as I put it in the phpLD homepage it redirects the homepage to wp-admin/install.php. Please not that this is NOT /blog/wp-admin/install.php but wp-admin/install.php (from the root).
I think somehow phpLD is trying to make it part of its own CMS.
<?php
require('/home/USER/public_html/blog/wp-blog-header.php');
?>
<?php query_posts('showposts=5'); ?>
<?php while (have_posts()) : the_post(); ?>
<div class="BlogFeeds">
<div class="BlogFeedThumb">
<?php $post_image = thesis_post_image_info('thumb'); ?>
<?php echo $post_image['output']; ?>
</div>
<h3><a href="<?php the_permalink() ?>" rel="bookmark" title="Read The Entire Post"><?php the_title(); ?></a></h3>
<?php the_excerpt(); ?>
</div>
<?php endwhile;?>
phpLD uses SMARTY language so I’m using the following code in their .tpl file:
{php}
require("/home/USER/public_html/blog/wp-blog-header.php");
{/php}
{php} query_posts('showposts=5'); {/php}
{php} while (have_posts()) : the_post(); {/php}
<div class="BlogFeeds">
<div class="BlogFeedThumb">
{php} $post_image = thesis_post_image_info('thumb'); {/php}
{php} echo $post_image['output']; {/php}
</div>
<h3><a href="<?php the_permalink() ?>" rel="bookmark" title="Read The Entire Post"><?php the_title(); ?></a></h3>
{php} the_excerpt(); {/php}
</div>
{php} endwhile;{/php}
Again, the path and code work just fine if I put the code in a page by itself but not from within phpLD.
I found this thread from before that might be helpful (but didn’t get anywhere with it myself)
https://www.ads-software.com/support/topic/codeigniter-and-wordpress-redirect-to-installphp?replies=5
I’ve also started a thread with phpLD folks on their forum:
https://www.phplinkdirectory.com/forum/showthread.php?t=45162
Thanks a bunch for your help.
]]>I’ve recently bought a website directory, zalloo.com and it’s PHPLD based. I want to know if there is anyway of installing WordPress on it? I’ve tried thru cpanel, just testing, but I couldn’t do it, as it asks me to delete my index.php root file. Is there anyway of doing this?
This is my first adventure with a non WordPress website, and I’m already missing the fun.
]]>This is the script that I have my eye on: www.phplinkdirectory.com
Are there better options? Maybe better scripts? A Plugin? Has anyone done this before?
Am Worried about stability and load times etc…any thoughts…
If it could be done as per my conditions, How much would it cost?
]]>I have phpld script installed in root and wordpress installed under the folder blog.
I have this code in .htaccess for the phpld rewrite rule:
# URL rewrite rules
<IfModule mod_rewrite.c>
RewriteEngine On
## Details Link Page Rewrite##
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule (.*)detail/link-(.*).htm[l]?$ detail.php [QSA,NC]
## Pagination Rewrite
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule (.*)page-(\d+)\.htm[l]?(.*)$ $1/?p=$2 [PT,NC]
## Category redirect
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^(.*)$ index.php [QSA,L]
</IfModule>
Now I need to add this code for wordpress in order to get seo friendly url’s:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /blog/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /blog/index.php [L]
</IfModule>
When adding the wordpress rewrite code in .htaccess file, the phpld url’s goes to 404. Any idea’s how to go around this ?
Do I create a new .htaccess file and placed in the folder Blog ??
Thank You
]]>I am trying to build up a resource website for the websites which use www.phplinkdirectory.com script at https://www.phplinkdirectory.net/
I have integrated WordPress and PHPLD pretty well so far, but I am not able to use SEF Urls on wordpress and have to use Default option.
The Search engine friendly urls will either work for PHPLD or WP, but not both, so can someone suggest me a good way to enable search engine friendly URLs for both scripts.
Thanks,
Tony