(Link to AcmlmWiki) Offline: thank ||bass
Register | Login
Views: 13,040,846
Main | Memberlist | Active users | Calendar | Chat | Online users
Ranks | FAQ | ACS | Stats | Color Chart | Search | Photo album
05-21-24 03:29 AM
0 users currently in Programming.
Acmlm's Board - I3 Archive - Programming - Looking for a line of code in forum.php New poll | |
Add to favorites | Next newer thread | Next older thread
User Post
timdevril50755

Poppy Bros. Jr


 





Since: 11-17-05

Last post: 6311 days
Last view: 6301 days
Posted on 11-27-05 01:11 PM Link | Quote
At least, I think it's in forum.php, I'm trying to code thread descriptions, and I can't find where to insert them to have them show up in the forum.
Yoshi Dude

TO HELL WITH THIS








Since: 11-17-05
From: Fleepa

Last post: 6301 days
Last view: 6301 days
Posted on 11-27-05 03:05 PM Link | Quote
You edit descriptions in the MySQL database, not in the code itself.
Go to "forums" in the database, browse for the forum you want to write, and there is a clearly labeled "description" section.

If you meant something else, I apologize.
Elric

Octoballoon


 





Since: 11-18-05
From: Melniboné

Last post: 6699 days
Last view: 6330 days
Posted on 11-27-05 06:22 PM Link | Quote
Yes, you have to add a field for Thread Descriptions to the MySQL DB, but you also need to modify forum.php for them to show up, newthread.php so you can add them, and editthread.php so staff can edit them.

I'd tell you where to make the changes, but I don't know what version you're using. I'm using v1.92, and I've heavily modified it...
DarkSlaya

930
Gamma Ray








Since: 11-17-05
From: Montreal, Canada

Last post: 6301 days
Last view: 6301 days
Posted on 11-27-05 06:24 PM Link | Quote
Originally posted by Yoshi Dude
If you meant something else, I apologize.


I believe he meant thread description, not forum description.


timdevril50755: It would be better to tell us which version of Acmlmboard you're using, as Elric mentioned.
timdevril50755

Poppy Bros. Jr


 





Since: 11-17-05

Last post: 6311 days
Last view: 6301 days
Posted on 11-27-05 11:13 PM Link | Quote
I'm using 1.92, to help those who can help
Elric

Octoballoon


 





Since: 11-18-05
From: Melniboné

Last post: 6699 days
Last view: 6330 days
Posted on 11-28-05 04:15 PM Link | Quote
Here's what I did to forum.php :

  • Line 16: Add description to the SELECT statment.
  • Line 24: Add description to the SELECT statment.
  • Line 83: Add description to the SELECT statment.
  • Line 86: Add description to the SELECT statment.
  • After Line 123: Add the following new lines:
    $thread[description]=str_replace('<','<',$thread[description]);
    $threaddesc="<br> $thread[description]";
    if($thread[description]) $threadstuff="$threadtitle $pagelinks $smallfont$threaddesc</td>";
    if(!$thread[description]) $threadstuff="$threadtitle $pagelinks</td>";


    (edited by Elric on 11-28-05 11:36 PM)
  • timdevril50755

    Poppy Bros. Jr


     





    Since: 11-17-05

    Last post: 6311 days
    Last view: 6301 days
    Posted on 11-28-05 11:13 PM Link | Quote
    are you looking at 1.92? because on line 22, it says
    die();
    Elric

    Octoballoon


     





    Since: 11-18-05
    From: Melniboné

    Last post: 6699 days
    Last view: 6330 days
    Posted on 11-29-05 12:37 AM Link | Quote
    That's where they are in my modified version of the file. I've edited my post with the line numbers, but you should have been able to figure most of it out.
    Add to favorites | Next newer thread | Next older thread
    Acmlm's Board - I3 Archive - Programming - Looking for a line of code in forum.php |


    ABII

    Acmlmboard 1.92.999, 9/17/2006
    ©2000-2006 Acmlm, Emuz, Blades, Xkeeper

    Page rendered in 0.013 seconds; used 376.87 kB (max 460.56 kB)