#1 WordPress forum plugin created by gVectors Team

wpForo – WordPress Forum Plugin
  • Home
  • Forum
  • Migrate to wpForo
  • Addons
  • Addons Demo
  • Documentation

Forum

Home | Forum

wpDiscuz - WordPress Comment Plugin
  • Forums
  • Members
  • Recent Posts
Forums
Main Support Forums
How-to and Troubles...
Add topic button in...
 
Share:
Share
Tweet
Share
Notifications
Clear all

Script [Solved] Add topic button in forum description

    Last Post
RSS

VereK
Posts: 321
 VereK
Topic starter
March 1, 2021 5:38 am
(@verek)
Reputable Member
Joined: 4 years ago

As per the title. Is there a way to add an "Add topic" to the forum description in Extended and Simplified forums?. It would greatly enhance usability for mobile users in particular. 

 add_topic.PNG
Topic Tags
add topic forum description
4 Replies
Robert
Posts: 8968
Robert - Twitter
 Robert
Admin
March 2, 2021 5:42 am
(@robert)
Support Team
Joined: 6 years ago

Hi

1. Go to Dashboard > Forums > Forums admin page and find Forum IDs.

2. Create the [Add Topic] button HTML code and put the ForumID in the button URL, in my example the forum id is 19:

https://  example.com  / community/ add-topic / forumid /

<p style="margin:7px 0;">
<a href="https://wpforo.com/community/add-topic/19/" class="wpf-button">Add Topic</a>
</p>

3. Put this HTML code in corresponding forum description.

 

In case you want to say thank you !)
We'd really appreciate and be thankful if you leave a good review on plugin page. This is the best way to say thank you to this project and support team.

Reply
VereK liked
VereK
Posts: 321
 VereK
Topic starter
March 2, 2021 11:07 pm
(@verek)
Reputable Member
Joined: 4 years ago

Fantastic. Thank you Robert

Edit: Just add this CSS if you want to hide these buttons from guests (Check 

/* Hide Add topic for guests in forum description */
#wpforo #wpforo-wrap.wpf-guest div > div.wpforo-forum-info > p:nth-child(3) > a {display:none;}
Reply
Robert liked
Vít Hofman
Posts: 135
Vít Hofman - Facebook
 Vít Hofman
March 12, 2021 6:52 am
(@vit-hofman)
Estimable Member
Joined: 4 years ago

@Robert In the menu for adding the item "Add topic" I can use this link: "/% wpforo-add-topic% /"

Is there any way to make it work for any button on the web?

If I use the link "/community/add-topic/" it works only for logged in users. The unlogged-in user only sees a notification that he does not have permission to go to the page.

Ideally, an unlogged-in user would be directed to the login page, as in the case of the "/% wpforo-add-topic% /" link.

Thanks.

If we do only what we can to do, we would never do anything.

Reply
1 Reply
Robert
 Robert
Admin
(@robert)
Joined: 6 years ago

Support Team
Posts: 8968
Robert - Twitter
March 12, 2021 7:13 am
Reply toVít HofmanVít Hofman

@vit-hofman,

I'm sorry but I didn't follow you.

In case you want to say thank you !)
We'd really appreciate and be thankful if you leave a good review on plugin page. This is the best way to say thank you to this project and support team.

Reply
  All forum topics
  Previous Topic
Next Topic  
Related Topics
  • Add Topic Buttons
    9 months ago
  • I can't add a new topic to my forums
    10 months ago
  • Repositioning the Forum Description
    10 months ago
  • Cannot add topic, button does not respond
    1 year ago
  • Click on Add Topic creates 404
    1 year ago
Topic Tags:  add topic (24), forum description (2),

Forum Search

Join Us!

Download wpForo plugin
on WordPress.org

wpForo Addons

wpforo-private-messages wpforo-advanced-attachments-128x128 wpforo-embeds-128x128 wpForo User Custom Fields addon wpForo – Blog Cross Posting addon wpForo Ads Manager wpForo – WooCommerce Memberships Integration wpForo Emoticons wpForo – Tenor GIFs Integration
View all Addons »

Recent Topics

  • How to prevent forum users from PASTING / posting multiple colors and font sizes...??

    By Noved, 14 hours ago

  • purchase of add on and it says payment pending

    By ReddBeard, 1 day ago

  • Costume text and image on every forum

    By Vijiki, 2 days ago

  • Forum topics and pages not indexing

    By Vijiki, 2 days ago

  • Can't send confirmation email from topics when suscribe for new topic

    By gilbau, 2 days ago

  • Can't add shortcodes to wpForo

    By avorai, 2 days ago

Topic Tags

  • translation49
  • css49
  • plugin conflict48
  • seo45
  • new features44
  • buddypress42
  • ultimate member40
  • avatar40
  • forum40
  • moderation38
  • login38
  • registration36
  • threaded layout35
  • cache33
  • editor32
  • menu32
  • shortcode31
  • spam29
  • phrases28
  • forum accesses28
View all tags (2163)

Recent Posts

  • RE: Show Likers with their avatar

    Have now found the correct code 😀 are these 3 lines ...

    By Tutrix, 8 hours ago

  • RE: How to prevent forum users from PASTING / posting multiple colors and font sizes...??

    @noved add this to custom css #wpforo #wpforo-wrap ...

    By Tutrix, 11 hours ago

  • RE: Costume text and image on every forum

    @vijiki There is no wpForo2 for the moment. Also forget...

    By dimalifragis, 24 hours ago

  • RE: Can't add shortcodes to wpForo

    @avorai So, SAC.PHP is crashing and it is wpForo the ca...

    By dimalifragis, 24 hours ago

  • RE: purchase of add on and it says payment pending

    Hi @reddbeard, Please move this topic to gVectors Sup...

    By Robert, 1 day ago

  • RE: Can't send confirmation email from topics when suscribe for new topic

    @gilbau, wpForo uses WordPress wp_mail() function. wp...

    By Robert, 2 days ago

  • RE: Forum topics and pages not indexing

    So all is ok from wpForo site. I have nothing to add he...

    By Robert, 2 days ago

Share:
Share
Tweet
Share
  Forum Statistics
20 Forums
9,757 Topics
49.5 K Posts
3 Online
43.7 K Members

Latest Post: Show Likers with their avatar Our newest member: harlanleeper75 Recent Posts Unread Posts Tags

Forum Icons: Forum contains no unread posts Forum contains unread posts

Topic Icons: Not Replied Replied Active Hot Sticky Unapproved Solved Private Closed

Powered by wpForo | Copyright © 2016-2022 gVectors Team
Copyright Registration Service - Click here for more information or to register work
wpForo is Registered with the IP Rights Office
Copyright Registration Service

Ref: 4477265538
  • Home
  • Forum
  • Migrate to wpForo
  • Addons
  • Addons Demo
  • Documentation