Jump to content
Announcing Achievements! ×

Community

(e32) Custom Sidebar Blocks


(e) Eric
 Share

Recommended Posts

  • Replies 953
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Popular Posts

File Name: (e32) Custom Sidebar Blocks File Submitter: (e) Eric File Submitted: 17 Jul 2009 File Category: User and Social Engagement Supported Versions: IP.Board 3.4.x Create, store, and disp

Will this be updated to IPB 4.0?

/*UPDATED*//*UPDATED*//*UPDATED*//*UPDATED*//*UPDATED*/ New Version: 1.5 Changelog: nothing new added, but it plays nice with 3.2 now. :)

Posted Images

There isn't anything to fix with CSB as it is now, however if some of you guys don't have access to downloading 3.1.3 and reuploading the files yourselves, I'll make a different version and attach it here which you can use as a temporary fix. Then when 3.1.4 comes out, you can install that and go back to the original (more efficient) hook. gimme a sec.

Link to comment
Share on other sites

I created a different version that will work on the original version of 3.1.3, but it has an unnecessary query, so when 3.1.4 is released you should reimport the original customSidebarBlocks hook. (already reimported it on your board, hustkies).

Here is the temp fix version, only those with the error who can't reupload the new version of 3.1.3 should reimport it:

customSidebarBlocksHook.xml

Link to comment
Share on other sites

hmm, works for me, try rebuilding and recacheing your skin sets. also check to see if it works properly on any of your skins.

edit: I just thought of something, perhaps you are confusing those Portal-specific settings with the look of blocks on the index? Those 2 settings only pertain to the Portal. To change the position of the blocks on the board index you need to use drag and drop from the Manage Hooks page and also the drag and drop within Manage Blocks (of CSB).

Link to comment
Share on other sites


hmm, works for me, try rebuilding and recacheing your skin sets. also check to see if it works properly on any of your skins.



edit: I just thought of something, perhaps you are confusing those Portal-specific settings with the look of blocks on the index? Those 2 settings only pertain to the Portal. To change the position of the blocks on the board index you need to use drag and drop from the Manage Hooks page and also the drag and drop within Manage Blocks (of CSB).




that worked perfectly! thanks!

any suggestions on how to add my banners from openX in there? If I add the javascript it messes up the whole layout of my forum.
Link to comment
Share on other sites


Hi,


May I known how can I move Custom Siderbar Blocks under Recently Added Topics ??



Thanks.



P/s: I did ^^ Thanks ^^



So you got it all sorted then?


that worked perfectly! thanks!



any suggestions on how to add my banners from openX in there? If I add the javascript it messes up the whole layout of my forum.



That most likely means the javascript/html code isn't correct. In the past there have been users who didn't close a tag, or left out a quote, etc. Feel free to post the block contents (or preferably all the settings of that block) and I'll add em to my test board and see if I can spot the error. :)
Link to comment
Share on other sites

here is the JS content

<!--/* OpenX Javascript Tag v2.4.8 */-->


<!--/*

  * The backup image section of this tag has been generated for use on a

  * non-SSL page. If this tag is to be placed on an SSL page, change the

  *   'http://uniquesigns.org/advertising/www/delivery/...'

  * to

  *   'https://uniquesigns.org/advertising/www/delivery/...'

  *

  * This noscript section of this tag only shows image banners. There

  * is no width or height in these banners, so if you want these tags to

  * allocate space for the ad before it shows, you will need to add this

  * information to the <img> tag.

  *

  * If you do not want to deal with the intricities of the noscript

  * section, delete the tag (from <noscript>... to </noscript>). On

  * average, the noscript tag is called from less than 1% of internet

  * users.

  */-->


