Forums

Onepress and post links (1 post)

  1. guillepadilla
    Member
    Posted 2 years ago #

    Hii,
    I've a wordpress using the template OnePress for the interaction with a phpBB forum. All works, but the page must be in spanish, and the template is developed in english. For the moment I never had problems to change the text links in other templates or customize the selfbuilt templates, but in this one, the more_link text (for example) is defined in the template in the archives:
    - class.OP.php
    - layout.OP.php
    in this way:

    // Add default content widget
    			$id = OP::get_next_widget_id();
    			$new_widgets[] = 'content_body-'.$id;
    			$stored_options = get_option('widget_op_content_body');
    			$stored_options[$id] = 	array(
    				'content_layout'	=> array('title','date','post-body','tags','div','categories','edit-link','comments'),
    				'advanced'			=> array(
    					'author_pre'		=> 	'by ',
    					'time_pre'			=> 	'at ',
    					'time_format'		=> 	'',
    					'date_format'		=> 	'F j, Y',
    					'more_link'			=>	 'read more',
    					'tag_label'			=> 	'Tags: ',
    					'tag_before'		=> 	'',
    					'tag_separator'		=>	', ',
    					'tag_after'			=>	'',
    					'category_label'	=>	'Categories: ',
    					'category_separator'	=>	', ',
    					'category_parents'		=> 	'',
    					'comment_link_none'		=> 	'No Comments »',
    					'comment_link_one'		=>	'1 Comment »',
    					'comment_link_multiple'	=>	'% Comments »'
    			));
    			update_option('widget_op_content_body', $stored_options);

    I edited both archives, but it doesn't work.
    I looked in the database and I saw that is defined in this too, but I can't edit the database and make it work again with the changes.

    What can I do to change this texts that are for default in the layout??

    Thanks a lot.

Topic Closed

This topic has been closed to new replies.

About this Topic