vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Miscellaneous Hacks - Cyb - Flash-Image Banner Rotator (https://vborg.vbsupport.ru/showthread.php?t=177705)

Valter 04-30-2008 10:00 PM

Cyb - Flash-Image Banner Rotator
 
Info:
Easy to use/manage banner rotator which works with both, image and flash banners.


Features:
-one-step installation
-specify display duration/dimensions of individual image/swf
-set position on page and margins in ACP
-continuous and random play modes
-exclude usergroups from viewing banners
-automatically add banners to forum header (can be turned on/off)
-easy manage banners
-click counter


Installation:
1. Import XML file (as product): AdminCP > Plugin System > Manage Products > [Add/Import Product]
2. OPTIONAL: Open desired template and add "$cyb_flashimagebanners" where you wish banners to appear
3. OPTIONAL (if link to manage banners page is not shown in Quick links menu):
Open navbar template and add "$insert_cybfibr" after "$vbphrase[miscellaneous]</td></tr>"


To set options:
Go to: AdminCP > vBulletin Options > Cyb - Flash-Image Banner Rotator


Credits and Notes:
-Part of the javascript code was originally written by M. K. Namdeo few years ago.
-Only SuperAdmins can access Banner Management page


Versions:
v1.0 - Nov 11. 2006.
-Initial release
v1.1 - Jan 29. 2007.
-Fixed bug (code makes some functions in newthread form not working when WYSIWYG editor is enabled)
v1.2 - Feb 06. 2007.
-Added separate page for banners management (only SuperAdmins can access it)
-Added link to Manage Banners page to Quick Links menu (viewable to SuperAdmins only)
-Few more options in ACP, small code improvements,...
v1.3 - Feb 25. 2007.
-Fixed bug (' can't be used in titles)
-You don't need to set admincp folder name anymore (if changed). This is now detected automatically.
-Settings page better organized...
v1.4 - Jun 14. 2007.
-Completely rewritten version
-Better and easier banner management (check new screenshots)
-Added option to set pages where banners are shown (shown on all pages if blank)
-Added click counter
-Group membership checking works now for supplementary usergroups too
-Many other fixes and improvements
v1.5 - Jul 26. 2007.
-Fixed security exploits and known bugs
v1.5.1 - Jul 29. 2007.
-Improved security on writing data to some db fields
v1.6 - Aug 20. 2007.
-Added option to choose to open target links in new or current window/tab
-Fixed bug where ampersand can not be used in links
-Fixed bug with durations in Continuous play mode
-Added option to disable triangle used to catch clicks for flash banners
-Several minor compatibility/security fixes...
v1.7 - Apr 30. 2008.
-CSRF protection added
-Compatible with vBulletin 3.7 Gold (may not work with Beta/RC releases)
-Minor bugs fixed
v1.8 - Dec 28. 2008.
- New Play Mode: One banner per refresh
- New: You are now able to put e-mail address as banner link.
- Fixed bug: page flickering/blinking in Random Play Mode on some sites
- Minor bug fixes/code optimization


Live Demo: http://www.bihforum.com


PLEASE click INSTALL if you like this hack ;)

gwerzal 05-01-2008 08:41 AM

Thanks for the release. Will check it out.

M-Tuning 05-01-2008 09:03 AM

Is it possible to change the time the advert rotates?

Holfy.com 05-01-2008 09:15 AM

THANKYOU! :D installing right away.

Jasem 05-01-2008 10:16 AM

Thank you a lot

meolangthang 05-01-2008 10:48 AM

Thank you! Installing :D

billt928 05-01-2008 12:57 PM

it seems to have issues with very long url's (cuts them off)

Al Gregory 05-01-2008 03:50 PM

Thank You needed this very badly, had to remove VBPortal because it wouldnt work right for me with 3.7 gold.
One question, this is only showing in my default style. How would I make it work in other styles?

I guess it depends on the style, I see it on some and on some pages but not all. Thats ok I only show banners to unregistered and new members anyway. I will just make it so they cant change styles until they reach the post limit that they would no longer see banners.

airborneCAL 05-02-2008 02:05 AM

When I click on the link it takes me to my smilies page. What gives?

NFLfbJunkie 05-02-2008 03:20 AM

I have placed the banners folder as such: /public_html/forums/cyb_banners/

So when I add a banner, the banner path that I put in the banner field is cyb_banners/logo.png.

The logo shows on all my pages except the vbadvanced_cmps home page. If I place a second cyb_banners folder in the root, it works; but there should be a way to have just the one folder I would think. Is there a setting I am missing?