<script type='text/javascript'><!--//<![CDATA[

   var m3_u = (location.protocol=='https:'?'https://uniquesigns.org/advertising/www/delivery/ajs.php':'http://uniquesigns.org/advertising/www/delivery/ajs.php');

   var m3_r = Math.floor(Math.random()*99999999999);

   if (!document.MAX_used) document.MAX_used = ',';

   document.write ("<scr"+"ipt type='text/javascript' src='"+m3_u);

   document.write ("?zoneid=3");

   document.write ('&amp;cb=' + m3_r);

   if (document.MAX_used != ',') document.write ("&amp;exclude=" + document.MAX_used);

   document.write ("&amp;loc=" + escape(window.location));

   if (document.referrer) document.write ("&amp;referer=" + escape(document.referrer));

   if (document.context) document.write ("&context=" + escape(document.context));

   if (document.mmm_fo) document.write ("&amp;mmm_fo=1");

   document.write ("'><\/scr"+"ipt>");

//]]>--></script><noscript><a href='http://uniquesigns.org/advertising/www/delivery/ck.php?n=a538f5cb&amp;cb=INSERT_RANDOM_NUMBER_HERE' target='_blank'><img src='http://uniquesigns.org/advertising/www/delivery/avw.php?zoneid=3&amp;cb=INSERT_RANDOM_NUMBER_HERE&amp;n=a538f5cb' border='0' alt='' /></a></noscript>



please let me know if you can get it to work with any settings...

Link to comment
Share on other sites

I'm getting this:

Warning: Invalid argument supplied for foreach() in /home/content/i/c/h/ichadwick/html/forum/hooks/customSidebarBlocksHook_1b8d7ab913da5be302605f78cb009c16.php on line 33


Warning: Cannot modify header information - headers already sent by (output started at /home/content/i/c/h/ichadwick/html/forum/hooks/customSidebarBlocksHook_1b8d7ab913da5be302605f78cb009c16.php:33) in /home/content/i/c/h/ichadwick/html/forum/admin/sources/classes/output/formats/html/htmlOutput.php on line 109


Warning: Cannot modify header information - headers already sent by (output started at /home/content/i/c/h/ichadwick/html/forum/hooks/customSidebarBlocksHook_1b8d7ab913da5be302605f78cb009c16.php:33) in /home/content/i/c/h/ichadwick/html/forum/admin/sources/classes/output/formats/html/htmlOutput.php on line 120


Warning: Cannot modify header information - headers already sent by (output started at /home/content/i/c/h/ichadwick/html/forum/hooks/customSidebarBlocksHook_1b8d7ab913da5be302605f78cb009c16.php:33) in /home/content/i/c/h/ichadwick/html/forum/admin/sources/classes/output/formats/html/htmlOutput.php on line 129


Warning: Cannot modify header information - headers already sent by (output started at /home/content/i/c/h/ichadwick/html/forum/hooks/customSidebarBlocksHook_1b8d7ab913da5be302605f78cb009c16.php:33) in /home/content/i/c/h/ichadwick/html/forum/admin/sources/classes/output/formats/html/htmlOutput.php on line 130


Warning: Cannot modify header information - headers already sent by (output started at /home/content/i/c/h/ichadwick/html/forum/hooks/customSidebarBlocksHook_1b8d7ab913da5be302605f78cb009c16.php:33) in /home/content/i/c/h/ichadwick/html/forum/admin/sources/classes/output/formats/html/htmlOutput.php on line 134


Worked fine on previous versions, but recent upgrade (upgraded today, IPB files dl ed on Oct 26) to 3.1.3 and it gives this error. tried uploading revided XML, tried recaching skins. Same problem each time. Any other ideas?

Update: NEVER MIND. Re-installed custom XML file second time and it seems to have worked on default skin after that. Will check on all skins now.

Link to comment
Share on other sites

Glad you got it working iChad. :)

MSO, I can't get it working either, not sure what is wrong with that code (one of these days I'll learn more JS) but I know it starts with the first "document.write" line. I eliminated CSB from the equation by pasting your code directly into the main boardIndexTemplate and it doesn't display there either, so that js code needs tweaking.

Link to comment
Share on other sites


Glad you got it working iChad. :)



MSO, I can't get it working either, not sure what is wrong with that code (one of these days I'll learn more JS) but I know it starts with the first "document.write" line. I eliminated CSB from the equation by pasting your code directly into the main boardIndexTemplate and it doesn't display there either, so that js code needs tweaking.



Sorry, but I'm not sure now. Works on all the pages EXCEPT the portal. Here's what my portal page says:

