Notifications
Clear all

wpForo 1.x.x [Closed] Lot of Forums

13 Posts
4 Users
0 Reactions
832 Views
Chinese Scientist
Posts: 85
Topic starter
(@chinese-scientist)
Estimable Member
Joined: 5 years ago

hi

we will make forums in all city of china

like this:

shanghai

-pig market 

-chicken market

-goat market

-up to 30 animal market

 

there are 65 cities and its very long, the subforums (animal market) are same for all 65 cities. how to make forum easily?

Topic Tags
12 Replies
Robert
Posts: 10587
Admin
(@robert)
Support Team
Joined: 9 years ago

Hi @chinese-scientist,

I recommend use the Thread Layout and keep collapsed the forums:

Chinese Scientist
Posts: 85
Topic starter
(@chinese-scientist)
Estimable Member
Joined: 5 years ago

ok my quetion is this robert: 'how to make creating same forums very easy' like template

only changer is name of city

please answer my question please

Chinese Scientist
Posts: 85
Topic starter
(@chinese-scientist)
Estimable Member
Joined: 5 years ago

template is the list of this:

-pig market

-chicken market

-goat market

.

.

.

-cow market

3 Replies
Sofy
 Sofy
Admin
(@sofy)
Joined: 7 years ago

Support Team
Posts: 4772

@chinese-scientist,

If you're familiar with programming, we may provide a PHP code that'll allow you automatically create forums. However, if not, we highly recommend you to contact us via sales[at]gvectors.com email address. The developers will asses the work and create it for you. 

Chinese Scientist
(@chinese-scientist)
Joined: 5 years ago

Estimable Member
Posts: 85

@sofy

i can study php im fast learner

yes plese provide code

thank you 😀

Sofy
 Sofy
Admin
(@sofy)
Joined: 7 years ago

Support Team
Posts: 4772

ok @chinese-scientist

I'll aks the developers to provide the code. Please wait a bit. I'll update the topic asap. 

Chinese Scientist
Posts: 85
Topic starter
(@chinese-scientist)
Estimable Member
Joined: 5 years ago

🤗

5 Replies
Sofy
 Sofy
Admin
(@sofy)
Joined: 7 years ago

Support Team
Posts: 4772

@chinese-scientist,

Below is provided the code that adds forums. You just need to change red marked codes before using:

WPF()->forum->add( array( 'title' => __('Main Forum', 'wpforo'), 'description' => __('This is a simple parent forum', 'wpforo'), 'parentid' => $parentid, 'cat_layout' => 4, 'icon' => 'fas fa-comments'), FALSE );

However, if you're not a developer please don't do make any changes, just ask some developer to do it for you. Please note, we don't provide support in such cases. 

Chinese Scientist
(@chinese-scientist)
Joined: 5 years ago

Estimable Member
Posts: 85

@sofy

ok thank you sofy

Chinese Scientist
(@chinese-scientist)
Joined: 5 years ago

Estimable Member
Posts: 85

@sofy

i am using MY CUSTOM FUNCTIONS by Space X-Chimp

they say it is safe to do there, will not break my site

can i also add your code there?

Moderator
(@martin)
Joined: 8 years ago

Support Team
Posts: 993

@chinese-scientist,

As Sofy said, you should not use it if you're not developer. This is not for copy/paste.

I'm sorry but, If you're not a programmer you can't use that code. That code does nothing if you use it as is. It should be used in your custom script as an end processor.

You should provide data to that code in some PHP loop to create sub-forums. This should be used one time and generate all sub-forums. So this code is for programmers not for putting in website and waiting for some result. There'll not be any result, moreover, it'll break your website. So please just forget about this code if you're not programmer and if you're not going to create custom script based on that code line.

Chinese Scientist
(@chinese-scientist)
Joined: 5 years ago

Estimable Member
Posts: 85

@martin

thank you for your sermon

i code assembler, c, c++ and java many years ago

if you give me specific step, there no reason i cant do it too

i also practiced django recently, im fast learner

plese give me specific step and i will do it myself

thank