Pop Up with an article

Go down

Solved Pop Up with an article

Post by Luffy on 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:

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
avatar
Luffy
Manager
Manager

Male Posts : 5511
Reputation : 607
Language : Greek, English
Location : Greece

https://www.crossroadz.net

Back to top Go down

Solved Re: Pop Up with an article

Post by Luffy on July 17th 2014, 12:53 pm

Bump
avatar
Luffy
Manager
Manager

Male Posts : 5511
Reputation : 607
Language : Greek, English
Location : Greece

https://www.crossroadz.net

Back to top Go down

Solved Re: Pop Up with an article

Post by Van-Helsing on 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
avatar
Van-Helsing
Hyperactive

Male Posts : 2411
Reputation : 112
Language : English, Greek

http://helpgr.forumgreek.com/

Back to top Go down

Solved Re: Pop Up with an article

Post by Luffy on 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?
avatar
Luffy
Manager
Manager

Male Posts : 5511
Reputation : 607
Language : Greek, English
Location : Greece

https://www.crossroadz.net

Back to top Go down

Solved Re: Pop Up with an article

Post by Luffy on July 20th 2014, 12:10 am

bump
avatar
Luffy
Manager
Manager

Male Posts : 5511
Reputation : 607
Language : Greek, English
Location : Greece

https://www.crossroadz.net

Back to top Go down

Solved Re: Pop Up with an article

Post by Luffy on July 30th 2014, 12:06 pm

Bump
avatar
Luffy
Manager
Manager

Male Posts : 5511
Reputation : 607
Language : Greek, English
Location : Greece

https://www.crossroadz.net

Back to top Go down

Solved Re: Pop Up with an article

Post by Luffy on July 31st 2014, 2:29 pm

Bump
avatar
Luffy
Manager
Manager

Male Posts : 5511
Reputation : 607
Language : Greek, English
Location : Greece

https://www.crossroadz.net

Back to top Go down

Solved Re: Pop Up with an article

Post by Japorized on 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.
avatar
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 Luffy on 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
avatar
Luffy
Manager
Manager

Male Posts : 5511
Reputation : 607
Language : Greek, English
Location : Greece

https://www.crossroadz.net

Back to top Go down

Solved Re: Pop Up with an article

Post by Japorized on 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.
avatar
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 Luffy on 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
avatar
Luffy
Manager
Manager

Male Posts : 5511
Reputation : 607
Language : Greek, English
Location : Greece

https://www.crossroadz.net

Back to top Go down

Solved Re: Pop Up with an article

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

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

Does this image variable work?
avatar
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 Luffy on 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!!
avatar
Luffy
Manager
Manager

Male Posts : 5511
Reputation : 607
Language : Greek, English
Location : Greece

https://www.crossroadz.net

Back to top Go down

Solved Re: Pop Up with an article

Post by APE on August 2nd 2014, 12:41 am

Topic solved and archived



avatar
APE
Administrator
Administrator

Male Posts : 12318
Reputation : 1282
Language : fluent in dork / mumbojumbo & English haha

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

Back to top Go down

Back to top


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