vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Forum Home Enhancements - Corner Peeler (https://vborg.vbsupport.ru/showthread.php?t=177378)

Deepdog009 04-27-2008 10:00 PM

Corner Peeler
 
What this minor mod does is allows you to add specials,,, ads and other revenue generating fields to the upper right corner of most forum templates...

ATTENTION: download tutorial if you need help installing.

I tested on vBadvanced,,, Gallery,,, Form hack mod and other templates and it works beauts...


Primary setup consists of uploading peelers folder to your domain location...

If you want to add to your CMPS,,, You must upload peelers folder to your domain root...
http://yoursite.com/peelers/
Also you must add $var to CMPS globals...

If you want to add to your Gallery,,, You must upload peelers folder to your gallery root...
http://yoursite.com/gallery/peelers/

If you want to add to your Forum,,, You must upload peelers folder to your Forum root...
http://yoursite.com/forums/peelers/

************************************************** ***********

Step {2}
  • Goto admincp and open products and install plugin...
  • After loading plugin goto vbsettings and find Corner Peeler and adjust admin on/off and js options...
  • Check path of javascript in admin options ...>>> peelers/peel1.js <<<
  • Check path of javascript in admin options ...>>> peelers/peel2.js <<<
  • Check path of javascript in admin options ...>>> peelers/peel3.js <<<


************************************************** ***********

Step {3}

Setting up your Javascript file...>>> Here is where some may have a issue...

Your javascript file has several lines that require changes only if your FOLDER location is different...

Open javascript file with nopepad ++ and find code below and edit to match path of your PEELERS folder...
HTML Code:

jaaspeel.small_path = 'peelers/small.swf';
jaaspeel.small_image = escape('peelers/small.jpg');

jaaspeel.big_path = 'peelers/large.swf';
jaaspeel.big_image = escape('peelers/large.jpg');


One line of code in the javascript file must be changed so that when someone clicks on your ad image,,, it will redirect to the page of your choice...


Find this code in the javascript file and change the link to your link url...
HTML Code:

jaaspeel.ad_url = escape('http://vbulletin.org');

************************************************** ***********

Step {4}

Here is the javascript main file that loads the flash and images onto your page...


HTML Code:

<script src="peelers/peel1.js" type="text/javascript"></script>
The plugin will automatically load this for you,,, If you need to edit this info please goto the Corner peeler group in styles and edit templates below...>>>

  • corner_peeler_showme1
  • corner_peeler_showme2
  • corner_peeler_showme3


Why would i have to edit these?
only if you have a different path location where the peelers folder is located...

************************************************** ***********

Step {5}

Placement of Corner peelers...

Add $vars where you want them to show up...

$cornerpeeler1
$cornerpeeler2
$cornerpeeler3

{Important}
You must place $vars in the BODY area of your templates...

Where is the Body area at? Here...>>>
HTML Code:

$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
        <!-- no cache headers -->
        <meta http-equiv="Pragma" content="no-cache" />
        <meta http-equiv="Expires" content="-1" />
        <meta http-equiv="Cache-Control" content="no-cache" />
        <!-- end no cache headers -->
        $headinclude
        <title><phrase 1="$vboptions[bbtitle]">$vbphrase[x_powered_by_vbulletin]</phrase></title>

</head>
<body>
$header
$navbar
$cornerpeeler3

OR

HTML Code:

$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
        <!-- no cache headers -->
        <meta http-equiv="Pragma" content="no-cache" />
        <meta http-equiv="Expires" content="-1" />
        <meta http-equiv="Cache-Control" content="no-cache" />
        <!-- end no cache headers -->
        $headinclude
        <title><phrase 1="$vboptions[bbtitle]">$vbphrase[x_powered_by_vbulletin]</phrase></title>

</head>
<body>
$header
$navbar
$cornerpeeler1
$cornerpeeler2
$cornerpeeler3


Control them from the admin options...


************************************************** ***********


Demo

Ver...>>>0.1.1
  • Corrected errors in help file and folder...
  • Added fla files so that user can edit...
  • Added Swf url redirect folder to zip...
  • Made minor correction to xml file... overwrite old...


************************************************** ***********


Ver...>>>0.1.2
  • Added Tutorial to help newbies...


************************************************** ***********


Ver...>>>0.1.3
  • Added usergroups...
  • Added two more $var for more templates...


Download updated Pack file



FOLKS im testin the left side,,, if all goes well I will update left side corner peeler...



Good Luck 2 ya!

shadowevil 04-28-2008 06:04 AM

Nice mod .... installed

Magnumutz 04-28-2008 06:15 AM

Very nice, tagged for later use.

Skyline_GT 04-28-2008 06:44 AM

nice mod, will install for later use

John3971 04-28-2008 06:57 AM

Nice mod.

sensimilla 04-28-2008 07:26 AM

Thats very nice :D Thanks.

M-Tuning 04-28-2008 08:27 AM

Nice, that's something I was looking for!

rooban12 04-28-2008 10:13 AM

well done!

nectons 04-28-2008 10:30 AM

Very good mod. I have a question only. Is it possible to open the link inside the same window? And if it is possible to adding it to all for corners on any page :P

Thanks .. Installed :)

