PDA

View Full Version : How to Create a simple block?


MOGmartin
06-28-2008, 10:15 AM
At least I thought it was simple... until I spent 3 hours achieving very little.

All I want to do is integrate the cyb banner rotator into a cmps block.

The cyb hack publishes random banners wherever the following code is added to a template:

$cyb_flashimagebanners


I have tried creating a template block and a bbcode block, cant get the banners to display. BUT if I add the code straight into a template it does display.

please help!

thanks

MOGmartin

Brian
06-28-2008, 01:24 PM
Admin CP => vBa CMPS => Default Settings => Main Options => Portal Output Global Variables

Try adding 'cyb_flashimagebanners' to that setting. If that doesn't help, you may also need to disable the 'Process PHP File Modules Within A Function' setting.

Our Sponsors
 

MOGmartin
06-28-2008, 03:15 PM
thanks, I will try that now and reply with an update!

MOGmartin
06-28-2008, 03:38 PM
hmmmmm - Im still getting an empty box Im afraid.

I have added the $cyb_flashimagebanners to the global variables, and disabled the process php file modules within a function setting.

I have found on google another thread on this forum where someone else had the same idea as me, the thread is here: http://www.vbadvanced.com/forum/showthread.php?t=26198


#The hack I am trying to integrate is located here: http://www.vbulletin.org/forum/showthread.php?t=131254&page=8

And my forum, with the currently non working block which is located at the bottom of my page, center column, is here: http://tinyurl.com/6qjh2m
(Its the item immediately above "powered by vbadvanced....")

Any ideas what else I could try, as my aim is to have 3 different sizeds vbacmps blocks in different locations, all using installs of this mod to display banner adverts. It will really help me out with my admin tasks, and if I can get it to work Im buying the brand free option for vbadvanced, as everything else Ive got is BF as well!

thanks for your help and advice!

Our Sponsors
 

Brian
06-28-2008, 05:11 PM
Are you using the "Show banners only on these pages" setting with the plugin? If so, did you make sure to add 'adv_index' to that list?

MOGmartin
06-28-2008, 05:30 PM
ah... erm... no....

sounds like youve come accross this before lol!

I will check it again tomorrow morning when the forum is lighter on traffic!

thanks

MOGmartin
06-29-2008, 08:32 AM
nope - playing about with it now, the "show banners only in these pages" is turned off if you have nothing in it, which I dont.

Im starting to think it might just be easier to add banners and links manually using a BBCODE block, at least that way I could do it quick enough and with minimal effort.

any other suggestions from anyone before I just go down that route?

MOGmartin
06-29-2008, 08:51 AM
one final update on this thread, yep I think just a simple BBCODE module is the way to go, and to make it easier to manage large amounts of banners/advertisers and rapid changes, Im saving multiple modules preprepared with banners to just chop and change using the page editor.... it works for me!

thanks brian for your help, I will be buying the brand free option in the next day or two!

Brian
06-30-2008, 08:09 PM
sounds like youve come accross this before lol!
Actually no. I just took a look at the plugin code and that setting was the only thing I saw that looked like it could cause a problem. Glad the BB code solution worked out for you though.