Flep 05-02-2008 05:39 AM

Is it possible to add the banner between posts too ?

Flep 05-02-2008 05:45 AM

ops sorry... I didn't read this:

2. OPTIONAL: Open desired template and add "$cyb_flashimagebanners" where you wish banners to appear

midwestce 05-04-2008 01:13 AM

I'm getting a Security Token error like some other people have had problems with regarding other versions of vBulletin. Anyone else having this issue (or) have an idea on what I can do?

I've uninstalled the previous versions of the banner rotator addon and reinstalled with the same issue. I go into 'Manager Banners' from the drop down and input the data that is needed, click 'Go' and it comes up with the security token issue.

Thanks,

Nick

TeknoSounds 05-04-2008 02:31 AM

Cyb, I had posted in the old vb3.6 thread, but never got an answer.

I really like your banner mod, and would like to include it in an external page from vB. I was curious what all code I needed to include in my php page in order to access the "$cyb_flashimagebanners" variable.

midwestce 05-04-2008 03:17 AM

Okay, 2 issues I have found...

I managed to get the banners added by manually putting in the token code, but I can't make banners active/inactive from the manage screen.

Secondly, the banners do not have a hyperlink @ the top of the page. Any insight?

Thanks.

crkgb 05-04-2008 10:54 AM

On some of the pages when I open "Quick links" I get two "Manage Banners" links. The first one leads to the correct url and the second one takes you to

http://www.site.com/testvb/%5C%22htt...cybbannman\%22

Is there any way to fix that?

airborneCAL 05-04-2008 06:33 PM

Quote:

Originally Posted by airborneCAL (Post 1505280)
When I click on the link it takes me to my smilies page. What gives?

Any help? I'm lost on this.

XnaMe 05-04-2008 06:55 PM

Can u make somethings who let to put google adsense code?

McMendo 05-04-2008 08:48 PM

Quote:

Originally Posted by airborneCAL (Post 1505280)
When I click on the link it takes me to my smilies page. What gives?

Same problem here!

misc.php?do=cybbannman gives the smilies page.

Valter 05-04-2008 09:08 PM

Quote:

Originally Posted by McMendo (Post 1508574)
Same problem here!

misc.php?do=cybbannman gives the smilies page.

Are you a Super-Admin?

Not all Admins are able to manage banners.

airborneCAL 05-04-2008 09:36 PM

Quote:

Originally Posted by Cybernetec (Post 1508605)
Are you a Super-Admin?

Not all Admins are able to manage banners.

I am, yes and have this problem. Thanks Cyb!

midwestce 05-05-2008 05:18 PM

Any idea with my issue? Post 15 -

https://vborg.vbsupport.ru/showpost....3&postcount=15

Thanks.

XnaMe 05-05-2008 05:45 PM

Hello! How can i add another thing like to add another banner rotator between the nav and forums, but more large, and with images only i'have selected? thanks!

McMendo 05-05-2008 06:34 PM

Quote:

Originally Posted by Cybernetec (Post 1508605)
Are you a Super-Admin?

Not all Admins are able to manage banners.

It works now as admin.

But refreshing a page sometimes gives a blank. I have 2 banners loaded from the server and one banner loaded from an external site. The banners configuration is in random.

Al Gregory 05-05-2008 09:33 PM

Added this to another site and banners dont appear
Fixxed it had to add $cyb_flashimagebanners to the header template

midwestce 05-06-2008 12:53 AM

In addition to my issue on post 15, I'm also having the issue of them (the banners) occasionally NOT showing up on page refreshes.

Thanks.

axg 05-06-2008 01:03 AM

Ok, i have one little problem. I am running a customized skin that does not have "Quick Links". How do i go about adding them to my nav bar so i can see the manage banners part of this hack?

Any help is appreciated.

RedTrinity 05-06-2008 01:25 AM

Quote:

Originally Posted by axg (Post 1509928)
Ok, i have one little problem. I am running a customized skin that does not have "Quick Links". How do i go about adding them to my nav bar so i can see the manage banners part of this hack?

Any help is appreciated.

I would like to know this as well, as I removed the Quick Links menu.

Cheers :)

stonner 05-06-2008 08:35 AM

Is it also possible to add different codes of afflinate-partners, or adsense etc.?

crkgb 05-06-2008 11:25 AM

Quote:

Originally Posted by crkgb (Post 1507955)
On some of the pages when I open "Quick links" I get two "Manage Banners" links. The first one leads to the correct url and the second one takes you to