Warning: Invalid argument supplied for foreach() in /home/content/i/c/h/ichadwick/html/forum/hooks/customSidebarBlocksPortal_2c3978099442db1664c15fdfbfb4a9a6.php on line 41


Warning: Cannot modify header information - headers already sent by (output started at /home/content/i/c/h/ichadwick/html/forum/hooks/customSidebarBlocksPortal_2c3978099442db1664c15fdfbfb4a9a6.php:41) in /home/content/i/c/h/ichadwick/html/forum/admin/sources/classes/output/formats/html/htmlOutput.php on line 109


Warning: Cannot modify header information - headers already sent by (output started at /home/content/i/c/h/ichadwick/html/forum/hooks/customSidebarBlocksPortal_2c3978099442db1664c15fdfbfb4a9a6.php:41) in /home/content/i/c/h/ichadwick/html/forum/admin/sources/classes/output/formats/html/htmlOutput.php on line 120


Warning: Cannot modify header information - headers already sent by (output started at /home/content/i/c/h/ichadwick/html/forum/hooks/customSidebarBlocksPortal_2c3978099442db1664c15fdfbfb4a9a6.php:41) in /home/content/i/c/h/ichadwick/html/forum/admin/sources/classes/output/formats/html/htmlOutput.php on line 129


Warning: Cannot modify header information - headers already sent by (output started at /home/content/i/c/h/ichadwick/html/forum/hooks/customSidebarBlocksPortal_2c3978099442db1664c15fdfbfb4a9a6.php:41) in /home/content/i/c/h/ichadwick/html/forum/admin/sources/classes/output/formats/html/htmlOutput.php on line 130


Warning: Cannot modify header information - headers already sent by (output started at /home/content/i/c/h/ichadwick/html/forum/hooks/customSidebarBlocksPortal_2c3978099442db1664c15fdfbfb4a9a6.php:41) in /home/content/i/c/h/ichadwick/html/forum/admin/sources/classes/output/formats/html/htmlOutput.php on line 134


Not sure if it's in this mod or another. Am waiting for reply from IPB. Might be in tracker...

Link to comment
Share on other sites


I think my easier solution is to buy nexus... its seeming more and more tempting...



Nexus does sidebars? I didn't know... and btw, that javascript code doesn't work on the index template, so chances are it won't work in Nexus either.


Sorry, but I'm not sure now. Works on all the pages EXCEPT the portal. Here's what my portal page says:


Warning: Invalid argument supplied for foreach() in /home/content/i/c/h/ichadwick/html/forum/hooks/customSidebarBlocksPortal_2c3978099442db1664c15fdfbfb4a9a6.php on line 41


Not sure if it's in this mod or another. Am waiting for reply from IPB. Might be in tracker...


Yeah, I didn't edit the portal code since no one had reported that also not working with 3.1.3 first version. I went ahead and adjusted the portal code too and attached it in this post. Remember that you only need to install this temp-fix version if you don't have the ability to upload the newer version of 3.1.3. And remember that when 3.1.4 comes out, please upgrade asap and then go back to the normal version of CSB since it won't have these query-adding tweaks that are needed for the temp-fix version.

customSidebarBlocksHook.xml
Link to comment
Share on other sites


Yeah, I didn't edit the portal code since no one had reported that also not working with 3.1.3 first version. I went ahead and adjusted the portal code too and attached it in this post. Remember that you only need to install this temp-fix version if you don't have the ability to upload the newer version of 3.1.3. And remember that when 3.1.4 comes out, please upgrade asap and then go back to the normal version of CSB since it won't have these query-adding tweaks that are needed for the temp-fix version.



customSidebarBlocksHook.xml

That worked! Thanks. Given the bug level, I might wait until 3.2 to upgrade again. I'm still waiting for IPS to fix the blog display, so I think it's best to leave it alone if it's stable. Ah, for 2.3.6 when everything ran flawlessly... ;-)
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    No registered users viewing this page.


×
×
  • Create New...

Important Information

We use technologies, such as cookies, to customise content and advertising, to provide social media features and to analyse traffic to the site. We also share information about your use of our site with our trusted social media, advertising and analytics partners. See more about cookies and our Privacy Policy