@PitaJ I was able to do it by giving the nav button a unique ID in the ID section and then just controlling the tooltip/button action in JS under the custom JS section. Surprisingly easy to do as it turns out.
How to embed an HTML code in composer ?
-
@meetdilip said:
Where is the option in ACP to activate ? I just used the first command.
If you're on the new style Admin panel, it's under Extend > Plugins.
-
@a_5mith said:
@meetdilip said:
Where is the option in ACP to activate ? I just used the first command.
If you're on the new style Admin panel, it's under Extend > Plugins.
There is only @Schamper 's Flipkart Affiliate plugin there. I tried CTRL + F and used keywords iframe and flipkart. No luck.
-
@meetdilip Go to your node_modules folder inside nodebb and type
ls
, make sure it's in there. (If you installed it from anywhere else (like the nodebb folder for example), it won't display in the admin panel.) -
Is it this ?
-
@meetdilip said:
Is it this ?
On the left, click Extend, then Plugins. If it's not in there, then it's not in your node_modules folder.
-
@a_5mith said:
@meetdilip said:
Is it this ?
On the left, click Extend, then Plugins. If it's not in there, then it's not in your node_modules folder.
Got it.
-
-
@meetdilip said:
@a_5mith said:
http://www.flipkart.com/affiliate/displayWidget?affrid=WRID-141229213124264046
Something wrong
http://techiewiz.in/topic/70/lg-l-bello-android-smart-phone-price-in-india-rs-18-500/2
Your sites offline.
-
@a_5mith said:
Your sites offline.
Try now please. New ACP is a bit buggy. It crashes NodeBB whenever I try restart. Have to start NodeBB again through terminal. Restart command never works.
-
@a_5mith I'd propose
/<a href="(?:https?:\/\/)?(?:www\.)flipkart\.com\/affiliate\/displayWidget\?(?:[^"]*&)?affrid=([\w\-_]+).+<\/a>/ig
-
@meetdilip said:
@a_5mith said:
Your sites offline.
Try now please. New ACP is a buggy. It crashes NodeBB whenever I try restart. Have to start NodeBB again through terminal. Restart command never works.
The issue seems to be with the affiliate ID on the end of the URL caused by the flipkart affiliate plugin. The URL in the source has
&affid=ddealsing
on the end of it. Which my plugin isn't looking for.Looking into it.
-
Any work around possible ?
-
@meetdilip said:
Any work around possible ?
Yeah, go to your nodebb folder and type
cd node_modules/nodebb-plugin-flipkart-iframe
Then type
git pull
Then stop and start nodebb again.
-
Thanks. Working fine. But a small glitch. The size is all messed up.
-
I can't even see it on your forum. Just blank for me.
-
Disable Adblock plus
-
@meetdilip said:
Disable Adblock plus
That did it, I'll look at the size issue now.
You can solve the width by adding
.flipkart { width:100%; } to your CSS, the height however may be slightly trickier. If anyone had any ideas for that, I'm all ears, CSS wouldn't work, as setting CSS to 600px would make the width ones 600px high too.
-
-
Wouldn't work unfortunately. Because it's an iFrame, it doesn't know the height of the banner inside it. The only reason 100% works is because it goes the full width of the browser window.
-
it's ok. I am happy as of now. Thank you so much for the help