Good art is a taste, good design is an opinion.


Come as guest, stay as family.
Board Index

Come as guest, stay as family.


You are not connected. Please login or register

Foto

[Archived] Quick question about widgets font



View previous topic View next topic Go down Message [Page 1 of 1]

1
Offline

  Destroya*

avatar
Punbb Senior
Punbb Senior
  • Description:
How did yall add a shodow to the font of all widgets? Like for example the Staff Online, Update your status. It looks cool.
And also, not sure if it's possible but how did yall add the number of new posts on the top of the forums? Example: Sticky and Announcements (1)
Thanks =)

  • Information:
Forum:http://raptorgaming.forumotion.com/forumVersion:PHPBB3
Type:Request a codeTags:Quick,question,about,widgets

Powered by PunBB
Currently 0 users have thanked Destroya* for this post:

2
Offline

  Virus

avatar
★Moderator★
★Moderator★
For your first question you have to add this in your CSS:
Code:
.module .main-head{text-shadow:1px 1px 4px #ddd;}

For the second one, the number of the announcements and staff should come automatically if you have your Sticky and Announcements separated from your topics with a table. Check if you have it by going to: Admin Panel > General > Messages and e-mails > Configuration
and check to the option named 'Separate announcements and stickies from the messages :' if you have it 'With a table' as the picture below:

Powered by PunBB
Currently 0 users have thanked Virus for this post:

3
Offline

  Destroya*

avatar
Punbb Senior
Punbb Senior
Well the first code didn't work for me for some reason. But thanks it's not something I absoluteley need lol.

For the second one, I have it like that but I don't see it say the number of new posts. remember I have PHPBB3 so it may be different?

Powered by PunBB
Currently 0 users have thanked Destroya* for this post:

4
Offline

  Virus

avatar
★Moderator★
★Moderator★
Yes i forgot! Try adding this in your CSS for the text shadow of your head of widgets:
Code:
.module .h3{text-shadow: 1px 1px 4px #ddd;}
Probably for the number of announcements and stickies you will need a JavaScript. I will check it and come to you asap.

Powered by PunBB
Currently 0 users have thanked Virus for this post:

5
Offline

  Destroya*

avatar
Punbb Senior
Punbb Senior
u da best lemme know if u find it Very Happy

Powered by PunBB
Currently 0 users have thanked Destroya* for this post:

6
Offline

  Virus

avatar
★Moderator★
★Moderator★
Guess it worked huh? Ok then. For the other one i found a way to make it work with a little bit of editing in the templates. So:
Go to Admin Panel > Display > Templates > General > topic_list_box and press to edit the template.
Find this: [ic]{topics_list_box.row.L_TITLE}[/ic] and replace it with the below:
Code:
<span class="numberannst">{topics_list_box.row.L_TITLE} ({topics_list_box.row.COUNT_TOTAL_TOPICS})</span>
Save the template and publish it and see if it worked. I believe it will work.

Powered by PunBB
Currently 0 users have thanked Virus for this post:

7
Offline

  Destroya*

avatar
Punbb Senior
Punbb Senior
Well this counts the number of Announcment and Stickies, but I don't think it works for the Topics and I want it to display the number of New topics. Thanks for looking into this btw, hope you find the solution! lol thx

Powered by PunBB
Currently 0 users have thanked Destroya* for this post:

8
Offline

  Virus

avatar
★Moderator★
★Moderator★
Fair enough! I thought you meant only for the announcements. hehe. Btw you can keep that one also. Go to the same template and do the below:
Find [ic]{topics_list_box.row.topic.table_sticky.L_TITLE}[/ic] delete it and add the below:
Code:
<span class="topicnumbercounter">{topics_list_box.row.topic.table_sticky.L_TITLE} ({topics_list_box.row.topic.table_sticky.COUNT_TOTAL_TOPICS})</span>
Save the template and publish it.That should work!

Powered by PunBB
Currently 0 users have thanked Virus for this post:

9
Offline

  Destroya*

avatar
Punbb Senior
Punbb Senior
Virus, ma nigga, this dont count the number of NEW topics, it only counts the total number of topics, read or not.. I don't want that lols

Powered by PunBB
Currently 0 users have thanked Destroya* for this post:

10
Offline

  Virus

avatar
★Moderator★
★Moderator★
So you want to count only the new topics? I don't believe there is a way to do that. Although i will search to see if i can find a way to do that and i will inform you.

Powered by PunBB
Currently 0 users have thanked Virus for this post:

11
Offline

  Destroya*

avatar
Punbb Senior
Punbb Senior
Lol, it's used on this forum look:

Powered by PunBB
Currently 0 users have thanked Destroya* for this post:

12
Offline

  Destroya*

avatar
Punbb Senior
Punbb Senior
Any idea yet?

Powered by PunBB
Currently 0 users have thanked Destroya* for this post:

13
Offline

  Shadow

avatar
Administrator
Administrator
@Destroya* wrote:[link="/t810-quick-question-about-widgets-font#5606"]Lol, it's used on this forum look:

I don't understand what you exactly are looking for from previous posts, can you explain it further?

Powered by PunBB
Currently 0 users have thanked Shadow for this post:

14
Offline

  Destroya*

avatar
Punbb Senior
Punbb Senior
Sorry, I thought it only countednew topics on this site, but stickies and normal topics are not separated with a tablelike on my forum, thus I got confused. I just wanted to count the number of new posts on each forum, but as I see it may not be possible. Thanks though!

Powered by PunBB
Currently 0 users have thanked Destroya* for this post:

15
Offline

  Shadow

avatar
Administrator
Administrator
This variable is counting a number of total normal topics [ic]{topics_list_box.row.bottom.COUNT_TOTAL_TOPICS}[/ic] and this one [ic]{topics_list_box.row.topic.table_sticky.COUNT_TOTAL_TOPICS}[/ic] number of a stickied and announced posts, so yes, it's possible if you place it on right places.

Powered by PunBB
Currently 0 users have thanked Shadow for this post:

16
Offline

  Virus

avatar
★Moderator★
★Moderator★
R wrote:[link="/t810p10-quick-question-about-widgets-font#5836"]This variable is counting a number of total normal topics [ic]{topics_list_box.row.bottom.COUNT_TOTAL_TOPICS}[/ic] and this one [ic]{topics_list_box.row.topic.table_sticky.COUNT_TOTAL_TOPICS}[/ic] number of a stickied and announced posts, so yes, it's possible if you place it on right places.
What @Destroya* wants is to count the New posts and not the total posts. She wants if someone posts something in the category to count the new topics and not all topics in the category.

@Destroya* i believe someone with good knowledge of js can do that.

Powered by PunBB
Currently 0 users have thanked Virus for this post:

17
Offline

  Van-Helsing

avatar
★Moderator★
★Moderator★
Hello,
Is this solved?

Powered by PunBB
Currently 0 users have thanked Van-Helsing for this post:

18
Offline

  Destroya*

avatar
Punbb Senior
Punbb Senior
I guess I gave up on counting just the new ones. lol

Powered by PunBB
Currently 0 users have thanked Destroya* for this post:

19
Offline

  Van-Helsing

avatar
★Moderator★
★Moderator★
[aviso="Thread Archived"]Original poster seems to be inactive and did not respond within 7 days in this thread. Because of this, the topic has been Archived.

If you have further questions, please open a new topic.[/aviso]

Powered by PunBB
Currently 0 users have thanked Van-Helsing for this post:

20
Offline

  Sponsored content



Powered by PunBB
Currently 0 users have thanked Sponsored content for this post:

View previous topic View next topic Back to top Message [Page 1 of 1]


Topic URL's

URL
BBcode
HTML

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