The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Pop Up with an article

4 posters

Go down

Solved Pop Up with an article

Post by TheCrow July 16th 2014, 12:00 pm

Hello,

I want to add a pop up that will be fixed as a position and i want it to have the first topic of a certain category.
i want it to be position fixed and be here:
Pop Up with  an article 8Ze1aw1
Something like the recent topic system of specific category that Ange made but as a fixed box. Can this be happened?

Version: PunBB
Address: http://informationforumgr.forumgreek.com/forum

Thank you.


Last edited by MrMind on August 1st 2014, 11:54 pm; edited 1 time in total
TheCrow
TheCrow
Manager
Manager

Male Posts : 6913
Reputation : 794
Language : Greek, English

https://forumote.forumotion.com

Back to top Go down

Solved Re: Pop Up with an article

Post by TheCrow July 17th 2014, 12:53 pm

Bump
TheCrow
TheCrow
Manager
Manager

Male Posts : 6913
Reputation : 794
Language : Greek, English

https://forumote.forumotion.com

Back to top Go down

Solved Re: Pop Up with an article

Post by Van-Helsing July 17th 2014, 1:40 pm

Hi Marios,
Create a new widget with ange's code like this which you are using for recent topics on specific forum then check "No" in field "Use a table type :"  and set the javascript to read just one topic. Then create the css for the box to place it where you wish. For the popup you will need to add a timer and the function show/fade in javascript.

Best Regards,
Dark-Avenger
Van-Helsing
Van-Helsing
Hyperactive

Male Posts : 2431
Reputation : 116
Language : English, Greek

http://itexperts.forumgreek.com/

Back to top Go down

Solved Re: Pop Up with an article

Post by TheCrow July 17th 2014, 6:34 pm

Hi,
I want the javascript that will get the first topic of the category and one that will appear an X on the right top corner so users can be able to close it whenever they want.
Can you help me with that?
TheCrow
TheCrow
Manager
Manager

Male Posts : 6913
Reputation : 794
Language : Greek, English

https://forumote.forumotion.com

Back to top Go down

Solved Re: Pop Up with an article

Post by TheCrow July 20th 2014, 12:10 am

bump
TheCrow
TheCrow
Manager
Manager

Male Posts : 6913
Reputation : 794
Language : Greek, English

https://forumote.forumotion.com

Back to top Go down

Solved Re: Pop Up with an article

Post by TheCrow July 30th 2014, 12:06 pm

Bump
TheCrow
TheCrow
Manager
Manager

Male Posts : 6913
Reputation : 794
Language : Greek, English

https://forumote.forumotion.com

Back to top Go down

Solved Re: Pop Up with an article

Post by TheCrow July 31st 2014, 2:29 pm

Bump
TheCrow
TheCrow
Manager
Manager

Male Posts : 6913
Reputation : 794
Language : Greek, English

https://forumote.forumotion.com

Back to top Go down

Solved Re: Pop Up with an article

Post by Japorized July 31st 2014, 4:25 pm

I'm not entirely sure of how to do this but I think the mod_news template might give you an idea cause it's functionality is quite similar to what you're looking for.

As for the X button to close, just use jQuery to add a class that has display:none to the box.
Japorized
Japorized
Forumember

Male Posts : 310
Reputation : 3
Language : English
Location : Malaysia

http://infinityhub.ace.st

Back to top Go down

Solved Re: Pop Up with an article

Post by TheCrow July 31st 2014, 5:55 pm

The problem is not the X. The problem is:
I want a popup box with the article in it. The article will include the image, the title and 70 characters of the post.
But i don't know anything about javascript.. Sad
TheCrow
TheCrow
Manager
Manager

Male Posts : 6913
Reputation : 794
Language : Greek, English

https://forumote.forumotion.com

Back to top Go down

Solved Re: Pop Up with an article

Post by Japorized August 1st 2014, 5:46 am

Here's what I've tried:
- copied codes from mod_news template into a new forum widget, didn't work and shows only variables
- copied same codes to homepage message, didn't work either, shows only variables

I'm afraid I have no idea on how to solve this for now.
Japorized
Japorized
Forumember

Male Posts : 310
Reputation : 3
Language : English
Location : Malaysia

http://infinityhub.ace.st

Back to top Go down

Solved Re: Pop Up with an article

Post by TheCrow August 1st 2014, 2:53 pm

I managed to grab the information of the mod_news and paste them in a box. The problem is that i cannot make it to grab the image of the topic
TheCrow
TheCrow
Manager
Manager

Male Posts : 6913
Reputation : 794
Language : Greek, English

https://forumote.forumotion.com

Back to top Go down

Solved Re: Pop Up with an article

Post by Japorized August 1st 2014, 3:39 pm

Code:
<img src="{post_row.switch_attachments.switch_post_attachments.U_IMG}" />

Does this image variable work?
Japorized
Japorized
Forumember

Male Posts : 310
Reputation : 3
Language : English
Location : Malaysia

http://infinityhub.ace.st

Back to top Go down

Solved Re: Pop Up with an article

Post by TheCrow August 1st 2014, 10:20 pm

No that doesn't work! Sad

Edit:
I managed to fix that. How can i get an X to the top corner?


I fixed it!  :wouhou: 
SOLVED!!
TheCrow
TheCrow
Manager
Manager

Male Posts : 6913
Reputation : 794
Language : Greek, English

https://forumote.forumotion.com

Back to top Go down

Solved Re: Pop Up with an article

Post by Ape August 2nd 2014, 12:41 am

Topic solved and archived


Pop Up with  an article Left1212Pop Up with  an article Center11Pop Up with  an article Right112
Pop Up with  an article Ape_b110
Pop Up with  an article Ape1010
Ape
Ape
Administrator
Administrator

Male Posts : 19110
Reputation : 1991
Language : fluent in dork / mumbojumbo & English haha

http://chatworld.forumotion.co.uk/

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum