Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Output Handling Question

Asked Modified Viewed 2,938 times
A
Arda
A
Arda 10
  • Member, joined since
  • Contributed 150 posts on the community forums.
  • Started 11 threads in the forums
  • Started this discussions
asked
Member

Hi, i wanna change meta keywords and description variables with output handling. i am writing an infusion now and i need to change them, i've both read the article at wiki, and checked the codes in both output handling, but yet couldn't find how to do that, is that just possible with current output handling functions? i'm suspecting about replace_in_output can do the job, tried , but could't succeed.

thanks for advices
0 replies

7 posts

S
StoyaN
S
StoyaN 10
  • Member, joined since
  • Contributed 162 posts on the community forums.
  • Started 37 threads in the forums
answered
Member

I want to make this too, especially for news.
0 replies
M
Matonor
M
Impossible things are there to be made possible
  • Veteran Member, joined since
  • Contributed 1,022 posts on the community forums.
  • Started 3 threads in the forums
answered
Veteran Member

meta tags can be set via the function set_meta($name, $content=""wink

Moderator edit: disabled smileys.
Edited by N/A on 20-08-2008 15:25,
0 replies
A
Arda
A
Arda 10
  • Member, joined since
  • Contributed 150 posts on the community forums.
  • Started 11 threads in the forums
  • Started this discussions
answered
Member

<?php
set_meta("keywords", "blah blah blah");
set_meta("description", "blah blah something here");
?>


works like a charm mate, this also should be added to wiki, i can't believe myself how i missed while checking output_handling_include.php *facepalm*:(
thanks for the help :)
0 replies
S
StoyaN
S
StoyaN 10
  • Member, joined since
  • Contributed 162 posts on the community forums.
  • Started 37 threads in the forums
answered
Member

Quote

SoulSmasher wrote:
<?php
set_meta("keywords", "blah blah blah");
set_meta("description", "blah blah something here");
?>


works like a charm mate, this also should be added to wiki, i can't believe myself how i missed while checking output_handling_include.php *facepalm*:(
thanks for the help :)


if I add this in render_news function in theme.php, can I see the keywords and descriptions in the news page. Cause I want keywords to be the name of the news item and the description to be the first 250 symbols of the news item. How can i do this?
0 replies
A
Arda
A
Arda 10
  • Member, joined since
  • Contributed 150 posts on the community forums.
  • Started 11 threads in the forums
  • Started this discussions
answered
Member

here's the way:

$description=trimlink($yourdatavariable,250);
set_meta("description", $description);


enjoy ;)
0 replies
S
StoyaN
S
StoyaN 10
  • Member, joined since
  • Contributed 162 posts on the community forums.
  • Started 37 threads in the forums
answered
Member

Is $yourdatavariable should be $news ?

What about the keywords?
0 replies
A
Arda
A
Arda 10
  • Member, joined since
  • Contributed 150 posts on the community forums.
  • Started 11 threads in the forums
  • Started this discussions
answered
Member

keywords should be handled seperately, i'm making an infusion which has a coloumn for save keywords seperately, you've to edit .php to add a coloumn.


and yes, yourvariable is $news there :)
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 7 posts
  • Votes 0 votes
  • Topic users 3 members

3 participants

M
M
Impossible things are there to be made possible
  • Veteran Member, joined since
  • Contributed 1,022 posts on the community forums.
  • Started 3 threads in the forums
A
A
Arda 10
  • Member, joined since
  • Contributed 150 posts on the community forums.
  • Started 11 threads in the forums
  • Started this discussions
S
S
StoyaN 10
  • Member, joined since
  • Contributed 162 posts on the community forums.
  • Started 37 threads in the forums

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet