Home arrow Forum Add a poll in SEF
  Welcome, Guest. Please login or register.
Did you miss your activation email?
November 23, 2008, 10:41:57 AM
Home New Posts Search Calendar


Login with username, password and session length
+  Joomla Forum
|-+  Joomla Hacks
| |-+  Joomla-SMF Forum Support
| | |-+  Joomla-SMF 2.0.x (Moderators: -Wolverine, kai920)
| | | |-+  Add a poll in SEF
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: Add a poll in SEF  (Read 2605 times)
Jacuzzi
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 11


View Profile
Add a poll in SEF
« on: November 02, 2006, 03:20:50 PM »

have notice a new problem in my forum...
Quote
system SMF 1.1 RC3 + Bridge 2.0 + Jooma: 1.1.10 + SEF

URL /X/forum/index.php?action=editpoll;add;topic=22.0;sesc=
SEF /X/component/option,com_smf/Itemid,6/action=editpoll/add/topic,22.0/sesc=

when I try to add a POLL in an excisting topic, I get the next error...
Quote
There is no poll associated with this topic!
Of course, that's why I wanna create one lah...

can't I create new polls when I using SEF? Or how to solve this?

the NEW POLL function at the topic overview works fine, it's the ADD POLL function on the TOPIC page...



« Last Edit: November 02, 2006, 03:23:30 PM by Jacuzzi » Logged
-Wolverine
Moderator
Joomla Guru
*****

Karma: +376/-34
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: Add a poll in SEF
« Reply #1 on: November 02, 2006, 03:52:32 PM »

See if this url works:

/X/component/option,com_smf/Itemid,6/action,editpoll/add/topic,22.0/sesc,
« Last Edit: November 02, 2006, 04:20:23 PM by -Wolverine » Logged

Need help?  Check Here First!
Get the JSMF User Guide
SEARCH this forum.
Jacuzzi
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 11


View Profile
Re: Add a poll in SEF
« Reply #2 on: November 03, 2006, 11:32:51 AM »

See if this url works:

/X/component/option,com_smf/Itemid,6/action,editpoll/add/topic,22.0/sesc,

sorry my mistake but the URL is as shown here with action,editpoll/add and not action=editpoll/add for the SEF... get the problem with this , URL...
Logged
-Wolverine
Moderator
Joomla Guru
*****

Karma: +376/-34
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: Add a poll in SEF
« Reply #3 on: November 03, 2006, 12:45:34 PM »

please repost the full SEF url so we are clear
Logged

Need help?  Check Here First!
Get the JSMF User Guide
SEARCH this forum.
Jacuzzi
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 11


View Profile
Re: Add a poll in SEF
« Reply #4 on: November 03, 2006, 05:19:05 PM »

the full URL which gives me this problem is...
/X/component/option,com_smf/Itemid,6/action,editpoll/add/topic,19.0/sesc,30334c9cee85d90052fd4942e1e909b0/

was busy with skinning my forum and noticed that also the Jump-to with SEF is not working...
get the next link...
/X/component/option,com_smf/Itemid,6/board,5.0
when I add a / to the end like this...
/X/component/option,com_smf/Itemid,6/board,5.0/
then it works fine...
Logged
mike
Joomla Newbie
*

Karma: +1/-1
Offline Offline

Posts: 24


We have Room...


View Profile
Re: Add a poll in SEF
« Reply #5 on: November 06, 2006, 02:43:32 PM »

I was just informed by one of my users that the jump to box in smf isn't working on my site as well. I am using Joomla 1.0.11, smf rc3, and the 2.0 RC1 bridge. I have the Joomla sef turned on, and the smf sef turned off.

I notice that when I am cruising thru my forums, I have a backslash (/) at the end of all the urls. When the url is generated by the jump to box, there is no trailing backslash, thus causing the page not to be found.

I notice on this site there are no trailing backslashes in the urls. So, other than removing the jump to box (which is not too difficult), what else can I do to remedy this??

EDIT: I just tried the Add Poll option from inside the message and get the same error as Jacuzzi.... seems to be the backslash issue. So I guess removing the jump to box will just resolve the jump to issue, but not the polls, and who knows what else... seems a solution is needed for this mysterious backslash problem.....
« Last Edit: November 06, 2006, 03:01:24 PM by mike » Logged
-Wolverine
Moderator
Joomla Guru
*****

Karma: +376/-34
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: Add a poll in SEF
« Reply #6 on: November 06, 2006, 03:44:45 PM »

the backslash should be there, and I will correct this in the next version.
Logged

Need help?  Check Here First!
Get the JSMF User Guide
SEARCH this forum.
-Wolverine
Moderator
Joomla Guru
*****

Karma: +376/-34
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: Add a poll in SEF
« Reply #7 on: November 06, 2006, 05:30:41 PM »

the full URL which gives me this problem is...
/X/component/option,com_smf/Itemid,6/action,editpoll/add/topic,19.0/sesc,30334c9cee85d90052fd4942e1e909b0/

was busy with skinning my forum and noticed that also the Jump-to with SEF is not working...
get the next link...
/X/component/option,com_smf/Itemid,6/board,5.0
when I add a / to the end like this...
/X/component/option,com_smf/Itemid,6/board,5.0/
then it works fine...
jump-to is fixed, will be in RC3, still looking at the other
Logged

Need help?  Check Here First!
Get the JSMF User Guide
SEARCH this forum.
p9939068
Joomla Expert
****

Karma: +18/-5
Offline Offline

Posts: 173


View Profile WWW
Re: Add a poll in SEF
« Reply #8 on: November 06, 2006, 05:42:09 PM »

To make "Add Poll" work, the / between editpoll and add must be changed to & so that it looks like action,editpoll&add. I'm guessing smf reads "editpoll&add" to be the action attribute as a whole..?

Rgds, Mike
Logged

-----
Owner of http://mike.simbunch.com
Creator of ParaInvite, AJAX Sandbox, AJAX SMF Polls, Profile URL etc..
-Wolverine
Moderator
Joomla Guru
*****

Karma: +376/-34
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: Add a poll in SEF
« Reply #9 on: November 06, 2006, 06:01:58 PM »

Ok, the problem is that 'add' in the middle.  It is not being registered as a valid $_REQUEST param.  So SMF doesn't see it and assumes you are trying to edit an existing poll which obviously the thread does not have *yet*. 

I fixed this by changing the /add/ to /add,1/ since it is just checking if it is set.  I am sure that will break something else so if anyone comes across a url with ;add; or /add/ in it please let me know right away.
Logged

Need help?  Check Here First!
Get the JSMF User Guide
SEARCH this forum.
mike
Joomla Newbie
*

Karma: +1/-1
Offline Offline

Posts: 24


We have Room...


View Profile
Re: Add a poll in SEF
« Reply #10 on: November 06, 2006, 06:10:31 PM »

all righty then.... thanks for the quick fixin of the jump to issue, and it sounds like we're soon to have a fix for the add polls issue, will using p9939068's solution work without breaking something else as you suggested your quick down and dirty fix might??  Wink
Logged
-Wolverine
Moderator
Joomla Guru
*****

Karma: +376/-34
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: Add a poll in SEF
« Reply #11 on: November 06, 2006, 06:16:08 PM »

@p9939068 no, actually smf is reading it as a separate $_REQUEST var, and checking if it is set.  With SEF enabled it incorrectly reads it as not set.  Works just fine with sef disabled.

@mike, no, it didn't work for me.  The final fix will be in RC3 which should be quick to fix the bugs I introduced with RC2.
Logged

Need help?  Check Here First!
Get the JSMF User Guide
SEARCH this forum.
mike
Joomla Newbie
*

Karma: +1/-1
Offline Offline

Posts: 24


We have Room...


View Profile
Re: Add a poll in SEF
« Reply #12 on: November 06, 2006, 06:25:28 PM »

Well then, rawk on with your badself.... hehe... on top of things as usual.... Cheesy

carry on....   Lips Sealed
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  



Login with username, password and session length

Powered by MySQL Powered by PHP Joomla Forum | Powered by SMF 1.1 RC1.
© 2001-2005, Lewis Media. All Rights Reserved.
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!

Joomla Hacks is a Joomla Components, Joomla Modules, Joomla Templates, & Joomla Mambots resource portal. None of the text or images in this public website may be copied without the expressed written consent of the authors. Copyright 2005 by JoomlaHacks.com. Powered by Joomla. All rights reserved.
Terms of Use
Joomla Hacks



Joomla Hacks
German Lang French Lang Italian Lang Spanish Lang Japanese Lang Chinese Lang
Search Contact About Advertise Blogs Topsites Submit News Register Login