http://www.site.com/testvb/%5C%22htt...cybbannman\%22

Is there any way to fix that?

Please help

axg 05-06-2008 03:41 PM

Is there any other way of getting to the management of the banners? I do not have a quick links. Or how would i go about adding a link to it?

QATARAT 05-06-2008 04:32 PM

hi

to go to the management >>
Quote:

3. OPTIONAL (if link to manage banners page is not shown in Quick links menu):
Open navbar template and add "$insert_cybfibr" after "$vbphrase[miscellaneous]</td></tr>"
www.ursite.com/forum/misc.php?do=cybbannman


---------------------

problem with checking in w3.org

Quote:

for (var iCtr=0; iCtr < this.aCybs.length; iCtr++)
thank u :)

fourat 05-06-2008 08:17 PM

thank you nomenated

this hack is not Valid XHTML 1.0 Transitional ?
http://validator.w3.org/

airborneCAL 05-06-2008 10:13 PM

Quote:

Originally Posted by McMendo (Post 1508574)
Same problem here!

misc.php?do=cybbannman gives the smilies page.

Can we get some help with this?

axg 05-07-2008 01:16 AM

Quote:

Originally Posted by QATARAT (Post 1510670)
hi

to go to the management >>


www.ursite.com/forum/misc.php?do=cybbannman


---------------------

problem with checking in w3.org



thank u :)

DOH!, thanks, i guess i should have read a little bit closer.. lol

McMendo 05-07-2008 12:25 PM

I get this error when I try to import the xml product:
Code:

No file uploaded and no local file found.

McMendo 05-07-2008 06:01 PM

Quote:

Originally Posted by McMendo (Post 1511570)
I get this error when I try to import the xml product:
Code:

No file uploaded and no local file found.

I found the problem. Sorry.

djlotus 05-07-2008 10:24 PM

This hack works great. Thanks a lot for it.


INSTALLED

sqzdog 05-09-2008 01:38 PM

I installed a new style and I don't know where in the code I am supposed to add $cyb_flashimagebanners

Here is my header code:

Quote:

<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
<td height="122" class="header"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="300"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img border="0" src="cb/cb/logo.gif" width="300" height="122" alt="$vboptions[bbtitle]" class="logo"/></a></td>
<td width="670"><div class="afterlogo">Banner Or Announcements Here</div></td>
</tr>
</table></td>
</tr>
<tr>
<td height="35" class="nv">
<div class="nvlink" align="center">
<if condition="$show['member']"><a href="usercp.php$session[sessionurl_q]" >$vbphrase[user_cp]</a></if>
<if condition="$show['registerbutton']"><a href="register.php$session[sessionurl_q]" rel="nofollow" >$vbphrase[register]</a></if>
<a href="faq.php$session[sessionurl_q]" accesskey="5" >$vbphrase[faq]</a>
<if condition="$vboptions['enablememberlist']"><a href="memberlist.php$session[sessionurl_q]" >$vbphrase[members_list]</a></if>
<if condition="$show['popups']"><if condition="$show['member']">
<a href="search.php?$session[sessionurl]do=getnew" accesskey="2" >$vbphrase[new_posts_nav]</a><else />
<a href="search.php?$session[sessionurl]do=getdaily" accesskey="2" >$vbphrase[todays_posts]</a></if>
<a id="navbar_search" href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow" >$vbphrase[search]</a>
<if condition="$show['quicksearch']"><script type="text/javascript"> vbmenu_register("navbar_search",true); </script></if></if>
<a href="calendar.php$session[sessionurl_q]" >$vbphrase[calendar]</a>
<if condition="$show['member']"><a id="usercptools" href="$show[nojs_link]#usercptools" >$vbphrase[quick_links]</a><script type="text/javascript"> vbmenu_register("usercptools",true);</script>
<else /><if condition="$show['searchbuttons']"><a href="search.php$session[sessionurl_q]" accesskey="4" >$vbphrase[search]</a></if></if>
<if condition="$show['member']"><a href="login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]" onclick="return log_out('$vbphrase[sure_you_want_to_log_out]')" >$vbphrase[log_out]</a></if>
</div>
</td>
</tr>
</table>

$spacer_open

$_phpinclude_output

$ad_location[ad_header_end]

midwestce 05-12-2008 08:16 PM

I am still having the issue with the hyperlink not showing up on the banner at all. Any insight on this?

Thanks.


All times are GMT. The time now is 05:33 AM.

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.01448 seconds
  • Memory Usage 1,834KB
  • 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
  • (2)bbcode_code_printable
  • (13)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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