Introducing Quicktags (qT 2.1 and higher)

Having Problems? Need Help? Post here!

Re: Introducing Quicktags (qT 2.1 and higher)

Postby Syrion » Wed Oct 14, 2009 9:22 pm

Replace <?php else : ?> with <?php elseif : ?> untill you get to the last one. So: if <lang 1> elseif <lang 2> eldeif <lang 3> elseif <lang 4> else <lang 5>
Syrion
 
Posts: 1
Joined: Wed Oct 14, 2009 8:22 pm

Re: Introducing Quicktags (qT 2.1 and higher)

Postby hoguelo » Mon Oct 19, 2009 1:35 pm

sorry for my bad knowledge of php, but how would I implement the Quicktags in :


Code: Select all
<?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?>
hoguelo
 
Posts: 3
Joined: Mon Oct 19, 2009 1:30 pm

Re: Introducing Quicktags (qT 2.1 and higher)

Postby Qian Qin » Wed Oct 21, 2009 10:16 pm

somewhat like this:
Code: Select all
<?php comments_popup_link(__([:en]'No Comments[:de]foobar'), '1 Comment', '% Comments'); ?>
Qian Qin
Site Admin
 
Posts: 964
Joined: Thu Jun 19, 2008 12:14 pm
Location: Germany

Re: Introducing Quicktags (qT 2.1 and higher)

Postby hoguelo » Thu Oct 22, 2009 10:25 am

Qian Qin wrote:somewhat like this:
Code: Select all
<?php comments_popup_link(__([:en]'No Comments[:de]foobar'), '1 Comment', '% Comments'); ?>


It missed a ':
Code: Select all
<?php comments_popup_link(__('[:nl]Geen reacties[:en]No Comments[:fr]Pas de commentaire'), '[:nl]1 reactie[:en]1 Comment[:fr]1 commentaire', '[:nl]% Commentaar[:en]% Comments[:fr]% de commentaire'); ?>


Thank you very much for the help and the great script!
hoguelo
 
Posts: 3
Joined: Mon Oct 19, 2009 1:30 pm

Re: Introducing Quicktags (qT 2.1 and higher)

Postby grihan » Fri Oct 23, 2009 8:12 am

I can´t make working Quicktags.
This is the original code:
Code: Select all
<?php echo '<li class="page_item"><a href="' . get_bloginfo('url') . '">Home</a></li>'; ?>


I tried this:
Code: Select all
<?php echo '<li class="page_item"><a href="' . get_bloginfo('url') . '"><?php _e('[:en]Home[:es]Inicio); ?></a></li>'; ?>

But I get this error:
Parse error: syntax error, unexpected '[', expecting ',' or ';' in /home/grihanwb/public_html/wp-content/themes/ePhoto/header.php on line 98


Then I tried this:
Code: Select all
<?php echo '<li class="page_item"><a href="' . get_bloginfo('url') . '"><!--:en-->Home<!--:--> <!--:es-->Inicio<!--:--></a></li>'; ?>

But with that code I get the text: HomeInicio in the button.

Any help, please?
grihan
 
Posts: 3
Joined: Fri Oct 23, 2009 8:05 am

Re: Introducing Quicktags (qT 2.1 and higher)

Postby Qian Qin » Fri Oct 23, 2009 11:04 am

I tried this:
Code: Select all
<?php echo '<li class="page_item"><a href="' . get_bloginfo('url') . '"><?php _e('[:en]Home[:es]Inicio); ?></a></li>'; ?>

But I get this error:
Parse error: syntax error, unexpected '[', expecting ',' or ';' in /home/grihanwb/public_html/wp-content/themes/ePhoto/header.php on line 98



you missed a '
Code: Select all
<?php echo '<li class="page_item"><a href="' . get_bloginfo('url') . '"><?php _e('[:en]Home[:es]Inicio'); ?></a></li>'; ?>
Qian Qin
Site Admin
 
Posts: 964
Joined: Thu Jun 19, 2008 12:14 pm
Location: Germany

Re: Introducing Quicktags (qT 2.1 and higher)

Postby grihan » Fri Oct 23, 2009 2:36 pm

thanks for the quick answer...
but i get this error again (i copied and pasted your code)
Parse error: syntax error, unexpected '[', expecting ',' or ';' in /home/grihanwb/public_html/wp-content/themes/ePhoto/header.php on line 98
grihan
 
Posts: 3
Joined: Fri Oct 23, 2009 8:05 am

Re: Introducing Quicktags (qT 2.1 and higher)

Postby Qian Qin » Sun Oct 25, 2009 10:37 am

oh, looks like your php tags are broken as well.

Code: Select all
<?php echo '<li class="page_item"><a href="' . get_bloginfo('url') . '">'.__('[:en]Home[:es]Inicio').'</a></li>'; ?>
Qian Qin
Site Admin
 
Posts: 964
Joined: Thu Jun 19, 2008 12:14 pm
Location: Germany

Re: Introducing Quicktags (qT 2.1 and higher)

Postby grihan » Mon Oct 26, 2009 10:06 am

nice! it works, thanks for all!
grihan
 
Posts: 3
Joined: Fri Oct 23, 2009 8:05 am

Re: Introducing Quicktags (qT 2.1 and higher)

Postby willy » Fri Nov 13, 2009 2:40 am

Hi
sorry for my bad english
I Need make two links en my rss widgets
1 for español rss
2 for english

Im try to make tag en fiel ( Enter the RSS feed URL here:)

[:en]http://rss.news.yahoo.com/rss/eurobiz[:es]http://rss.cnn.com/rss/money_latest.rss

but no working

PLEASE I NEED HELP!!!
willy
 
Posts: 2
Joined: Sat Nov 07, 2009 3:52 pm

PreviousNext

Return to qTranslate Support Forum

Who is online

Users browsing this forum: No registered users and 4 guests