EzPortal - Portal Software for Forums

EzPortal - Made to Fit Your SMF Forum - Glad You Found Us!
+- +-

UserBox

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Recent Posts

New built in translations for six langauges! by EzPortal
March 26, 2024, 11:15:32 pm

Smiley missing in shoutbox 2.1.4 by hustreamload
July 26, 2023, 08:14:02 am

Re: Theme Select Box question? by Shades
March 15, 2023, 06:49:49 pm

Re: Theme Select Box question? by Shades
March 09, 2023, 02:09:24 pm

Re: Theme Select Box question? by Shades
March 09, 2023, 01:55:53 pm

Re: Theme Select Box question? by EzPortal
March 09, 2023, 01:47:42 pm

Re: Theme Select Box question? by Shades
March 09, 2023, 01:34:07 pm

Re: Theme Select Box question? by EzPortal
March 09, 2023, 12:20:17 pm

+- HTML Menu


Sample HTML Block Usage - You May Custom Code it, as needed!

Recent Topics ezBlock

New built in translations for six langauges! by EzPortal
March 26, 2024, 11:15:32 pm

Smiley missing in shoutbox 2.1.4 by hustreamload
July 26, 2023, 08:14:02 am

Theme Select Box question? by Shades
March 15, 2023, 06:49:49 pm

Where is the facebook button color? by EzPortal
February 28, 2023, 06:45:09 pm

Display on Mobile - SMF 2.1.3 and EZ 5.5.2 by BugginIn
December 29, 2022, 04:07:13 pm

Blocks Help by Riggs1973
November 20, 2022, 12:59:30 pm

Surface ol lite theme release Free! by Steffen K.
November 18, 2022, 03:57:24 am

Undefined index: href by EzPortal
October 04, 2022, 08:49:59 pm

SMF-ezportal_column_5.cache): failed to open stream: No such file or directory by EzPortal
June 04, 2022, 11:40:13 am

Arcade block error: failed to open stream: No such file or directory by Shades
May 20, 2022, 02:47:13 pm

Author Topic: Advert  (Read 12062 times)

0 Members and 1 Guest are viewing this topic.

Offline fatdaddy

  • Newbie
  • *
  • Posts: 13
  • Karma: 0
Advert
« on: July 26, 2012, 09:24:42 am »
Hi
I have Ad Management and EZPortal.
I tried to enable an EZ centre block (as an HTML block) and entered the same code as I have in an HTML Ad block but it returned a PHP syntax error.
This is the code.........

Code: [Select]
<script type="text/javascript">
//default banner house ad url
bannersbroker_default_url = '';
bannersbroker_banner_border = '#454534'; bannersbroker_banner_ad_bg = '#acfebc';
bannersbroker_banner_link_color = '#898989'; bannersbroker_banner_text_color = '#cc7744';
bannersbroker_banner_text_banner = true; bannersbroker_banner_image_banner = true;
bannersbroker_banner_show = 3;
bannersbroker_post_click_url = '';
</script>
<script type="text/javascript" src="http://ads.bannersbroker.com/showAd.php?nid=1022&pid=757&adtype=2&sid=826"></script>
<noscript><a href="http://bannersbroker.com">behavioral targeting</a></noscript>


can you tell what I'm doing wrong please :)

Offline EzPortal

  • Administrator
  • *****
  • Posts: 1299
  • Karma: 67
Re: Advert
« Reply #1 on: July 26, 2012, 09:27:09 am »
An html block shouldn't cause a syntax error?

What was the exact error on the page?
Like ezPortal? Support me at https://www.patreon.com/vbgamer45/

Offline fatdaddy

  • Newbie
  • *
  • Posts: 13
  • Karma: 0
Re: Advert
« Reply #2 on: July 26, 2012, 10:46:40 am »
does this tell you? (error log from SMF)

Code: [Select]
Apply Filter: Only show the error messages of this member fatdaddy
Apply Filter: Only show the error messages of this IP address 86.132.8.243 
  Reverse chronological order of list Today at 04:14:59 PM
Apply Filter: Only show the error messages of this session 75b9051d0d3f3bcad119eb0206c62074
Apply Filter: Only show the errors of this type Type of error: Database
Apply Filter: Only show the error messages of this URL
http://uklows.com/forum/index.php?action=ezportal;sa=editblock2
Apply Filter: Only show the errors with the same message
Database Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL
Apply Filter: Only show the errors from this file
File: /home/uklows/public_html/forum/Sources/EzPortal2.php
Line: 988

Offline EzPortal

  • Administrator
  • *****
  • Posts: 1299
  • Karma: 67
Re: Advert
« Reply #3 on: July 26, 2012, 10:50:26 am »
Ok that looks like something I have to fix.
Like ezPortal? Support me at https://www.patreon.com/vbgamer45/

Offline fatdaddy

  • Newbie
  • *
  • Posts: 13
  • Karma: 0
Re: Advert
« Reply #4 on: July 26, 2012, 10:55:31 am »
I would be most greatful  :)

Please feel free to modify my above post if needed (its stretching the page on my screen)

Offline EzPortal

  • Administrator
  • *****
  • Posts: 1299
  • Karma: 67
Re: Advert
« Reply #5 on: July 26, 2012, 09:18:08 pm »
Posted a bug fix which should help
0.6.6a
!Fix possible escape bug with add/edit block issue for SMF 2.0
Like ezPortal? Support me at https://www.patreon.com/vbgamer45/

Offline fatdaddy

  • Newbie
  • *
  • Posts: 13
  • Karma: 0
Re: Advert
« Reply #6 on: July 27, 2012, 03:02:29 am »
thanks.
I dont get the error now but the block just shows the script rather then the banner Ad. Maybe I'm missing some Java thing somewhere ?

Offline EzPortal

  • Administrator
  • *****
  • Posts: 1299
  • Karma: 67
Re: Advert
« Reply #7 on: July 27, 2012, 06:31:55 am »
Hide the tinymce editor when entering the script. Or click the html button in tinymce and place the script inside it.
Like ezPortal? Support me at https://www.patreon.com/vbgamer45/

Offline fatdaddy

  • Newbie
  • *
  • Posts: 13
  • Karma: 0
Re: Advert
« Reply #8 on: July 27, 2012, 09:11:02 am »
that's it thanks  :)

Offline EzPortal

  • Administrator
  • *****
  • Posts: 1299
  • Karma: 67
Re: Advert
« Reply #9 on: July 27, 2012, 09:13:14 am »
Glad to help.
Like ezPortal? Support me at https://www.patreon.com/vbgamer45/

 

+-SMF Gallery

Quick Menu


Powered by EzPortal