Support Forum

Please note that this forum is only available to you in read only mode. In order to contribute to this conversation you will need to renew your subscription.

Mailchimp archive list (generated by javascript) displays at top of page instead of article area

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Hey there,

I thought you guys might know what is causing this issue. Site is www.frihedsforum.dk/ny/index.php/nyhedsbrev, template is BASE3. I want to display a list of my campaigns from Mailchimp. It worked before on an earlier version of the site: www.frihedsforum.dk/index.php/nyhedsbrev. It is running Joomla 1.5 and JBElement template. Instead of showing inside the article area, my list of campaigns pops up at the top of the page.

I have allowed css and javascript in the JCE Editor and it is showing up, so that is not the problem.

The code is:
<style type="text/css">
<!--
.display_archive {font-family: arial,verdana; font-size: 12px;}
.campaign {line-height: 125%; margin: 5px;}
//-->
</style>
script language="javascript" src="us3.campaign-archive2.com/generate-js/?u=c8101f4016d3ec00f922a815c&fid=4605&show=10" type="text/javascript"

Hope you can help. Thank you. :)

Nya
  • Nya Fleron's Avatar
  • Nya Fleron
  • LIfetime Developer - Big Bamboo
  • 284 posts
  • 3 Thanks
  • Karma: 2
The administrator has disabled public write access.
What custom code section are you adding it to?

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
I tried both adding it all into the article and have ended up adding the styling part into the before </head> section. The javascript is in the article.
  • Nya Fleron's Avatar
  • Nya Fleron
  • LIfetime Developer - Big Bamboo
  • 284 posts
  • 3 Thanks
  • Karma: 2
The administrator has disabled public write access.
Is this the snippet mailchimp give you?
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Hi Paul,

Yes, it is the snippet that mailchimp generates for you.

Nya
  • Nya Fleron's Avatar
  • Nya Fleron
  • LIfetime Developer - Big Bamboo
  • 284 posts
  • 3 Thanks
  • Karma: 2
The administrator has disabled public write access.
Just to be clear about the code, because it didn't allow me to put javascript in the editor here, I have attached a graphic of the code. :-)
  • Nya Fleron's Avatar
  • Nya Fleron
  • LIfetime Developer - Big Bamboo
  • 284 posts
  • 3 Thanks
  • Karma: 2
The administrator has disabled public write access.
Could you re-attach the pic and perhaps attach a text file with the code in?

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Chrome is best to attach with

Cheers
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Okki dokki. Attached is txt file of mailchimp code.
Attachments:
  • Nya Fleron's Avatar
  • Nya Fleron
  • LIfetime Developer - Big Bamboo
  • 284 posts
  • 3 Thanks
  • Karma: 2
The administrator has disabled public write access.
Looking at this I'd be inclined to add this to a module - a custom html module and not add it via the template

And move any inline styling if not commented to the custom.css file
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
I've disabled the editor to add this

nya-mailchimp.jpg


You could do this or add an extension that enables js snippets to be added to a module

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Hi Paul,

Hope you are doing well. Had a nice weekend I hope.

I still can't get it to work. I have tried using JIncludes, which still moved the content to the top of the page. I stuck it in an article and in a module position. Last thing I did was to put the javascript straight into a html module in position [abovecontent]. I have turned on allow javascript and other coding in JCEditor. I can see you placed the content in a bottom module. It didn't work for me either. I need to place it in the main content area. It must have something to do with my web host?

I don't know what else to do.

Nya
  • Nya Fleron's Avatar
  • Nya Fleron
  • LIfetime Developer - Big Bamboo
  • 284 posts
  • 3 Thanks
  • Karma: 2
The administrator has disabled public write access.
Hi Nya,

Can you try setting the editor to none in the global config and then pasting the code into a module

Add your own unique position name and use loadposition in the article

I'd ignore the inline styling and that to the custom.css file

Does that work?

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Hi Paul,

I did what you suggested, but it didn't change anything.

I already put the inline styling in my custom css file.

Nya
  • Nya Fleron's Avatar
  • Nya Fleron
  • LIfetime Developer - Big Bamboo
  • 284 posts
  • 3 Thanks
  • Karma: 2
The administrator has disabled public write access.
Hi Nya,

Bit odd as that works for when I try it

Nothing left in the template snippet wise?

Do you get the same if you switch to a default template?

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Yes same result with Beez and Protostar. So this has nothing to do with the template. I also turned off the snippet plugin. Argh. It must be my web host, no?
  • Nya Fleron's Avatar
  • Nya Fleron
  • LIfetime Developer - Big Bamboo
  • 284 posts
  • 3 Thanks
  • Karma: 2
The administrator has disabled public write access.
I'll ask somebody brainier than me :)
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Thanks. :-) I so appreciate it. You have a beautiful brain.
  • Nya Fleron's Avatar
  • Nya Fleron
  • LIfetime Developer - Big Bamboo
  • 284 posts
  • 3 Thanks
  • Karma: 2
The administrator has disabled public write access.
Alas it could do with a tune up (my brain)

It looks like this is a specific javascript issue relating to the way that the mailchimp js is being implemented.

I'd suggest asking mailchimp or on their forum

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Hi Paul,

I asked the web host provider and he came up with the following script that solved the issue!! I hope others can use this :-)

See attached graphic.

Hope you are having a great weekend.

Nya
  • Nya Fleron's Avatar
  • Nya Fleron
  • LIfetime Developer - Big Bamboo
  • 284 posts
  • 3 Thanks
  • Karma: 2
The administrator has disabled public write access.
The following user(s) said Thank You: manh

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Happy Campers