Adding content to tabs

  • Posts: 259
  • Thank you received: 10
4 years 10 months ago #318508

Hmm, didn't get a reply e-mail again. Tried setting it to text and textarea to no effect. Still hides the tab.

Checked out the source code and the code for the tab IS present, as i can see the "joomlaworks allvideo's" comment in it on both wysiwyg, text and textarea setting.

Not using a custom editor, default TinyMCE with zero customisations.

Very possible the code is incorrect, i'm no expert in php and tried to adapt your code mentioned above to work with the main product info

Please Log in or Create an account to join the conversation.

  • Posts: 83409
  • Thank you received: 13502
  • MODERATOR
4 years 10 months ago #318513

Hi,

Well, maybe you could provide a screenshot of the whole area of the code where you have your additions so that we can check the situation there ?

The following user(s) said Thank You: Ch3vr0n

Please Log in or Create an account to join the conversation.

  • Posts: 259
  • Thank you received: 10
4 years 10 months ago #318558

I'd be happy to, though your backend access user account access is still active. I'm also still awaiting a response to the invoice customisation contact form.

Please Log in or Create an account to join the conversation.

  • Posts: 83409
  • Thank you received: 13502
  • MODERATOR
4 years 10 months ago #318562

Hi,

You're using the $main variable before it's being initialized. So you need to move the code to have the initialization before you use it:
monosnap.com/file/Bz9joQsHqKu1mp2SZvFr1nOilnzMe2
Please note that this is outside user support... I've already went twice on your backend for that custom development.
Next time, we'll have to send you an invoice.

Also, I'm not able to access your frontend with the access you had provided before so I couldn't check the situation there and whether changing that code would be enough to solve your situation.

Lastly, I did reply to your quote request 3 days ago, but never heard back from you:
monosnap.com/file/A5CeQe4drXU8yuTXVo6iKoRfEBgw1J
Maybe the email went in your spam folder ?

The following user(s) said Thank You: Ch3vr0n

Please Log in or Create an account to join the conversation.

  • Posts: 259
  • Thank you received: 10
4 years 10 months ago #318589

Nicolas, you didn't have to do it. All i was suggesting was you take a LOOK at the backend, and then tell me here what i have to change ;) Not that you actually changed it yourself. Next time i'll make that very clear :) My apologies. Now the code itself is non-functional. Or is my code at the wrong place?

As to the user details. Those were credentials specified in the "Site Lock" component. If the need arrives. IT's just a matter of going to Components > site lock > unlock site and no need to login. I've unlocked the front-end in the mean time.

I never received that e-mail unfortunately (nor any if you replied to the updated language files for that matter). The ones from the forum notification are getting through. could you perhaps resend it? If that fails i can see if a secondary mailbox works. Checked spam. It never arrived at my end. Maybe there's a clue in your mail server logs. @Tele... is my ISP so i don't have access to those logs myself.

Attachments:
Last edit: 4 years 10 months ago by Ch3vr0n.

Please Log in or Create an account to join the conversation.

  • Posts: 83409
  • Thank you received: 13502
  • MODERATOR
4 years 10 months ago #318654

Hi,

I sent the email again in reply all to your other email.
Did you get it now ?

Your code with the if and the li tag is correct and at the correct place.
What you need to move is the code initializing $main before your code.

The following user(s) said Thank You: Ch3vr0n

Please Log in or Create an account to join the conversation.

  • Posts: 259
  • Thank you received: 10
4 years 10 months ago #318656

i got 2 out of 3. I've responded to it.

If i wanted to add the same "hiding" function to the other tabs. Is it sufficient to duplicate that currently first section of the video tag and rename it with the proper custom field name, or would i need to duplicate that code section from line 254 -> 261 as well?

Please Log in or Create an account to join the conversation.

  • Posts: 83409
  • Thank you received: 13502
  • MODERATOR
4 years 10 months ago #318664

Hi,

No you don't need to duplicate the initialization of the $main variable. You just need to duplicate the HTML/PHP for the li and div tags.

The following user(s) said Thank You: Ch3vr0n

Please Log in or Create an account to join the conversation.

  • Posts: 259
  • Thank you received: 10
4 years 10 months ago #318873

Finally had some time to test your earlier PHP code addition. Moving that bit of code to above where my custom tabs begin the video tab is functioning as entirely as desired.

Video's are rendering (as they've been for a while) AND the video tab is only showing on products that have a data in the custom field.

Just wanted to report that back, and your assistance in this matter was/is highly appreciated!

Only thing left i could do in return is hit that thankyou button on every post of yours.

Last edit: 4 years 10 months ago by Ch3vr0n.
The following user(s) said Thank You: nicolas

Please Log in or Create an account to join the conversation.

Time to create page: 0.067 seconds
Powered by Kunena Forum