Jump to content


Problem With Custom Content And Custom Blocks


  • You cannot reply to this topic
6 replies to this topic

#1 Bemoi

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 28 October 2006 - 05:06 AM

Hello,

I have a problem when i try to put any thing in "Block PHP/HTML" field, it simply get erased when i press ok, so i have to edit it from mysql and now even mysql is not working, any suggestions????


#2 RisingPhoenix

    Advanced Member

  • Administrators[Admin]
  • PipPipPip
  • 249 posts
  • Gender:Male
  • Location:Fort Benning, GA
  • Interests:I am currently in the US Army. I am not a coder. I am really familiar with Unreal Portal and IPB. So if it isn't in reference to something I have on my site ba4life.com then there isn't much I can do to help you.<br /><br />I am a normal user like most of you. Please don't invade my personal life by asking me questions that can already be found on this website.

Posted 28 October 2006 - 05:46 AM

are you sure that in Block Name:
The name has to be lowercase and only one word for it to work

If it isn't it will disappear same with the custom content.
Posted Image
MultiGaming Clan Playing Games since 1997

#3 itdevil

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 30 October 2006 - 03:17 PM

i am having the issue with IPB 2.1.7 when i add javascript or php code in the Block from phpadsnew it give me a SQL error

mySQL query error: UPDATE ibf_up_custblocks SET html='<script language='JavaScript' type='text/javascript' src='http://www.xyz.com/adx.js'></script>
<script language='JavaScript' type='text/javascript'>
<!--
   if (!document.phpAds_used) document.phpAds_used = ',';
   phpAds_random = new String (Math.random()); phpAds_random = phpAds_random.substring(2,11);
   
   document.write ("<" + "script language='JavaScript' type='text/javascript' src='");
   document.write ("http://www.xyz.com/ad/adjs.php?n=" + phpAds_random);
   document.write ("&what=zone:8");
   document.write ("&exclude=" + document.phpAds_used);
   if (document.referrer)
	  document.write ("&referer=" + escape(document.referrer));
   document.write ("'><" + "/script>");
//-->
</script><noscript><a href='http://www.xyz/adclick.php?n=a92727b4' target='_blank'><img src='http://www.xyz.com/adview.php?what=zone:8&n=a92727b4' border='0' alt=''></a></noscript>' WHERE name='vos'

SQL error: You have an error in your SQL syntax.  Check the manual that corresponds to your MySQL server version for the right syntax to use near 'JavaScript' type='text/javascript' src='http://www.xyz.com
SQL error code: 
Date: Monday 30th of October 2006 01:03:46 PM



Is there any Fix ?

#4 cHoLeY

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 07 November 2006 - 12:28 PM

if you use php5 then change in php.ini

register_long_arrays = Off

to

register_long_arrays = On

#5 Tostermaize

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 07 November 2006 - 01:42 PM

i have problem whit Cutom Blocks it shows only Block Title and Block name but Block PHP/HTML dont want to save ...
i am usining IPB 2.1.7

#6 Bemoi

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 19 December 2006 - 08:52 AM

any fix for that??
i posted that a long time ago

#7 redalert19882000

    Advanced Member

  • Members
  • PipPipPip
  • 54 posts

Posted 19 December 2006 - 08:56 AM

View PostBemoi, on Dec 19 2006, 09:52 AM, said:

any fix for that??
i posted that a long time ago



Unreal Portal 2.1.0 has many many many bugs! Try to upgraded your forum to 2.2.x and the unreal portal too! Try it!





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users