Version: 1.1, by Ianomed
Developer Last Online: Dec 2005
Version: 3.0.6
Rating:
Released: 01-23-2005
Last Update: 01-29-2005
Installs: 11
No support by the author.
Embedded Poll Hack v1.1 by Ianomed, a request from TheAdminZone
It's a simple addition to showthread.php, and two template mods (showthread + postbit[legacy])
What it does is embed a poll in the first post, rather than show it at the top of the thread. On pages 2+ of course it'll show it at the top of the thread, since post 1 won't be displayed there.
See attached screenshot for an example, or check out this poll
Works with and tested on vB 3.0.6
Changelog:
v1.1 - 30 January 2005 - Added support for hybrid+threaded mode
v1.0 - 24 January 2005 - Initial release
--- Install instructions ---
in showthread.php, find:
PHP Code:
################################################################################
####################### SHOW THREAD IN LINEAR MODE #############################
################################################################################
if ($threadedmode == 0)
{
################################################################################
################ SHOW THREAD IN THREADED OR HYBRID MODE ########################
################################################################################
}
else
{
foreach (explode(',', $cache_postids) AS $id)
{
// get the post from the post array
if (!isset($postarray["$id"]))
{
continue;
}
$post = $postarray["$id"];
foreach (explode(',', $cache_postids) AS $id)
{
// get the post from the post array
if (!isset($postarray["$id"]))
{
continue;
}
$post = $postarray["$id"];
Hey Nexy, good to see you around
And nice to see you're pleased with the hack.
hum.. around ?!... you missed me ?!
yeah, i just applyed the hack, and it's good... i thought to recode it a bit, but it's useless, you worked it out well.
btw, in showthread.php there is 3 "$postbits .= construct_postbit($post, $template);" ... specify what is the one to edit... -- or guys, edit the three, you will have the same setting for all kind of displays (threaded as well)
lol, indeed. I've been rather busy with work, enjoying a short breather now. As such not been around here much.
About the 3 sequences, I've never used threaded/hybrid mode on any board whatsoever, so it kinda escaped my attention to make it tick for those as well. *whistles*
I'll post an update to include instructions for it shortly, thanks for pointing it out
thanks
keep in mind it doesn't work for threaded and hybrid mode, yet.
I'm posting up a revised version that includes instructions for getting that to work too.
Thusfar all admins I asked never use those modes, but you never know