توضیحات سایت اصلی | Vbulletin.org
این هک چه کار میکند:
What does this hack do ?
This mod simply lets you put your desired ads or any other codes just in the middle of first post , in each page of a thread .
This mod is updated in such a way that it recognized end of the
sentences by \".!?\" so it wont break the post content on the wrong place
instead it only inserts ads after the sentence , near to the middle of
the post.
راهنمای نصب هک :
Installation Guide:
1- upload the MidPostAds folder to its equivalent folder on your FTP site.
there is only 1 folder: yourwebsite/core/packages/MidPostads
2- goto: Admincp=>Products & Hooks=>Manage Products=>[Add/Import Product]
choose the xml file we provided : MidPostAds.xml , set overwrite to YES (if it\'s upgrade) and hit \"Import\"
3- File edit (only 3 lines) : open this file : yourwebsite/includes/vb5/template/nodetext.php
search for this line:
$found = $cache->read(array_keys($this->placeHolders));
and after it add this:
if (class_exists(\'MidPostAds_Api_node\')) {$found = MidPostAds_Api_node::MidPostAdsInsertion($found); }$i=1;
--------------------
now search for this line:
$parsed = $parser->doParse(
and just BEFORE it add this:
if (class_exists(\'MidPostAds_Api_node\')) {$textData[\'rawtext\'] =
MidPostAds_Api_node::MidPostAdsInsertionRaw($textD
ata[\'rawtext\'],$i);}$i=$i+1;
--------------------
find this line:
$cache->write($cacheKey, $parsed, 10080, $events);
and remove it or comment it
DONE
you can now go to admincp => Settings => MidpostAds
and change the settings or import your Ads code to be shown.
please keep in mind vbulletin 5 has lots if issues with posts Caching
and sometimes needs to refresh the page or wait for changes to take
effect
لینک دانلود این پلاگین
http://up.skinak.ir/info/473135/MidPost

