1
FreddyH
Xoopspoll & meta title
  • 2013/7/6 19:15

  • FreddyH

  • Just popping in

  • Posts: 18

  • Since: 2013/7/1 1


Hmmm... How can i change to get the poll question to be the page title? Atm it shows only Polls (module name)

2
zyspec
Re: Xoopspoll & meta title
  • 2013/7/6 20:45

  • zyspec

  • Module Developer

  • Posts: 1095

  • Since: 2004/9/21


Which version of Xoopspoll are you using?

3
FreddyH
Re: Xoopspoll & meta title
  • 2013/7/6 21:56

  • FreddyH

  • Just popping in

  • Posts: 18

  • Since: 2013/7/1 1


Version 1.3

4
FreddyH
Re: Xoopspoll & meta title
  • 2013/7/7 19:32

  • FreddyH

  • Just popping in

  • Posts: 18

  • Since: 2013/7/1 1


I solved it myself

$xoopsTpl->assign'xoops_pagetitle' $poll->getVar("question")); 
if(isset(
$xoTheme) && is_object($xoTheme)) {
 
$xoTheme->addMeta"meta""description"$poll->getVar("description")); 
}


I think this should be added by the developer tbh


5
zyspec
Re: Xoopspoll & meta title
  • 2013/7/8 1:06

  • zyspec

  • Module Developer

  • Posts: 1095

  • Since: 2004/9/21


Glad you were able to resolve it!

I've added this to an upcoming version of Xoopspoll (v1.4) in 2 places. When voting (./index.php) and when viewing the results (./pollresults.php)

6
FreddyH
Re: Xoopspoll & meta title
  • 2013/7/8 11:31

  • FreddyH

  • Just popping in

  • Posts: 18

  • Since: 2013/7/1 1


Great! I have posted the last poll question on our facebook page and now it shows correct, instead of before, just module name and site description... useless for facebook postings... The one thing lacking is a poll question image... I had to add a static one to meta tags...

Login

Who's Online

168 user(s) are online (111 user(s) are browsing Support Forums)


Members: 0


Guests: 168


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits