GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Wordpress question (https://gfy.com/showthread.php?t=803010)

Kard63 01-27-2008 09:31 PM

Wordpress question
 
Can you insert the blogroll links and categories into the code before you upload it?

beta-tester 01-27-2008 09:38 PM

Why would anyone do that at first place? Everything is of course possible, I just don't find the reason for doing it manually when you can add them automatically.

Fat Panda 01-27-2008 09:42 PM

I am confused by your question?

pornask 01-27-2008 09:43 PM

it's an open source script so technically if you got a programmer who is good at PHP, he/she could modify the install files for you so when someone installs it, there will be different links in blog roll from default ones.

wpkings 01-29-2008 08:42 AM

What's the end result you're looking for?

From what you wrote it sounds like you want your blogroll and categories populated before you setup WP on a live server. Which is pretty simple to do, but is that your question?

Maybe you can elaborate on your question?

just a punk 01-29-2008 09:26 AM

Didn't get it.

Kard63 01-29-2008 11:09 AM

Quote:

Originally Posted by wpkings (Post 13712634)
What's the end result you're looking for?

From what you wrote it sounds like you want your blogroll and categories populated before you setup WP on a live server. Which is pretty simple to do, but is that your question?

Maybe you can elaborate on your question?

You are exactly right. That is what I want.

Jace 01-29-2008 11:17 AM

Quote:

Originally Posted by Kard63 (Post 13713508)
You are exactly right. That is what I want.

install wordpress on a domain, do everything you would want the default setup to do, links, themes, etc

dump your database, backup your files, replace the config with the sample one again

Deej 01-29-2008 11:19 AM

just throw your DB into place... your DB holds the gold

Boobs 01-29-2008 11:21 AM

edit the php in text? ... a little confused about ur question

wpkings 01-29-2008 11:44 AM

Quote:

Originally Posted by Kard63 (Post 13713508)
You are exactly right. That is what I want.

As Jace also suggested, the way to do it would be to create a local database filled with the data you want, then just import it into the live database.

You could do the dump of the local database and import it into the live database, or run the queries manually. For example, to insert a category into the database:
Code:

INSERT INTO `wp_categories` ( `cat_ID` , `cat_name` , `category_nicename` , `category_description` , `category_parent` )
VALUES (
'', 'test cat name', 'test-cat-name', '', '0'
);

To insert a basic link into your blogroll:
Code:

INSERT INTO `wp_links` ( `link_id` , `link_url` , `link_name` , `link_image` , `link_target` , `link_category` , `link_description` , `link_visible` , `link_owner` , `link_rating` , `link_updated` , `link_rel` , `link_notes` , `link_rss` )
VALUES (
'', 'httpwwwtesturlcom', 'Test Blogroll Friend', '', '', '1', '', 'Y', '1', '0', '0000-00-00 00:00:00', '', '', ''
);

* both of these examples assume your table prefix is 'wp_'
Make sure "httpwwwtesturlcom" in the above example is fixed (include colon, slashes, periods) before adding. I'm unable to post links apparently.

Hope this helps.


All times are GMT -7. The time now is 10:00 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123