jasculs 04-28-2008 11:24 AM

Great stuff...anyway to only have certain usergroups be able to see it.

Hornstar 04-28-2008 12:17 PM

Thanks, this is something that looks very useufl.

iogames 04-28-2008 12:32 PM

Well I used to pay for that script :( how come is distributed as free?

projectego 04-28-2008 12:51 PM

Now that is pretty darn cool! Cheers. :)

Phooey 04-28-2008 01:26 PM

If there's anyway to make it viewable to certain usergroups only, that would be great!

Deepdog009 04-28-2008 01:58 PM

Quote:

Originally Posted by nectons (Post 1501347)
Very good mod. I have a question only. Is it possible to open the link inside the same window? And if it is possible to adding it to all for corners on any page :P

Thanks .. Installed :)

nectons I released this because I had installed this for a couple folks on other boards,,, but I haven't really looked deep into the javascript and the flash files YET...

Give me a bit of time and I will update this for guys that work long hours and don't have the time for coding... I will see what I can do...

************************************************** *******

Phooey If there's anyway to make it viewable to certain usergroups only, that would be great!

Let me see what I can do l8ter Phooey...

************************************************** *******

If anybody needs images resized to the 500 by 500 or 73 by73 its best to use Photoshop or Fireworks for better options... I can do them for ya if you upload pics...

YES ,,, this should work with 3.7

Good luck 2 ya!!!

rooban12 04-28-2008 02:10 PM

its nt showing up

rooban12 04-28-2008 02:16 PM

" For those that have problems setting up... Its easy to fix... First thing is to know the path where you uploaded the js folder and next you must edit the templates and the js files..."

which js folder?

echo2kk5 04-28-2008 02:20 PM

Nice mod, usergroup permissions would be very nice...I have premium members and I wouldn't want to force this on them.

KMDPEPSI 04-28-2008 02:21 PM

can't get this to work... dont understand the instructions, very poorly written tbh

M-Tuning 04-28-2008 05:07 PM

Quote:

Originally Posted by Phooey (Post 1501454)
If there's anyway to make it viewable to certain usergroups only, that would be great!

I already did that on my forum. Just place this code in the header or somewhere else:

Code:

<if condition="is_member_of($bbuserinfo, X, Y, Z)">
$cornerpeeler1
$cornerpeeler2
$cornerpeeler3
</if>

Change X Y and Z to the usergroups you want to enable the peel hack with.




Oh, and you have to change the folder name to peelers instead of peeler, otherwise the hack doesn't work.

dieselpowered 04-28-2008 05:54 PM

Good job, I actually have been using this for quite some time!

Vtec44 04-28-2008 06:05 PM

Quote:

