Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff
Author Message
rogue3
Regular
Regular


Joined: Jul 02, 2009
Posts: 63

PostPosted: Mon Nov 09, 2009 4:41 pm Reply with quote

I would like to add polls to my reviews. I found a poll module. Is it possible to take the link to that poll and embed it in the review content field so that the poll shows up in the reviews?

I tried using both the php and the html include commands but they don't seem to work. Any other ideas? The code is there when I view the source but the poll doesn't show up, so I assume I am using the wrong code. It isn't stripping it.
 
View user's profile Send private message
Palbin
Site Admin


Joined: Mar 30, 2006
Posts: 2583
Location: Pittsburgh, Pennsylvania

PostPosted: Mon Nov 09, 2009 6:05 pm Reply with quote

rogue3, this isn't as easy as "including" a poll module. For example if you iframe the module you will get the rest of the page. If you where to rewrite it to only show the poll there would be no point to an iframe. You need major coding work if you are looking for a non external poll. This is not something that can be explained to a person with limited knowledge of PHP in a step by step manner.

_________________
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan. 
View user's profile Send private message
rogue3
PostPosted: Mon Nov 09, 2009 7:35 pm Reply with quote

Well, the way I use the nuke modules is actually on a case by case basis, with the module being on a blank page if I don't manually put the wrapper around it. So, I suppose I can try the iframe. When I view the poll by itself it is on a white page all by itself.

I had a feeling this wasn't going to be easy Sad

It never is.
 
nuken
RavenNuke(tm) Development Team


Joined: Mar 11, 2007
Posts: 2024
Location: North Carolina

PostPosted: Mon Nov 09, 2009 7:57 pm Reply with quote

you could open the poll in a colorbox . whatever link you use just give it a class="colorbox" if you just want to use it with a single module and the results are as you wish.

_________________
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Send e-mail Visit poster's website
Palbin
PostPosted: Tue Nov 10, 2009 6:37 am Reply with quote

nuken, excellent suggestion Smile
 
rogue3
PostPosted: Tue Nov 10, 2009 6:40 am Reply with quote

I'm not sure I understand what you are suggesting here with the class="colorbox". I do want to use it with a single module (the reviews module).
 
rogue3
PostPosted: Tue Nov 10, 2009 9:43 pm Reply with quote

Just an update. I've edited the poll module successfully to make it on a white background. Then, I was able to use an iframe tag to put it in the review. It all worked like a charm. I don't have one live yet, but when I do I'll post a follow-up here. Thanks for the suggestions!
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©