phpBBHacks.com - post iframe thingy
Talk martial arts at KarateForums.com
StatsForums Home   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in
FAQFAQ   SearchSearch   MemberlistMemberlist   TutorialsTutorials   ContactContact Us
Username:    Password:
Remember Me?    
   I Lost My Password!
Bookmark and Share
Post new topic   Reply to topic    phpBBHacks.com Support Forums Forum Index -> phpBB 2 Hack Requests and Development
 See a User Guidelines violation? Please contact us.
Author Message

Hopper
New User

Joined: 15 Jan 2008
Posts: 8

PostPosted: January 19th 2009, 1:14 am    Post subject: post iframe thingy Reply with quote

extremely simple, quick and dirty hack that allows people who know the secret to start a topic with an iframe with a website as the contents
(the secret switch in the defauilt install is to name the topic "~,http://www.website.com" (without the quotes)
but the ~ can be changed to something else as long as you change both
Code:

if ($thinnerw[0] == "~")

to install the instructions are simple
open
viewtopic.php
find
Code:

//
// Censor topic title
//
if ( count($orig_word) )
{
   $topic_title = preg_replace($orig_word, $replacement_word, $topic_title);
}

after add
Code:

$sumow = $topic_title;
$thinnerw = explode(",",$sumow);
if ($thinnerw[0] == "~") {
$topic_title=$thinnerw[1];
}

find
Code:

$template->assign_block_vars('postrow', array(

before add
Code:

$sumo = $post_subject;
$thinner = explode(",",$sumo);
if ($thinner[0] == "~") {
$test=$message;
$message=supperhappyfuntime($thinner[1]);
$post_subject=$thinner[1];
}

find
Code:

include($phpbb_root_path . 'includes/page_tail.'.$phpEx);

after add
Code:

function supperhappyfuntime($test) {
$message="<iframe width=100% height=600 src=".$test."></iframe>";
return $message;
}
Back to top
View user's profile Send private message

Patrick
Admin/Webmaster

Joined: 11 May 2001
Posts: 17279
Location: Harbinger, NC, U.S.A.

PostPosted: January 26th 2009, 12:36 pm    Post subject: Reply with quote

Thanks for posting this, Hopper. I hope that some folks are able to give you some feedback during this testing phase and I look forward to having it in our database.

Thanks,

Patrick
_________________
Patrick O'Keefe - phpBBHacks.com Administrator - Feedback? Questions? Please Contact Me!
User Guidelines - Featured phpBB - Featured Author - phpBBHacks.com Awards - Supported Sites - About Us
Author, Managing Online Forums - A Practical Guide to Community Management
phpBB 3 Tutorials: Add Hacks | Clear Your Cache | Fix Missing Images | phpBB 3 Permissions Guide
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger

Hopper
New User

Joined: 15 Jan 2008
Posts: 8

PostPosted: February 6th 2009, 11:16 am    Post subject: Reply with quote

i hope so too, btw how would i add that to your db or is that your job?
Back to top
View user's profile Send private message

Patrick
Admin/Webmaster

Joined: 11 May 2001
Posts: 17279
Location: Harbinger, NC, U.S.A.

PostPosted: February 6th 2009, 3:39 pm    Post subject: Reply with quote

Thanks for the reply, Hooper.

Once it has reached a stable release (1.0), please submit it at http://www.phpbbhacks.com/submit.php.

I appreciate your time and interest.

Patrick
_________________
Patrick O'Keefe - phpBBHacks.com Administrator - Feedback? Questions? Please Contact Me!
User Guidelines - Featured phpBB - Featured Author - phpBBHacks.com Awards - Supported Sites - About Us
Author, Managing Online Forums - A Practical Guide to Community Management
phpBB 3 Tutorials: Add Hacks | Clear Your Cache | Fix Missing Images | phpBB 3 Permissions Guide
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger

Hopper
New User

Joined: 15 Jan 2008
Posts: 8

PostPosted: February 11th 2009, 12:09 pm    Post subject: Reply with quote

almost forgot
viewforum.php
search for
Code:

      $template->assign_block_vars('topicrow', array(

before add
Code:

$sumow = $topic_title;
$thinnerw = explode(",",$sumow);
if ($thinnerw[0] == "~") {
$topic_title=$thinnerw[1];
}

or the switch will be visible in the forum list
and in search.php
find
Code:

$template->assign_block_vars("searchresults", array(

before add
Code:

$sumow = $post_subject;
$thinnerw = explode(",",$sumow);
if ($thinnerw[0] == "~") {
$post_subject=$thinnerw[1];
$sumow = $topic_title;
$thinnerw = explode(",",$sumow);
if ($thinnerw[0] == "~") {
$topic_title=$thinnerw[1];
}


find
Code:

$template->assign_block_vars('searchresults', array(


before add

Code:

$sumow = $topic_title;
$thinnerw = explode(",",$sumow);
if ($thinnerw[0] == "~") {
$topic_title=$thinnerw[1];
}

to hide the switch from the search
[/code]
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    phpBBHacks.com Support Forums Forum Index -> phpBB 2 Hack Requests and Development All times are GMT - 6 Hours
Page 1 of 1
Jump to:  
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



Links: Big Message Boards - Free JavaScript - phpBB2 - phpbb styles - Suporte phpBB - phpBB Česky - phpBB Turkiye - phpBBArabia.com - phpBB-fr.com - Romanian phpBB online community - phpBB-TW.net - phpBBservice.nl - phpBB Brasil - phpBB Portugal - phpBBpersian.com

Network: iFroggy Hosting - PhotoshopForums.com - Managing Online Forums - ManagingCommunities.com - CommunityAdmins.com - KarateForums.com - Bad Boy Blog - SodaRatings.com - Patrick O'Keefe

< Advertising - Contact Us - Disclosure Policy - Staff - User Guidelines >

Copyright © 2001-2012. iFroggy Network, phpBBHacks.com. All Rights Reserved. Privacy Policy. We Support phpBBHacks.com (of course!).
Powered by phpBB © phpBB Group. phpBB SEO. We are in no way affiliated with the phpBB Group. phpBB is copyright to the phpBB Group.