Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 12376
Latest: Printablecalendars
New This Month: 3
New This Week: 0
New Today: 0
Stats
Total Posts: 40220
Total Topics: 7084
Most Online Today: 43
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 44
Total: 44

Author Topic: Auto Board Posting  (Read 2741 times)

0 Members and 1 Guest are viewing this topic.

Offline Brad

  • Newbie
  • *
  • Posts: 4
    • View Profile
Auto Board Posting
« on: June 10, 2010, 04:11:26 pm »
I dig this feature, but is there a way I can change it to where it puts "Auction:" before the subject in the subject line?

I looked around in the code, but couldnt find a quick answer to where this code was that creates the new post so i figured i'd ask.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 15109
    • View Profile
Re: Auto Board Posting
« Reply #1 on: June 10, 2010, 04:19:11 pm »
The text itself is store in themes/default/language/classifieds.english.php

If you were are looking for the code then it is in either Sources/Classifieds.php or Sources/Classifieds2.php depending on your SMF version.

Look for the function called Classifieds_CreateAutoPost and that is the code that does the posting.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline Brad

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Auto Board Posting
« Reply #2 on: June 10, 2010, 04:39:34 pm »
So, I assume this is the line I edit:

From classifieds.php
Code: [Select]
'subject' => $row['title'],
I added this line to classifieds.english.php

Code: [Select]
$txt['class_posting_presubject'] = 'Auction: ';
so how do I add the 'class_posting_presubject' to the line so it works with the $row['title'] ?

I am still learning how PHP works. thanks for the help

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 15109
    • View Profile
Re: Auto Board Posting
« Reply #3 on: June 10, 2010, 04:44:57 pm »
Change
Code: [Select]
'subject' => $row['title'],
To
Code: [Select]
'subject' => $txt['class_posting_presubject']  . $row['title'],

Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline Brad

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Auto Board Posting
« Reply #4 on: June 10, 2010, 04:47:40 pm »
that worked. Thanks!

 

Related Topics

  Subject / Started by Replies Last post
3 Replies
5010 Views
Last post January 19, 2007, 03:17:27 pm
by SMFHacks
7 Replies
8324 Views
Last post November 16, 2008, 07:43:40 pm
by SMFHacks
4 Replies
3605 Views
Last post February 22, 2009, 02:51:49 pm
by timandrew
1 Replies
3372 Views
Last post June 05, 2009, 10:58:43 pm
by Giovan
1 Replies
2620 Views
Last post May 20, 2011, 12:00:21 pm
by SMFHacks

+- Recent Topics

Download System Lite by Rock Lee
June 03, 2020, 07:34:24 pm

Font question by SMFHacks
May 27, 2020, 08:15:26 am

Error message with latest SMF 2.1 Github build by Hatshepsut
May 25, 2020, 01:43:26 am

smfblog not working on 2.0.17 by tech9
May 20, 2020, 01:44:34 pm

Copyright removal by stbc
May 18, 2020, 01:27:57 am

Mod Verified User i can't square the image by Rock Lee
May 07, 2020, 07:56:10 pm

SMF4Mobile 2.0 released for SMF 2.0.x by SMFHacks
May 06, 2020, 12:13:14 pm

SMF Social Login Pro - Discontinued? by Nicole
May 02, 2020, 05:47:04 pm

Likes by SMFHacks
April 30, 2020, 09:50:35 pm

Upgrade Issue - by SMFHacks
April 28, 2020, 12:40:13 pm

Powered by EzPortal