Originally Posted by iogames (Post 1501431)
Well I used to pay for that script :( how come is distributed as free?

There are bunch of free scripts for this effect out there. :)

archaosus 04-28-2008 06:06 PM

Do i have to manually edit the $cornerpeelerX into a template to get this to work? Mine is steadfastly refusing to show lovely adverts at the moment.

a : Yes - edited into the header template. Happy happy joy joy.

maroceve 04-28-2008 06:09 PM

Very nice mod. Do you happen to have ever made a Full Page advertisement mod "in between" ?

GoTTi 04-28-2008 06:39 PM

cant use google adsense code with this can we?

GoTTi 04-28-2008 06:42 PM

working on rc4 by the way

GoTTi 04-28-2008 06:53 PM

i am resizing the banner to 500x500 in pixels and it is 2 big. the ad is not showing correctly. ideas?

GoTTi 04-28-2008 06:56 PM

so the ad has to fit that curved area, half of the 500x500 on the top right, so...we cant just use a regular banner, we have to modify it or create our own ads to go there....

nectons 04-28-2008 07:12 PM

Quote:

Originally Posted by Deepdog009 (Post 1501497)
nectons I released this because I had installed this for a couple folks on other boards,,, but I haven't really looked deep into the javascript and the flash files YET...

Give me a bit of time and I will update this for guys that work long hours and don't have the time for coding... I will see what I can do...

************************************************** *******

You are the best my friend.. :) I was looking long time to find a solution for that :) I have installed (pain in the @ss to find how to) some months ago and i have it working inside the same window but the damn thing it have a certain swf file for that and when you hover the mouse on it it goes transparent :D Look at my site to see what i mean www.bytheway.gr

THANKS man ...

Im waiting :)

Barakat 04-28-2008 08:46 PM

Cool .

K4GAP 04-28-2008 09:55 PM

Some files referred to as "peelers" but shown as "peeler". Whats up with that?

GoTTi 04-28-2008 10:50 PM

ya i noticed that. just put s on the folder.

PoetJA-1975 04-29-2008 12:24 AM

Quote:

Originally Posted by iogames (Post 1501431)
Well I used to pay for that script :( how come is distributed as free?

http://www.webpicasso.de/blog/pageea...-peel-away-ad/ :D

Jacquii.

Deepdog009 04-29-2008 03:32 PM

Sorry folks for the errors in mod,,, but I always forget to double check some stuff...

I uploaded NEW swf files that should help with url redirects...


I added
*******
  • _blank
  • _top
  • _self
  • _parent

sdavis2702 05-05-2008 11:46 AM

Very nice... I will use this as soon as ai find the right advertisement for it...

AzzidReign 05-05-2008 03:06 PM

Is there a way to make this appear in the bottom right corner? I know a member asked if it was ok to run with adsense...if the adsense block is covered by this, then I believe it's against their tos. So to prevent this, it would be nice to show in the bottom right or left corner of the screen. Is there a minor edit I can make to make this possible?

csoroner 05-06-2008 05:24 AM

Now this mods really cool! Installed nice but I have found or created on small issue. I can't seem to put a image at 500x500? 500x250 is the largest other wise when you mouse over it closes?

Any ideas......

segwayon 05-06-2008 02:52 PM

Nice mod! Works like a charm!

Deepdog009 05-06-2008 04:52 PM

Quote:

Originally Posted by csoroner (Post 1510082)
Now this mods really cool! Installed nice but I have found or created on small issue. I can't seem to put a image at 500x500? 500x250 is the largest other wise when you mouse over it closes?

Any ideas......

Csoroner try the images already there and if all goes well which it should...

Next replace images with your own and its a done deal...


If U need more help,,, give me temp access and I will resolve 4 U...

tschai 05-06-2008 07:16 PM

Cool!

Installed & nominated for MotM...great work and great support!


All times are GMT. The time now is 02:21 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01278 seconds
  • Memory Usage 1,832KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (5)bbcode_html_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete